summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 1107d8a3..40517648 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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),