put enabling button icons in a try block, because older pythons throw exceptions there

This commit is contained in:
Micah Lee 2013-02-19 21:29:13 -08:00
parent 467248eea3
commit 09b8fd5f22

View File

@ -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)