Blame SOURCES/0001-gtkdnd-Account-for-setting-a-same-icon-helper.patch
|
|
25dd04 |
From ad6a66ba07be05b7fac30417bde83015fd216e43 Mon Sep 17 00:00:00 2001
|
|
|
25dd04 |
From: Carlos Garnacho <carlosg@gnome.org>
|
|
|
25dd04 |
Date: Mon, 6 Jul 2015 19:33:49 +0200
|
|
|
25dd04 |
Subject: [PATCH] gtkdnd: Account for setting a same icon helper
|
|
|
25dd04 |
|
|
|
25dd04 |
g_set_object() will take care of ref'ing before destroying the previous
|
|
|
25dd04 |
instance, which might actually be the same pointer.
|
|
|
25dd04 |
|
|
|
25dd04 |
https://bugzilla.gnome.org/show_bug.cgi?id=751401
|
|
|
25dd04 |
---
|
|
|
25dd04 |
gtk/gtkdnd.c | 5 +----
|
|
|
25dd04 |
1 file changed, 1 insertion(+), 4 deletions(-)
|
|
|
25dd04 |
|
|
|
25dd04 |
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
|
|
|
25dd04 |
index c8a190c..364c382 100644
|
|
|
25dd04 |
--- a/gtk/gtkdnd.c
|
|
|
25dd04 |
+++ b/gtk/gtkdnd.c
|
|
|
25dd04 |
@@ -3258,10 +3258,7 @@ set_icon_helper (GdkDragContext *context,
|
|
|
25dd04 |
|
|
|
25dd04 |
info = gtk_drag_get_source_info (context, FALSE);
|
|
|
25dd04 |
|
|
|
25dd04 |
- if (info->icon_helper)
|
|
|
25dd04 |
- g_object_unref (info->icon_helper);
|
|
|
25dd04 |
- info->icon_helper = g_object_ref (helper);
|
|
|
25dd04 |
-
|
|
|
25dd04 |
+ g_set_object (&info->icon_helper, helper);
|
|
|
25dd04 |
gtk_drag_set_icon_window (context, NULL, hot_x, hot_y, TRUE);
|
|
|
25dd04 |
}
|
|
|
25dd04 |
else
|
|
|
25dd04 |
--
|
|
|
25dd04 |
2.4.5
|
|
|
25dd04 |
|