From 0c8fd57afb370b8f9ecc2b1fc41c568dbba27a37 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 3 Aug 2015 21:57:50 +0200 Subject: Use GdkVisual accessor functions instead of direct access --- capplets/appearance/appearance-font.c | 2 +- capplets/common/theme-thumbnail.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'capplets') diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c index 78d079e1..21d41e58 100644 --- a/capplets/appearance/appearance-font.c +++ b/capplets/appearance/appearance-font.c @@ -257,7 +257,7 @@ static void setup_font_sample(GtkWidget* darea, Antialiasing antialiasing, Hinti height = ascent + descent + 2; #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)); #endif #if GTK_CHECK_VERSION (3, 0, 0) 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 -- cgit v1.2.1