diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2015-04-11 20:13:44 +0300 |
---|---|---|
committer | Shlomi Fish <shlomif@shlomifish.org> | 2015-04-11 20:13:44 +0300 |
commit | 3b534268e78712d5ef9bff41c2f71963d140bfb3 (patch) | |
tree | aa295c8f1359dbe90cf9913ce36e285c6a2ba2e4 /src | |
parent | 224c518c3bfc8053e232ee2a081f354d20128f64 (diff) | |
download | net_monitor-3b534268e78712d5ef9bff41c2f71963d140bfb3.tar net_monitor-3b534268e78712d5ef9bff41c2f71963d140bfb3.tar.gz net_monitor-3b534268e78712d5ef9bff41c2f71963d140bfb3.tar.bz2 net_monitor-3b534268e78712d5ef9bff41c2f71963d140bfb3.tar.xz net_monitor-3b534268e78712d5ef9bff41c2f71963d140bfb3.zip |
Try to fix a bug with the radio button labels.1.9
Diffstat (limited to 'src')
-rwxr-xr-x | src/net_monitor | 10 |
1 files changed, 5 insertions, 5 deletions
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) |