[gtk+/gtk-style-context: 351/533] Document missing GtkStateType values.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 351/533] Document missing GtkStateType values.
- Date: Wed, 1 Dec 2010 02:35:19 +0000 (UTC)
commit f64e05ddb6dcce186d43c5dcfcd85b6a07284c04
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 12 21:46:55 2010 +0100
Document missing GtkStateType values.
The documentation has also moved to gtkenums.h.
docs/reference/gtk/tmpl/gtkenums.sgml | 16 ----------------
gtk/gtkenums.h | 21 +++++++++++++++++++++
2 files changed, 21 insertions(+), 16 deletions(-)
---
diff --git a/docs/reference/gtk/tmpl/gtkenums.sgml b/docs/reference/gtk/tmpl/gtkenums.sgml
index 90c5817..4f37bac 100644
--- a/docs/reference/gtk/tmpl/gtkenums.sgml
+++ b/docs/reference/gtk/tmpl/gtkenums.sgml
@@ -313,22 +313,6 @@ Used to change the appearance of an outline typically provided by a #GtkFrame.
@GTK_SHADOW_ETCHED_IN: The outline has a sunken 3d appearance.
@GTK_SHADOW_ETCHED_OUT: The outline has a raised 3d appearance
-<!-- ##### ENUM GtkStateType ##### -->
-<para>
-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.
-</para>
-
- 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.
-
<!-- ##### ENUM GtkToolbarStyle ##### -->
<para>
Used to customize the appearance of a #GtkToolbar. Note that
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 7393a7a..63cc9ee 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]