summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-08-03 21:57:50 +0200
committerinfirit <[email protected]>2015-08-08 21:19:51 +0200
commitea05dc62f772646578cc0fe8568b5a5adfcff2eb (patch)
treefb977f63572c70004a29a8ff4c2313b0e8abac79
parentcf15282d60547a190bb098d168927cc577d3505e (diff)
downloadmate-control-center-ea05dc62f772646578cc0fe8568b5a5adfcff2eb.tar.bz2
mate-control-center-ea05dc62f772646578cc0fe8568b5a5adfcff2eb.tar.xz
Use GdkVisual accessor functions instead of direct access
-rw-r--r--capplets/appearance/appearance-font.c2
-rw-r--r--capplets/common/theme-thumbnail.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index 2c2cd072..ce4f6314 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -264,7 +264,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