diff options
author | Mike Fulbright <msf@redhat.com> | 2003-02-12 02:33:39 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-02-12 02:33:39 +0000 |
commit | 1147e19e682027e28dcd8fb0013a76ee439ce743 (patch) | |
tree | fe15df9fc9c42cb1931d91f4e37a029a079dc318 /gui.py | |
parent | 749c464222b7928af4694b6cd65490395d3b139d (diff) | |
download | anaconda-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-x | gui.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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")) |