pixelcache: Don't have a style context argument

That would imply the pixelcache monitors the style context for changes
and it doesn't do that.

Its only use case was opacity checks, so add
gtk_pixel_cache_se_is_opaque() instead.
This commit is contained in:
Benjamin Otte
2016-02-25 16:14:37 +01:00
parent 71a9fd9d83
commit 4e8fb33f56
4 changed files with 46 additions and 23 deletions

View File

@ -54,8 +54,8 @@ void _gtk_pixel_cache_set_content (GtkPixelCache *cache,
gboolean _gtk_pixel_cache_get_always_cache (GtkPixelCache *cache);
void _gtk_pixel_cache_set_always_cache (GtkPixelCache *cache,
gboolean always_cache);
void _gtk_pixel_cache_set_style_context(GtkPixelCache *cache,
GtkStyleContext *style_context);
void gtk_pixel_cache_set_is_opaque (GtkPixelCache *cache,
gboolean is_opaque);
G_END_DECLS