FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > 64 Studio > 64 Studio User

 
 
LinkBack Thread Tools
 
Old 12-18-2009, 06:41 PM
Chris Lumens
 
Default 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org