From 10f6fd64ffabb4798db4ed824c31cdb28710119b Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Wed, 25 Jul 2007 11:53:46 +0000 Subject: [PATCH] Use screen depth resolution in NetworkGraph plugin. --- plugins/NetworkGraph/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()