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



commit 99d7f49068a0c9fb23a53dc945c3e8e5a3b2c6d6
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.

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