static void
gtk_css_value_string_free (GtkCssValue *value)
{
+ g_free (value->string);
g_slice_free (GtkCssValue, value);
}
+static GtkCssValue *
+gtk_css_value_string_compute (GtkCssValue *value,
+ guint property_id,
+ GtkStyleProviderPrivate *provider,
+ GtkCssComputedValues *values,
+ GtkCssComputedValues *parent_values,
+ GtkCssDependencies *dependencies)
+{
+ return _gtk_css_value_ref (value);
+}
+
static gboolean
gtk_css_value_string_equal (const GtkCssValue *value1,
const GtkCssValue *value2)
static GtkCssValue *
gtk_css_value_string_transition (GtkCssValue *start,
GtkCssValue *end,
+ guint property_id,
double progress)
{
return NULL;
char *string = value->string;
gsize len;
+ if (string == NULL)
+ {
+ g_string_append (str, "none");
+ return;
+ }
+
g_string_append_c (str, '"');
do {
static const GtkCssValueClass GTK_CSS_VALUE_STRING = {
gtk_css_value_string_free,
+ gtk_css_value_string_compute,
gtk_css_value_string_equal,
gtk_css_value_string_transition,
gtk_css_value_string_print
static const GtkCssValueClass GTK_CSS_VALUE_IDENT = {
gtk_css_value_string_free,
+ gtk_css_value_string_compute,
gtk_css_value_string_equal,
gtk_css_value_string_transition,
gtk_css_value_ident_print