gtk+ r20411 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20411 - in trunk: . gtk
- Date: Mon, 16 Jun 2008 22:47:50 +0000 (UTC)
Author: mitch
Date: Mon Jun 16 22:47:50 2008
New Revision: 20411
URL: http://svn.gnome.org/viewvc/gtk+?rev=20411&view=rev
Log:
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().
Modified:
trunk/ChangeLog
trunk/gtk/gtkplug.c
Modified: trunk/gtk/gtkplug.c
==============================================================================
--- trunk/gtk/gtkplug.c (original)
+++ trunk/gtk/gtkplug.c Mon Jun 16 22:47:50 2008
@@ -294,16 +294,16 @@
_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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]