[gtk+/wip/matthiasc/help-overlay] Fix an oversight in ensuring search item uniqueness
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/help-overlay] Fix an oversight in ensuring search item uniqueness
- Date: Tue, 13 Oct 2015 23:59:47 +0000 (UTC)
commit 337f4e8f950590b6cf249fded1cb05da015a5513
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 13 18:47:51 2015 -0400
Fix an oversight in ensuring search item uniqueness
We were using a guaranteed-to-be-NULL string instead of the
one we were actually meaning to use.
gtk/gtkshortcutswindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 00d7115..c4c2353 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -258,7 +258,7 @@ gtk_shortcuts_window_add_search_item (GtkShortcutsWindow *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))
{
g_free (hash_key);
@@ -293,7 +293,7 @@ gtk_shortcuts_window_add_search_item (GtkShortcutsWindow *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))
{
g_free (subtitle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]