summaryrefslogtreecommitdiff
path: root/gtk/gtkcssvalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-07-16 14:28:58 +0200
committerBenjamin Otte <otte@redhat.com>2012-08-28 15:40:57 +0200
commit6dc3113edc484d9ac1bb1ca248177e279658d31e (patch)
tree7df192a75573088e45a2511067eea414444f535d /gtk/gtkcssvalue.c
parent36c79712a120eac52d600c90ecd2affc34d21b50 (diff)
downloadgtk+-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/gtkcssvalue.c')
-rw-r--r--gtk/gtkcssvalue.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk/gtkcssvalue.c b/gtk/gtkcssvalue.c
index d07a1ca113..5d5d39227f 100644
--- a/gtk/gtkcssvalue.c
+++ b/gtk/gtkcssvalue.c
@@ -61,6 +61,20 @@ _gtk_css_value_unref (GtkCssValue *value)
value->class->free (value);
}
+/**
+ * _gtk_css_value_compute:
+ * @value: the value to compute from
+ * @property_id: the ID of the property to compute
+ * @context: the context to use for resolving
+ *
+ * Converts the specified @value into the computed value for the CSS
+ * property given by @property_id 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>.
+ *
+ * Returns: the comptued value
+ **/
GtkCssValue *
_gtk_css_value_compute (GtkCssValue *value,
guint property_id,
@@ -124,6 +138,15 @@ _gtk_css_value_to_string (const GtkCssValue *value)
return g_string_free (string, FALSE);
}
+/**
+ * _gtk_css_value_print:
+ * @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_value_print (const GtkCssValue *value,
GString *string)