Commit cbce05f9 authored by saul's avatar saul Committed by Michael Natterer

Bug 725325 - Drag and drop fails for patterns and brushes

The "drag-data-received" signal was connected wrongly
parent c42cc495
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment