[Pkg-privacy-commits] [torbrowser-launcher] 43/476: added icons to buttons

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:21 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 3094bf8ca7bac40b805eec634a2a19eff073a116
Author: Micah Lee <micahflee at riseup.net>
Date:   Sun Feb 17 18:25:25 2013 -0800

    added icons to buttons
---
 torbrowser-launcher | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 2e042f0..cb68a04 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -119,10 +119,14 @@ class TorBrowserLauncher:
   def build_ui(self):
     self.timer = False
 
+    # allow buttons to have icons
+    settings = gtk.settings_get_default()
+    settings.props.gtk_button_images = True
+
+    # set up the window
     self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
     self.window.set_title("Tor Browser Launcher")
     self.window.set_border_width(10)
-    
     self.window.connect("delete_event", self.delete_event)
     self.window.connect("destroy", self.destroy)
 
@@ -167,13 +171,19 @@ class TorBrowserLauncher:
       self.button_box.show()
 
       # start button
+      start_image = gtk.Image()
+      start_image.set_from_stock(gtk.STOCK_APPLY, gtk.ICON_SIZE_BUTTON)
       self.start_button = gtk.Button("Start")
+      self.start_button.set_image(start_image)
       self.start_button.connect("clicked", self.start, None)
       self.button_box.add(self.start_button)
       self.start_button.show()
 
       # exit button
+      exit_image = gtk.Image()
+      exit_image.set_from_stock(gtk.STOCK_CANCEL, gtk.ICON_SIZE_BUTTON)
       self.exit_button = gtk.Button("Exit")
+      self.exit_button.set_image(exit_image)
       self.exit_button.connect("clicked", self.destroy, None)
       self.button_box.add(self.exit_button)
       self.exit_button.show()

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