diff options
author | Cody Russell <crussell@canonical.com> | 2010-05-10 09:14:53 +0200 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-05-10 09:14:53 +0200 |
commit | ac894c8ff8c842a8911fbae7998789ada1a080e6 (patch) | |
tree | 082dca3b3f6ef25abe629e9d8c673f173d7db51d /src | |
parent | 9f850501d1d6e1a39255eb7b04dc43874e86fb5a (diff) | |
download | ayatana-ido-ac894c8ff8c842a8911fbae7998789ada1a080e6.tar.gz ayatana-ido-ac894c8ff8c842a8911fbae7998789ada1a080e6.tar.bz2 ayatana-ido-ac894c8ff8c842a8911fbae7998789ada1a080e6.zip |
Fake out the grab stuff by setting GTK_HAS_GRAB on the scale widget before forwarding the event.
Diffstat (limited to 'src')
-rw-r--r-- | src/idoscalemenuitem.c | 4 |
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; |