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