ui/common/context.c

changeset 42
9af327d0e0e4
parent 26
40d6af793c1a
child 49
2f71f4ee247a
equal deleted inserted replaced
41:7ada3db4cfa8 42:9af327d0e0e4
65 ctx->groups = cxArrayListCreate(mp->allocator, cx_cmp_int, sizeof(int), 32); 65 ctx->groups = cxArrayListCreate(mp->allocator, cx_cmp_int, sizeof(int), 32);
66 66
67 ctx->attach_document = uic_context_attach_document; 67 ctx->attach_document = uic_context_attach_document;
68 ctx->detach_document2 = uic_context_detach_document2; 68 ctx->detach_document2 = uic_context_detach_document2;
69 69
70 #ifdef UI_GTK 70 #if UI_GTK2 || UI_GTK3
71 if(toplevel && toplevel->widget) { 71 if(toplevel && toplevel->widget) {
72 ctx->accel_group = gtk_accel_group_new(); 72 ctx->accel_group = gtk_accel_group_new();
73 gtk_window_add_accel_group(GTK_WINDOW(toplevel->widget), ctx->accel_group); 73 gtk_window_add_accel_group(GTK_WINDOW(toplevel->widget), ctx->accel_group);
74 } 74 }
75 #endif 75 #endif

mercurial