[gtk/wip/baedert/for-master: 27/29] cssinitialvalue: Make _compute public



commit 0b329fdb29e834c24efd110712721a4ba7ed2748
Author: Timm Bäder <mail baedert org>
Date:   Thu Aug 22 19:24:17 2019 +0200

    cssinitialvalue: Make _compute public
    
    So we can use it in cases where the class of css value is known to be an
    initial one.

 gtk/gtkcssinitialvalue.c        | 2 +-
 gtk/gtkcssinitialvalueprivate.h | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkcssinitialvalue.c b/gtk/gtkcssinitialvalue.c
index f65ae08963..db479cfabc 100644
--- a/gtk/gtkcssinitialvalue.c
+++ b/gtk/gtkcssinitialvalue.c
@@ -37,7 +37,7 @@ gtk_css_value_initial_free (GtkCssValue *value)
   g_assert_not_reached ();
 }
 
-static GtkCssValue *
+GtkCssValue *
 gtk_css_value_initial_compute (GtkCssValue      *value,
                                guint             property_id,
                                GtkStyleProvider *provider,
diff --git a/gtk/gtkcssinitialvalueprivate.h b/gtk/gtkcssinitialvalueprivate.h
index 185e1be177..08e501f20f 100644
--- a/gtk/gtkcssinitialvalueprivate.h
+++ b/gtk/gtkcssinitialvalueprivate.h
@@ -27,6 +27,13 @@ G_BEGIN_DECLS
 GtkCssValue *   _gtk_css_initial_value_new            (void);
 GtkCssValue *   _gtk_css_initial_value_get            (void);
 
+GtkCssValue *   gtk_css_value_initial_compute         (GtkCssValue      *value,
+                                                       guint             property_id,
+                                                       GtkStyleProvider *provider,
+                                                       GtkCssStyle      *style,
+                                                       GtkCssStyle      *parent_style);
+
+
 G_END_DECLS
 
 #endif /* __GTK_CSS_INITIAL_VALUE_PRIVATE_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]