[epiphany/wip/gtkaction-to-gaction: 54/57] ephy-toolbar: Hide navigation box popup if button was release
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/gtkaction-to-gaction: 54/57] ephy-toolbar: Hide navigation box popup if button was release
- Date: Mon, 11 Jul 2016 16:34:52 +0000 (UTC)
commit e9fdc992f9e7c267d46e2487dc7fc8517fe2b55f
Author: Iulian Radu <iulian radu67 gmail com>
Date: Mon Jul 11 14:39:48 2016 +0300
ephy-toolbar: Hide navigation box popup if button was release
src/ephy-toolbar.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 52bb243..eddfa0d 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -492,6 +492,10 @@ navigation_button_release_event_cb (GtkButton *button,
EphyNavigationHistoryDirection direction;
const gchar *action_name;
+ if (toolbar->navigation_buttons_menu_timeout > 0)
+ g_source_remove (toolbar->navigation_buttons_menu_timeout);
+ toolbar->navigation_buttons_menu_timeout = 0;
+
action_name = gtk_actionable_get_action_name (GTK_ACTIONABLE (button));
action_group = gtk_widget_get_action_group (GTK_WIDGET (toolbar->window), "toolbar");
@@ -698,6 +702,8 @@ ephy_toolbar_constructed (GObject *object)
history_service = EPHY_HISTORY_SERVICE (ephy_embed_shell_get_global_history_service
(ephy_embed_shell_get_default ()));
+ if (toolbar->navigation_buttons_menu_timeout > 0)
+ g_source_remove (toolbar->navigation_buttons_menu_timeout);
toolbar->navigation_buttons_menu_timeout = 0;
g_signal_connect (history_service,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]