diff options
Diffstat (limited to 'src/shortcuts.cpp')
| -rw-r--r-- | src/shortcuts.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/shortcuts.cpp b/src/shortcuts.cpp index e74d60abc..f7ce2643d 100644 --- a/src/shortcuts.cpp +++ b/src/shortcuts.cpp @@ -651,18 +651,6 @@ sp_shortcut_unset(unsigned int const shortcut) } } -GtkAccelGroup * -sp_shortcut_get_accel_group() -{ - static GtkAccelGroup *accel_group = NULL; - - if (!accel_group) { - accel_group = gtk_accel_group_new (); - } - - return accel_group; -} - /** * Adds a gtk accelerator to a widget * Used to display the keyboard shortcuts in the main menu items @@ -678,7 +666,7 @@ sp_shortcut_add_accelerator(GtkWidget *item, unsigned int const shortcut) if (accel_key > 0) { gtk_widget_add_accelerator (item, "activate", - sp_shortcut_get_accel_group(), + gtk_accel_group_new(), accel_key, sp_shortcut_get_modifiers(shortcut), GTK_ACCEL_VISIBLE); |
