diff options
author | David Bordoley <bordoley@msu.edu> | 2003-05-23 21:50:29 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-05-23 21:50:29 +0800 |
commit | bf20b4938c2e01f15d72dc2962c12400bb15d4d4 (patch) | |
tree | 137f936d81bb5e9d62a95571bc0f78438c8c1ae1 /src | |
parent | c4db125c559054c7d5bb5ffd302b303470ab03ba (diff) | |
download | gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar.gz gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar.bz2 gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar.lz gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar.xz gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.tar.zst gsoc2013-epiphany-bf20b4938c2e01f15d72dc2962c12400bb15d4d4.zip |
Activate the menu on button press down, like other menus.
2003-05-22 David Bordoley <bordoley@msu.edu>
* src/bookmarks/ephy-topic-action.c:
(menu_deactivate_cb), (button_pressed_cb),
(connect_proxy):
Activate the menu on button press down, like other menus.
Diffstat (limited to 'src')
-rw-r--r-- | src/bookmarks/ephy-topic-action.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index 1670c099f..f5afa6155 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -122,6 +122,7 @@ static void menu_deactivate_cb (GtkMenuShell *ms, GtkWidget *button) { gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), FALSE); + gtk_button_released (GTK_BUTTON (button)); } static void @@ -393,7 +394,13 @@ button_toggled_cb (GtkWidget *button, ephy_gui_menu_position_under_widget, button, 1, gtk_get_current_event_time ()); } +} +static void +button_pressed_cb (GtkWidget *button, + EphyTopicAction *action) +{ + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE); } static void @@ -410,6 +417,10 @@ connect_proxy (EggAction *action, GtkWidget *proxy) button = GTK_WIDGET (g_object_get_data (G_OBJECT (proxy), "button")); g_signal_connect (button, "toggled", G_CALLBACK (button_toggled_cb), action); + + /* We want the menu to popup up on mouse down */ + g_signal_connect (button, "pressed", + G_CALLBACK (button_pressed_cb), action); } static void |