[gthumb] Replace deprecated gdk_pixbuf_render_to_drawable* functions



commit 8a7e9cb577d3f97968c7ff459c5dd74d261ceeef
Author: Javier Jardón <javierjc1982 gmail com>
Date:   Mon Jun 1 14:26:32 2009 -0400

    Replace deprecated gdk_pixbuf_render_to_drawable* functions
---
 libgthumb/nav-window.c |   34 ++++++++++------------------------
 1 files changed, 10 insertions(+), 24 deletions(-)

diff --git a/libgthumb/nav-window.c b/libgthumb/nav-window.c
index 1a9a9d0..de77a17 100644
--- a/libgthumb/nav-window.c
+++ b/libgthumb/nav-window.c
@@ -203,30 +203,16 @@ nav_window_expose (GtkWidget      *widget,
 	if (nav_win->pixbuf == NULL)
 		return FALSE;
 
-	if (! gdk_pixbuf_get_has_alpha (nav_win->pixbuf))
-		gdk_pixbuf_render_to_drawable (
-		       nav_win->pixbuf,
-		       nav_win->preview->window,
-		       nav_win->preview->style->white_gc,
-		       0, 0,
-		       0, 0,
-		       nav_win->popup_width,
-		       nav_win->popup_height,
-		       GDK_RGB_DITHER_MAX,
-		       0, 0);
-	else
-		gdk_pixbuf_render_to_drawable_alpha (
-			nav_win->pixbuf,
-			nav_win->preview->window,
-			0, 0,
-			0, 0,
-			nav_win->popup_width,
-			nav_win->popup_height,
-			GDK_PIXBUF_ALPHA_BILEVEL,
-			112, /* FIXME */
-			GDK_RGB_DITHER_MAX,
-			0, 0);
-	
+	gdk_draw_pixbuf (nav_win->preview->window,
+			 nav_win->preview->style->white_gc,
+			 nav_win->pixbuf,
+			 0, 0,
+			 0, 0,
+			 (gint) nav_win->popup_width,
+			 (gint) nav_win->popup_height,
+			 GDK_RGB_DITHER_MAX,
+			 0, 0);
+
 	nav_window_draw_sqr (nav_win, FALSE, 
 			     nav_win->sqr_x, 
 			     nav_win->sqr_y);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]