[gtk+] shortcuts: Separate gestures in search results
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] shortcuts: Separate gestures in search results
- Date: Sun, 3 Jan 2016 16:10:57 +0000 (UTC)
commit daa08862ffae16a78dba297cf796fb577b9d9b08
Author: Felix Riemann <friemann gnome org>
Date: Sun Jan 3 15:32:38 2016 +0100
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 4a61478..09e6a07 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]