Commit 9dd2aa7e authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

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
parent a09bebd5
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment