aboutsummaryrefslogtreecommitdiff
path: root/src/idoscalemenuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idoscalemenuitem.c')
-rw-r--r--src/idoscalemenuitem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index b28f568..4731de6 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -335,9 +335,13 @@ ido_scale_menu_item_button_press_event (GtkWidget *menuitem,
translate_event_coordinates (menuitem, event->x_root, &x);
event->x_root = x;
+ GTK_OBJECT_FLAGS (scale) |= GTK_HAS_GRAB;
+
gtk_widget_event (scale,
((GdkEvent *)(void*)(event)));
+ GTK_OBJECT_FLAGS (scale) &= ~(GTK_HAS_GRAB);
+
if (!priv->grabbed)
{
priv->grabbed = TRUE;