[gtk+/wip/baedert/drawing: 8/22] stack: Fix under transitions
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/wip/baedert/drawing: 8/22] stack: Fix under transitions
 
- Date: Tue,  4 Jul 2017 17:09:51 +0000 (UTC)
 
commit 1a0e3eb48f58951aed0011d78bbc8b7f938b76c9
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 1 19:15:01 2017 +0200
    stack: Fix under transitions
    
    make sure we initialize both width and height with proper values.
 gtk/gtkstack.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index baa56d4..b1d515a 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -1840,6 +1840,9 @@ gtk_stack_snapshot_under (GtkWidget   *widget,
 
   gtk_widget_get_content_size (widget, &widget_width, &widget_height);
   x = y = 0;
+  width = widget_width;
+  height = widget_height;
+
   pos_x = pos_y = 0;
 
   switch (priv->active_transition_type)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]