[epiphany/wip/gtkaction-to-gaction] ephy-toolbar: Hide navigation box popup if button was release



commit 148e7d33af9639d9feb10f9712189923a482d30a
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]