diff options
author | Benjamin Otte <otte@redhat.com> | 2012-07-16 14:28:58 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:40:57 +0200 |
commit | 6dc3113edc484d9ac1bb1ca248177e279658d31e (patch) | |
tree | 7df192a75573088e45a2511067eea414444f535d /gtk/gtkcssstyleproperty.c | |
parent | 36c79712a120eac52d600c90ecd2affc34d21b50 (diff) | |
download | gtk+-6dc3113edc484d9ac1bb1ca248177e279658d31e.tar.gz |
cssstyleproperty: Get rid of unused API
Both _gtk_css_style_property_print_value() and
_gtk_css_style_property_compute_value() aren't necessary anymore and are
replaced by _gtk_css_value_print() and _gtk_css_value_comptue()
respectively.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 8607af52a0..98e137d01d 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -227,27 +227,9 @@ gtk_css_style_property_real_parse_value (GtkCssStyleProperty *property, } static void -gtk_css_style_property_real_print_value (GtkCssStyleProperty *property, - const GtkCssValue *value, - GString *string) -{ - _gtk_css_value_print (value, string); -} - -static GtkCssValue * -gtk_css_style_property_real_compute_value (GtkCssStyleProperty *property, - GtkStyleContext *context, - GtkCssValue *specified) -{ - return _gtk_css_value_compute (specified, _gtk_css_style_property_get_id (property), context); -} - -static void _gtk_css_style_property_init (GtkCssStyleProperty *property) { property->parse_value = gtk_css_style_property_real_parse_value; - property->print_value = gtk_css_style_property_real_print_value; - property->compute_value = gtk_css_style_property_real_compute_value; } /** @@ -371,52 +353,3 @@ _gtk_css_style_property_get_initial_value (GtkCssStyleProperty *property) return property->initial_value; } - -/** - * _gtk_css_style_property_compute_value: - * @property: the property - * @computed: (out): an uninitialized value to be filled with the result - * @context: the context to use for resolving - * @specified: the value to compute from - * - * Converts the @specified value into the @computed value using the - * information in @context. This step is explained in detail in - * <ulink url="http://www.w3.org/TR/css3-cascade/#computed> - * the CSS documentation</ulink>. - **/ -GtkCssValue * -_gtk_css_style_property_compute_value (GtkCssStyleProperty *property, - GtkStyleContext *context, - GtkCssValue *specified) -{ - g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), NULL); - g_return_val_if_fail (GTK_IS_STYLE_CONTEXT (context), NULL); - - return property->compute_value (property, context, specified); -} - -/** - * _gtk_css_style_property_print_value: - * @property: the property - * @value: the value to print - * @string: the string to print to - * - * Prints @value to the given @string in CSS format. The @value must be a - * valid specified value as parsed using the parse functions or as assigned - * via _gtk_style_property_assign(). - **/ -void -_gtk_css_style_property_print_value (GtkCssStyleProperty *property, - GtkCssValue *value, - GString *string) -{ - g_return_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property)); - g_return_if_fail (value != NULL); - g_return_if_fail (string != NULL); - - if (_gtk_css_value_is_inherit (value) || - _gtk_css_value_is_initial (value)) - _gtk_css_value_print (value, string); - else - property->print_value (property, value, string); -} |