summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleprovider.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-06-18 16:58:16 +0200
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:37:12 +0100
commit6990a012999be09b277cb0048f9416d08fec3836 (patch)
tree5dbe41cf5d198afd6856c350ab12c5a41206f9f6 /gtk/gtkstyleprovider.h
parenteaddc9f254649cd2607e428c023858da17fe5569 (diff)
downloadgtk+-6990a012999be09b277cb0048f9416d08fec3836.tar.gz
GtkStyleProvider: Add method to get widget style properties.
Diffstat (limited to 'gtk/gtkstyleprovider.h')
-rw-r--r--gtk/gtkstyleprovider.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/gtk/gtkstyleprovider.h b/gtk/gtkstyleprovider.h
index 35a7e242d6..5fc30ed42b 100644
--- a/gtk/gtkstyleprovider.h
+++ b/gtk/gtkstyleprovider.h
@@ -40,19 +40,17 @@ G_BEGIN_DECLS
typedef struct GtkStyleProviderIface GtkStyleProviderIface;
typedef struct GtkStyleProvider GtkStyleProvider; /* dummy typedef */
-typedef enum {
- GTK_SELECTOR_TYPE_PATH,
- GTK_SELECTOR_TYPE_NAME,
- GTK_SELECTOR_TYPE_CLASS_PATH,
- GTK_SELECTOR_TYPE_CLASS_NAME
-} GtkSelectorType;
-
struct GtkStyleProviderIface
{
GTypeInterface g_iface;
GtkStyleSet * (* get_style) (GtkStyleProvider *provider,
GtkWidgetPath *path);
+
+ gboolean (* get_style_property) (GtkStyleProvider *provider,
+ GtkWidgetPath *path,
+ const gchar *property_name,
+ GValue *value);
};
GType gtk_style_provider_get_type (void) G_GNUC_CONST;
@@ -60,6 +58,10 @@ GType gtk_style_provider_get_type (void) G_GNUC_CONST;
GtkStyleSet *gtk_style_provider_get_style (GtkStyleProvider *provider,
GtkWidgetPath *path);
+gboolean gtk_style_provider_get_style_property (GtkStyleProvider *provider,
+ GtkWidgetPath *path,
+ const gchar *property_name,
+ GValue *value);
G_END_DECLS