aboutsummaryrefslogtreecommitdiffstats
path: root/lib/egg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/egg')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 1006a1e02..3ad616b1c 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -615,9 +615,10 @@ toolbar_drag_motion_cb (GtkWidget *widget,
pos = get_toolbar_position (etoolbar, widget);
flags = egg_toolbars_model_get_flags (etoolbar->priv->model, pos);
- if ((flags & EGG_TB_MODEL_ACCEPT_ITEMS_ONLY) &&
- !gtk_widget_get_ancestor (source, EGG_TYPE_EDITABLE_TOOLBAR) &&
- !gtk_widget_get_ancestor (source, EGG_TYPE_TOOLBAR_EDITOR))
+ if (!etoolbar->priv->edit_mode ||
+ ((flags & EGG_TB_MODEL_ACCEPT_ITEMS_ONLY) &&
+ !gtk_widget_get_ancestor (source, EGG_TYPE_EDITABLE_TOOLBAR) &&
+ !gtk_widget_get_ancestor (source, EGG_TYPE_TOOLBAR_EDITOR)))
{
gdk_drag_status (context, 0, time);
return FALSE;