How do I disable or enable a widget, such as a button?

GTK+ FAQ
<<< Previous | Development with GTK+: general questions | Next >>>

# How do I disable or enable a widget, such as a button?

To disable (or to enable) a widget, use the `gtk_widget_set_sensitive()` function. The first parameter is you widget pointer. The second parameter is a boolean value: when this value is TRUE, the widget is enabled.

<<< Previous | Home | Next >>>
How do I add a popup menu to my GTK+ application? | Up | Shouldn't the text argument in the gtk_clist_* functions be declared const?