[Pkg-privacy-commits] [torbrowser-launcher] 57/476: put enabling button icons in a try block, because older pythons throw exceptions there
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.
commit 09b8fd5f223520d8f86a0af419938a4068daa738
Author: Micah Lee <micahflee at riseup.net>
Date: Tue Feb 19 21:29:13 2013 -0800
put enabling button icons in a try block, because older pythons throw exceptions there
---
torbrowser-launcher | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/torbrowser-launcher b/torbrowser-launcher
index 9a6f674..0dbfb40 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git
More information about the Pkg-privacy-commits
mailing list