[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (3471f5bb3d4a4c8c644c4784e2462fd2a7c227ae)
The branch, master has been updated
via 3471f5bb3d4a4c8c644c4784e2462fd2a7c227ae (commit)
from 482ee796928af45b643a289670b9945c3b5c2743 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
src/hid/gtk/ghid-main-menu.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 3471f5bb3d4a4c8c644c4784e2462fd2a7c227ae
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
gtk: check accelerator uniqueness in a case-insensitive way
Closes-bug: lp-699496
:100644 100644 4ae8c9a... 74aa144... M src/hid/gtk/ghid-main-menu.c
=========
Changes
=========
commit 3471f5bb3d4a4c8c644c4784e2462fd2a7c227ae
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>
gtk: check accelerator uniqueness in a case-insensitive way
Closes-bug: lp-699496
diff --git a/src/hid/gtk/ghid-main-menu.c b/src/hid/gtk/ghid-main-menu.c
index 4ae8c9a..74aa144 100644
--- a/src/hid/gtk/ghid-main-menu.c
+++ b/src/hid/gtk/ghid-main-menu.c
@@ -141,6 +141,12 @@ translate_accelerator (const char *text)
return g_string_free (ret_val, FALSE);
}
+static gboolean
+g_str_case_equal (gconstpointer v1, gconstpointer v2)
+{
+ return strcasecmp (v1, v2);
+}
+
/*! \brief Check that translated accelerators are unique; warn otherwise. */
static const char *
check_unique_accel (const char *accelerator)
@@ -151,7 +157,7 @@ check_unique_accel (const char *accelerator)
return accelerator;
if (!accel_table)
- accel_table = g_hash_table_new (g_str_hash, g_str_equal);
+ accel_table = g_hash_table_new (g_str_hash, g_str_case_equal);
if (g_hash_table_lookup (accel_table, accelerator))
{
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs