diff options
author | Matthias Clasen <mclasen@redhat.com> | 2008-11-01 04:15:14 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-11-01 04:15:14 +0000 |
commit | 4f8f288163a0ae8ba8b6e05abb2df52566c8e464 (patch) | |
tree | 0bf15fc1bec213cac433cb2ad332762e1a5e87b9 /gtk/gtkstyle.h | |
parent | 54dbd8c1a4b001547a03e91804c1ed2e0436923a (diff) | |
download | gtk+-4f8f288163a0ae8ba8b6e05abb2df52566c8e464.tar.gz |
Bug 412134 – Add API to query style properties from the style
2008-11-01 Matthias Clasen <mclasen@redhat.com>
Bug 412134 – Add API to query style properties from the style
* gtk/gtk.symbols:
* gtk/gtkstyle.[hc]: Add getters for style properties to
avoid the need for ugly workarounds with dummy widget instances.
Patch by Mariano Suárez-Alvarez
svn path=/trunk/; revision=21744
Diffstat (limited to 'gtk/gtkstyle.h')
-rw-r--r-- | gtk/gtkstyle.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h index bef5c2bb83..2b7d66734c 100644 --- a/gtk/gtkstyle.h +++ b/gtk/gtkstyle.h @@ -863,6 +863,19 @@ GtkBorder *gtk_border_new (void) G_GNUC_MALLOC; GtkBorder *gtk_border_copy (const GtkBorder *border_); void gtk_border_free (GtkBorder *border_); +void gtk_style_get_property (GtkStyle *style, + GType widget_type, + const gchar *property_name, + GValue *value); +void gtk_style_get_valist (GtkStyle *style, + GType widget_type, + const gchar *first_property_name, + va_list var_args); +void gtk_style_get (GtkStyle *style, + GType widget_type, + const gchar *first_property_name, + ...) G_GNUC_NULL_TERMINATED; + /* --- private API --- */ const GValue* _gtk_style_peek_property_value (GtkStyle *style, GType widget_type, |