Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/HitInterface.py
diff options
context:
space:
mode:
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r--Edit/HitInterface.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Edit/HitInterface.py b/Edit/HitInterface.py
index 84e0356..db8700f 100644
--- a/Edit/HitInterface.py
+++ b/Edit/HitInterface.py
@@ -192,8 +192,9 @@ class HitInterface( NoteInterface ):
if self.selected: img = self.imageSelected
else: img = self.image
- cxt.set_source_surface(img, 0, 0)
- cxt.paint()
+ cxt.set_source_surface(img, self.imgX, self.imgY)
+ cxt.rectangle(self.x+2, self.y+2, self.width-4, self.height-4)
+ cxt.fill()
#win.draw_pixbuf( gc, img, 0, 0, self.imgX, self.imgY, self.imgWidth, self.imgHeight, gtk.gdk.RGB_DITHER_NONE )
return True # we drew something