diff options
author | infirit <[email protected]> | 2015-07-09 12:08:18 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-09 12:15:32 +0200 |
commit | 72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24 (patch) | |
tree | 4e76ed8e327a98bb4a89876a5747b1ea375fda07 /savers/gste-slideshow.c | |
parent | a3c426e1e81dc56f4fdd56f8c736125798fec26b (diff) | |
download | mate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.bz2 mate-screensaver-72dd61aa3a3a98bf38c2cc3aa7e36f99b620be24.tar.xz |
Use accessor functions instead of direct access
Make Gtk2 build with GSEAL_ENABLE And cut down on ifdef hell.
Diffstat (limited to 'savers/gste-slideshow.c')
-rw-r--r-- | savers/gste-slideshow.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c index 4bc5dbb..72ca87b 100644 --- a/savers/gste-slideshow.c +++ b/savers/gste-slideshow.c @@ -194,7 +194,7 @@ start_fade (GSTESlideshow *show, gdk_pixbuf_get_height (colored), pixbuf, 0, 0); #else - pixmap = gdk_pixmap_new (NULL, ph, pw, gdk_visual_get_system ()->depth); + pixmap = gdk_pixmap_new (NULL, ph, pw, gdk_visual_get_depth (gdk_visual_get_system ())); gdk_draw_pixbuf (pixmap, NULL, colored, 0, 0, 0, 0, -1, -1, GDK_RGB_DITHER_MAX, 0, 0); gdk_pixbuf_get_from_drawable (pixbuf, pixmap, NULL, 0, 0, 0, 0, -1, -1); @@ -339,7 +339,7 @@ update_display (GSTESlideshow *show) gtk_widget_queue_draw (GTK_WIDGET (show)); #else /* paint the image buffer into the window */ - cr = gdk_cairo_create (GTK_WIDGET (show)->window); + cr = gdk_cairo_create (gtk_widget_get_window (GTK_WIDGET (show))); cairo_set_source_surface (cr, show->priv->surf, 0, 0); @@ -951,11 +951,7 @@ gste_slideshow_real_configure (GtkWidget *widget, cairo_surface_destroy (show->priv->surf); } -#if GTK_CHECK_VERSION (3, 0, 0) cr = gdk_cairo_create (gtk_widget_get_window (widget)); -#else - cr = gdk_cairo_create (widget->window); -#endif show->priv->surf = cairo_surface_create_similar (cairo_get_target (cr), CAIRO_CONTENT_COLOR, show->priv->window_width, |