From 31ba39937806796a18dafab937cb03bbcc0ab8c1 Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Sun, 22 May 2005 14:00:09 +0000 Subject: [PATCH] fix the theme preview crasher with xorg/composite, patch from Colin Gibbs 2005-05-22 Sebastien Bacher * theme-thumbnail.c: (create_image): fix the theme preview crasher with xorg/composite, patch from Colin Gibbs (Closes: #152490). --- capplets/common/ChangeLog | 6 ++++++ capplets/common/theme-thumbnail.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/capplets/common/ChangeLog b/capplets/common/ChangeLog index 625f42686..adc83cb1d 100644 --- a/capplets/common/ChangeLog +++ b/capplets/common/ChangeLog @@ -1,3 +1,9 @@ +2005-05-22 Sebastien Bacher + + * theme-thumbnail.c: (create_image): fix the theme preview crasher with + xorg/composite, patch from Colin Gibbs + (Closes: #152490). + 2005-02-08 Sebastien Bacher * gnome-theme-info.c: (update_common_theme_dir_index): diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c index 2820505f6..aa94b9671 100644 --- a/capplets/common/theme-thumbnail.c +++ b/capplets/common/theme-thumbnail.c @@ -174,7 +174,7 @@ create_image (ThemeThumbnailData *theme_thumbnail_data, /* Create a pixmap */ visual = gtk_widget_get_visual (window); - pixmap = gdk_pixmap_new (NULL, ICON_SIZE_WIDTH, ICON_SIZE_HEIGHT, gdk_visual_get_best_depth()); + pixmap = gdk_pixmap_new (NULL, ICON_SIZE_WIDTH, ICON_SIZE_HEIGHT, visual->depth); gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), gtk_widget_get_colormap (window)); /* Draw the window */