[gtk+] revealer: Create clip node for right widget size



commit 34f3c6bd52fe90e769d71b8f3093d3d85f36e237
Author: Timm Bäder <mail baedert org>
Date:   Fri Nov 3 10:37:16 2017 +0100

    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.

 gtk/gtkrevealer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrevealer.c b/gtk/gtkrevealer.c
index df11832..7902213 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]