[gtk/wip/baedert/for-master: 2/3] stylecontext: Stop exporting _resolve_color



commit 63ab188f7d51e684c17c1ba40ee3a0eba1f565a7
Author: Timm Bäder <mail baedert org>
Date:   Fri Aug 23 17:09:54 2019 +0200

    stylecontext: Stop exporting _resolve_color
    
    Only used in gtkstylecontext.c

 gtk/gtkstylecontext.c        | 10 +++++-----
 gtk/gtkstylecontextprivate.h |  3 ---
 2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index b8e032d10b..7ba0c3f61d 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -1327,10 +1327,10 @@ gtk_style_context_get_display (GtkStyleContext *context)
   return priv->display;
 }
 
-gboolean
-_gtk_style_context_resolve_color (GtkStyleContext    *context,
-                                  GtkCssValue        *color,
-                                  GdkRGBA            *result)
+static gboolean
+gtk_style_context_resolve_color (GtkStyleContext    *context,
+                                 GtkCssValue        *color,
+                                 GdkRGBA            *result)
 {
   GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
   GtkCssValue *val;
@@ -1377,7 +1377,7 @@ gtk_style_context_lookup_color (GtkStyleContext *context,
   if (value == NULL)
     return FALSE;
 
-  return _gtk_style_context_resolve_color (context, value, color);
+  return gtk_style_context_resolve_color (context, value, color);
 }
 
 static GtkCssStyleChange magic_number;
diff --git a/gtk/gtkstylecontextprivate.h b/gtk/gtkstylecontextprivate.h
index 81a2e2e3f1..f9abde3493 100644
--- a/gtk/gtkstylecontextprivate.h
+++ b/gtk/gtkstylecontextprivate.h
@@ -57,9 +57,6 @@ void            gtk_style_context_validate                   (GtkStyleContext *c
                                                               GtkCssStyleChange *change);
 gboolean       _gtk_style_context_check_region_name          (const gchar     *str);
 
-gboolean       _gtk_style_context_resolve_color              (GtkStyleContext    *context,
-                                                              GtkCssValue        *color,
-                                                              GdkRGBA            *result);
 void           _gtk_style_context_get_cursor_color           (GtkStyleContext    *context,
                                                               GdkRGBA            *primary_color,
                                                               GdkRGBA            *secondary_color);


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