summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKushal Das <kushal@fedoraproject.org>2008-10-03 15:15:11 +0530
committerKushal Das <kushal@fedoraproject.org>2008-10-03 15:15:11 +0530
commit8d3d573fc3182714bd5b456bc3ea1e481ff12bcb (patch)
treef284372b168425245e93b000bc5bdc5966a904ed
parent6d3428ca9e901b0fa633f219ff2da3ca804fbff6 (diff)
downloadjukebox-activity.git-8d3d573fc3182714bd5b456bc3ea1e481ff12bcb.zip
jukebox-activity.git-8d3d573fc3182714bd5b456bc3ea1e481ff12bcb.tar.gz
jukebox-activity.git-8d3d573fc3182714bd5b456bc3ea1e481ff12bcb.tar.xz
Toolbar button creation code cleaned
-rw-r--r--ControlToolbar.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/ControlToolbar.py b/ControlToolbar.py
index 8cbaa42..12edc51 100644
--- a/ControlToolbar.py
+++ b/ControlToolbar.py
@@ -42,15 +42,10 @@ class ControlToolbar(gtk.Toolbar):
gtk.Toolbar.__init__(self)
self.toolbox = toolbox
self.jukebox = jukebox
- self.prev_image = gtk.image_new_from_stock(gtk.STOCK_MEDIA_PREVIOUS,
- gtk.ICON_SIZE_BUTTON)
- self.prev_image.show()
- self.prev_button = gtk.ToolButton()
- self.prev_button.set_icon_widget(self.prev_image)
+ self.prev_button = gtk.ToolButton(gtk.STOCK_MEDIA_PREVIOUS)
self.prev_button.show()
self.prev_button.connect('clicked', self.prev_button_clicked_cb)
-
self.insert(self.prev_button, -1)
@@ -68,15 +63,10 @@ class ControlToolbar(gtk.Toolbar):
self.button.connect('clicked', self._button_clicked_cb)
self.insert(self.button, -1)
- self.next_image = gtk.image_new_from_stock(gtk.STOCK_MEDIA_NEXT,
- gtk.ICON_SIZE_BUTTON)
- self.next_image.show()
- self.next_button = gtk.ToolButton()
- self.next_button.set_icon_widget(self.next_image)
+ self.next_button = gtk.ToolButton(gtk.STOCK_MEDIA_NEXT)
self.next_button.show()
self.next_button.connect('clicked', self.next_button_clicked_cb)
-
self.insert(self.next_button, -1)