Rename welcome page to home page
parent
be479c8e48
commit
d08a88931d
|
@ -145,7 +145,7 @@ class ManjaroHello():
|
||||||
# TODO: Find a better solution
|
# TODO: Find a better solution
|
||||||
elts = {
|
elts = {
|
||||||
"about": "tooltip_text",
|
"about": "tooltip_text",
|
||||||
"welcome": "tooltip_text",
|
"home": "tooltip_text",
|
||||||
"welcometitle": "label",
|
"welcometitle": "label",
|
||||||
"welcomelabel": "label",
|
"welcomelabel": "label",
|
||||||
"firstcategory": "label",
|
"firstcategory": "label",
|
||||||
|
@ -256,10 +256,10 @@ class ManjaroHello():
|
||||||
def on_btn_clicked(self, btn):
|
def on_btn_clicked(self, btn):
|
||||||
"""Event for clicked button."""
|
"""Event for clicked button."""
|
||||||
name = btn.get_name()
|
name = btn.get_name()
|
||||||
if name == "welcome":
|
if name == "home":
|
||||||
self.builder.get_object("welcome").set_sensitive(False)
|
self.builder.get_object("home").set_sensitive(False)
|
||||||
else:
|
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")
|
self.builder.get_object("stack").set_visible_child_name(name + "page")
|
||||||
|
|
||||||
def on_link_clicked(self, link, _=None):
|
def on_link_clicked(self, link, _=None):
|
||||||
|
|
|
@ -467,7 +467,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="name">welcomepage</property>
|
<property name="name">homepage</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</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="title">Manjaro Hello</property>
|
||||||
<property name="show_close_button">True</property>
|
<property name="show_close_button">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="welcome">
|
<object class="GtkButton" id="home">
|
||||||
<property name="name">welcome</property>
|
<property name="name">home</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="can_focus">True</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>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton">
|
<object class="GtkButton" id="about">
|
||||||
<property name="name">about</property>
|
<property name="name">about</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
|
Loading…
Reference in New Issue