Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/button.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-09-26 01:10:09 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-09-26 01:10:09 (GMT)
commitc971a86ca5423331479beac30cef26778d762e50 (patch)
treeca70450157264b6b1fbc3c063afd7750984b109e /button.py
parent170145554bee23bd7426d5d77fcd9e06e35cd11f (diff)
more tray button fixes
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@529 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'button.py')
-rw-r--r--button.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/button.py b/button.py
index f9e2da9..979fedd 100644
--- a/button.py
+++ b/button.py
@@ -21,10 +21,12 @@ class RecdButton(TrayButton, gobject.GObject):
def getImg( self ):
+ #todo: remove mem refs
+
img = gtk.Image()
ipb = self.recd.getThumbPixbuf()
if (self.recd.type == self.ui.ca.m.TYPE_PHOTO):
- if (self.tc.recd.buddy):
+ if (self.recd.buddy):
thumbPhotoSvg = self.ui.loadSvg(self.ui.thumbPhotoSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex)
pb = thumbPhotoSvg.get_pixbuf()
img.set_from_pixbuf( pb )
@@ -37,7 +39,7 @@ class RecdButton(TrayButton, gobject.GObject):
ipb.composite(pb, 8, 8, ipb.get_width(), ipb.get_height(), 0, 0, 1, 1, gtk.gdk.INTERP_BILINEAR, 255 )
if (self.recd.type == self.ui.ca.m.TYPE_VIDEO):
- if (self.tc.recd.buddy):
+ if (self.recd.buddy):
thumbVideoSvg = self.ui.loadSvg(self.ui.thumbVideoSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex)
pb = thumbVideoSvg.get_pixbuf()
img.set_from_pixbuf( pb )
@@ -50,7 +52,7 @@ class RecdButton(TrayButton, gobject.GObject):
ipb.composite(pb, 8, 22, ipb.get_width(), ipb.get_height(), 0, 0, 1, 1, gtk.gdk.INTERP_BILINEAR, 255 )
if (self.recd.type == self.ui.ca.m.TYPE_AUDIO):
- if (self.tc.recd.buddy):
+ if (self.recd.buddy):
thumbAudioSvg = self.ui.loadSvg(self.ui.thumbAudioSvgData, self.recd.colorStroke.hex, self.recd.colorFill.hex)
pb = thumbAudioSvg.get_pixbuf()
img.set_from_pixbuf( pb )