[gnome-control-center/wip/gbsneto/sidelist-groups: 3/3] window: remove the placeholder view



commit f24a05e82dc94af245bc580df51106719c14d8d8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Jun 7 22:18:09 2016 -0300

    window: remove the placeholder view
    
    Now that we always show a panel, this placeholder
    view is not needed.
    
    This patch removes the placesholder view.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767301

 shell/alt/cc-window.c |    5 +---
 shell/window.ui       |   59 -------------------------------------------------
 2 files changed, 1 insertions(+), 63 deletions(-)
---
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index d90d05a..106a4dc 100644
--- a/shell/alt/cc-window.c
+++ b/shell/alt/cc-window.c
@@ -45,8 +45,6 @@
 
 #define DEFAULT_WINDOW_ICON_NAME "preferences-system"
 
-#define OVERVIEW_PAGE "_overview"
-
 struct _CcWindow
 {
   GtkApplicationWindow parent;
@@ -197,8 +195,7 @@ static void
 shell_show_overview_page (CcWindow *self)
 {
   cc_panel_list_set_view (CC_PANEL_LIST (self->panel_list), CC_PANEL_LIST_MAIN);
-
-  gtk_stack_set_visible_child_name (GTK_STACK (self->stack), OVERVIEW_PAGE);
+  cc_panel_list_activate (CC_PANEL_LIST (self->panel_list));
 
   if (self->current_panel_box)
     gtk_container_remove (GTK_CONTAINER (self->stack), self->current_panel_box);
diff --git a/shell/window.ui b/shell/window.ui
index f8a4e9b..4d11cbb 100644
--- a/shell/window.ui
+++ b/shell/window.ui
@@ -88,65 +88,6 @@
             <property name="hexpand">True</property>
             <property name="vexpand">True</property>
             <property name="transition_type">crossfade</property>
-            <child>
-              <object class="GtkBox">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="orientation">vertical</property>
-                <property name="spacing">12</property>
-                <property name="expand">True</property>
-                <property name="halign">center</property>
-                <property name="valign">center</property>
-                <child type="center">
-                  <object class="GtkImage">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="pixel_size">72</property>
-                    <property name="icon_name">preferences-system-symbolic</property>
-                    <style>
-                      <class name="dim-label"/>
-                    </style>
-                  </object>
-                  <packing>
-                    <property name="expand">False</property>
-                    <property name="fill">True</property>
-                    <property name="position">0</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkLabel">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Welcome to the Control Center</property>
-                    <attributes>
-                      <attribute name="weight" value="bold"/>
-                      <attribute name="scale" value="1.44"/>
-                    </attributes>
-                  </object>
-                  <packing>
-                    <property name="pack-type">end</property>
-                    <property name="position">2</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkLabel">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="label" translatable="yes">Select a panel in the sidelist to see the 
available options</property>
-                    <style>
-                      <class name="dim-label"/>
-                    </style>
-                  </object>
-                  <packing>
-                    <property name="pack-type">end</property>
-                    <property name="position">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="name">_overview</property>
-              </packing>
-            </child>
             <style>
               <class name="background"/>
             </style>


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