Skip to content

Commit

Permalink
Missing icon error
Browse files Browse the repository at this point in the history
Corrected missing app icon on startup error
  • Loading branch information
roroid committed Dec 30, 2014
1 parent c9cb2b8 commit 18cf574
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gresistor2
Expand Up @@ -508,8 +508,11 @@ class HeaderBarWindow(Gtk.Window):
self.set_border_width(10)
self.set_default_size(400, 200)
self.set_resizable(False)
self.set_icon(GdkPixbuf.Pixbuf.new_from_file("/usr/share/gresistor2/icon.png"))

try:
self.set_icon(GdkPixbuf.Pixbuf.new_from_file("/usr/share/gresistor2/icon.png"))
except:
print "Iconita aplicatiei nu a fost gasita"
pass

hb = Gtk.HeaderBar()
hb.set_show_close_button(True)
Expand Down

0 comments on commit 18cf574

Please sign in to comment.