From 7736cdad4c6551f9bbab01cbb4d7cc798d7bc53d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 20 Nov 2013 06:19:17 +0100 Subject: fix creating Frames --- src/net_monitor | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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): -- cgit v1.2.1