Re: disabling buttons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ian Strascina <istrasci@xxxxxxxxxxx> 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-----
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux