Add st_widget_peek_theme_node()

Sometimes it's useful to get the theme node if there is one and do
nothing and wait for the ::style-changed signal if there is no theme
node. Add st_widget_peek_theme_node() that just gets the current
theme node if available. The caller must handle a %NULL return.

https://bugzilla.gnome.org/show_bug.cgi?id=633865
This commit is contained in:
Owen W. Taylor
2010-11-02 16:09:49 -04:00
parent 4917c79d09
commit 8d6ab6fe84
2 changed files with 27 additions and 0 deletions

View File

@ -151,6 +151,7 @@ gboolean st_widget_navigate_focus (StWidget *widg
/* Only to be used by sub-classes of StWidget */
void st_widget_style_changed (StWidget *widget);
StThemeNode * st_widget_get_theme_node (StWidget *widget);
StThemeNode * st_widget_peek_theme_node (StWidget *widget);
/* debug methods */
char *st_describe_actor (ClutterActor *actor);