mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 04:10:11 +00:00
bloatpad: 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:
parent
c09a51628b
commit
111230f5f9
@ -717,6 +717,8 @@ main (int argc, char **argv)
|
|||||||
int status;
|
int status;
|
||||||
const char *accels[] = { "F11", NULL };
|
const char *accels[] = { "F11", NULL };
|
||||||
|
|
||||||
|
gtk_init ();
|
||||||
|
|
||||||
bloat_pad = bloat_pad_new ();
|
bloat_pad = bloat_pad_new ();
|
||||||
|
|
||||||
gtk_application_set_accels_for_action (GTK_APPLICATION (bloat_pad),
|
gtk_application_set_accels_for_action (GTK_APPLICATION (bloat_pad),
|
||||||
|
Loading…
Reference in New Issue
Block a user