From 111230f5f9db092166fc59e5827c22e29546d6e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 21 Oct 2024 21:15:58 -0400 Subject: [PATCH] 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. --- examples/bp/bloatpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index d8d7786e95..3f9d115756 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -717,6 +717,8 @@ main (int argc, char **argv) int status; const char *accels[] = { "F11", NULL }; + gtk_init (); + bloat_pad = bloat_pad_new (); gtk_application_set_accels_for_action (GTK_APPLICATION (bloat_pad),