From 2f844e2a6ab2eff5cc987a32a4aff45e6cc8cdbc Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sun, 22 May 2016 11:50:18 -0300 Subject: [PATCH] window: make the panels' stack expand This way, panels can fill the most of the screen, which is the desired behavior proposed by the mockups. https://bugzilla.gnome.org/show_bug.cgi?id=766922 --- shell/alt/cc-window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c index 0349ef149..19652bd40 100644 --- a/shell/alt/cc-window.c +++ b/shell/alt/cc-window.c @@ -1539,9 +1539,11 @@ create_window (CcWindow *self) self->main_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (box), self->main_hbox); - self->stack = gtk_stack_new (); - gtk_stack_set_homogeneous (GTK_STACK (self->stack), TRUE); - gtk_stack_set_transition_type (GTK_STACK (self->stack), GTK_STACK_TRANSITION_TYPE_CROSSFADE); + self->stack = g_object_new (GTK_TYPE_STACK, + "homogeneous", TRUE, + "transition-type", GTK_STACK_TRANSITION_TYPE_CROSSFADE, + "expand", TRUE, + NULL); gtk_box_pack_end (GTK_BOX (self->main_hbox), self->stack, FALSE, FALSE, 0); create_main_page (self);