diff options
author | infirit <[email protected]> | 2015-08-03 21:57:50 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-03 21:57:50 +0200 |
commit | 0c8fd57afb370b8f9ecc2b1fc41c568dbba27a37 (patch) | |
tree | 6f68c6b8d8e2a1f9a5aebef1ef8c3b11fa717e06 /capplets/common/theme-thumbnail.c | |
parent | 4a9a87bf8cd3b8c38ef5ccf09c80a533173e895f (diff) | |
download | mate-control-center-0c8fd57afb370b8f9ecc2b1fc41c568dbba27a37.tar.bz2 mate-control-center-0c8fd57afb370b8f9ecc2b1fc41c568dbba27a37.tar.xz |
Use GdkVisual accessor functions instead of direct access
Diffstat (limited to 'capplets/common/theme-thumbnail.c')
-rw-r--r-- | capplets/common/theme-thumbnail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c index 397a009f..ea371482 100644 --- a/capplets/common/theme-thumbnail.c +++ b/capplets/common/theme-thumbnail.c @@ -116,7 +116,7 @@ static GdkPixmap* draw_window_on_pixbuf(GtkWidget* widget) visual = gtk_widget_get_visual(widget); #if !GTK_CHECK_VERSION (3, 0, 0) - pixmap = gdk_pixmap_new(NULL, width, height, visual->depth); + pixmap = gdk_pixmap_new(NULL, width, height, gdk_visual_get_depth (visual)); gdk_drawable_set_colormap(GDK_DRAWABLE(pixmap), gtk_widget_get_colormap(widget)); #endif |