summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2007-10-05 03:08:55 +0000
committerHiroyuki Ikezoe <hiikezoe@src.gnome.org>2007-10-05 03:08:55 +0000
commit31f26042f763cef5a2cf01b159cd7b99bf43c49b (patch)
treee607d083d941ec654958dd7337b47a91dca26855
parent43f5b189b71fb360a472526f2b25090857553c98 (diff)
downloadgdk-pixbuf-31f26042f763cef5a2cf01b159cd7b99bf43c49b.tar.gz
Use g_object_ref() instead of gtk_widget_ref(). (#483563)
2007-10-05 Hiroyuki Ikezoe <poincare@ikezoe.net> * gtk/gtkdnd.c: Use g_object_ref() instead of gtk_widget_ref(). (#483563) svn path=/trunk/; revision=18884
-rw-r--r--ChangeLog5
-rw-r--r--gtk/gtkdnd.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 29d89ae91..d6c8c5d16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-05 Hiroyuki Ikezoe <poincare@ikezoe.net>
+
+ * gtk/gtkdnd.c: Use g_object_ref() instead of gtk_widget_ref().
+ (#483563)
+
2007-10-04 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentaction.c:
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 856c49197..4294412f6 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1801,7 +1801,7 @@ gtk_drag_proxy_begin (GtkWidget *widget,
source_info = gtk_drag_get_source_info (context, TRUE);
source_info->ipc_widget = ipc_widget;
- source_info->widget = gtk_widget_ref (widget);
+ source_info->widget = g_object_ref (widget);
source_info->target_list = gtk_target_list_new (NULL, 0);
tmp_list = dest_info->context->targets;
@@ -2235,7 +2235,7 @@ gtk_drag_begin_internal (GtkWidget *widget,
info->ipc_widget = ipc_widget;
g_object_set_data (G_OBJECT (info->ipc_widget), I_("gtk-info"), info);
- info->widget = gtk_widget_ref (widget);
+ info->widget = g_object_ref (widget);
info->button = button;
info->cursor = cursor;
@@ -2885,7 +2885,7 @@ gtk_drag_set_icon_window (GdkDragContext *context,
gtk_drag_remove_icon (info);
if (widget)
- gtk_widget_ref (widget);
+ g_object_ref (widget);
info->icon_window = widget;
info->hot_x = hot_x;