aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-07-09 03:05:25 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-07-09 03:05:25 +0800
commitb3af3dd786f57ac076cbab8e54267213c4ea8da5 (patch)
tree204b1f0baa34ea8d132cff7ad5277cc6c281cd20 /lib
parent8adf2de315954bedb84f6c05eba3fc9b0d046ebf (diff)
downloadgsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar.gz
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar.bz2
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar.lz
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar.xz
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.tar.zst
gsoc2013-epiphany-b3af3dd786f57ac076cbab8e54267213c4ea8da5.zip
When moving in the same toolbar force GDK_ACTION_MOVE. Fix #145529
2004-07-08 Marco Pesenti Gritti <marco@gnome.org> * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): When moving in the same toolbar force GDK_ACTION_MOVE. Fix #145529
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 63dbe3384..87777c803 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -625,6 +625,11 @@ toolbar_drag_motion_cb (GtkWidget *widget,
gdk_drag_status (context, 0, time);
return FALSE;
}
+
+ if (gtk_widget_is_ancestor (source, widget))
+ {
+ context->suggested_action = GDK_ACTION_MOVE;
+ }
}
target = gtk_drag_dest_find_target (widget, context, NULL);