| 61 static int scale_factor = 1; |
61 static int scale_factor = 1; |
| 62 |
62 |
| 63 static UiBool exit_on_shutdown; |
63 static UiBool exit_on_shutdown; |
| 64 |
64 |
| 65 UIEXPORT void ui_init(const char *appname, int argc, char **argv) { |
65 UIEXPORT void ui_init(const char *appname, int argc, char **argv) { |
| 66 application_name = appname; |
66 application_name = appname ? strdup(appname) : NULL; |
| 67 uic_init_global_context(); |
67 uic_init_global_context(); |
| 68 |
68 |
| 69 #if GTK_MAJOR_VERSION >= 4 |
69 #if GTK_MAJOR_VERSION >= 4 |
| 70 gtk_init(); |
70 gtk_init(); |
| 71 #else |
71 #else |