aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:14:35 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:31:42 +0100
commit3d5a49f4b1a8ca145d742cce21bd78c5d42175a0 (patch)
treec69a5918eb8db809983abeead8d4960fa0ee103e /src
parent6570370e3c4de8ce562aa7754eae6956dd7c414b (diff)
downloadnet_monitor-3d5a49f4b1a8ca145d742cce21bd78c5d42175a0.tar
net_monitor-3d5a49f4b1a8ca145d742cce21bd78c5d42175a0.tar.gz
net_monitor-3d5a49f4b1a8ca145d742cce21bd78c5d42175a0.tar.bz2
net_monitor-3d5a49f4b1a8ca145d742cce21bd78c5d42175a0.tar.xz
net_monitor-3d5a49f4b1a8ca145d742cce21bd78c5d42175a0.zip
fixup pygi-convert.sh's job on Gdk.Rectangle
Diffstat (limited to 'src')
-rwxr-xr-xsrc/net_monitor3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net_monitor b/src/net_monitor
index e01cc86..b05f7a7 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -1,6 +1,7 @@
#!/usr/bin/python
from gi.repository import GObject
+from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import Pango
@@ -79,7 +80,7 @@ class LoadGraph:
self.max = max
# size of the GtkDrawingArea
- self.__rect = self.__inner = ()
+ self.__rect = self.__inner = Gdk.Rectangle()
self.maxval = 0 # maximum value in the history
self.__mesh_x = self.__mesh_y = 0 # distance in pixels between items
self.__get_max()