[gimp/gimp-2-8] Bug 725325 - Drag and drop fails for patterns and brushes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 725325 - Drag and drop fails for patterns and brushes
- Date: Thu, 27 Feb 2014 17:49:09 +0000 (UTC)
commit c6f5c24c368c72674a9fe5a04f5a8c076b209204
Author: saul <saul crazyauntgail com>
Date: Thu Feb 27 09:16:49 2014 -0500
Bug 725325 - Drag and drop fails for patterns and brushes
The "drag-data-received" signal was connected wrongly
(cherry picked from commit cbce05f92c77e76a2ab0745422b8627ec406416b)
libgimp/gimpbrushselectbutton.c | 6 +++---
libgimp/gimppatternselectbutton.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgimp/gimpbrushselectbutton.c b/libgimp/gimpbrushselectbutton.c
index 019c400..520f53d 100644
--- a/libgimp/gimpbrushselectbutton.c
+++ b/libgimp/gimpbrushselectbutton.c
@@ -920,9 +920,9 @@ gimp_brush_select_button_create_inside (GimpBrushSelectButton *brush_button)
&target, 1,
GDK_ACTION_COPY);
- g_signal_connect (priv->preview, "drag-data-received",
- G_CALLBACK (gimp_brush_select_drag_data_received),
- hbox);
+ g_signal_connect_swapped (priv->preview, "drag-data-received",
+ G_CALLBACK (gimp_brush_select_drag_data_received),
+ brush_button);
button = gtk_button_new_with_mnemonic (_("_Browse..."));
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
diff --git a/libgimp/gimppatternselectbutton.c b/libgimp/gimppatternselectbutton.c
index 04696b2..cc44d9d 100644
--- a/libgimp/gimppatternselectbutton.c
+++ b/libgimp/gimppatternselectbutton.c
@@ -718,9 +718,9 @@ gimp_pattern_select_button_create_inside (GimpPatternSelectButton *pattern_butto
&target, 1,
GDK_ACTION_COPY);
- g_signal_connect (priv->preview, "drag-data-received",
- G_CALLBACK (gimp_pattern_select_drag_data_received),
- hbox);
+ g_signal_connect_swapped (priv->preview, "drag-data-received",
+ G_CALLBACK (gimp_pattern_select_drag_data_received),
+ pattern_button);
button = gtk_button_new_with_mnemonic (_("_Browse..."));
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]