forked from AuroraMiddleware/gtk
use g_object_ref() and unref() instead of the deprecated gtk_widget_ref()
2008-06-17 Michael Natterer <mitch@imendio.com> * gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref() and unref() instead of the deprecated gtk_widget_ref() and unref(). svn path=/trunk/; revision=20411
This commit is contained in:
parent
a09bebd5b9
commit
9dd2aa7edc
@ -1,3 +1,8 @@
|
||||
2008-06-17 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
|
||||
and unref() instead of the deprecated gtk_widget_ref() and unref().
|
||||
|
||||
2008-06-16 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkentry.c: removed function drag_begin_cb(), which was in
|
||||
|
@ -294,16 +294,16 @@ void
|
||||
_gtk_plug_send_delete_event (GtkWidget *widget)
|
||||
{
|
||||
GdkEvent *event = gdk_event_new (GDK_DELETE);
|
||||
|
||||
|
||||
event->any.window = g_object_ref (widget->window);
|
||||
event->any.send_event = FALSE;
|
||||
|
||||
gtk_widget_ref (widget);
|
||||
|
||||
g_object_ref (widget);
|
||||
|
||||
if (!gtk_widget_event (widget, event))
|
||||
gtk_widget_destroy (widget);
|
||||
|
||||
gtk_widget_unref (widget);
|
||||
|
||||
g_object_unref (widget);
|
||||
|
||||
gdk_event_free (event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user