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 |