Fix accelerator keys
authorP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 14:10:22 +0000 (16:10 +0200)
committerP. F. Chimento <philip.chimento@gmail.com>
Sat, 18 Jun 2011 14:10:22 +0000 (16:10 +0200)
player/main.c

index 5ed1d0e9df2049d19e4031549a9aedfaa88f7a66..bd007b4ee128b0a7966822a37c547ca98c7b7c85 100644 (file)
@@ -192,6 +192,10 @@ create_window(void)
        else
                gtk_widget_hide(toolbar);
 
+       /* Connect the accelerators */
+       GtkAccelGroup *accels = gtk_ui_manager_get_accel_group(uimanager);
+       gtk_window_add_accel_group(GTK_WINDOW(window), accels);
+
        gtk_box_pack_end(vbox, glk, TRUE, TRUE, 0);
        gtk_box_pack_start(vbox, menubar, FALSE, FALSE, 0);
        gtk_box_pack_start(vbox, toolbar, FALSE, FALSE, 0);