[gimp] 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] Bug 725325 - Drag and drop fails for patterns and brushes
- Date: Thu, 27 Feb 2014 17:48:13 +0000 (UTC)
commit cbce05f92c77e76a2ab0745422b8627ec406416b
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
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 e6a98f0..033de85 100644
--- a/libgimp/gimpbrushselectbutton.c
+++ b/libgimp/gimpbrushselectbutton.c
@@ -921,9 +921,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 a990751..95eb2d1 100644
--- a/libgimp/gimppatternselectbutton.c
+++ b/libgimp/gimppatternselectbutton.c
@@ -719,9 +719,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]