summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-02-12 02:33:39 +0000
committerMike Fulbright <msf@redhat.com>2003-02-12 02:33:39 +0000
commit1147e19e682027e28dcd8fb0013a76ee439ce743 (patch)
treefe15df9fc9c42cb1931d91f4e37a029a079dc318 /gui.py
parent749c464222b7928af4694b6cd65490395d3b139d (diff)
downloadanaconda-1147e19e682027e28dcd8fb0013a76ee439ce743.tar.gz
anaconda-1147e19e682027e28dcd8fb0013a76ee439ce743.tar.xz
anaconda-1147e19e682027e28dcd8fb0013a76ee439ce743.zip
fix for bug #84078 and gave callback a useful name
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index af2e82b20..1a4300b4e 100755
--- a/gui.py
+++ b/gui.py
@@ -823,22 +823,24 @@ class InstallControlWindow:
mark = textbuffer.create_mark("top", iter, gtk.FALSE)
self.help.scroll_to_mark(mark, 0.0, gtk.FALSE, 0.0, 0.0)
- def close (self, *args):
+ def relnotes_closed (self, *args):
self.textWin.destroy()
for (icon, name, text, func) in self.stockButtons:
if self.__dict__.has_key(name):
- self.__dict__[name].set_sensitive(gtk.TRUE)
+ self.__dict__[name].set_sensitive(self.relnotes_buttonstate[name])
def releaseClicked (self, widget):
self.textWin = gtk.Dialog(parent=mainWindow, flags=gtk.DIALOG_MODAL)
+ self.relnotes_buttonstate={}
for (icon, name, text, func) in self.stockButtons:
if self.__dict__.has_key(name):
+ self.relnotes_buttonstate[name] = self.__dict__[name].get_property("sensitive")
self.__dict__[name].set_sensitive(gtk.FALSE)
table = gtk.Table(3, 3, gtk.FALSE)
self.textWin.vbox.pack_start(table)
self.textWin.add_button('gtk-close', gtk.RESPONSE_NONE)
- self.textWin.connect("response", self.close)
+ self.textWin.connect("response", self.relnotes_closed)
vbox1 = gtk.VBox ()
vbox1.set_border_width (10)
frame = gtk.Frame (_("Release Notes"))