[poppler] glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Wed Apr 21 11:04:22 PDT 2010


 glib/demo/images.c |    2 +-
 glib/demo/layers.c |    4 ++--
 glib/demo/render.c |    8 ++++----
 3 files changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 6f9f3d33ff8058e28243ba45b8547e21ad0d088a
Author: Andre Klapper <a9016009 at gmx.de>
Date:   Wed Apr 21 19:57:15 2010 +0200

    [glib-demo] Compile with -DGSEAL_ENABLE
    
    Fixes bug #27579.

diff --git a/glib/demo/images.c b/glib/demo/images.c
index b1fe8e2..6e987d2 100644
--- a/glib/demo/images.c
+++ b/glib/demo/images.c
@@ -76,7 +76,7 @@ pgd_image_view_drawing_area_expose (GtkWidget      *area,
 				     cairo_image_surface_get_width (image),
 				     cairo_image_surface_get_height (image));
 	
-	cr = gdk_cairo_create (area->window);
+	cr = gdk_cairo_create (gtk_widget_get_window (area));
 	cairo_set_source_surface (cr, image, 0, 0);
 	cairo_paint (cr);
 	cairo_destroy (cr);
diff --git a/glib/demo/layers.c b/glib/demo/layers.c
index 348f9db..fc0ba35 100644
--- a/glib/demo/layers.c
+++ b/glib/demo/layers.c
@@ -193,9 +193,9 @@ pgd_layers_viewer_drawing_area_expose (GtkWidget      *area,
 			return FALSE;
 	}
 
-	gdk_window_clear (area->window);
+	gdk_window_clear (gtk_widget_get_window (area));
 
-	cr = gdk_cairo_create (area->window);
+	cr = gdk_cairo_create (gtk_widget_get_window (area));
 	cairo_set_source_surface (cr, demo->surface, 0, 0);
 	cairo_paint (cr);
 	cairo_destroy (cr);
diff --git a/glib/demo/render.c b/glib/demo/render.c
index 4365a4b..1fa4761 100644
--- a/glib/demo/render.c
+++ b/glib/demo/render.c
@@ -86,18 +86,18 @@ pgd_render_drawing_area_expose (GtkWidget      *area,
 	if (demo->mode == PGD_RENDER_PIXBUF && !demo->pixbuf)
 		return FALSE;
 
-	gdk_window_clear (area->window);
+	gdk_window_clear (gtk_widget_get_window (area));
 
 	if (demo->mode == PGD_RENDER_CAIRO) {
 		cairo_t *cr;
 
-		cr = gdk_cairo_create (area->window);
+		cr = gdk_cairo_create (gtk_widget_get_window (area));
 		cairo_set_source_surface (cr, demo->surface, 0, 0);
 		cairo_paint (cr);
 		cairo_destroy (cr);
 	} else if (demo->mode == PGD_RENDER_PIXBUF) {
-		gdk_draw_pixbuf (area->window,
-				 area->style->fg_gc[GTK_STATE_NORMAL],
+		gdk_draw_pixbuf (gtk_widget_get_window (area),
+				 gtk_widget_get_style(area)->fg_gc[GTK_STATE_NORMAL],
 				 demo->pixbuf,
 				 0, 0,
 				 0, 0,


More information about the poppler mailing list