diff --git a/tuned-gui.glade b/tuned-gui.glade index 36e173a..30dd51a 100644 --- a/tuned-gui.glade +++ b/tuned-gui.glade @@ -1,7 +1,6 @@ - False dialog @@ -729,12 +728,6 @@ True False - - - True - False - - False diff --git a/tuned-gui.py b/tuned-gui.py index 1483f4e..5fd25b5 100755 --- a/tuned-gui.py +++ b/tuned-gui.py @@ -299,8 +299,6 @@ class Base(object): self.label_actual_profile.set_text(self.controller.active_profile()) self.label_recommended_profile.set_text(self.controller.recommend_profile()) - self.listbox_summary_of_active_profile = \ - self.builder.get_object('listboxSummaryOfActiveProfile') self.data_for_listbox_summary_of_active_profile() self.comboboxtext_fast_change_profile.set_model(self.treestore_profiles) @@ -425,9 +423,6 @@ class Base(object): This method is emited after change profile and on startup of app. """ - for row in self.listbox_summary_of_active_profile: - self.listbox_summary_of_active_profile.remove(row) - if self.is_tuned_connection_ok(): self.active_profile = \ self.manager.get_profile(self.controller.active_profile()) @@ -443,51 +438,6 @@ class Base(object): self.label_summary_included_profile.set_text('None') - row = Gtk.ListBoxRow() - box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=0) - plugin_name = Gtk.Label() - plugin_name.set_markup('Plugin Name') - plugin_option = Gtk.Label() - plugin_option.set_markup('Plugin Options') - box.pack_start(plugin_name, True, True, 0) - box.pack_start(plugin_option, True, True, 0) - row.add(box) - - self.listbox_summary_of_active_profile.add(row) - - sep = Gtk.Separator.new(Gtk.Orientation.HORIZONTAL) - self.listbox_summary_of_active_profile.add(sep) - sep.show() - - for u in self.active_profile.units: - row = Gtk.ListBoxRow() - hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, - spacing=0) - hbox.set_homogeneous(True) - row.add(hbox) - label = Gtk.Label() - label.set_markup(u) - label.set_justify(Gtk.Justification.LEFT) - hbox.pack_start(label, False, True, 1) - - grid = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, - spacing=0) - grid.set_homogeneous(True) - for o in self.active_profile.units[u].options: - label_option = Gtk.Label() - label_option.set_markup(o + ' = ' + '' - + self.active_profile.units[u].options[o] - + '') - grid.pack_start(label_option, False, True, 0) - - hbox.pack_start(grid, False, True, 0) - self.listbox_summary_of_active_profile.add(row) - separator = Gtk.Separator.new(Gtk.Orientation.HORIZONTAL) - self.listbox_summary_of_active_profile.add(separator) - separator.show() - - self.listbox_summary_of_active_profile.show_all() - # def on_treeview_button_press_event(self, treeview, event): # popup = Gtk.Menu() # popup.append(Gtk.MenuItem('add'))