[gtk+/rendering-cleanup-next] xxx: gtk-demo
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup-next] xxx: gtk-demo
- Date: Mon, 20 Sep 2010 15:33:17 +0000 (UTC)
commit 55ae22f2b314bc3d190c4a333396729b4a2f4235
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 20 16:37:52 2010 +0200
xxx: gtk-demo
demos/gtk-demo/offscreen_window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c
index 223cad2..06ef5fc 100644
--- a/demos/gtk-demo/offscreen_window.c
+++ b/demos/gtk-demo/offscreen_window.c
@@ -512,12 +512,12 @@ gtk_rotated_bin_draw (GtkWidget *widget,
}
if (gtk_cairo_should_draw_window (cr, bin->offscreen_window))
{
- gdk_drawable_get_size (bin->offscreen_window, &width, &height);
-
gtk_paint_flat_box (gtk_widget_get_style (widget), cr,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
widget, "blah",
- 0, 0, width, height);
+ 0, 0,
+ gdk_window_get_width (bin->offscreen_window),
+ gdk_window_get_height (bin->offscreen_window));
if (bin->child)
gtk_container_propagate_draw (GTK_CONTAINER (widget),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]