aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:19:17 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:31:42 +0100
commit7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d (patch)
treeaa48880bde92fe54f4c3a25a62c67e75e8648fd3
parentb987479023da498208f3dd6de6f969836c10a2af (diff)
downloadnet_monitor-7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d.tar
net_monitor-7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d.tar.gz
net_monitor-7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d.tar.bz2
net_monitor-7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d.tar.xz
net_monitor-7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d.zip
fix creating Frames
-rwxr-xr-xsrc/net_monitor8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net_monitor b/src/net_monitor
index af05840..e282480 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -512,7 +512,7 @@ class MonitorGui:
graph_vnstat.set_from_pixbuf(pixbuf)
stats_vbox.pack_start(graph_vnstat, True, True, 0)
# buttons
- frame = Gtk.Frame(_("Network traffic statistics for %s") % iface)
+ frame = Gtk.Frame.new(_("Network traffic statistics for %s") % iface)
stats_vbox.add(frame)
vbox = Gtk.VBox()
frame.add(vbox)
@@ -638,7 +638,7 @@ class MonitorGui:
sizegroup4 = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
# traffic
- frame = Gtk.Frame(_("Traffic statistics"))
+ frame = Gtk.Frame.new(_("Traffic statistics"))
traf_vbox.pack_start(frame, False, False, 0)
table = Gtk.Table(2, 2, False)
@@ -664,7 +664,7 @@ class MonitorGui:
self.__add_row(table, cur_row, items)
cur_row += 1
- frame_global = Gtk.Frame(_("Interface settings"))
+ frame_global = Gtk.Frame.new(_("Interface settings"))
traf_vbox.pack_start(frame_global, False, False, 0)
table = Gtk.Table(2, 2, False)
@@ -729,7 +729,7 @@ class MonitorGui:
cur_row += 1
# statistics button
- frame_accounting = Gtk.Frame(_("Traffic accounting"))
+ frame_accounting = Gtk.Frame.new(_("Traffic accounting"))
vbox = Gtk.VBox()
frame_accounting.add(vbox)
if self.monitor.has_network_accounting(iface):