st-widget: Add method to clear background-image

For performance reasons, resources required to paint a widget are
aggressively cached; we know of at least one case where our caching
prevents updating the used background-image correctly, so add explicit
API to clear all associated cache data.

https://bugzilla.gnome.org/show_bug.cgi?id=679268
This commit is contained in:
Florian Müllner
2012-09-21 16:21:40 +02:00
parent c4c470c1f3
commit cd024e21f0
2 changed files with 37 additions and 0 deletions

View File

@@ -142,6 +142,8 @@ ClutterActor * st_widget_get_label_actor (StWidget *widg
void st_widget_set_label_actor (StWidget *widget,
ClutterActor *label);
void st_widget_clear_background_image (StWidget *widget);
/* Only to be used by sub-classes of StWidget */
void st_widget_style_changed (StWidget *widget);
StThemeNode * st_widget_get_theme_node (StWidget *widget);