|
|
2a7e68 |
diff --git a/tuned-gui.glade b/tuned-gui.glade
|
|
|
2a7e68 |
index 36e173a..30dd51a 100644
|
|
|
2a7e68 |
--- a/tuned-gui.glade
|
|
|
2a7e68 |
+++ b/tuned-gui.glade
|
|
|
2a7e68 |
@@ -1,7 +1,6 @@
|
|
|
2a7e68 |
|
|
|
2a7e68 |
|
|
|
2a7e68 |
<interface>
|
|
|
2a7e68 |
- <requires lib="gtk+" version="3.10"/>
|
|
|
2a7e68 |
<object class="GtkAboutDialog" id="aboutdialog1">
|
|
|
2a7e68 |
<property name="can_focus">False</property>
|
|
|
2a7e68 |
<property name="type_hint">dialog</property>
|
|
|
2a7e68 |
@@ -729,12 +728,6 @@
|
|
|
2a7e68 |
<object class="GtkViewport" id="viewport1">
|
|
|
2a7e68 |
<property name="visible">True</property>
|
|
|
2a7e68 |
<property name="can_focus">False</property>
|
|
|
2a7e68 |
- <child>
|
|
|
2a7e68 |
- <object class="GtkListBox" id="listboxSummaryOfActiveProfile">
|
|
|
2a7e68 |
- <property name="visible">True</property>
|
|
|
2a7e68 |
- <property name="can_focus">False</property>
|
|
|
2a7e68 |
- </object>
|
|
|
2a7e68 |
- </child>
|
|
|
2a7e68 |
</object>
|
|
|
2a7e68 |
<packing>
|
|
|
2a7e68 |
<property name="expand">False</property>
|
|
|
2a7e68 |
diff --git a/tuned-gui.py b/tuned-gui.py
|
|
|
3424af |
index b525e8d..871857a 100755
|
|
|
2a7e68 |
--- a/tuned-gui.py
|
|
|
2a7e68 |
+++ b/tuned-gui.py
|
|
|
3424af |
@@ -302,8 +302,6 @@ class Base(object):
|
|
|
2a7e68 |
self.label_actual_profile.set_text(self.controller.active_profile())
|
|
|
3424af |
if self.config.get(consts.CFG_RECOMMEND_COMMAND):
|
|
|
3424af |
self.label_recommended_profile.set_text(self.controller.recommend_profile())
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile = \
|
|
|
2a7e68 |
- self.builder.get_object('listboxSummaryOfActiveProfile')
|
|
|
2a7e68 |
|
|
|
2a7e68 |
self.data_for_listbox_summary_of_active_profile()
|
|
|
2a7e68 |
self.comboboxtext_fast_change_profile.set_model(self.treestore_profiles)
|
|
|
3424af |
@@ -428,9 +426,6 @@ class Base(object):
|
|
|
2a7e68 |
This method is emited after change profile and on startup of app.
|
|
|
2a7e68 |
"""
|
|
|
2a7e68 |
|
|
|
2a7e68 |
- for row in self.listbox_summary_of_active_profile:
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.remove(row)
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
if self.is_tuned_connection_ok():
|
|
|
2a7e68 |
self.active_profile = \
|
|
|
2a7e68 |
self.manager.get_profile(self.controller.active_profile())
|
|
|
3424af |
@@ -446,51 +441,6 @@ class Base(object):
|
|
|
2a7e68 |
|
|
|
2a7e68 |
self.label_summary_included_profile.set_text('None')
|
|
|
2a7e68 |
|
|
|
2a7e68 |
- row = Gtk.ListBoxRow()
|
|
|
2a7e68 |
- box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, spacing=0)
|
|
|
2a7e68 |
- plugin_name = Gtk.Label()
|
|
|
2a7e68 |
- plugin_name.set_markup('Plugin Name')
|
|
|
2a7e68 |
- plugin_option = Gtk.Label()
|
|
|
2a7e68 |
- plugin_option.set_markup('Plugin Options')
|
|
|
2a7e68 |
- box.pack_start(plugin_name, True, True, 0)
|
|
|
2a7e68 |
- box.pack_start(plugin_option, True, True, 0)
|
|
|
2a7e68 |
- row.add(box)
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.add(row)
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- sep = Gtk.Separator.new(Gtk.Orientation.HORIZONTAL)
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.add(sep)
|
|
|
2a7e68 |
- sep.show()
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- for u in self.active_profile.units:
|
|
|
2a7e68 |
- row = Gtk.ListBoxRow()
|
|
|
2a7e68 |
- hbox = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL,
|
|
|
2a7e68 |
- spacing=0)
|
|
|
2a7e68 |
- hbox.set_homogeneous(True)
|
|
|
2a7e68 |
- row.add(hbox)
|
|
|
2a7e68 |
- label = Gtk.Label()
|
|
|
2a7e68 |
- label.set_markup(u)
|
|
|
2a7e68 |
- label.set_justify(Gtk.Justification.LEFT)
|
|
|
2a7e68 |
- hbox.pack_start(label, False, True, 1)
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- grid = Gtk.Box(orientation=Gtk.Orientation.VERTICAL,
|
|
|
2a7e68 |
- spacing=0)
|
|
|
2a7e68 |
- grid.set_homogeneous(True)
|
|
|
2a7e68 |
- for o in self.active_profile.units[u].options:
|
|
|
2a7e68 |
- label_option = Gtk.Label()
|
|
|
2a7e68 |
- label_option.set_markup(o + ' = ' + ''
|
|
|
2a7e68 |
- + self.active_profile.units[u].options[o]
|
|
|
2a7e68 |
- + '')
|
|
|
2a7e68 |
- grid.pack_start(label_option, False, True, 0)
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- hbox.pack_start(grid, False, True, 0)
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.add(row)
|
|
|
2a7e68 |
- separator = Gtk.Separator.new(Gtk.Orientation.HORIZONTAL)
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.add(separator)
|
|
|
2a7e68 |
- separator.show()
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
- self.listbox_summary_of_active_profile.show_all()
|
|
|
2a7e68 |
-
|
|
|
2a7e68 |
# def on_treeview_button_press_event(self, treeview, event):
|
|
|
2a7e68 |
# popup = Gtk.Menu()
|
|
|
2a7e68 |
# popup.append(Gtk.MenuItem('add'))
|