summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-10-07 18:26:14 (GMT)
committerOwen W. Taylor <otaylor@fishsoup.net>2009-10-07 18:26:14 (GMT)
commit400326e5499fd04ef486cc32d6638ca343dbdd39 (patch)
tree0ad7f2ce8e86706c8f40d86e5b7d327038f30ca9
parentd7af6d40e38b2c0ebc03a916f06574efd641dd2d (diff)
downloadgnome-shell-400326e5499fd04ef486cc32d6638ca343dbdd39.tar.gz
gnome-shell-400326e5499fd04ef486cc32d6638ca343dbdd39.tar.xz
Add docs and (transfer none) to st_widget_get_theme_node()
st_widget_get_theme_node() was missing the (transfer none) GObject Introspection causing crashes. Add that and document the function.
-rw-r--r--src/st/st-widget.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 02c57cc..2570ac6 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -699,6 +699,20 @@ get_root_theme_node (ClutterStage *stage)
return st_theme_context_get_root_node (context);
}
+/**
+ * st_widget_get_theme_node:
+ * @widget: a #StWidget
+ *
+ * Gets the theme node holding style information for the widget.
+ * The theme node is used to access standard and custom CSS
+ * properties of the widget.
+ *
+ * Return value: (transfer none): the theme node for the widget.
+ * This is owned by the widget. When attributes of the widget
+ * or the environment that affect the styling change (for example
+ * the style_class property of the widget), it will be recreated,
+ * and the ::style-changed signal will be emitted on the widget.
+ */
StThemeNode *
st_widget_get_theme_node (StWidget *widget)
{