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 */