aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:18:35 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-20 06:31:42 +0100
commitb987479023da498208f3dd6de6f969836c10a2af (patch)
treea7ec4b107c038bc5f4948817c16dd221eb907c38
parentd8ab73231ba7689c1e6491e5f4f6823ae26ed837 (diff)
downloadnet_monitor-b987479023da498208f3dd6de6f969836c10a2af.tar
net_monitor-b987479023da498208f3dd6de6f969836c10a2af.tar.gz
net_monitor-b987479023da498208f3dd6de6f969836c10a2af.tar.bz2
net_monitor-b987479023da498208f3dd6de6f969836c10a2af.tar.xz
net_monitor-b987479023da498208f3dd6de6f969836c10a2af.zip
fix calling pack_start()
-rwxr-xr-xsrc/net_monitor32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/net_monitor b/src/net_monitor
index c3409d4..af05840 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -519,23 +519,23 @@ class MonitorGui:
# summary
button = Gtk.RadioButton(None, _("Summary"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "summary"))
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
# summary
button = Gtk.RadioButton(button, _("Hourly traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "hourly"))
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
# summary
button = Gtk.RadioButton(button, _("Daily traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "daily"))
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
# summary
button = Gtk.RadioButton(button, _("Monthly traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "monthly"))
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
# summary
button = Gtk.RadioButton(button, _("Top 10 traffic days"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "top"))
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
else:
label = Gtk.Label(label=_("Network accounting was not enabled on interface %s.\nPlease enable network accounting on the interface in order to view traffic statistics and restart your network connection to start collecting traffic statistics."))
stats_vbox.add(label)
@@ -615,7 +615,7 @@ class MonitorGui:
button = Gtk.Button(_("Refresh"))
button.connect('clicked', self.refresh_connections)
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
return widget, vbox, lstore
@@ -639,7 +639,7 @@ class MonitorGui:
# traffic
frame = Gtk.Frame(_("Traffic statistics"))
- traf_vbox.pack_start(frame, False, False)
+ traf_vbox.pack_start(frame, False, False, 0)
table = Gtk.Table(2, 2, False)
frame.add(table)
@@ -665,7 +665,7 @@ class MonitorGui:
cur_row += 1
frame_global = Gtk.Frame(_("Interface settings"))
- traf_vbox.pack_start(frame_global, False, False)
+ traf_vbox.pack_start(frame_global, False, False, 0)
table = Gtk.Table(2, 2, False)
frame_global.add(table)
@@ -735,14 +735,14 @@ class MonitorGui:
if self.monitor.has_network_accounting(iface):
iface_u, iface_uptime = self.build_value_pair(sizegroup1, _("Connection time:"))
self.ifaces[iface]["widget_uptime"] = iface_uptime
- vbox.pack_start(iface_u, False, False)
+ vbox.pack_start(iface_u, False, False, 0)
button = Gtk.Button(_("Show detailed network statistics"))
button.connect('clicked', self.show_statistics_dialog, iface)
- vbox.pack_start(button, False, False)
+ vbox.pack_start(button, False, False, 0)
else:
label = Gtk.Label("\n".join(textwrap.wrap(_("Network accounting is not enabled for this interface. Please enable it in Network center (press Configure button next to the interface item, then check \"Enable traffic accounting\" item) in order to view detailed traffic statistics"))))
- vbox.pack_start(label, False, False)
- traf_vbox.pack_start(frame_accounting, False, False)
+ vbox.pack_start(label, False, False, 0)
+ traf_vbox.pack_start(frame_accounting, False, False, 0)
# building notebook label icons
traf_label = Gtk.HBox(False, 2)
@@ -784,18 +784,18 @@ class MonitorGui:
"""Puts two widgets side-by-side"""
# finding left and right vboxes from container
vbox_left, vbox_right = container
- vbox_left.pack_start(w1, False, False)
- vbox_right.pack_start(w2, False, False)
+ vbox_left.pack_start(w1, False, False, 0)
+ vbox_right.pack_start(w2, False, False, 0)
def build_value_pair(self, sizegroup, text, value_text=None, value_sizegroup=None):
"""Builds a value pair"""
hbox = Gtk.HBox(spacing=10)
name = Gtk.Label(label=text)
name.set_property("xalign", 0.0)
- hbox.pack_start(name, False, False)
+ hbox.pack_start(name, False, False, 0)
value = Gtk.Label(label=value_text)
value.set_property("xalign", 0.0)
- hbox.pack_start(value, False, False)
+ hbox.pack_start(value, False, False, 0)
if sizegroup:
sizegroup.add_widget(name)
if value_sizegroup: