summaryrefslogtreecommitdiff
path: root/gtk/gtkenums.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-12 21:46:55 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:02 +0100
commit1be9d6ebc9a804b12e0b3c9d8180731ecc3d33aa (patch)
tree913c158ed42a56c50144a29b70dbb6eb51f01ad6 /gtk/gtkenums.h
parent1487b346798889b93d094928cbc9d4033e3c16aa (diff)
downloadgtk+-1be9d6ebc9a804b12e0b3c9d8180731ecc3d33aa.tar.gz
Document missing GtkStateType values.
The documentation has also moved to gtkenums.h.
Diffstat (limited to 'gtk/gtkenums.h')
-rw-r--r--gtk/gtkenums.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 7393a7a2d1..63cc9ee4f3 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -361,6 +361,27 @@ typedef enum
} GtkShadowType;
/* Widget states */
+
+/**
+ * GtkStateType:
+ *
+ * This type indicates the current state of a widget; the state determines how
+ * the widget is drawn. The #GtkStateType enumeration is also used to
+ * identify different colors in a #GtkStyle for drawing, so states can be
+ * used for subparts of a widget as well as entire widgets.
+ *
+ * @GTK_STATE_NORMAL: State during normal operation.
+ * @GTK_STATE_ACTIVE: State of a currently active widget, such as a depressed button.
+ * @GTK_STATE_PRELIGHT: State indicating that the mouse pointer is over
+ * the widget and the widget will respond to mouse clicks.
+ * @GTK_STATE_SELECTED: State of a selected item, such the selected row in a list.
+ * @GTK_STATE_INSENSITIVE: State indicating that the widget is
+ * unresponsive to user actions.
+ * @GTK_STATE_INCONSISTENT: The widget is inconsistent, such as checkbuttons
+ * or radiobuttons that aren't either set to %TRUE nor %FALSE,
+ * or buttons requiring the user attention.
+ * @GTK_STATE_FOCUSED: The widget has the keyboard focus.
+ */
typedef enum
{
GTK_STATE_NORMAL,