summaryrefslogtreecommitdiff
path: root/capplets/appearance
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-24 16:58:57 +0100
committerStefano Karapetsas <[email protected]>2014-01-24 16:58:57 +0100
commit3c6456906eb151ce04c02a3b823dbb38830cd977 (patch)
tree4986da72e3e380a332a7c29786cc8eeb4b649ad6 /capplets/appearance
parent1225cf07eda95f977ff042fa8418945faaa91a28 (diff)
downloadmate-control-center-3c6456906eb151ce04c02a3b823dbb38830cd977.tar.bz2
mate-control-center-3c6456906eb151ce04c02a3b823dbb38830cd977.tar.xz
appearance: Fix crash with GTK3
Diffstat (limited to 'capplets/appearance')
-rw-r--r--capplets/appearance/appearance-font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index 45bcaa35..0ae22153 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -262,7 +262,7 @@ static void setup_font_sample(GtkWidget* darea, Antialiasing antialiasing, Hinti
#endif
#if GTK_CHECK_VERSION (3, 0, 0)
- draw = XftDrawCreate (xdisplay, GDK_WINDOW_XID (gtk_widget_get_window(darea)), xvisual, xcolormap);
+ draw = XftDrawCreate (xdisplay, GDK_WINDOW_XID (gdk_screen_get_root_window (gdk_screen_get_default ())), xvisual, xcolormap);
#else
draw = XftDrawCreate (xdisplay, GDK_DRAWABLE_XID (pixmap), xvisual, xcolormap);
#endif