aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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):