diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-12-27 18:29:07 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-01-24 08:44:30 -0500 |
commit | 3bf12c44e28076fd23c21a5e512df19070d04a0a (patch) | |
tree | 1b85cbb310263ba42baae00497e0348ce9a7124f /gtk/gtksearchentry.c | |
parent | 354536d464bc39ef1f335cd89f71398bea74e506 (diff) | |
download | gtk+-3bf12c44e28076fd23c21a5e512df19070d04a0a.tar.gz |
Use the new API in GtkSearchBar if we can
Sadly, GtkSearchBar allows connecting plain entries, so we have
to keep the old code around.
Diffstat (limited to 'gtk/gtksearchentry.c')
-rw-r--r-- | gtk/gtksearchentry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtksearchentry.c b/gtk/gtksearchentry.c index 7e02f0e818..0fa0b20b6e 100644 --- a/gtk/gtksearchentry.c +++ b/gtk/gtksearchentry.c @@ -385,8 +385,8 @@ gtk_search_entry_new (void) return GTK_WIDGET (g_object_new (GTK_TYPE_SEARCH_ENTRY, NULL)); } -static gboolean -is_keynav_event (GdkEvent *event) +gboolean +gtk_search_entry_is_keynav_event (GdkEvent *event) { GdkModifierType state = 0; guint keyval; @@ -447,7 +447,7 @@ gtk_search_entry_handle_event (GtkSearchEntry *entry, if (!gtk_widget_get_realized (GTK_WIDGET (entry))) gtk_widget_realize (GTK_WIDGET (entry)); - if (is_keynav_event (event) || + if (gtk_search_entry_is_keynav_event (event) || event->key.keyval == GDK_KEY_space || event->key.keyval == GDK_KEY_Menu) return GDK_EVENT_PROPAGATE; |