[gnome-control-center/wip/gbsneto/list-layout: 23/35] window: separate the panel selector



commit c47bc08b0645511b773864c8fc43d66b8db7dff3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 22 11:35:59 2016 -0300

    window: separate the panel selector
    
    To progressively achieve the sidelist, let's start by moving
    the current iconview selector to the side and then turning
    it into a GtkListBox.
    
    This commit, then, moves the iconviews' list to the start of
    the horizontal box added in the previous commit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766922

 shell/alt/cc-window.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index d59269b..0349ef1 100644
--- a/shell/alt/cc-window.c
+++ b/shell/alt/cc-window.c
@@ -1431,7 +1431,14 @@ create_main_page (CcWindow *self)
   gtk_style_context_add_class (context, "view");
   gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (self->scrolled_window),
                                   GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
-  gtk_stack_add_named (GTK_STACK (self->stack), self->scrolled_window, OVERVIEW_PAGE);
+
+  gtk_box_pack_start (GTK_BOX (self->main_hbox), self->scrolled_window, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (self->main_hbox), gtk_separator_new (GTK_ORIENTATION_VERTICAL), FALSE, FALSE, 
0);
+
+  /* FIXME: this is just a placeholder widget to avoid breaking the code */
+  gtk_stack_add_named (GTK_STACK (self->stack),
+                       gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0),
+                       OVERVIEW_PAGE);
 
   self->main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
   gtk_widget_set_margin_top (self->main_vbox, 8);


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