Move subtitle definition
This commit is contained in:
parent
8f08c8e981
commit
41b27b3a90
@ -53,6 +53,10 @@ class ManjaroHello():
|
||||
self.builder.add_from_file(self.ui_path + "manjaro-hello.glade")
|
||||
self.builder.connect_signals(self)
|
||||
self.window = self.builder.get_object("window")
|
||||
subtitle = self.infos["arch"]
|
||||
if self.infos["codename"] and self.infos["release"]:
|
||||
subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + subtitle
|
||||
self.builder.get_object("headerbar").props.subtitle = subtitle
|
||||
|
||||
# Load logos
|
||||
logo = GdkPixbuf.Pixbuf.new_from_file_at_scale(self.logo_path, 64, 64, False)
|
||||
@ -72,12 +76,6 @@ class ManjaroHello():
|
||||
gettext.textdomain(self.app)
|
||||
self.builder.get_object("languages").set_active_id(self.preferences["locale"])
|
||||
|
||||
# Set window subtitle
|
||||
subtitle = self.infos["arch"]
|
||||
if self.infos["codename"] and self.infos["release"]:
|
||||
subtitle = self.infos["codename"] + " " + self.infos["release"] + " " + subtitle
|
||||
self.builder.get_object("headerbar").props.subtitle = subtitle
|
||||
|
||||
# Load images
|
||||
for img in ("google+", "facebook", "twitter", "reddit"):
|
||||
self.builder.get_object(img).set_from_file(self.data_path + "img/" + img + ".png")
|
||||
|
Loading…
Reference in New Issue
Block a user