summaryrefslogtreecommitdiff
path: root/libre/lxappearance-obconf-gtk3/gtk3-theme-preview-segfault.patch
blob: 1a7a530265dded74cd1de482fd7b40acaf209246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/preview.c b/src/preview.c
index ada6eb3..eb51629 100644
--- a/src/preview.c
+++ b/src/preview.c
@@ -815,6 +815,9 @@ GdkPixbuf *preview_theme(const gchar *name, const gchar *titlelayout,
                          RrFont *osd_active_font,
                          RrFont *osd_inactive_font)
 {
+#if GTK_CHECK_VERSION(3, 0, 0)
+    return NULL; // avoid GTK3/cairo segfault (ticket #933)
+#endif
 
     GdkPixbuf *preview;
     GdkPixbuf *menu;