diff options
author | Benjamin Otte <otte@redhat.com> | 2010-09-20 16:49:11 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-09-26 15:11:45 +0200 |
commit | cdba1f6519bb5800fb3958ceac2ae2a536b9e39c (patch) | |
tree | 44164d37da6e8622ce88df9f8c27d16ad3567792 /tests/gtkoffscreenbox.c | |
parent | 15497825c0f2cd69b5af8cc834e8de676da24b8d (diff) | |
download | gtk+-cdba1f6519bb5800fb3958ceac2ae2a536b9e39c.tar.gz |
tests: Get rid of gdk_drawable_get_size() usage in offscreenbox
Diffstat (limited to 'tests/gtkoffscreenbox.c')
-rw-r--r-- | tests/gtkoffscreenbox.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c index 8c025dff05..c8e6250724 100644 --- a/tests/gtkoffscreenbox.c +++ b/tests/gtkoffscreenbox.c @@ -626,13 +626,12 @@ gtk_offscreen_box_draw (GtkWidget *widget, } else if (gtk_cairo_should_draw_window (cr, offscreen_box->offscreen_window1)) { - gint w, h; - - gdk_drawable_get_size (offscreen_box->offscreen_window1, &w, &h); gtk_paint_flat_box (gtk_widget_get_style (widget), cr, GTK_STATE_NORMAL, GTK_SHADOW_NONE, widget, "blah", - 0, 0, w, h); + 0, 0, + gdk_window_get_width (offscreen_box->offscreen_window1), + gdk_window_get_height (offscreen_box->offscreen_window1)); if (offscreen_box->child1) gtk_container_propagate_draw (GTK_CONTAINER (widget), @@ -641,13 +640,12 @@ gtk_offscreen_box_draw (GtkWidget *widget, } else if (gtk_cairo_should_draw_window (cr, offscreen_box->offscreen_window2)) { - gint w, h; - - gdk_drawable_get_size (offscreen_box->offscreen_window2, &w, &h); gtk_paint_flat_box (gtk_widget_get_style (widget), cr, GTK_STATE_NORMAL, GTK_SHADOW_NONE, widget, "blah", - 0, 0, w, h); + 0, 0, + gdk_window_get_width (offscreen_box->offscreen_window2), + gdk_window_get_height (offscreen_box->offscreen_window2)); if (offscreen_box->child2) gtk_container_propagate_draw (GTK_CONTAINER (widget), |