ui/common/context.c

changeset 18
06be29a56f8b
parent 3
c1a75454b444
child 20
2dda1ad6dc7a
--- a/ui/common/context.c	Tue Apr 01 13:47:29 2014 +0200
+++ b/ui/common/context.c	Wed Apr 02 09:59:38 2014 +0200
@@ -42,6 +42,11 @@
     ctx->toplevel = toplevel;
     ctx->vars = ucx_map_new_a(mp->allocator, 16);
     
+#ifdef UI_GTK
+    ctx->accel_group = gtk_accel_group_new();
+    gtk_window_add_accel_group(GTK_WINDOW(toplevel->widget), ctx->accel_group);
+#endif
+    
     return ctx;
 }
 

mercurial