summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-06-07 22:18:09 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2016-06-07 23:36:27 -0300
commitc5b139d1d2effffd9ef63f8afaeea4cc1a935b36 (patch)
tree671707a889ed5128751b5f00506ff0d25fd4ab93
parent9d7cc626690ca000072d59e8eb8d70ab6dd17455 (diff)
downloadgnome-control-center-wip/gbsneto/sidelist-groups.tar.gz
window: remove the placeholder viewwip/gbsneto/sidelist-groups
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
-rw-r--r--shell/alt/cc-window.c5
-rw-r--r--shell/window.ui59
2 files changed, 1 insertions, 63 deletions
diff --git a/shell/alt/cc-window.c b/shell/alt/cc-window.c
index d90d05a63..106a4dc2d 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 f8a4e9b2d..4d11cbbd4 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>