[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/5] Do not show the "Add Advanced" button on the basic filtering screen.



Since the basic screen doesn't even have tabs to display the kinds of devices
that can be added with this button, it doesn't make any sense to show it.
---
 iw/filter_gui.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 0d02dd5..e2a9172 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -458,12 +458,20 @@ class FilterWindow(InstallWindow):
         for line in self.store:
             line[VISIBLE_COL] = self.pages[page_num].cb.isMember(line[OBJECT_COL])
 
+    def _show_buttons(self, *args, **kwargs):
+        if self.anaconda.id.simpleFilter:
+            self.buttonBox.hide()
+            self.buttonBox.unrealize()
+        else:
+            self.buttonBox.show_all()
+
     def getScreen(self, anaconda):
         (self.xml, self.vbox) = gui.getGladeWidget("filter.glade", "vbox")
         self.buttonBox = self.xml.get_widget("buttonBox")
         self.notebook = self.xml.get_widget("notebook")
         self.addAdvanced = self.xml.get_widget("addAdvancedButton")
 
+        self.buttonBox.connect("realize", self._show_buttons)
         self.notebook.connect("switch-page", self._page_switched)
         self.addAdvanced.connect("clicked", self._add_advanced_clicked)
 
-- 
1.6.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]