diff options
author | Benjamin Otte <otte@redhat.com> | 2016-01-26 16:36:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-01-26 16:40:27 +0100 |
commit | 2c350f4469b578749c315824a55ed07f719c9754 (patch) | |
tree | 5ed8c1440a0d395a8a15bf2cc21838da0c028d4d | |
parent | 8ea697c43405af97cd9170688067f0b807a5d3f6 (diff) | |
download | gtk+-2c350f4469b578749c315824a55ed07f719c9754.tar.gz |
stack: realize windows in correct position
-rw-r--r-- | gtk/gtkstack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 094ce9a805..998f08f575 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -340,7 +340,7 @@ gtk_stack_realize (GtkWidget *widget) gtk_widget_set_realized (widget, TRUE); gtk_widget_set_window (widget, g_object_ref (gtk_widget_get_parent_window (widget))); - gtk_widget_get_allocation (widget, &allocation); + gtk_css_gadget_get_content_allocation (priv->gadget, &allocation, NULL); attributes.x = allocation.x; attributes.y = allocation.y; @@ -359,7 +359,7 @@ gtk_stack_realize (GtkWidget *widget) gtk_widget_register_window (widget, priv->view_window); attributes.x = get_bin_window_x (stack, &allocation); - attributes.y = 0; + attributes.y = get_bin_window_y (stack, &allocation); attributes.width = allocation.width; attributes.height = allocation.height; |