summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Dedul <rotmer@gmail.com>2007-07-25 11:53:46 +0000
committerAlex Dedul <rotmer@gmail.com>2007-07-25 11:53:46 +0000
commit10f6fd64ffabb4798db4ed824c31cdb28710119b (patch)
treefa164551584563dbda895e45837a1ab0eb69e532
parent38923ed22bce3b744a1ce76ecc9f3eb737bd1a01 (diff)
downloaddeluge-10f6fd64ffabb4798db4ed824c31cdb28710119b.tar.gz
deluge-10f6fd64ffabb4798db4ed824c31cdb28710119b.tar.bz2
deluge-10f6fd64ffabb4798db4ed824c31cdb28710119b.zip
Use screen depth resolution in NetworkGraph plugin.
-rw-r--r--plugins/NetworkGraph/plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/NetworkGraph/plugin.py b/plugins/NetworkGraph/plugin.py
index 896971a77..f3e11058e 100644
--- a/plugins/NetworkGraph/plugin.py
+++ b/plugins/NetworkGraph/plugin.py
@@ -89,7 +89,8 @@ class plugin_NetGraph:
self.width = allocation.width
self.height = allocation.height
- self.networkPixmap = gtk.gdk.Pixmap(None, self.width, self.height, 24)
+ self.networkPixmap = gtk.gdk.Pixmap(None, self.width,
+ self.height, gtk.gdk.visual_get_system().depth)
self.image.set_from_pixmap(self.networkPixmap, None)
self.ctx = self.networkPixmap.cairo_create()