summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-02-07 19:26:53 +0000
committerChris Lumens <clumens@redhat.com>2005-02-07 19:26:53 +0000
commit85c0b018dd9fb1c0780397fff333c6993e3f91ae (patch)
tree53ce60e0c3d3c0cbcf9dd034dc0dfd6b611540f7 /gui.py
parent83f0a5fc4c6af74777c5aa95ceba6277342edd64 (diff)
downloadanaconda-85c0b018dd9fb1c0780397fff333c6993e3f91ae.tar.gz
anaconda-85c0b018dd9fb1c0780397fff333c6993e3f91ae.tar.xz
anaconda-85c0b018dd9fb1c0780397fff333c6993e3f91ae.zip
If help is disabled, don't redraw the help pane when the next button is
clicked (#145691).
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py39
1 files changed, 19 insertions, 20 deletions
diff --git a/gui.py b/gui.py
index 32056b5d3..64c6506a3 100755
--- a/gui.py
+++ b/gui.py
@@ -1074,24 +1074,8 @@ class InstallControlWindow:
return 1
def helpClicked (self, *args):
- if self.displayHelp:
- self.displayHelp = False
- self.mainxml.get_widget("hideHelpButton").hide()
- self.mainxml.get_widget("showHelpButton").show()
- self.mainxml.get_widget("showHelpButton").grab_focus()
-
- self.mainxml.get_widget("help").hide_all()
- self.mainxml.get_widget("mainTable").set_homogeneous(False)
- else:
- self.displayHelp = True
- self.mainxml.get_widget("showHelpButton").hide()
- self.mainxml.get_widget("hideHelpButton").show()
- self.mainxml.get_widget("hideHelpButton").grab_focus()
-
- self.mainxml.get_widget("help").show_all()
- self.mainxml.get_widget("mainTable").set_homogeneous(True)
-
- self.refreshHelp()
+ self.displayHelp = not self.displayHelp
+ self.refreshHelp()
def debugClicked (self, *args):
try:
@@ -1114,6 +1098,21 @@ class InstallControlWindow:
# make sure we're refreshing the help for an actual screen
if self.currentWindow is None:
return
+
+ if self.displayHelp:
+ self.mainxml.get_widget("showHelpButton").hide()
+ self.mainxml.get_widget("hideHelpButton").show()
+ self.mainxml.get_widget("hideHelpButton").grab_focus()
+
+ self.mainxml.get_widget("help").show_all()
+ self.mainxml.get_widget("mainTable").set_homogeneous(True)
+ else:
+ self.mainxml.get_widget("hideHelpButton").hide()
+ self.mainxml.get_widget("showHelpButton").show()
+ self.mainxml.get_widget("showHelpButton").grab_focus()
+
+ self.mainxml.get_widget("help").hide_all()
+ self.mainxml.get_widget("mainTable").set_homogeneous(False)
buffer = htmlbuffer.HTMLBuffer()
ics = self.currentWindow.getICS()
@@ -1220,9 +1219,9 @@ class InstallControlWindow:
self.mainxml.get_widget("showHelpButton").set_sensitive(ics.getHelpEnabled())
if ics.getHelpEnabled() == gtk.FALSE and self.displayHelp:
- self.helpClicked()
+ self.refreshHelp()
elif ics.getHelpEnabled() == gtk.TRUE and not self.displayHelp:
- self.helpClicked()
+ self.refreshHelp()
if ics.getGrabNext():
self.mainxml.get_widget("nextButton").grab_focus()