Gtk.Widget.Sensitive Property
Sets the sensitivity of the Gtk.Widget. A widget is sensitive if the user can interact with it, otherwise, it is grayed.

Syntax

[GLib.Property("sensitive")]
public bool Sensitive { set; get; }

Value

true if the widget responds to input.

Remarks

Insensitive widgets are "grayed out" and the user can't interact with them. Insensitive widgets are known as "inactive", "disabled", or "ghosted" in some other toolkits. The sensitivity of a widget determines whether it will receive certain events (e.g. button or key presses).

If the ancestor (parent) widget sesitivity is set to false, it does not matter what the sensitivity property have, the widget will not be sensitive. Use widget.Parent.Sensitive to check whether the ancestor widget is sensitive or not.

Widget.Parent Widget.GetAncestor(uint)

When the sensitive property is set to false, the widget property Widget.CanDefault will return false.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)