From 641c9420b56ad7019fcccf903e6e46e73d1210b5 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Wed, 21 Apr 2010 19:57:15 +0200 Subject: [PATCH] Compile with -DGSEAL_ENABLE. Fixes bug #27579. --- glib/demo/images.c | 2 +- glib/demo/layers.c | 4 ++-- glib/demo/render.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) 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, -- 1.6.6.1