mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-23 17:39:52 +00:00
put enabling button icons in a try block, because older pythons throw exceptions there
This commit is contained in:
parent
467248eea3
commit
09b8fd5f22
@ -120,8 +120,11 @@ class TorBrowserLauncher:
|
||||
self.timer = False
|
||||
|
||||
# allow buttons to have icons
|
||||
settings = gtk.settings_get_default()
|
||||
settings.props.gtk_button_images = True
|
||||
try:
|
||||
settings = gtk.settings_get_default()
|
||||
settings.props.gtk_button_images = True
|
||||
except:
|
||||
pass
|
||||
|
||||
# set up the window
|
||||
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
|
||||
|
Loading…
Reference in New Issue
Block a user