[recipes] window: Simplify key event handling



commit bd297d75aa3beed8edd648f89d7a32e4eace5a76
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 11 20:07:33 2017 -0500

    window: Simplify key event handling
    
    Now that we have a global action for search with the
    <Primary>f accel, we don't need to do this in out
    key event handler anymore.

 src/gr-window.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index fac926f..3437681 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -405,18 +405,6 @@ window_keypress_handler (GtkWidget *widget,
             strcmp (visible, "search") != 0)
                 return GDK_EVENT_PROPAGATE;
 
-        /* handle ctrl+f shortcut */
-        if (event->type == GDK_KEY_PRESS) {
-                if ((e->state & GDK_CONTROL_MASK) > 0 && e->keyval == GDK_KEY_f) {
-                        if (!gtk_search_bar_get_search_mode (GTK_SEARCH_BAR (window->search_bar))) {
-                                gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (window->search_bar), TRUE);
-                        } else {
-                                gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (window->search_bar), FALSE);
-                        }
-                        return GDK_EVENT_PROPAGATE;
-                }
-        }
-
         return gr_query_editor_handle_event (GR_QUERY_EDITOR (window->search_bar), event);
 }
 


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