forked from AuroraMiddleware/gtk
themingengine: Add _gtk_theming_engine_peek_property()
This is useful for getting at computed values and allows accessing images before the code autoconverts them to a cairo pattern.
This commit is contained in:
parent
2c8ef919ae
commit
53b4fd69db
@ -338,6 +338,16 @@ _gtk_theming_engine_set_context (GtkThemingEngine *engine,
|
||||
priv->context = context;
|
||||
}
|
||||
|
||||
const GValue *
|
||||
_gtk_theming_engine_peek_property (GtkThemingEngine *engine,
|
||||
const char *property_name)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), NULL);
|
||||
g_return_val_if_fail (property_name != NULL, NULL);
|
||||
|
||||
return _gtk_style_context_peek_property (engine->priv->context, property_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_theming_engine_get_property:
|
||||
* @engine: a #GtkThemingEngine
|
||||
|
@ -21,10 +21,14 @@
|
||||
#define __GTK_THEMING_ENGINE_PRIVATE_H__
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include "gtk/gtkthemingengine.h"
|
||||
|
||||
void _gtk_theming_engine_paint_spinner (cairo_t *cr,
|
||||
gdouble radius,
|
||||
gdouble progress,
|
||||
GdkRGBA *color);
|
||||
|
||||
const GValue *_gtk_theming_engine_peek_property (GtkThemingEngine *engine,
|
||||
const char *property_name);
|
||||
|
||||
#endif /* __GTK_THEMING_ENGINE_PRIVATE_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user