summaryrefslogtreecommitdiff
path: root/grc/src/platforms/gui/Port.py
diff options
context:
space:
mode:
authorjblum2009-05-14 18:47:15 +0000
committerjblum2009-05-14 18:47:15 +0000
commit30e9c0d1d47f1e4200afd6abf955271609dbbdc3 (patch)
treea56c09e0dfbbaa7d6c0a82d78934ae5f5bc1b06a /grc/src/platforms/gui/Port.py
parent349331a884594a9e242231bffb03112b8943883c (diff)
downloadgnuradio-30e9c0d1d47f1e4200afd6abf955271609dbbdc3.tar.gz
gnuradio-30e9c0d1d47f1e4200afd6abf955271609dbbdc3.tar.bz2
gnuradio-30e9c0d1d47f1e4200afd6abf955271609dbbdc3.zip
shared drawing area method for creating new pixmaps
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11029 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms/gui/Port.py')
-rw-r--r--grc/src/platforms/gui/Port.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/src/platforms/gui/Port.py b/grc/src/platforms/gui/Port.py
index 3aec6e4a7..a763e406d 100644
--- a/grc/src/platforms/gui/Port.py
+++ b/grc/src/platforms/gui/Port.py
@@ -91,7 +91,7 @@ class Port(Element):
self.w, self.h = layout.get_pixel_size()
self.W, self.H = 2*PORT_LABEL_PADDING+self.w, 2*PORT_LABEL_PADDING+self.h
#create the pixmap
- pixmap = gtk.gdk.Pixmap(self.get_parent().get_parent().get_window(), self.w, self.h, -1)
+ pixmap = self.get_parent().get_parent().new_pixmap(self.w, self.h)
gc = pixmap.new_gc()
gc.foreground = self.BG_color
pixmap.draw_rectangle(gc, True, 0, 0, self.w, self.h)