Rename welcome page to home page

merge-requests/64/head
Hugo Posnic 2016-12-26 21:03:58 +01:00
parent be479c8e48
commit d08a88931d
2 changed files with 8 additions and 8 deletions

View File

@ -145,7 +145,7 @@ class ManjaroHello():
# TODO: Find a better solution
elts = {
"about": "tooltip_text",
"welcome": "tooltip_text",
"home": "tooltip_text",
"welcometitle": "label",
"welcomelabel": "label",
"firstcategory": "label",
@ -256,10 +256,10 @@ class ManjaroHello():
def on_btn_clicked(self, btn):
"""Event for clicked button."""
name = btn.get_name()
if name == "welcome":
self.builder.get_object("welcome").set_sensitive(False)
if name == "home":
self.builder.get_object("home").set_sensitive(False)
else:
self.builder.get_object("welcome").set_sensitive(True)
self.builder.get_object("home").set_sensitive(True)
self.builder.get_object("stack").set_visible_child_name(name + "page")
def on_link_clicked(self, link, _=None):

View File

@ -467,7 +467,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</child>
</object>
<packing>
<property name="name">welcomepage</property>
<property name="name">homepage</property>
</packing>
</child>
</object>
@ -485,8 +485,8 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
<property name="title">Manjaro Hello</property>
<property name="show_close_button">True</property>
<child>
<object class="GtkButton" id="welcome">
<property name="name">welcome</property>
<object class="GtkButton" id="home">
<property name="name">home</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
@ -513,7 +513,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</packing>
</child>
<child>
<object class="GtkButton">
<object class="GtkButton" id="about">
<property name="name">about</property>
<property name="visible">True</property>
<property name="can_focus">True</property>