mirror of
https://github.com/nikdoof/oblogout.git
synced 2025-12-23 23:39:23 +00:00
Start of SVG support, check if the icon file exists and attempts to load
it.
This commit is contained in:
@@ -315,7 +315,10 @@ class OpenboxLogout():
|
||||
box = gtk.VBox()
|
||||
|
||||
image = gtk.Image()
|
||||
image.set_from_file("%s/%s/oblogout/%s.png" % (self.img_path, self.button_theme, name))
|
||||
if os.exists("%s/%s/oblogout/%s.svg" % (self.img_path, self.button_theme, name)):
|
||||
image.set_from_file("%s/%s/oblogout/%s.svg" % (self.img_path, self.button_theme, name))
|
||||
else:
|
||||
image.set_from_file("%s/%s/oblogout/%s.png" % (self.img_path, self.button_theme, name))
|
||||
image.show()
|
||||
|
||||
button = gtk.Button()
|
||||
|
||||
Reference in New Issue
Block a user