fix the theme preview crasher with xorg/composite, patch from Colin Gibbs

2005-05-22  Sebastien Bacher  <seb128@debian.org>

	* theme-thumbnail.c: (create_image): fix the theme preview crasher with
	xorg/composite, patch from Colin Gibbs <colin@gibbsonline.net>
	(Closes: #152490).
This commit is contained in:
Sebastien Bacher 2005-05-22 14:00:09 +00:00 committed by Sebastien Bacher
parent 6a340d46f0
commit 31ba399378
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-05-22 Sebastien Bacher <seb128@debian.org>
* theme-thumbnail.c: (create_image): fix the theme preview crasher with
xorg/composite, patch from Colin Gibbs <colin@gibbsonline.net>
(Closes: #152490).
2005-02-08 Sebastien Bacher <seb128@debian.org>
* gnome-theme-info.c: (update_common_theme_dir_index):

View file

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