ui/gtk/toolkit.c

changeset 1075
be89ffebd4f3
parent 1072
798952a8f97c
equal deleted inserted replaced
1073:18c476d8b24f 1075:be89ffebd4f3
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

mercurial