[gnome-builder] Fix an obvious typo



commit b6612de36473a98602c7c17264324015d3d007c0
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 13 18:45:21 2015 -0400

    Fix an obvious typo
    
    When ensuring uniqueness of search items, we were passing a
    string to g_strdup_printf that is guaranteed to be NULL instead
    of the string we actually want to use.

 src/shortcuts/gb-shortcuts-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/shortcuts/gb-shortcuts-dialog.c b/src/shortcuts/gb-shortcuts-dialog.c
index 7d7eef4..8adc67d 100644
--- a/src/shortcuts/gb-shortcuts-dialog.c
+++ b/src/shortcuts/gb-shortcuts-dialog.c
@@ -196,7 +196,7 @@ gb_shortcuts_dialog_add_search_item (GbShortcutsDialog *self,
                     "title", &title,
                     NULL);
 
-      hash_key = g_strdup_printf ("%s-%s", title, hash_key);
+      hash_key = g_strdup_printf ("%s-%s", title, accelerator);
       if (g_hash_table_contains (priv->search_items_hash, hash_key))
         return;
 
@@ -222,7 +222,7 @@ gb_shortcuts_dialog_add_search_item (GbShortcutsDialog *self,
                     "title", &title,
                     NULL);
 
-      hash_key = g_strdup_printf ("%s-%s", title, hash_key);
+      hash_key = g_strdup_printf ("%s-%s", title, subtitle);
       if (g_hash_table_contains (priv->search_items_hash, hash_key))
         return;
 


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