summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-08 16:05:52 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-10 14:56:42 +0100
commit3f7ada506ea1e2d390ac2d864d48d7e42097c2e3 (patch)
treebcf0ac7d92b836a0c0b039791ba95827bdc4cf18 /examples
parent2ff5038b09e9d3759942ba8e77bfbd646e54c17a (diff)
downloadgtk+-3f7ada506ea1e2d390ac2d864d48d7e42097c2e3.tar.gz
examples: Use right function to query size
Diffstat (limited to 'examples')
-rw-r--r--examples/drawing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/drawing.c b/examples/drawing.c
index 59d8bea026..54d608ea37 100644
--- a/examples/drawing.c
+++ b/examples/drawing.c
@@ -27,8 +27,8 @@ configure_event_cb (GtkWidget *widget,
surface = gdk_window_create_similar_surface (gtk_widget_get_window (widget),
CAIRO_CONTENT_COLOR,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget));
+ gtk_widget_get_width (widget),
+ gtk_widget_get_height (widget));
/* Initialize the surface to white */
clear_surface ();