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
This commit is contained in:
Georges Basile Stavracas Neto 2016-06-07 22:18:09 -03:00
parent 11ce397d2a
commit 45d6073cd1
2 changed files with 1 additions and 63 deletions

View file

@ -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);

View file

@ -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>