aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-user-creatable-items-handler.c
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 /shell/e-user-creatable-items-handler.c
parentaa350edea07796e9c60bf10b2cf6a05fa449dab3 (diff)
downloadgsoc2013-evolution-1f2222c796a1afb2796890f4550d2f23c6914c40.tar.gz
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
Diffstat (limited to 'shell/e-user-creatable-items-handler.c')
-rw-r--r--shell/e-user-creatable-items-handler.c2
1 files changed, 1 insertions, 1 deletions
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,