diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-08 16:05:52 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-10 14:56:42 +0100 |
commit | 3f7ada506ea1e2d390ac2d864d48d7e42097c2e3 (patch) | |
tree | bcf0ac7d92b836a0c0b039791ba95827bdc4cf18 /examples | |
parent | 2ff5038b09e9d3759942ba8e77bfbd646e54c17a (diff) | |
download | gtk+-3f7ada506ea1e2d390ac2d864d48d7e42097c2e3.tar.gz |
examples: Use right function to query size
Diffstat (limited to 'examples')
-rw-r--r-- | examples/drawing.c | 4 |
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 (); |