[epiphany] window-commands: Change find shortcut handling



commit a923ff3643d7c271702f83f5f9919ff169915a73
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Jul 1 12:48:37 2018 +0200

    window-commands: Change find shortcut handling
    
    Shortcut for find <primary>+f will now always open the search bar, instead of toggling between the states 
(open/close).

 embed/ephy-find-toolbar.c | 10 ----------
 embed/ephy-find-toolbar.h |  2 --
 src/window-commands.c     |  2 +-
 3 files changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index 9b3ebb75d..80a01400f 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -587,13 +587,3 @@ ephy_find_toolbar_request_close (EphyFindToolbar *toolbar)
     g_signal_emit (toolbar, signals[CLOSE], 0);
   }
 }
-
-void
-ephy_find_toolbar_toggle_state (EphyFindToolbar *toolbar)
-{
-  if (gtk_search_bar_get_search_mode (GTK_SEARCH_BAR (toolbar))) {
-    ephy_find_toolbar_close (toolbar);
-  } else {
-    ephy_find_toolbar_open (toolbar, FALSE, FALSE);
-  }
-}
diff --git a/embed/ephy-find-toolbar.h b/embed/ephy-find-toolbar.h
index 9d469f5ce..bd588dc12 100644
--- a/embed/ephy-find-toolbar.h
+++ b/embed/ephy-find-toolbar.h
@@ -47,6 +47,4 @@ void             ephy_find_toolbar_close         (EphyFindToolbar *toolbar);
 
 void             ephy_find_toolbar_request_close (EphyFindToolbar *toolbar);
 
-void             ephy_find_toolbar_toggle_state  (EphyFindToolbar *toolbar);
-
 G_END_DECLS
diff --git a/src/window-commands.c b/src/window-commands.c
index 39139f267..0d483808c 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -1697,7 +1697,7 @@ window_cmd_find (GSimpleAction *action,
   EphyFindToolbar *toolbar;
 
   toolbar = EPHY_FIND_TOOLBAR (ephy_window_get_current_find_toolbar (window));
-  ephy_find_toolbar_toggle_state (toolbar);
+  ephy_find_toolbar_open (toolbar, FALSE, FALSE);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]