Blame SOURCES/0001-Avoid-g_set_object.patch
|
|
25dd04 |
From 34e6e1a599375da5665f4829faedf4c640f031a6 Mon Sep 17 00:00:00 2001
|
|
|
25dd04 |
From: Matthias Clasen <mclasen@redhat.com>
|
|
|
25dd04 |
Date: Tue, 21 Jul 2015 12:03:52 -0400
|
|
|
25dd04 |
Subject: [PATCH] Avoid g_set_object
|
|
|
25dd04 |
|
|
|
25dd04 |
One of the backported fixes brought in a dependency on new glib
|
|
|
25dd04 |
that I didn't mean to introduce here. Avoid it.
|
|
|
25dd04 |
---
|
|
|
25dd04 |
gtk/gtkdnd.c | 6 +++++-
|
|
|
25dd04 |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
25dd04 |
|
|
|
25dd04 |
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
|
|
|
25dd04 |
index 364c382..8ff85ce 100644
|
|
|
25dd04 |
--- a/gtk/gtkdnd.c
|
|
|
25dd04 |
+++ b/gtk/gtkdnd.c
|
|
|
25dd04 |
@@ -3258,7 +3258,11 @@ set_icon_helper (GdkDragContext *context,
|
|
|
25dd04 |
|
|
|
25dd04 |
info = gtk_drag_get_source_info (context, FALSE);
|
|
|
25dd04 |
|
|
|
25dd04 |
- g_set_object (&info->icon_helper, helper);
|
|
|
25dd04 |
+ if (helper)
|
|
|
25dd04 |
+ g_object_ref (helper);
|
|
|
25dd04 |
+ if (info->icon_helper)
|
|
|
25dd04 |
+ g_object_unref (info->icon_helper);
|
|
|
25dd04 |
+ 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 |
|