From daa08862ffae16a78dba297cf796fb577b9d9b08 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Sun, 3 Jan 2016 15:32:38 +0100 Subject: [PATCH] shortcuts: Separate gestures in search results Gestures where shown separately from other shortcuts in the search results before. This restores that behaviour. https://bugzilla.gnome.org/show_bug.cgi?id=760097 --- gtk/gtkshortcutswindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c index 4a614785bd..09e6a07c24 100644 --- a/gtk/gtkshortcutswindow.c +++ b/gtk/gtkshortcutswindow.c @@ -237,7 +237,10 @@ gtk_shortcuts_window_add_search_item (GtkWidget *child, gpointer data) keywords = g_utf8_strdown (str, -1); g_hash_table_insert (priv->keywords, item, keywords); - gtk_container_add (GTK_CONTAINER (priv->search_shortcuts), item); + if (shortcut_type == GTK_SHORTCUT_ACCELERATOR) + gtk_container_add (GTK_CONTAINER (priv->search_shortcuts), item); + else + gtk_container_add (GTK_CONTAINER (priv->search_gestures), item); g_free (title); g_free (accelerator);