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:
parent
6a340d46f0
commit
31ba399378
2 changed files with 7 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue