From 41b27b3a90b04e1fd6b903c3c36700f3d6d7335a Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Mon, 26 Dec 2016 17:38:17 +0100 Subject: [PATCH] Move subtitle definition --- src/manjaro_hello.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index 71aff8c..8b7e19a 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -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")