aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xsrc/net_monitor10
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5352057..669e647 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PACKAGE = net_monitor
-VERSION = 0.18
+VERSION = 0.19
GITPATH = git://git.mageia.org/software/net_monitor
all: version python
diff --git a/src/net_monitor b/src/net_monitor
index 7856442..a9d9eb4 100755
--- a/src/net_monitor
+++ b/src/net_monitor
@@ -518,26 +518,26 @@ class MonitorGui:
vbox = Gtk.VBox()
frame.add(vbox)
# summary
- first_button = Gtk.RadioButton(None, _("Summary"))
+ first_button = Gtk.RadioButton.new_with_label_from_widget(None, _("Summary"))
first_button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "summary"))
vbox.pack_start(first_button, False, False, 0)
# summary
- button = Gtk.RadioButton(None, _("Hourly traffic"))
+ button = Gtk.RadioButton.new_with_label_from_widget(None, _("Hourly traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "hourly"))
vbox.pack_start(button, False, False, 0)
button.join_group(first_button)
# summary
- button = Gtk.RadioButton(None, _("Daily traffic"))
+ button = Gtk.RadioButton.new_with_label_from_widget(None, _("Daily traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "daily"))
vbox.pack_start(button, False, False, 0)
button.join_group(first_button)
# summary
- button = Gtk.RadioButton(None, _("Monthly traffic"))
+ button = Gtk.RadioButton.new_with_label_from_widget(None, _("Monthly traffic"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "monthly"))
vbox.pack_start(button, False, False, 0)
button.join_group(first_button)
# summary
- button = Gtk.RadioButton(None, _("Top 10 traffic days"))
+ button = Gtk.RadioButton.new_with_label_from_widget(None, _("Top 10 traffic days"))
button.connect('toggled', self.update_stat_iface, (iface, graph_vnstat, "top"))
vbox.pack_start(button, False, False, 0)
button.join_group(first_button)