[gtk+/refactor] tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor] tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget
- Date: Sun, 15 Aug 2010 22:40:55 +0000 (UTC)
commit 00cce35daa7e659f2ff7803dbee0515e2a8c0997
Author: Javier Jardón <jjardon gnome org>
Date: Mon Aug 16 00:32:56 2010 +0200
tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget
tests/testoffscreenwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c
index 852a073..bf6a321 100644
--- a/tests/testoffscreenwindow.c
+++ b/tests/testoffscreenwindow.c
@@ -13,7 +13,7 @@ da_expose (GtkWidget *widget,
{
pixmap = gtk_offscreen_window_get_pixmap (offscreen);
- cr = gdk_cairo_create (widget->window);
+ cr = gdk_cairo_create (gtk_widget_get_window (widget));
gdk_cairo_set_source_pixmap (cr, pixmap, 50, 50);
cairo_paint (cr);
cairo_destroy (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]