Re: Disable GtkButton

Tristan Van Berkom <[email protected]> Tue, 28 May 2013 16:34:51 +0900
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CAGUy9WJqwFUk2dQ2mG5c29+3gJX7+aSKqgHEU3caSRd_SGNnJw@mail.gmail.com>
On Tue, May 28, 2013 at 4:22 PM, dE <[email protected]> wrote:
> How do you disable a GtkButton in C? I didn't find any API which does this
> in the GtkButton reference.

We don't use the term "disabled" in GTK+ which is probably why you didn't
find it.

Instead we use the term "sensitive", a widget is either "sensitive" or not,
if it is not sensitive then it will not react to any user interaction,
and it will
be drawn differently (typically greyed out).

See gtk_widget_set_sensitive()

Cheers,
    -Tristan

> _______________________________________________
> Glade-users maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/glade-users
_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users