summaryrefslogtreecommitdiff
path: root/gtk/gtkrevealer.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-11-03 10:37:16 +0100
committerTimm Bäder <mail@baedert.org>2017-11-03 10:47:02 +0100
commit34f3c6bd52fe90e769d71b8f3093d3d85f36e237 (patch)
treefebfdedf9a324031f742653479f882f1d2a3f7ea /gtk/gtkrevealer.c
parent8aa68110bdfba9fcc08a9b9269ae1c4ee2cee588 (diff)
downloadgtk+-34f3c6bd52fe90e769d71b8f3093d3d85f36e237.tar.gz
revealer: Create clip node for right widget size
It should use gtk_widget_get_width/height here to get the correct content size of the revealer.
Diffstat (limited to 'gtk/gtkrevealer.c')
-rw-r--r--gtk/gtkrevealer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index df11832fb9..790221311e 100644
--- a/gtk/gtkrevealer.c
+++ b/gtk/gtkrevealer.c
@@ -645,8 +645,8 @@ gtk_revealer_snapshot (GtkWidget *widget,
gtk_snapshot_push_clip (snapshot,
&GRAPHENE_RECT_INIT(
0, 0,
- gtk_widget_get_allocated_width (widget),
- gtk_widget_get_allocated_height (widget)
+ gtk_widget_get_width (widget),
+ gtk_widget_get_height (widget)
),
"RevealerClip");
gtk_widget_snapshot_child (widget, child, snapshot);