Change way to load external link icon

This commit is contained in:
Hugo Posnic 2016-12-23 14:05:04 +01:00
parent 3f0a7208a7
commit 927a788208

View File

@ -79,9 +79,8 @@ class ManjaroHello():
for img in ("google+", "facebook", "twitter", "reddit"):
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 = Gtk.Image.new_from_file(self.data_path + "img/external-link.png")
img.set_margin_left(2)
self.builder.get_object(btn).set_image_position(Gtk.PositionType.RIGHT)
self.builder.get_object(btn).set_image(img)