From: Tilman Sauerbeck Date: Sun, 22 Apr 2007 14:39:40 +0000 (+0200) Subject: Enabled accelerators. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=8476b6220c0d4cd5374212ff9586bd8c04cab7a5;p=raktpdf.git Enabled accelerators. --- diff --git a/src/rakt-window.c b/src/rakt-window.c index 7cea822..b929331 100644 --- a/src/rakt-window.c +++ b/src/rakt-window.c @@ -176,6 +176,7 @@ window_create_menu (RaktWindow *window) { RaktWindowPriv *priv; GtkActionGroup *action_group; + GtkAccelGroup *accel_group; GError *error = NULL; priv = GET_PRIV (window); @@ -191,6 +192,10 @@ window_create_menu (RaktWindow *window) gtk_action_group_add_actions (action_group, action_entries, G_N_ELEMENTS (action_entries), window); gtk_ui_manager_insert_action_group (priv->ui_manager, action_group, 0); + + accel_group = gtk_ui_manager_get_accel_group (priv->ui_manager); + gtk_window_add_accel_group (GTK_WINDOW (window), accel_group); + g_object_unref (action_group); gtk_ui_manager_add_ui_from_string (priv->ui_manager, ui_layout, -1, &error);