diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-01-15 13:07:03 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-01-18 19:59:59 (GMT) |
commit | e256881651711fb39323bdf8cde091ed926187fa (patch) | |
tree | a3993789799a4fe10447c16e64f7129af800cf7e /Edit/HitInterface.py | |
parent | 54958856d3f85349b750d0f81aac890cfbb02c0d (diff) |
Ported TamTamEdit toolbars to Gtk3. Fixed some bugs
Signed-off-by: Aaron Gordon <aaronsgordon@yahoo.com>
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r-- | Edit/HitInterface.py | 5 |
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 |