[Pkg-privacy-commits] [torbrowser-launcher] 118/476: settings dialog well under way. doesnt save changes yet though (#29)

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:28 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 d86ceb7a398d22f1f90bb5b51d5f2ad08831c23c
Author: Micah Lee <micahflee at riseup.net>
Date:   Tue Apr 16 09:51:40 2013 -0700

    settings dialog well under way. doesnt save changes yet though (#29)
---
 torbrowser-launcher | 60 ++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 52 insertions(+), 8 deletions(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 586678a..497fab0 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -263,24 +263,70 @@ class TBLSettings:
         self.window.connect("destroy", self.destroy)
         
         # build the rest of the UI
-        self.box = gtk.VBox(False, 20)
+        self.box = gtk.VBox(False, 10)
         self.window.add(self.box)
+        self.box.show()
+
+        self.hbox = gtk.HBox(False, 10)
+        self.box.pack_start(self.hbox, True, True, 0)
+        self.hbox.show()
+
+        self.settings_box = gtk.VBox(False, 10)
+        self.hbox.pack_start(self.settings_box, True, True, 0)
+        self.settings_box.show()
+
+        self.labels_box = gtk.VBox(False, 10)
+        self.hbox.pack_start(self.labels_box, True, True, 0)
+        self.labels_box.show()
+
+        # preferred version
+        self.pref_ver_box = gtk.HBox(False, 10)
+        self.settings_box.pack_start(self.pref_ver_box, True, True, 0)
+        self.pref_ver_box.show()
+
+        self.pref_ver_label = gtk.Label(_('I prefer'))
+        self.pref_ver_label.set_line_wrap(True)
+        self.pref_ver_box.pack_start(self.pref_ver_label, True, True, 0)
+        self.pref_ver_label.show()
+
+        options = [
+            _('Tor Browser Bundle - stable'), 
+            _('Tor Browser Bundle - alpha'), 
+            _('Obsfproxy Tor Browser Bundle - stable'), 
+            _('Obsfproxy Tor Browser Bundle - alpha')
+        ]
+        self.pref_ver = gtk.combo_box_new_text()
+        for option in options:
+            self.pref_ver.append_text(option)
+        self.pref_ver.set_active(0)
+        self.pref_ver_box.pack_start(self.pref_ver, True, True, 0)
+        self.pref_ver.show()
+
+        # download over tor
+        self.tor_update_checkbox = gtk.CheckButton(_("Check for and download updates over Tor"))
+        self.settings_box.pack_start(self.tor_update_checkbox, True, True, 0)
+        self.tor_update_checkbox.show()
+
+        # check for updates
+        self.update_checkbox = gtk.CheckButton(_("Check for updates next launch"))
+        self.settings_box.pack_start(self.update_checkbox, True, True, 0)
+        self.update_checkbox.show()
 
         # labels
         if(self.common.settings['installed_version']):
-            self.label1 = gtk.Label(_('Installed version: {0}').format(self.common.settings['installed_version']))
+            self.label1 = gtk.Label(_('Installed version:\n{0}').format(self.common.settings['installed_version']))
         else:
-            self.label1 = gtk.Label(_('Tor Browser Bundle not installed'))
+            self.label1 = gtk.Label(_('Not installed'))
         self.label1.set_line_wrap(True)
-        self.box.pack_start(self.label1, True, True, 0)
+        self.labels_box.pack_start(self.label1, True, True, 0)
         self.label1.show()
 
         if(self.common.settings['last_update_check_timestamp'] > 0):
-            self.label1 = gtk.Label(_('Last checked for updates: {0}').format(time.strftime("%B %d, %Y %I:%M %P", time.gmtime(self.common.settings['last_update_check_timestamp']))))
+            self.label1 = gtk.Label(_('Last checked for updates:\n{0}').format(time.strftime("%B %d, %Y %I:%M %P", time.gmtime(self.common.settings['last_update_check_timestamp']))))
         else:
             self.label1 = gtk.Label(_('Never checked for updates'))
         self.label1.set_line_wrap(True)
-        self.box.pack_start(self.label1, True, True, 0)
+        self.labels_box.pack_start(self.label1, True, True, 0)
         self.label1.show()
 
         # button box
@@ -288,7 +334,6 @@ class TBLSettings:
         self.button_box.set_layout(gtk.BUTTONBOX_SPREAD)
         self.box.pack_start(self.button_box, True, True, 0)
         self.button_box.show()
-        
 
         # save and launch button
         save_launch_image = gtk.Image()
@@ -318,7 +363,6 @@ class TBLSettings:
         self.cancel_button.show()
 
         # show the window
-        self.box.show()
         self.window.show()
 
         # start gtk

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