[Xfce4-commits] [apps/xfce4-screensaver] 192/425: slideshow: Drop GdkPixmap and use retrieve GdkPixbuf directly

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:50:39 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 575cb06d41e46d701b69b77da37817cf69854777
Author: infirit <infirit at gmail.com>
Date:   Sun Jul 12 15:01:25 2015 +0200

    slideshow: Drop GdkPixmap and use retrieve GdkPixbuf directly
---
 savers/gste-slideshow.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/savers/gste-slideshow.c b/savers/gste-slideshow.c
index 72ca87b..566baab 100644
--- a/savers/gste-slideshow.c
+++ b/savers/gste-slideshow.c
@@ -174,9 +174,6 @@ start_fade (GSTESlideshow *show,
 	{
 		GdkPixbuf *colored;
 		guint32    color;
-#if !GTK_CHECK_VERSION (3, 0, 0)
-		GdkPixmap *pixmap;
-#endif
 
 		color = (show->priv->background_color->red << 16)
 		        + (show->priv->background_color->green / 256 << 8)
@@ -188,19 +185,11 @@ start_fade (GSTESlideshow *show,
 		          256,
 		          color,
 		          color);
-#if GTK_CHECK_VERSION (3, 0, 0)
+
 		gdk_pixbuf_copy_area (colored, 0, 0,
 		                      gdk_pixbuf_get_width (colored),
 		                      gdk_pixbuf_get_height (colored),
 		                      pixbuf, 0, 0);
-#else
-		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);
-
-		g_object_unref (pixmap);
-#endif
 
 		g_object_unref(colored);
 	}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list