aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@freebsd.org>2006-01-24 00:48:05 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-01-24 00:48:05 +0800
commit1f2222c796a1afb2796890f4550d2f23c6914c40 (patch)
treec6f1d93cb6d36edc72e8716d6a36bfb14c786129
parentaa350edea07796e9c60bf10b2cf6a05fa449dab3 (diff)
downloadgsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.gz
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.bz2
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.lz
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.xz
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.zst
gsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.zip
adding a check to make sure the shortcut key is not the NUL byte. Fixes
2006-01-23 Joe Marcus Clarke <marcus@freebsd.org> * e-user-creatable-items-handler.c: adding a check to make sure the shortcut key is not the NUL byte. Fixes bug 327468. svn path=/trunk/; revision=31283
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-user-creatable-items-handler.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 578ced0859..3d02a4bac6 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-23 Joe Marcus Clarke <marcus@freebsd.org>
+
+ * e-user-creatable-items-handler.c: adding a check to make sure
+ the shortcut key is not the NUL byte. Fixes bug 327468.
+
2006-01-21 Andre Klapper <a9016009@gmx.de>
* e-shell-settings-dialog.c: changed string "Settings" to
diff --git a/shell/e-user-creatable-items-handler.c b/shell/e-user-creatable-items-handler.c
index 57779383dc..159c5b47b0 100644
--- a/shell/e-user-creatable-items-handler.c
+++ b/shell/e-user-creatable-items-handler.c
@@ -646,7 +646,7 @@ gtk_menu_item_func (EUserCreatableItemsHandler *handler, gpointer menu,
handler->priv->accel_group,
'n', GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
- } else {
+ } else if (item->shortcut != '\0') {
gtk_widget_add_accelerator (menuitem, "activate",
handler->priv->accel_group,
item->shortcut,