[gnome-control-center/wip/gbsneto/list-layout: 24/35] window: make the panels' stack expand



commit 2f844e2a6ab2eff5cc987a32a4aff45e6cc8cdbc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 22 11:50:18 2016 -0300

    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 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index 0349ef1..19652bd 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);


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