Re: disabling buttons
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: Ian Strascina <istrasci cs nmsu edu>
- Cc: gtkmm-list gnome org, gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: disabling buttons
- Date: Tue, 02 Nov 2004 20:45:26 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ian Strascina <istrasci cs nmsu edu> writes:
> Is there anyway to disable a GTK button once it has been pressed (and
> re-enabled upon other conditions) similar to
> javax.swing.AbstractButton.setEnabled(boolean)...??? I have a
> simulation running and one button that starts it all... I would like
> to ensure the "start" button cannot be pressed while the simulation is
> running... Is there any way to do this...???
gtk_widget_set_sensitive(widget, FALSE)?
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFBh/HlVcFcaSW/uEgRAmEAAKDCieCG0bQqv24kGrMSWxaOvta9LgCcCTpu
XkC2NltQ8Zq+aJNeWOAcAxw=
=f91M
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]