diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-03 06:20:47 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-03 06:20:47 (GMT) |
commit | b7b4b0b43120e9d5564627a516b650509b9e522b (patch) | |
tree | 3cb5e9a7529bf2117a2d8f1760d9ae16eddb0cc9 /button.py | |
parent | f34232651c46fe12ab21645ee799814d4f99af8b (diff) |
background of info button is black
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@861 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'button.py')
-rw-r--r-- | button.py | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -28,12 +28,10 @@ class RecdButton(TrayButton, gobject.GObject): def getImg( self ): img = gtk.Image() ipb = self.recd.getThumbPixbuf() - xoff = 0 - yoff = 0 + xoff = 8 + yoff = 8 pb = None if (self.recd.type == Constants.TYPE_PHOTO): - xoff = 8 - yoff = 8 if (self.recd.buddy): thumbPhotoSvg = utils.loadSvg(Constants.thumbPhotoSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex) pb = thumbPhotoSvg.get_pixbuf() @@ -41,8 +39,6 @@ class RecdButton(TrayButton, gobject.GObject): pb = Constants.thumbPhotoSvg.get_pixbuf() elif (self.recd.type == Constants.TYPE_VIDEO): - xoff = 8 - yoff = 22 if (self.recd.buddy): thumbVideoSvg = utils.loadSvg(Constants.thumbVideoSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex) pb = thumbVideoSvg.get_pixbuf() @@ -50,13 +46,11 @@ class RecdButton(TrayButton, gobject.GObject): pb = Constants.thumbVideoSvg.get_pixbuf() elif (self.recd.type == Constants.TYPE_AUDIO): - xoff = 8 - yoff = 22 if (self.recd.buddy): thumbAudioSvg = utils.loadSvg(Constants.thumbAudioSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex) pb = thumbAudioSvg.get_pixbuf() else: - pb = Constants.thumbVideoSvg.get_pixbuf() + pb = Constants.thumbAudioSvg.get_pixbuf() img.set_from_pixbuf(pb) img.show() |