[Goodies-commits] r2289 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Sun Dec 31 02:00:32 CET 2006


Author: stephan
Date: 2006-12-31 01:00:32 +0000 (Sun, 31 Dec 2006)
New Revision: 2289

Modified:
   ristretto/trunk/src/picture_viewer.c
Log:
added clear statement (fixes display of transparent images)

Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c	2006-12-31 00:48:38 UTC (rev 2288)
+++ ristretto/trunk/src/picture_viewer.c	2006-12-31 01:00:32 UTC (rev 2289)
@@ -88,6 +88,7 @@
 
 	viewer->scale = 12;
 
+	//viewer->src_pixbuf = gdk_pixbuf_new_from_file("test.svg", NULL);
 	viewer->src_pixbuf = gdk_pixbuf_new_from_file("test.png", NULL);
 }
 
@@ -251,6 +252,8 @@
 rstto_picture_viewer_paint(GtkWidget *widget)
 {
 	GdkPixbuf *pixbuf = RSTTO_PICTURE_VIEWER(widget)->dst_pixbuf;
+	/* required for transparent pixbufs... add double buffering to fix flickering*/
+	gdk_window_clear(widget->window);
 	gdk_draw_pixbuf(GDK_DRAWABLE(widget->window), 
 	                NULL, 
 									pixbuf,




More information about the Goodies-commits mailing list