diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -147,6 +147,8 @@ open (GApplication *application, if (verbose) g_timer_destroy (timer); } +#include "workaround.h" + int main (int argc, char *argv[]) { @@ -163,6 +165,14 @@ main (int argc, char *argv[]) gtk_init (&argc, &argv); + /* FIXME: + * + * This prevents glade from crashing when loading GJS plugin on X11 backend + */ +#ifdef GDK_WINDOWING_X11 + _init_cairo_xlib_workaround (); +#endif + app = gtk_application_new ("org.gnome.Glade", G_APPLICATION_HANDLES_OPEN); g_application_set_option_context_summary (G_APPLICATION (app), |