diff options
author | Benjamin Otte <otte@redhat.com> | 2020-01-28 00:46:43 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-01-28 02:58:02 +0100 |
commit | 5e4b102273b9e085fba9be5923f4c0f14d68223b (patch) | |
tree | 039cb956e906e6dd472d9ed9e9da9bbaf3c3d994 /gtk/gtkcssstyleproperty.c | |
parent | 632fab0ca702b600fde492319ab0aa2d9d3bbd08 (diff) | |
download | gtk+-5e4b102273b9e085fba9be5923f4c0f14d68223b.tar.gz |
styleproperty: Remove ability to query properties
With gtk_style_context_get() gone, this is no longer used.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 7a7b77c084..473ba206f7 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -120,22 +120,6 @@ gtk_css_style_property_get_property (GObject *object, } } -static void -_gtk_css_style_property_query (GtkStyleProperty *property, - GValue *value, - GtkStyleQueryFunc query_func, - gpointer query_data) -{ - GtkCssStyleProperty *style_property = GTK_CSS_STYLE_PROPERTY (property); - GtkCssValue *css_value; - - css_value = (* query_func) (GTK_CSS_STYLE_PROPERTY (property)->id, query_data); - if (css_value == NULL) - css_value =_gtk_css_style_property_get_initial_value (style_property); - - style_property->query_value (style_property, css_value, value); -} - static GtkCssValue * gtk_css_style_property_parse_value (GtkStyleProperty *property, GtkCssParser *parser) @@ -218,7 +202,6 @@ _gtk_css_style_property_class_init (GtkCssStylePropertyClass *klass) GTK_TYPE_CSS_VALUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); - property_class->query = _gtk_css_style_property_query; property_class->parse_value = gtk_css_style_property_parse_value; klass->style_properties = g_ptr_array_new (); |