Add icons for button links

merge-requests/64/head
Hugo Posnic 2016-12-22 21:20:23 +01:00
parent a490fa0b1d
commit d219bbc3a1
2 changed files with 6 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

View File

@ -79,6 +79,12 @@ class ManjaroHello():
for img in ("google+", "facebook", "twitter", "reddit"): for img in ("google+", "facebook", "twitter", "reddit"):
self.builder.get_object(img).set_from_file(self.data_path + "img/" + img + ".png") self.builder.get_object(img).set_from_file(self.data_path + "img/" + img + ".png")
pixbuf = GdkPixbuf.Pixbuf.new_from_file(self.data_path + "img/external-link.png")
for btn in ("wiki", "forums", "chat", "mailling", "build", "donate"):
img = Gtk.Image.new_from_pixbuf(pixbuf)
img.set_margin_right(2)
self.builder.get_object(btn).set_image(img)
# Set autostart switcher state # Set autostart switcher state
self.autostart = os.path.isfile(self.autostart_path) self.autostart = os.path.isfile(self.autostart_path)
self.builder.get_object("autostart").set_active(self.autostart) self.builder.get_object("autostart").set_active(self.autostart)