gtk4-demo: Call gtk_init in main
We end up using a display via gtk_application_set_accels_for_action, and that can't happen before gtk_init anymore.
This commit is contained in:
@@ -1146,6 +1146,8 @@ main (int argc, char **argv)
|
||||
};
|
||||
int i;
|
||||
|
||||
gtk_init ();
|
||||
|
||||
app = gtk_application_new ("org.gtk.Demo4", G_APPLICATION_NON_UNIQUE|G_APPLICATION_HANDLES_COMMAND_LINE);
|
||||
|
||||
g_action_map_add_action_entries (G_ACTION_MAP (app),
|
||||
|
||||
Reference in New Issue
Block a user