css: Merge GtkStyleProviderPrivate into GtkStyleProvider
authorBenjamin Otte <otte@redhat.com>
Tue, 31 Oct 2017 03:31:46 +0000 (04:31 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 31 Oct 2017 03:33:54 +0000 (04:33 +0100)
This is just lots of renaming.

The interface remains private, so the public API does not change, apart
from removing the definition of the Interface object to avoid
subclassing.

62 files changed:
gtk/gtkcssanimatedstyle.c
gtk/gtkcssanimatedstyleprivate.h
gtk/gtkcssarrayvalue.c
gtk/gtkcssbgsizevalue.c
gtk/gtkcssbordervalue.c
gtk/gtkcsscalcvalue.c
gtk/gtkcsscolorvalue.c
gtk/gtkcsscolorvalueprivate.h
gtk/gtkcsscornervalue.c
gtk/gtkcssdimensionvalue.c
gtk/gtkcsseasevalue.c
gtk/gtkcssenumvalue.c
gtk/gtkcssenumvalueprivate.h
gtk/gtkcssfiltervalue.c
gtk/gtkcssiconthemevalue.c
gtk/gtkcssimage.c
gtk/gtkcssimagebuiltin.c
gtk/gtkcssimagecrossfade.c
gtk/gtkcssimagefallback.c
gtk/gtkcssimageicontheme.c
gtk/gtkcssimagelinear.c
gtk/gtkcssimageprivate.h
gtk/gtkcssimageradial.c
gtk/gtkcssimagerecolor.c
gtk/gtkcssimagescaled.c
gtk/gtkcssimageurl.c
gtk/gtkcssimagevalue.c
gtk/gtkcssinheritvalue.c
gtk/gtkcssinitialvalue.c
gtk/gtkcsskeyframes.c
gtk/gtkcsskeyframesprivate.h
gtk/gtkcsslookup.c
gtk/gtkcsslookupprivate.h
gtk/gtkcssnode.c
gtk/gtkcssnodeprivate.h
gtk/gtkcsspalettevalue.c
gtk/gtkcsspathnode.c
gtk/gtkcsspositionvalue.c
gtk/gtkcssprovider.c
gtk/gtkcssrepeatvalue.c
gtk/gtkcssrgbavalue.c
gtk/gtkcssshadowsvalue.c
gtk/gtkcssshadowvalue.c
gtk/gtkcssstaticstyle.c
gtk/gtkcssstaticstyleprivate.h
gtk/gtkcssstringvalue.c
gtk/gtkcsstransformvalue.c
gtk/gtkcsstypesprivate.h
gtk/gtkcssunsetvalue.c
gtk/gtkcssvalue.c
gtk/gtkcssvalueprivate.h
gtk/gtkcsswidgetnode.c
gtk/gtkcsswin32sizevalue.c
gtk/gtksettings.c
gtk/gtkstylecascade.c
gtk/gtkstylecontext.c
gtk/gtkstylecontextprivate.h
gtk/gtkstyleprovider.c
gtk/gtkstyleprovider.h
gtk/gtkstyleproviderprivate.c [deleted file]
gtk/gtkstyleproviderprivate.h
gtk/meson.build

index aadaf97173657dbbb90392e148ab3477ccd78981..6325007bb6fe47a4b7534331964d2f0f295d5eb3 100644 (file)
@@ -324,12 +324,12 @@ gtk_css_animated_style_find_animation (GSList     *animations,
 }
 
 static GSList *
-gtk_css_animated_style_create_css_animations (GSList                  *animations,
-                                              GtkCssStyle             *base_style,
-                                              GtkCssStyle             *parent_style,
-                                              gint64                   timestamp,
-                                              GtkStyleProviderPrivate *provider,
-                                              GtkCssStyle             *source)
+gtk_css_animated_style_create_css_animations (GSList           *animations,
+                                              GtkCssStyle      *base_style,
+                                              GtkCssStyle      *parent_style,
+                                              gint64            timestamp,
+                                              GtkStyleProvider *provider,
+                                              GtkCssStyle      *source)
 {
   GtkCssValue *durations, *delays, *timing_functions, *animation_names;
   GtkCssValue *iteration_counts, *directions, *play_states, *fill_modes;
@@ -369,7 +369,7 @@ gtk_css_animated_style_create_css_animations (GSList                  *animation
         }
       else
         {
-          keyframes = _gtk_style_provider_private_get_keyframes (provider, name);
+          keyframes = gtk_style_provider_get_keyframes (provider, name);
           if (keyframes == NULL)
             continue;
 
@@ -410,11 +410,11 @@ gtk_css_animated_style_apply_animations (GtkCssAnimatedStyle *style)
 }
 
 GtkCssStyle *
-gtk_css_animated_style_new (GtkCssStyle             *base_style,
-                            GtkCssStyle             *parent_style,
-                            gint64                   timestamp,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *previous_style)
+gtk_css_animated_style_new (GtkCssStyle      *base_style,
+                            GtkCssStyle      *parent_style,
+                            gint64            timestamp,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *previous_style)
 {
   GtkCssAnimatedStyle *result;
   GSList *animations;
index 7ae8887eeba5cec14ac05dcad8597a8226820e61..ee0b1a60e252f6f75642e8d72567bb9c058ef80e 100644 (file)
@@ -55,7 +55,7 @@ GType                   gtk_css_animated_style_get_type         (void) G_GNUC_CO
 GtkCssStyle *           gtk_css_animated_style_new              (GtkCssStyle            *base_style,
                                                                  GtkCssStyle            *parent_style,
                                                                  gint64                  timestamp,
-                                                                 GtkStyleProviderPrivate *provider,
+                                                                 GtkStyleProvider       *provider,
                                                                  GtkCssStyle            *previous_style);
 GtkCssStyle *           gtk_css_animated_style_new_advance      (GtkCssAnimatedStyle    *source,
                                                                  GtkCssStyle            *base,
index c1a94c7236cb6ac6848093d56b9e0c7ef8d9633d..27aab6f8c68bb9385c72f9d222fa7e6071a3d1e3 100644 (file)
@@ -43,11 +43,11 @@ gtk_css_value_array_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_array_compute (GtkCssValue             *value,
-                             guint                    property_id,
-                             GtkStyleProviderPrivate *provider,
-                             GtkCssStyle             *style,
-                             GtkCssStyle             *parent_style)
+gtk_css_value_array_compute (GtkCssValue      *value,
+                             guint             property_id,
+                             GtkStyleProvider *provider,
+                             GtkCssStyle      *style,
+                             GtkCssStyle      *parent_style)
 {
   GtkCssValue *result;
   GtkCssValue *i_value;
index 3e25ded7585261bd8b9ed4bfa2d4d6b07a9a1846..ee7d94a0c98e776052a4ebdfa241d2be08ab174a 100644 (file)
@@ -41,11 +41,11 @@ gtk_css_value_bg_size_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_bg_size_compute (GtkCssValue             *value,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_value_bg_size_compute (GtkCssValue      *value,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GtkCssValue *x, *y;
 
index d95196ca025e83bfc6687692b8ea2f80f83405e5..0345ff1e9c0b121e25b7d1474b4d6cc1a264b728 100644 (file)
@@ -42,11 +42,11 @@ gtk_css_value_border_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_border_compute (GtkCssValue             *value,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_border_compute (GtkCssValue      *value,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssValue *values[4];
   GtkCssValue *computed;
index 7ea27cdc78fb8945d255daf1af651a57dcd5f919..0185aff6c7225b49d26226c654867aaa91486761 100644 (file)
@@ -98,11 +98,11 @@ gtk_css_calc_array_add (GPtrArray *array, GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_calc_compute (GtkCssValue             *value,
-                            guint                    property_id,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+gtk_css_value_calc_compute (GtkCssValue      *value,
+                            guint             property_id,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   GtkCssValue *result;
   GPtrArray *array;
index 4bd0f59a024ab91b0ee42f71f2fcd4fde370d5e5..0531db40ac7c074543fbcf19a1c2c7d0be2e3fd9 100644 (file)
@@ -103,10 +103,10 @@ gtk_css_value_color_free (GtkCssValue *color)
 }
 
 static GtkCssValue *
-gtk_css_value_color_get_fallback (guint                    property_id,
-                                  GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style,
-                                  GtkCssStyle             *parent_style)
+gtk_css_value_color_get_fallback (guint             property_id,
+                                  GtkStyleProvider *provider,
+                                  GtkCssStyle      *style,
+                                  GtkCssStyle      *parent_style)
 {
   static const GdkRGBA transparent = { 0, 0, 0, 0 };
 
@@ -143,10 +143,10 @@ gtk_css_value_color_get_fallback (guint                    property_id,
 }
 
 GtkCssValue *
-_gtk_css_color_value_resolve (GtkCssValue             *color,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssValue             *current,
-                              GSList                  *cycle_list)
+_gtk_css_color_value_resolve (GtkCssValue      *color,
+                              GtkStyleProvider *provider,
+                              GtkCssValue      *current,
+                              GSList           *cycle_list)
 {
   GtkCssValue *value;
 
@@ -167,7 +167,7 @@ _gtk_css_color_value_resolve (GtkCssValue             *color,
         if (g_slist_find (cycle_list, color))
           return NULL;
 
-        named = _gtk_style_provider_private_get_color (provider, color->sym_col.name);
+        named = gtk_style_provider_get_color (provider, color->sym_col.name);
        if (named == NULL)
          return NULL;
 
@@ -289,11 +289,11 @@ _gtk_css_color_value_resolve (GtkCssValue             *color,
 }
 
 static GtkCssValue *
-gtk_css_value_color_compute (GtkCssValue             *value,
-                             guint                    property_id,
-                             GtkStyleProviderPrivate *provider,
-                             GtkCssStyle             *style,
-                             GtkCssStyle             *parent_style)
+gtk_css_value_color_compute (GtkCssValue      *value,
+                             guint             property_id,
+                             GtkStyleProvider *provider,
+                             GtkCssStyle      *style,
+                             GtkCssStyle      *parent_style)
 {
   GtkCssValue *resolved, *current;
 
index b80d52100d28b1b51025c6421107d6630a5ea007..490d5fbde9067efa5f359499cf8a15a1885bc6a5 100644 (file)
@@ -43,10 +43,10 @@ GtkCssValue *   _gtk_css_color_value_new_current_color  (void);
 
 GtkCssValue *   _gtk_css_color_value_parse              (GtkCssParser   *parser);
 
-GtkCssValue *   _gtk_css_color_value_resolve            (GtkCssValue             *color,
-                                                         GtkStyleProviderPrivate *provider,
-                                                         GtkCssValue             *current,
-                                                         GSList                  *cycle_list);
+GtkCssValue *   _gtk_css_color_value_resolve            (GtkCssValue      *color,
+                                                         GtkStyleProvider *provider,
+                                                         GtkCssValue      *current,
+                                                         GSList           *cycle_list);
 
 
 G_END_DECLS
index c5ee68ee3f9b837ccd8043fcb034b482f68916d8..30864c80672d230ef7c28b3987b8a21f24159103 100644 (file)
@@ -37,11 +37,11 @@ gtk_css_value_corner_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_corner_compute (GtkCssValue             *corner,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_corner_compute (GtkCssValue      *corner,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssValue *x, *y;
 
index 0577df6c76ccf07584b2bd7eed8e063a1c3ed6f7..648e61a4c60e674d92b0a9ef5f2192e04fdefc9e 100644 (file)
@@ -37,10 +37,10 @@ gtk_css_value_dimension_free (GtkCssValue *value)
 }
 
 static double
-get_base_font_size_px (guint                    property_id,
-                       GtkStyleProviderPrivate *provider,
-                       GtkCssStyle             *style,
-                       GtkCssStyle             *parent_style)
+get_base_font_size_px (guint             property_id,
+                       GtkStyleProvider *provider,
+                       GtkCssStyle      *style,
+                       GtkCssStyle      *parent_style)
 {
   if (property_id == GTK_CSS_PROPERTY_FONT_SIZE)
     {
@@ -60,11 +60,11 @@ get_dpi (GtkCssStyle *style)
 }
 
 static GtkCssValue *
-gtk_css_value_dimension_compute (GtkCssValue             *number,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_dimension_compute (GtkCssValue      *number,
+                                 guint             property_id,
+                                 GtkStyleProvider *provider,
+                                 GtkCssStyle      *style,
+                                 GtkCssStyle      *parent_style)
 {
   GtkBorderStyle border_style;
 
index e2faef088d7e42c918d32d7e4c8855ba85b35600..1c15d2423af4ea76909236d6adc5f1f484c8a2a0 100644 (file)
@@ -50,11 +50,11 @@ gtk_css_value_ease_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_ease_compute (GtkCssValue             *value,
-                            guint                    property_id,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+gtk_css_value_ease_compute (GtkCssValue      *value,
+                            guint             property_id,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   return _gtk_css_value_ref (value);
 }
index cac36006b53a73c243fcd002fff69168b9ae3244..d9f38dc257f92da8b8109aa994e3120c5f12de33 100644 (file)
@@ -43,11 +43,11 @@ gtk_css_value_enum_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_enum_compute (GtkCssValue             *value,
-                            guint                    property_id,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+gtk_css_value_enum_compute (GtkCssValue      *value,
+                            guint             property_id,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   return _gtk_css_value_ref (value);
 }
@@ -205,13 +205,13 @@ get_dpi (GtkCssStyle *style)
 #define DEFAULT_FONT_SIZE_PT 10
 
 double
-gtk_css_font_size_get_default_px (GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style)
+gtk_css_font_size_get_default_px (GtkStyleProvider *provider,
+                                  GtkCssStyle      *style)
 {
   GtkSettings *settings;
   int font_size;
 
-  settings = _gtk_style_provider_private_get_settings (provider);
+  settings = gtk_style_provider_get_settings (provider);
   if (settings == NULL)
     return DEFAULT_FONT_SIZE_PT * get_dpi (style) / 72.0;
 
@@ -225,11 +225,11 @@ gtk_css_font_size_get_default_px (GtkStyleProviderPrivate *provider,
 }
 
 static GtkCssValue *
-gtk_css_value_font_size_compute (GtkCssValue             *value,
-                                 guint                    property_id,
-                                 GtkStyleProviderPrivate *provider,
-                                 GtkCssStyle             *style,
-                                 GtkCssStyle             *parent_style)
+gtk_css_value_font_size_compute (GtkCssValue      *value,
+                                 guint             property_id,
+                                 GtkStyleProvider *provider,
+                                 GtkCssStyle      *style,
+                                 GtkCssStyle      *parent_style)
 {
   double font_size;
 
@@ -386,11 +386,11 @@ _gtk_css_font_style_value_get (const GtkCssValue *value)
 #define LIGHTER -2
 
 static GtkCssValue *
-gtk_css_value_font_weight_compute (GtkCssValue             *value,
-                                   guint                    property_id,
-                                   GtkStyleProviderPrivate *provider,
-                                   GtkCssStyle             *style,
-                                   GtkCssStyle             *parent_style)
+gtk_css_value_font_weight_compute (GtkCssValue      *value,
+                                   guint             property_id,
+                                   GtkStyleProvider *provider,
+                                   GtkCssStyle      *style,
+                                   GtkCssStyle      *parent_style)
 {
   PangoWeight new_weight;
   int parent_value;
index 753ec895f1184839f68fa2dccbba6c61075a9477..972ffd96d00234630caa7096384b078f4dd020ce 100644 (file)
@@ -38,8 +38,8 @@ GtkBorderStyle  _gtk_css_border_style_value_get       (const GtkCssValue *value)
 GtkCssValue *   _gtk_css_font_size_value_new          (GtkCssFontSize     size);
 GtkCssValue *   _gtk_css_font_size_value_try_parse    (GtkCssParser      *parser);
 GtkCssFontSize  _gtk_css_font_size_value_get          (const GtkCssValue *value);
-double          gtk_css_font_size_get_default_px      (GtkStyleProviderPrivate *provider,
-                                                       GtkCssStyle             *style);
+double          gtk_css_font_size_get_default_px      (GtkStyleProvider  *provider,
+                                                       GtkCssStyle       *style);
 
 GtkCssValue *   _gtk_css_font_style_value_new         (PangoStyle         style);
 GtkCssValue *   _gtk_css_font_style_value_try_parse   (GtkCssParser      *parser);
index e69c82f84df8618f459d0cd443638dc94431eb95..92472e3fa33b1709d76e29a8ea4d3e477139b23c 100644 (file)
@@ -300,12 +300,12 @@ gtk_css_value_filter_free (GtkCssValue *value)
 
 /* returns TRUE if dest == src */
 static gboolean
-gtk_css_filter_compute (GtkCssFilter            *dest,
-                        GtkCssFilter            *src,
-                        guint                    property_id,
-                        GtkStyleProviderPrivate *provider,
-                        GtkCssStyle             *style,
-                        GtkCssStyle             *parent_style)
+gtk_css_filter_compute (GtkCssFilter     *dest,
+                        GtkCssFilter     *src,
+                        guint             property_id,
+                        GtkStyleProvider *provider,
+                        GtkCssStyle      *style,
+                        GtkCssStyle      *parent_style)
 {
   dest->type = src->type;
 
@@ -356,11 +356,11 @@ gtk_css_filter_compute (GtkCssFilter            *dest,
 }
 
 static GtkCssValue *
-gtk_css_value_filter_compute (GtkCssValue             *value,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_filter_compute (GtkCssValue      *value,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssValue *result;
   gboolean changes;
index c9c7f904cd046493964973e5cd5535b7859d0aa3..a417b43da770b8848edd99b9ec29851c607f6c20 100644 (file)
@@ -70,18 +70,18 @@ gtk_css_value_icon_theme_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_icon_theme_compute (GtkCssValue             *icon_theme,
-                                  guint                    property_id,
-                                  GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style,
-                                  GtkCssStyle             *parent_style)
+gtk_css_value_icon_theme_compute (GtkCssValue      *icon_theme,
+                                  guint             property_id,
+                                  GtkStyleProvider *provider,
+                                  GtkCssStyle      *style,
+                                  GtkCssStyle      *parent_style)
 {
   GtkIconTheme *icontheme;
 
   if (icon_theme->icontheme)
     icontheme = icon_theme->icontheme;
   else
-    icontheme = gtk_icon_theme_get_for_display (_gtk_settings_get_display (_gtk_style_provider_private_get_settings (provider)));
+    icontheme = gtk_icon_theme_get_for_display (_gtk_settings_get_display (gtk_style_provider_get_settings (provider)));
 
   return gtk_css_icon_theme_value_new (icontheme);
 }
index 60a3f49cfad7632d9aada20a3398f5b8702e54bf..7ce0f0a7e2a363b8cad208d71e622417bc123ef3 100644 (file)
@@ -64,11 +64,11 @@ gtk_css_image_real_get_aspect_ratio (GtkCssImage *image)
 }
 
 static GtkCssImage *
-gtk_css_image_real_compute (GtkCssImage             *image,
-                            guint                    property_id,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+gtk_css_image_real_compute (GtkCssImage      *image,
+                            guint             property_id,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   return g_object_ref (image);
 }
@@ -184,11 +184,11 @@ _gtk_css_image_get_aspect_ratio (GtkCssImage *image)
 }
 
 GtkCssImage *
-_gtk_css_image_compute (GtkCssImage             *image,
-                        guint                    property_id,
-                        GtkStyleProviderPrivate *provider,
-                        GtkCssStyle             *style,
-                        GtkCssStyle             *parent_style)
+_gtk_css_image_compute (GtkCssImage      *image,
+                        guint             property_id,
+                        GtkStyleProvider *provider,
+                        GtkCssStyle      *style,
+                        GtkCssStyle      *parent_style)
 {
   GtkCssImageClass *klass;
 
index a8fd047eca49d236158e534f438e51b3b6732d7e..fe15fb183f3a8b2c40d103a647c97a263c8b4e40 100644 (file)
@@ -474,11 +474,11 @@ gtk_css_image_builtin_print (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_builtin_compute (GtkCssImage             *image,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_image_builtin_compute (GtkCssImage      *image,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GtkCssImageBuiltin *result;
 
index 08cd137fee6c1e92d15d1ea6e6d3db04dddfa461..08347267246102f4b43a50a204d7786af096e01c 100644 (file)
@@ -193,11 +193,11 @@ gtk_css_image_cross_fade_print (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_cross_fade_compute (GtkCssImage             *image,
-                                  guint                    property_id,
-                                  GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style,
-                                  GtkCssStyle             *parent_style)
+gtk_css_image_cross_fade_compute (GtkCssImage      *image,
+                                  guint             property_id,
+                                  GtkStyleProvider *provider,
+                                  GtkCssStyle      *style,
+                                  GtkCssStyle      *parent_style)
 {
   GtkCssImageCrossFade *cross_fade = GTK_CSS_IMAGE_CROSS_FADE (image);
   GtkCssImage *start, *end, *computed;
index 37799a862ef9c39a6f8b078368b1167c85219e9b..afc5aef779c0ac764f6ba40caab06ad37df313fd 100644 (file)
@@ -131,11 +131,11 @@ gtk_css_image_fallback_dispose (GObject *object)
 
 
 static GtkCssImage *
-gtk_css_image_fallback_compute (GtkCssImage             *image,
-                                guint                    property_id,
-                                GtkStyleProviderPrivate *provider,
-                                GtkCssStyle             *style,
-                                GtkCssStyle             *parent_style)
+gtk_css_image_fallback_compute (GtkCssImage      *image,
+                                guint             property_id,
+                                GtkStyleProvider *provider,
+                                GtkCssStyle      *style,
+                                GtkCssStyle      *parent_style)
 {
   GtkCssImageFallback *fallback = GTK_CSS_IMAGE_FALLBACK (image);
   GtkCssImageFallback *copy;
index 7d9667b3b2cf75dc6d9fd4686ff57b568759129d..9b0fe31943fd07d433df5df3785214b7f5961c1a 100644 (file)
@@ -152,11 +152,11 @@ gtk_css_image_icon_theme_print (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_icon_theme_compute (GtkCssImage             *image,
-                                  guint                    property_id,
-                                  GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style,
-                                  GtkCssStyle             *parent_style)
+gtk_css_image_icon_theme_compute (GtkCssImage      *image,
+                                  guint             property_id,
+                                  GtkStyleProvider *provider,
+                                  GtkCssStyle      *style,
+                                  GtkCssStyle      *parent_style)
 {
   GtkCssImageIconTheme *icon_theme = GTK_CSS_IMAGE_ICON_THEME (image);
   GtkCssImageIconTheme *copy;
@@ -164,7 +164,7 @@ gtk_css_image_icon_theme_compute (GtkCssImage             *image,
   copy = g_object_new (GTK_TYPE_CSS_IMAGE_ICON_THEME, NULL);
   copy->name = g_strdup (icon_theme->name);
   copy->icon_theme = gtk_css_icon_theme_value_get_icon_theme (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_THEME));
-  copy->scale = _gtk_style_provider_private_get_scale (provider);
+  copy->scale = gtk_style_provider_get_scale (provider);
   gtk_icon_theme_lookup_symbolic_colors (style, &copy->color, &copy->success, &copy->warning, &copy->error);
 
   return GTK_CSS_IMAGE (copy);
index 0ba5f0bde9cde0c7a9ae88254012b5d0f18a730d..97ce80a45d5a20a708fb135d7cebac1bf84632dd 100644 (file)
@@ -457,11 +457,11 @@ gtk_css_image_linear_print (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_linear_compute (GtkCssImage             *image,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_image_linear_compute (GtkCssImage      *image,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssImageLinear *linear = GTK_CSS_IMAGE_LINEAR (image);
   GtkCssImageLinear *copy;
index 492734cba281746a03712cfa3b637b246bf80eed..9fc962df28ea2ff841d52a06b6b50053f5e26d57 100644 (file)
@@ -58,7 +58,7 @@ struct _GtkCssImageClass
   /* create "computed value" in CSS terms, returns a new reference */
   GtkCssImage *(* compute)                         (GtkCssImage                *image,
                                                     guint                       property_id,
-                                                    GtkStyleProviderPrivate    *provider,
+                                                    GtkStyleProvider           *provider,
                                                     GtkCssStyle                *style,
                                                     GtkCssStyle                *parent_style);
   /* compare two images for equality */
@@ -98,7 +98,7 @@ double         _gtk_css_image_get_aspect_ratio     (GtkCssImage                *
 
 GtkCssImage *  _gtk_css_image_compute              (GtkCssImage                *image,
                                                     guint                       property_id,
-                                                    GtkStyleProviderPrivate    *provider,
+                                                    GtkStyleProvider           *provider,
                                                     GtkCssStyle                *style,
                                                     GtkCssStyle                *parent_style);
 gboolean       _gtk_css_image_equal                (GtkCssImage                *image1,
index 305e6900ef2cf660ae317e407e24131304342e4b..0afd43040fa110399c2af4f087d8497716ece856 100644 (file)
@@ -457,11 +457,11 @@ gtk_css_image_radial_print (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_radial_compute (GtkCssImage             *image,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_image_radial_compute (GtkCssImage      *image,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssImageRadial *radial = GTK_CSS_IMAGE_RADIAL (image);
   GtkCssImageRadial *copy;
index bb617b8d4706715f3972f49dab6266ada2fadc3c..312414cdb8226026b09b1fb344177eeafac8abbc 100644 (file)
@@ -144,11 +144,11 @@ gtk_css_image_recolor_load (GtkCssImageRecolor  *recolor,
 }
 
 static GtkCssImage *
-gtk_css_image_recolor_compute (GtkCssImage             *image,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_image_recolor_compute (GtkCssImage      *image,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GtkCssImageRecolor *recolor = GTK_CSS_IMAGE_RECOLOR (image);
   GtkCssValue *palette;
@@ -156,7 +156,7 @@ gtk_css_image_recolor_compute (GtkCssImage             *image,
   int scale;
   GError *error = NULL;
 
-  scale = _gtk_style_provider_private_get_scale (provider);
+  scale = gtk_style_provider_get_scale (provider);
 
   if (recolor->palette)
     palette = _gtk_css_value_compute (recolor->palette, property_id, provider, style, parent_style);
@@ -168,7 +168,7 @@ gtk_css_image_recolor_compute (GtkCssImage             *image,
   if (error)
     {
       GtkCssSection *section = gtk_css_style_get_section (style, property_id);
-      _gtk_style_provider_private_emit_error (provider, section, error);
+      gtk_style_provider_emit_error (provider, section, error);
       g_error_free (error);
     }
 
index 4468893e719e7d950737c1005dfceef99141fe9a..bc82042453d79cdcf57fafb1273e19101329d4d8 100644 (file)
@@ -93,16 +93,16 @@ gtk_css_image_scaled_dispose (GObject *object)
 
 
 static GtkCssImage *
-gtk_css_image_scaled_compute (GtkCssImage             *image,
-                             guint                    property_id,
-                             GtkStyleProviderPrivate *provider,
-                             GtkCssStyle             *style,
-                             GtkCssStyle             *parent_style)
+gtk_css_image_scaled_compute (GtkCssImage      *image,
+                             guint             property_id,
+                             GtkStyleProvider *provider,
+                             GtkCssStyle      *style,
+                             GtkCssStyle      *parent_style)
 {
   GtkCssImageScaled *scaled = GTK_CSS_IMAGE_SCALED (image);
   int scale;
 
-  scale = _gtk_style_provider_private_get_scale (provider);
+  scale = gtk_style_provider_get_scale (provider);
   scale = MAX(MIN (scale, scaled->n_images), 1);
 
   return _gtk_css_image_compute (scaled->images[scale - 1],
index ffde548c2d4be78619d67c6ca1086c11d327ab95..091078fbf20419b8c407a2b75093569253468d0c 100644 (file)
@@ -125,11 +125,11 @@ gtk_css_image_url_snapshot (GtkCssImage *image,
 }
 
 static GtkCssImage *
-gtk_css_image_url_compute (GtkCssImage             *image,
-                           guint                    property_id,
-                           GtkStyleProviderPrivate *provider,
-                           GtkCssStyle             *style,
-                           GtkCssStyle             *parent_style)
+gtk_css_image_url_compute (GtkCssImage      *image,
+                           guint             property_id,
+                           GtkStyleProvider *provider,
+                           GtkCssStyle      *style,
+                           GtkCssStyle      *parent_style)
 {
   GtkCssImageUrl *url = GTK_CSS_IMAGE_URL (image);
   GtkCssImage *copy;
@@ -139,7 +139,7 @@ gtk_css_image_url_compute (GtkCssImage             *image,
   if (error)
     {
       GtkCssSection *section = gtk_css_style_get_section (style, property_id);
-      _gtk_style_provider_private_emit_error (provider, section, error);
+      gtk_style_provider_emit_error (provider, section, error);
       g_error_free (error);
     }
 
index 34c38b9bf7a3ca378f303312cf4cac3bfba9a87b..413117f5a8aa29905566abfc395f6946d98a535a 100644 (file)
@@ -34,11 +34,11 @@ gtk_css_value_image_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_image_compute (GtkCssValue             *value,
-                             guint                    property_id,
-                             GtkStyleProviderPrivate *provider,
-                             GtkCssStyle             *style,
-                             GtkCssStyle             *parent_style)
+gtk_css_value_image_compute (GtkCssValue      *value,
+                             guint             property_id,
+                             GtkStyleProvider *provider,
+                             GtkCssStyle      *style,
+                             GtkCssStyle      *parent_style)
 {
   GtkCssImage *image, *computed;
   
index ef1d67ec298430352be241c87bf2c78a3a07388c..0be2bb60bc0b41c6cf2cb19d8f2a1486f46c81e4 100644 (file)
@@ -34,11 +34,11 @@ gtk_css_value_inherit_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_inherit_compute (GtkCssValue             *value,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_value_inherit_compute (GtkCssValue      *value,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   if (parent_style)
     {
index 3b326db83e74a81357025daff8424bbc62d61229..c40f26d3bdc418f9c36b83a091b44b80495f2779 100644 (file)
@@ -38,18 +38,18 @@ gtk_css_value_initial_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_initial_compute (GtkCssValue             *value,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_value_initial_compute (GtkCssValue      *value,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GtkSettings *settings;
 
   switch (property_id)
     {
     case GTK_CSS_PROPERTY_DPI:
-      settings = _gtk_style_provider_private_get_settings (provider);
+      settings = gtk_style_provider_get_settings (provider);
       if (settings)
         {
           GdkScreen *screen = gdk_display_get_default_screen (_gtk_settings_get_display (settings));
@@ -61,7 +61,7 @@ gtk_css_value_initial_compute (GtkCssValue             *value,
       break;
 
     case GTK_CSS_PROPERTY_FONT_FAMILY:
-      settings = _gtk_style_provider_private_get_settings (provider);
+      settings = gtk_style_provider_get_settings (provider);
       if (settings && gtk_settings_get_font_family (settings) != NULL)
         return _gtk_css_array_value_new (_gtk_css_string_value_new (gtk_settings_get_font_family (settings)));
       break;
index ed14ac3451912ecac04c6925922c47e4002bbce3..b4b0c6c48cc88beed1eec2a20b08603eed6c1499 100644 (file)
@@ -435,16 +435,16 @@ _gtk_css_keyframes_print (GtkCssKeyframes *keyframes,
 }
 
 GtkCssKeyframes *
-_gtk_css_keyframes_compute (GtkCssKeyframes         *keyframes,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+_gtk_css_keyframes_compute (GtkCssKeyframes  *keyframes,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   GtkCssKeyframes *resolved;
   guint k, p;
 
   g_return_val_if_fail (keyframes != NULL, NULL);
-  g_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL);
+  g_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
   g_return_val_if_fail (GTK_IS_CSS_STYLE (style), NULL);
   g_return_val_if_fail (parent_style == NULL || GTK_IS_CSS_STYLE (parent_style), NULL);
 
index b9dc13e62765bba173a2be94c043195a6c680837..3808e9661adc12a307b734c896b2599e84438b05 100644 (file)
@@ -37,7 +37,7 @@ void                _gtk_css_keyframes_print                  (GtkCssKeyframes
                                                                GString                *string);
 
 GtkCssKeyframes *   _gtk_css_keyframes_compute                (GtkCssKeyframes         *keyframes,
-                                                               GtkStyleProviderPrivate *provider,
+                                                               GtkStyleProvider        *provider,
                                                                GtkCssStyle             *style,
                                                                GtkCssStyle             *parent_style);
 
index 17e3f85549f17c125d3bf098984cffc561423550..67560a190f740a84d67f5bfd5717b03e27bc48b0 100644 (file)
@@ -103,10 +103,10 @@ _gtk_css_lookup_set (GtkCssLookup  *lookup,
  * an issue, go fix it.
  **/
 void
-_gtk_css_lookup_resolve (GtkCssLookup            *lookup,
-                         GtkStyleProviderPrivate *provider,
-                         GtkCssStaticStyle       *style,
-                         GtkCssStyle             *parent_style)
+_gtk_css_lookup_resolve (GtkCssLookup      *lookup,
+                         GtkStyleProvider  *provider,
+                         GtkCssStaticStyle *style,
+                         GtkCssStyle       *parent_style)
 {
   guint i;
 
index 558a53a9432c7ccdeb0086169e65fda16f73292a..8aaa913c32adc325ba5fedd555bd41b9fc6b984d 100644 (file)
@@ -49,7 +49,7 @@ void                    _gtk_css_lookup_set                     (GtkCssLookup
                                                                  GtkCssSection              *section,
                                                                  GtkCssValue                *value);
 void                    _gtk_css_lookup_resolve                 (GtkCssLookup               *lookup,
-                                                                 GtkStyleProviderPrivate    *provider,
+                                                                 GtkStyleProvider           *provider,
                                                                  GtkCssStaticStyle          *style,
                                                                  GtkCssStyle                *parent_style);
 
index 95a687ffacc7df2d23413441678da1d58df41946..7f1ff4ec96c3462206936b083c87e168e4e94774 100644 (file)
@@ -115,7 +115,7 @@ struct _GtkCssNodeStyleChange {
 static guint cssnode_signals[LAST_SIGNAL] = { 0 };
 static GParamSpec *cssnode_properties[NUM_PROPERTIES];
 
-static GtkStyleProviderPrivate *
+static GtkStyleProvider *
 gtk_css_node_get_style_provider_or_null (GtkCssNode *cssnode)
 {
   return GTK_CSS_NODE_GET_CLASS (cssnode)->get_style_provider (cssnode);
@@ -287,7 +287,7 @@ gtk_css_node_is_last_child (GtkCssNode *node)
 static gboolean
 may_use_global_parent_cache (GtkCssNode *node)
 {
-  GtkStyleProviderPrivate *provider;
+  GtkStyleProvider *provider;
   GtkCssNode *parent;
   
   parent = gtk_css_node_get_parent (node);
@@ -500,7 +500,7 @@ gtk_css_node_real_get_widget_path (GtkCssNode *cssnode)
   return NULL;
 }
 
-static GtkStyleProviderPrivate *
+static GtkStyleProvider *
 gtk_css_node_real_get_style_provider (GtkCssNode *cssnode)
 {
   return NULL;
@@ -1386,10 +1386,10 @@ gtk_css_node_get_widget_path (GtkCssNode *cssnode)
   return GTK_CSS_NODE_GET_CLASS (cssnode)->get_widget_path (cssnode);
 }
 
-GtkStyleProviderPrivate *
+GtkStyleProvider *
 gtk_css_node_get_style_provider (GtkCssNode *cssnode)
 {
-  GtkStyleProviderPrivate *result;
+  GtkStyleProvider *result;
 
   result = gtk_css_node_get_style_provider_or_null (cssnode);
   if (result)
@@ -1398,7 +1398,7 @@ gtk_css_node_get_style_provider (GtkCssNode *cssnode)
   if (cssnode->parent)
     return gtk_css_node_get_style_provider (cssnode->parent);
 
-  return GTK_STYLE_PROVIDER_PRIVATE (_gtk_settings_get_style_cascade (gtk_settings_get_default (), 1));
+  return GTK_STYLE_PROVIDER (_gtk_settings_get_style_cascade (gtk_settings_get_default (), 1));
 }
 
 void
index 797c51de8ba413678f6b4c32799f17e5760ba54f..b326f06d9d53f1c1dc18036e7282eded7d3e0530 100644 (file)
@@ -80,7 +80,7 @@ struct _GtkCssNodeClass
   GtkWidgetPath *       (* create_widget_path)          (GtkCssNode            *cssnode);
   const GtkWidgetPath * (* get_widget_path)             (GtkCssNode            *cssnode);
   /* get style provider to use or NULL to use parent's */
-  GtkStyleProviderPrivate *(* get_style_provider)       (GtkCssNode            *cssnode);
+  GtkStyleProvider *    (* get_style_provider)          (GtkCssNode            *cssnode);
   /* get frame clock or NULL (only relevant for root node) */
   GdkFrameClock *       (* get_frame_clock)             (GtkCssNode            *cssnode);
   GtkCssStyle *         (* update_style)                (GtkCssNode            *cssnode,
@@ -159,7 +159,7 @@ gboolean                gtk_css_node_init_matcher       (GtkCssNode            *
                                                          GtkCssMatcher         *matcher);
 GtkWidgetPath *         gtk_css_node_create_widget_path (GtkCssNode            *cssnode);
 const GtkWidgetPath *   gtk_css_node_get_widget_path    (GtkCssNode            *cssnode);
-GtkStyleProviderPrivate *gtk_css_node_get_style_provider(GtkCssNode            *cssnode);
+GtkStyleProvider *      gtk_css_node_get_style_provider (GtkCssNode            *cssnode);
 
 void                    gtk_css_node_print              (GtkCssNode                *cssnode,
                                                          GtkStyleContextPrintFlags  flags,
index 7dbbfd2a3430c23ab8bdb70340eea11e228b938f..457b0566e3571f7da4bb4f2bef3fb2441a1a4ab3 100644 (file)
@@ -49,11 +49,11 @@ gtk_css_value_palette_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_palette_compute (GtkCssValue             *specified,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_value_palette_compute (GtkCssValue      *specified,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GHashTableIter iter;
   gpointer name, value;
index f5caea8e4401d2608150e61eb7fb97dfd757c470..64cd49260bdf76cf163e5bd3cdf00c402dff54db 100644 (file)
@@ -100,7 +100,7 @@ gtk_css_path_node_update_style (GtkCssNode   *cssnode,
   return GTK_CSS_NODE_CLASS (gtk_css_path_node_parent_class)->update_style (cssnode, change, 0, style);
 }
 
-static GtkStyleProviderPrivate *
+static GtkStyleProvider *
 gtk_css_path_node_get_style_provider (GtkCssNode *node)
 {
   GtkCssPathNode *path_node = GTK_CSS_PATH_NODE (node);
index 62ecc68b57621912c4bb5296d8dd4fc68bd685da..f1655b179821f994926284c12bab07ad2ae35585 100644 (file)
@@ -37,11 +37,11 @@ gtk_css_value_position_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_position_compute (GtkCssValue             *position,
-                                guint                    property_id,
-                                GtkStyleProviderPrivate *provider,
-                                GtkCssStyle             *style,
-                                GtkCssStyle             *parent_style)
+gtk_css_value_position_compute (GtkCssValue      *position,
+                                guint             property_id,
+                                GtkStyleProvider *provider,
+                                GtkCssStyle      *style,
+                                GtkCssStyle      *parent_style)
 {
   GtkCssValue *x, *y;
 
index 06457b54238ae3b59b563bc3d9ff664c54d2dcf7..bb8625bdd051c3a7ab8de71edd1d71bc23aeeab6 100644 (file)
@@ -132,11 +132,10 @@ static gboolean gtk_keep_css_sections = FALSE;
 static guint css_provider_signals[LAST_SIGNAL] = { 0 };
 
 static void gtk_css_provider_finalize (GObject *object);
-static void gtk_css_style_provider_iface_init (GtkStyleProviderIface *iface);
-static void gtk_css_style_provider_private_iface_init (GtkStyleProviderPrivateInterface *iface);
-static void gtk_css_style_provider_emit_error (GtkStyleProviderPrivate *provider,
-                                               GtkCssSection           *section,
-                                               const GError            *error);
+static void gtk_css_style_provider_iface_init (GtkStyleProviderInterface *iface);
+static void gtk_css_style_provider_emit_error (GtkStyleProvider *provider,
+                                               GtkCssSection    *section,
+                                               const GError     *error);
 
 static void
 gtk_css_provider_load_internal (GtkCssProvider *css_provider,
@@ -153,9 +152,7 @@ gtk_css_provider_error_quark (void)
 G_DEFINE_TYPE_EXTENDED (GtkCssProvider, gtk_css_provider, G_TYPE_OBJECT, 0,
                         G_ADD_PRIVATE (GtkCssProvider)
                         G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER,
-                                               gtk_css_style_provider_iface_init)
-                        G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER_PRIVATE,
-                                               gtk_css_style_provider_private_iface_init));
+                                               gtk_css_style_provider_iface_init));
 
 static void
 gtk_css_provider_parsing_error (GtkCssProvider  *provider,
@@ -328,9 +325,9 @@ gtk_css_scanner_destroy (GtkCssScanner *scanner)
 }
 
 static void
-gtk_css_style_provider_emit_error (GtkStyleProviderPrivate *provider,
-                                   GtkCssSection           *section,
-                                   const GError            *error)
+gtk_css_style_provider_emit_error (GtkStyleProvider *provider,
+                                   GtkCssSection    *section,
+                                   const GError     *error)
 {
   g_signal_emit (provider, css_provider_signals[PARSING_ERROR], 0, section, error);
 }
@@ -340,7 +337,7 @@ gtk_css_provider_emit_error (GtkCssProvider *provider,
                              GtkCssScanner  *scanner,
                              const GError   *error)
 {
-  gtk_css_style_provider_emit_error (GTK_STYLE_PROVIDER_PRIVATE (provider),
+  gtk_css_style_provider_emit_error (GTK_STYLE_PROVIDER (provider),
                                      scanner ? scanner->section : NULL,
                                      error);
 }
@@ -538,14 +535,9 @@ verify_tree_get_change_results (GtkCssProvider *provider,
 }
 
 
-static void
-gtk_css_style_provider_iface_init (GtkStyleProviderIface *iface)
-{
-}
-
 static GtkCssValue *
-gtk_css_style_provider_get_color (GtkStyleProviderPrivate *provider,
-                                  const char              *name)
+gtk_css_style_provider_get_color (GtkStyleProvider *provider,
+                                  const char       *name)
 {
   GtkCssProvider *css_provider = GTK_CSS_PROVIDER (provider);
 
@@ -553,8 +545,8 @@ gtk_css_style_provider_get_color (GtkStyleProviderPrivate *provider,
 }
 
 static GtkCssKeyframes *
-gtk_css_style_provider_get_keyframes (GtkStyleProviderPrivate *provider,
-                                      const char              *name)
+gtk_css_style_provider_get_keyframes (GtkStyleProvider *provider,
+                                      const char       *name)
 {
   GtkCssProvider *css_provider = GTK_CSS_PROVIDER (provider);
 
@@ -562,10 +554,10 @@ gtk_css_style_provider_get_keyframes (GtkStyleProviderPrivate *provider,
 }
 
 static void
-gtk_css_style_provider_lookup (GtkStyleProviderPrivate *provider,
-                               const GtkCssMatcher     *matcher,
-                               GtkCssLookup            *lookup,
-                               GtkCssChange            *change)
+gtk_css_style_provider_lookup (GtkStyleProvider    *provider,
+                               const GtkCssMatcher *matcher,
+                               GtkCssLookup        *lookup,
+                               GtkCssChange        *change)
 {
   GtkCssProvider *css_provider;
   GtkCssProviderPrivate *priv;
@@ -626,7 +618,7 @@ gtk_css_style_provider_lookup (GtkStyleProviderPrivate *provider,
 }
 
 static void
-gtk_css_style_provider_private_iface_init (GtkStyleProviderPrivateInterface *iface)
+gtk_css_style_provider_iface_init (GtkStyleProviderInterface *iface)
 {
   iface->get_color = gtk_css_style_provider_get_color;
   iface->get_keyframes = gtk_css_style_provider_get_keyframes;
@@ -1495,7 +1487,7 @@ gtk_css_provider_load_from_data (GtkCssProvider  *css_provider,
 
   g_free (free_data);
 
-  _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (css_provider));
+  gtk_style_provider_changed (GTK_STYLE_PROVIDER (css_provider));
 }
 
 /**
@@ -1517,7 +1509,7 @@ gtk_css_provider_load_from_file (GtkCssProvider  *css_provider,
 
   gtk_css_provider_load_internal (css_provider, NULL, file, NULL);
 
-  _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (css_provider));
+  gtk_style_provider_changed (GTK_STYLE_PROVIDER (css_provider));
 }
 
 /**
index e3cfcd0920058953d73d7d3af8f00effd26a8298..bbd64cb0558d98edc5f57942170ec215d5ab0b8f 100644 (file)
@@ -34,11 +34,11 @@ gtk_css_value_repeat_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_repeat_compute (GtkCssValue             *value,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_repeat_compute (GtkCssValue      *value,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   return _gtk_css_value_ref (value);
 }
index 7005347e0e92df434d174558d66869b8914e53b7..92f3f416c756ba43f24d11e72fe672620b9608fe 100644 (file)
@@ -34,11 +34,11 @@ gtk_css_value_rgba_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_rgba_compute (GtkCssValue             *value,
-                            guint                    property_id,
-                            GtkStyleProviderPrivate *provider,
-                            GtkCssStyle             *style,
-                            GtkCssStyle             *parent_style)
+gtk_css_value_rgba_compute (GtkCssValue      *value,
+                            guint             property_id,
+                            GtkStyleProvider *provider,
+                            GtkCssStyle      *style,
+                            GtkCssStyle      *parent_style)
 {
   return _gtk_css_value_ref (value);
 }
index fcb6097ceafa775ce7a07a017ccd292a3e7ce6d3..3fbbc527b9d9fd67a6f8db009a8bddeaef1db218 100644 (file)
@@ -51,11 +51,11 @@ gtk_css_value_shadows_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_shadows_compute (GtkCssValue             *value,
-                               guint                    property_id,
-                               GtkStyleProviderPrivate *provider,
-                               GtkCssStyle             *style,
-                               GtkCssStyle             *parent_style)
+gtk_css_value_shadows_compute (GtkCssValue      *value,
+                               guint             property_id,
+                               GtkStyleProvider *provider,
+                               GtkCssStyle      *style,
+                               GtkCssStyle      *parent_style)
 {
   GtkCssValue *result, *tmp;
   guint i, j;
index c5f1db47b8f45f5a6853a71402d0ad75c2a0d349..f29d403d3aafe941d4ecfa371467431eef36ef75 100644 (file)
@@ -65,11 +65,11 @@ gtk_css_value_shadow_free (GtkCssValue *shadow)
 }
 
 static GtkCssValue *
-gtk_css_value_shadow_compute (GtkCssValue             *shadow,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_shadow_compute (GtkCssValue      *shadow,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   GtkCssValue *hoffset, *voffset, *radius, *spread, *color;
 
index f8ce97003d8674cc2a6e8ef1f91ca5e184ea7385..57b6723d23b317274a397ffbf91ec09b78231810 100644 (file)
@@ -155,7 +155,7 @@ gtk_css_static_style_get_default (void)
       GtkSettings *settings;
 
       settings = gtk_settings_get_default ();
-      default_style = gtk_css_static_style_new_compute (GTK_STYLE_PROVIDER_PRIVATE (settings),
+      default_style = gtk_css_static_style_new_compute (GTK_STYLE_PROVIDER (settings),
                                                         NULL,
                                                         NULL);
       g_object_set_data_full (G_OBJECT (settings), "gtk-default-style",
@@ -166,9 +166,9 @@ gtk_css_static_style_get_default (void)
 }
 
 GtkCssStyle *
-gtk_css_static_style_new_compute (GtkStyleProviderPrivate *provider,
-                                  const GtkCssMatcher     *matcher,
-                                  GtkCssStyle             *parent)
+gtk_css_static_style_new_compute (GtkStyleProvider    *provider,
+                                  const GtkCssMatcher *matcher,
+                                  GtkCssStyle         *parent)
 {
   GtkCssStaticStyle *result;
   GtkCssLookup *lookup;
@@ -177,10 +177,10 @@ gtk_css_static_style_new_compute (GtkStyleProviderPrivate *provider,
   lookup = _gtk_css_lookup_new (NULL);
 
   if (matcher)
-    _gtk_style_provider_private_lookup (provider,
-                                        matcher,
-                                        lookup,
-                                        &change);
+    gtk_style_provider_lookup (provider,
+                               matcher,
+                               lookup,
+                               &change);
 
   result = g_object_new (GTK_TYPE_CSS_STATIC_STYLE, NULL);
 
@@ -197,12 +197,12 @@ gtk_css_static_style_new_compute (GtkStyleProviderPrivate *provider,
 }
 
 void
-gtk_css_static_style_compute_value (GtkCssStaticStyle       *style,
-                                    GtkStyleProviderPrivate *provider,
-                                    GtkCssStyle             *parent_style,
-                                    guint                    id,
-                                    GtkCssValue             *specified,
-                                    GtkCssSection           *section)
+gtk_css_static_style_compute_value (GtkCssStaticStyle *style,
+                                    GtkStyleProvider  *provider,
+                                    GtkCssStyle       *parent_style,
+                                    guint              id,
+                                    GtkCssValue       *specified,
+                                    GtkCssSection     *section)
 {
   GtkCssValue *value;
 
index c7757c35470e614d729e56362546d56a7ac1c401..2a00dd037294877212e1cb7d5df5554ecd4743af 100644 (file)
@@ -53,12 +53,12 @@ struct _GtkCssStaticStyleClass
 GType                   gtk_css_static_style_get_type           (void) G_GNUC_CONST;
 
 GtkCssStyle *           gtk_css_static_style_get_default        (void);
-GtkCssStyle *           gtk_css_static_style_new_compute        (GtkStyleProviderPrivate *provider,
+GtkCssStyle *           gtk_css_static_style_new_compute        (GtkStyleProvider       *provider,
                                                                  const GtkCssMatcher    *matcher,
                                                                  GtkCssStyle            *parent);
 
 void                    gtk_css_static_style_compute_value      (GtkCssStaticStyle      *style,
-                                                                 GtkStyleProviderPrivate*provider,
+                                                                 GtkStyleProvider       *provider,
                                                                  GtkCssStyle            *parent_style,
                                                                  guint                   id,
                                                                  GtkCssValue            *specified,
index c12eb7661bcd5bb4ebd66b6e8cbff657fbe3382c..b7feae00735be3105e0073807b4c7ae511feb942 100644 (file)
@@ -34,11 +34,11 @@ gtk_css_value_string_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_string_compute (GtkCssValue             *value,
-                              guint                    property_id,
-                              GtkStyleProviderPrivate *provider,
-                              GtkCssStyle             *style,
-                              GtkCssStyle             *parent_style)
+gtk_css_value_string_compute (GtkCssValue      *value,
+                              guint             property_id,
+                              GtkStyleProvider *provider,
+                              GtkCssStyle      *style,
+                              GtkCssStyle      *parent_style)
 {
   return _gtk_css_value_ref (value);
 }
index 9c70dbb25e80d7b4af9b5efcc30ebee635ba3768..773c2eebd42a81e2387c347f73cacf84ba64ec3f 100644 (file)
@@ -256,12 +256,12 @@ gtk_css_value_transform_free (GtkCssValue *value)
 
 /* returns TRUE if dest == src */
 static gboolean
-gtk_css_transform_compute (GtkCssTransform         *dest,
-                           GtkCssTransform         *src,
-                           guint                    property_id,
-                           GtkStyleProviderPrivate *provider,
-                           GtkCssStyle             *style,
-                           GtkCssStyle             *parent_style)
+gtk_css_transform_compute (GtkCssTransform  *dest,
+                           GtkCssTransform  *src,
+                           guint             property_id,
+                           GtkStyleProvider *provider,
+                           GtkCssStyle      *style,
+                           GtkCssStyle      *parent_style)
 {
   dest->type = src->type;
 
@@ -311,11 +311,11 @@ gtk_css_transform_compute (GtkCssTransform         *dest,
 }
 
 static GtkCssValue *
-gtk_css_value_transform_compute (GtkCssValue             *value,
-                                 guint                    property_id,
-                                 GtkStyleProviderPrivate *provider,
-                                 GtkCssStyle             *style,
-                                 GtkCssStyle             *parent_style)
+gtk_css_value_transform_compute (GtkCssValue      *value,
+                                 guint             property_id,
+                                 GtkStyleProvider *provider,
+                                 GtkCssStyle      *style,
+                                 GtkCssStyle      *parent_style)
 {
   GtkCssValue *result;
   gboolean changes;
index a173f55d134bc38cce15e5f0a2a76bc8bac37bb1..c569ec6b956ab175a53cc43f31d36138113e26fa 100644 (file)
@@ -28,7 +28,6 @@ typedef union _GtkCssMatcher GtkCssMatcher;
 typedef struct _GtkCssNode GtkCssNode;
 typedef struct _GtkCssNodeDeclaration GtkCssNodeDeclaration;
 typedef struct _GtkCssStyle GtkCssStyle;
-typedef struct _GtkStyleProviderPrivate GtkStyleProviderPrivate; /* dummy typedef */
 
 #define GTK_CSS_CHANGE_CLASS                          (1ULL <<  0)
 #define GTK_CSS_CHANGE_NAME                           (1ULL <<  1)
index 9fb6bf59a46781fae1f4bc2c2d2990cf2985fd02..32550cd47bc98adccf9d09941d334c6c7d45ab93 100644 (file)
@@ -35,11 +35,11 @@ gtk_css_value_unset_free (GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_unset_compute (GtkCssValue             *value,
-                             guint                    property_id,
-                             GtkStyleProviderPrivate *provider,
-                             GtkCssStyle             *style,
-                             GtkCssStyle             *parent_style)
+gtk_css_value_unset_compute (GtkCssValue      *value,
+                             guint             property_id,
+                             GtkStyleProvider *provider,
+                             GtkCssStyle      *style,
+                             GtkCssStyle      *parent_style)
 {
   GtkCssStyleProperty *property;
   GtkCssValue *unset_value;
index b9755cf6c4bc7b9c5eadf6e4bb1c20bf018adf14..a6f1559b442a5e2deb411107edeea30d9fa5c685 100644 (file)
@@ -82,11 +82,11 @@ _gtk_css_value_unref (GtkCssValue *value)
  * Returns: the computed value
  **/
 GtkCssValue *
-_gtk_css_value_compute (GtkCssValue             *value,
-                        guint                    property_id,
-                        GtkStyleProviderPrivate *provider,
-                        GtkCssStyle             *style,
-                        GtkCssStyle             *parent_style)
+_gtk_css_value_compute (GtkCssValue      *value,
+                        guint             property_id,
+                        GtkStyleProvider *provider,
+                        GtkCssStyle      *style,
+                        GtkCssStyle      *parent_style)
 {
 
   gtk_internal_return_val_if_fail (value != NULL, NULL);
index 77dc5c9e042f1f794f737afc9854434f8f0d9c13..00dfadd9b781454060b8be46e5ca78ff019fdff6 100644 (file)
@@ -42,7 +42,7 @@ struct _GtkCssValueClass {
 
   GtkCssValue * (* compute)                           (GtkCssValue                *value,
                                                        guint                       property_id,
-                                                       GtkStyleProviderPrivate    *provider,
+                                                       GtkStyleProvider           *provider,
                                                        GtkCssStyle                *style,
                                                        GtkCssStyle                *parent_style);
   gboolean      (* equal)                             (const GtkCssValue          *value1,
@@ -66,7 +66,7 @@ void         _gtk_css_value_unref                     (GtkCssValue
 
 GtkCssValue *_gtk_css_value_compute                   (GtkCssValue                *value,
                                                        guint                       property_id,
-                                                       GtkStyleProviderPrivate    *provider,
+                                                       GtkStyleProvider           *provider,
                                                        GtkCssStyle                *style,
                                                        GtkCssStyle                *parent_style);
 gboolean     _gtk_css_value_equal                     (const GtkCssValue          *value1,
index b7d3297a17c127c1575462e1232fb10ee7f51077..050c391a990a2ef9179cffa1dd99091d6854003f 100644 (file)
@@ -162,7 +162,7 @@ gtk_css_widget_node_get_widget_path (GtkCssNode *node)
   return gtk_widget_get_path (widget_node->widget);
 }
 
-static GtkStyleProviderPrivate *
+static GtkStyleProvider *
 gtk_css_widget_node_get_style_provider (GtkCssNode *node)
 {
   GtkCssWidgetNode *widget_node = GTK_CSS_WIDGET_NODE (node);
@@ -178,7 +178,7 @@ gtk_css_widget_node_get_style_provider (GtkCssNode *node)
 
   cascade = _gtk_settings_get_style_cascade (gtk_widget_get_settings (widget_node->widget),
                                              gtk_widget_get_scale_factor (widget_node->widget));
-  return GTK_STYLE_PROVIDER_PRIVATE (cascade);
+  return GTK_STYLE_PROVIDER (cascade);
 }
 
 static GdkFrameClock *
index fd7970a9cafadc3bcbd6da5324b3b775bf7fc967..8307a8a88ea887390cc1a4e1fbb0de0e72af22c1 100644 (file)
@@ -118,11 +118,11 @@ gtk_css_value_win32_compute_size (const GtkCssValue *value)
 }
 
 static GtkCssValue *
-gtk_css_value_win32_size_compute (GtkCssValue             *value,
-                                  guint                    property_id,
-                                  GtkStyleProviderPrivate *provider,
-                                  GtkCssStyle             *style,
-                                  GtkCssStyle             *parent_style)
+gtk_css_value_win32_size_compute (GtkCssValue      *value,
+                                  guint             property_id,
+                                  GtkStyleProvider *provider,
+                                  GtkCssStyle      *style,
+                                  GtkCssStyle      *parent_style)
 {
   return _gtk_css_number_value_new (value->scale * gtk_css_value_win32_compute_size (value), GTK_CSS_PX);
 }
index 61bf3a2cf1147b9c904bf992fff720a1ae71e9cb..319c783767c570919606b75ff52f58f94dffbd7a 100644 (file)
@@ -194,8 +194,7 @@ enum {
 };
 
 /* --- prototypes --- */
-static void     gtk_settings_provider_iface_init (GtkStyleProviderIface *iface);
-static void     gtk_settings_provider_private_init (GtkStyleProviderPrivateInterface *iface);
+static void     gtk_settings_provider_iface_init (GtkStyleProviderInterface *iface);
 
 static void     gtk_settings_finalize            (GObject               *object);
 static void     gtk_settings_get_property        (GObject               *object,
@@ -245,9 +244,7 @@ static GPtrArray *display_settings;
 G_DEFINE_TYPE_EXTENDED (GtkSettings, gtk_settings, G_TYPE_OBJECT, 0,
                         G_ADD_PRIVATE (GtkSettings)
                         G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER,
-                                               gtk_settings_provider_iface_init)
-                        G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER_PRIVATE,
-                                               gtk_settings_provider_private_init));
+                                               gtk_settings_provider_iface_init));
 
 /* --- functions --- */
 static void
@@ -1072,19 +1069,14 @@ gtk_settings_class_init (GtkSettingsClass *class)
   g_assert (result == PROP_KEYNAV_USE_CARET);
 }
 
-static void
-gtk_settings_provider_iface_init (GtkStyleProviderIface *iface)
-{
-}
-
 static GtkSettings *
-gtk_settings_style_provider_get_settings (GtkStyleProviderPrivate *provider)
+gtk_settings_style_provider_get_settings (GtkStyleProvider *provider)
 {
   return GTK_SETTINGS (provider);
 }
 
 static void
-gtk_settings_provider_private_init (GtkStyleProviderPrivateInterface *iface)
+gtk_settings_provider_iface_init (GtkStyleProviderInterface *iface)
 {
   iface->get_settings = gtk_settings_style_provider_get_settings;
 }
@@ -1331,7 +1323,7 @@ gtk_settings_set_property (GObject      *object,
 static void
 settings_invalidate_style (GtkSettings *settings)
 {
-  _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (settings));
+  gtk_style_provider_changed (GTK_STYLE_PROVIDER (settings));
 }
 
 static void
index 985099c6ea93b72a7dfaab91d326adfc2b364c89..4c94696742cb23c30bb375b1f32262cb3ba4fa9c 100644 (file)
@@ -96,13 +96,8 @@ gtk_style_cascade_iter_clear (GtkStyleCascadeIter *iter)
   g_free (iter->cascade_index);
 }
 
-static void
-gtk_style_cascade_provider_iface_init (GtkStyleProviderIface *iface)
-{
-}
-
 static GtkSettings *
-gtk_style_cascade_get_settings (GtkStyleProviderPrivate *provider)
+gtk_style_cascade_get_settings (GtkStyleProvider *provider)
 {
   GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
   GtkStyleCascadeIter iter;
@@ -113,10 +108,10 @@ gtk_style_cascade_get_settings (GtkStyleProviderPrivate *provider)
        item;
        item = gtk_style_cascade_iter_next (cascade, &iter))
     {
-      if (!GTK_IS_STYLE_PROVIDER_PRIVATE (item))
+      if (!GTK_IS_STYLE_PROVIDER (item))
         continue;
           
-      settings = _gtk_style_provider_private_get_settings (GTK_STYLE_PROVIDER_PRIVATE (item));
+      settings = gtk_style_provider_get_settings (GTK_STYLE_PROVIDER (item));
       if (settings)
         {
           gtk_style_cascade_iter_clear (&iter);
@@ -129,7 +124,7 @@ gtk_style_cascade_get_settings (GtkStyleProviderPrivate *provider)
 }
 
 static GtkCssValue *
-gtk_style_cascade_get_color (GtkStyleProviderPrivate *provider,
+gtk_style_cascade_get_color (GtkStyleProvider *provider,
                              const char              *name)
 {
   GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
@@ -141,9 +136,9 @@ gtk_style_cascade_get_color (GtkStyleProviderPrivate *provider,
        item;
        item = gtk_style_cascade_iter_next (cascade, &iter))
     {
-      if (GTK_IS_STYLE_PROVIDER_PRIVATE (item))
+      if (GTK_IS_STYLE_PROVIDER (item))
         {
-          color = _gtk_style_provider_private_get_color (GTK_STYLE_PROVIDER_PRIVATE (item), name);
+          color = gtk_style_provider_get_color (GTK_STYLE_PROVIDER (item), name);
           if (color)
             {
               gtk_style_cascade_iter_clear (&iter);
@@ -161,7 +156,7 @@ gtk_style_cascade_get_color (GtkStyleProviderPrivate *provider,
 }
 
 static int
-gtk_style_cascade_get_scale (GtkStyleProviderPrivate *provider)
+gtk_style_cascade_get_scale (GtkStyleProvider *provider)
 {
   GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
 
@@ -169,8 +164,8 @@ gtk_style_cascade_get_scale (GtkStyleProviderPrivate *provider)
 }
 
 static GtkCssKeyframes *
-gtk_style_cascade_get_keyframes (GtkStyleProviderPrivate *provider,
-                                 const char              *name)
+gtk_style_cascade_get_keyframes (GtkStyleProvider *provider,
+                                 const char       *name)
 {
   GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
   GtkStyleCascadeIter iter;
@@ -181,10 +176,10 @@ gtk_style_cascade_get_keyframes (GtkStyleProviderPrivate *provider,
        item;
        item = gtk_style_cascade_iter_next (cascade, &iter))
     {
-      if (!GTK_IS_STYLE_PROVIDER_PRIVATE (item))
+      if (!GTK_IS_STYLE_PROVIDER (item))
         continue;
           
-      keyframes = _gtk_style_provider_private_get_keyframes (GTK_STYLE_PROVIDER_PRIVATE (item), name);
+      keyframes = gtk_style_provider_get_keyframes (GTK_STYLE_PROVIDER (item), name);
       if (keyframes)
         {
           gtk_style_cascade_iter_clear (&iter);
@@ -197,10 +192,10 @@ gtk_style_cascade_get_keyframes (GtkStyleProviderPrivate *provider,
 }
 
 static void
-gtk_style_cascade_lookup (GtkStyleProviderPrivate *provider,
-                          const GtkCssMatcher     *matcher,
-                          GtkCssLookup            *lookup,
-                          GtkCssChange            *change)
+gtk_style_cascade_lookup (GtkStyleProvider    *provider,
+                          const GtkCssMatcher *matcher,
+                          GtkCssLookup        *lookup,
+                          GtkCssChange        *change)
 {
   GtkStyleCascade *cascade = GTK_STYLE_CASCADE (provider);
   GtkStyleCascadeIter iter;
@@ -211,10 +206,10 @@ gtk_style_cascade_lookup (GtkStyleProviderPrivate *provider,
        item;
        item = gtk_style_cascade_iter_next (cascade, &iter))
     {
-      GtkStyleProviderPrivate *sp = (GtkStyleProviderPrivate*)item;
-      if (GTK_IS_STYLE_PROVIDER_PRIVATE (sp))
+      GtkStyleProvider *sp = (GtkStyleProvider *) item;
+      if (GTK_IS_STYLE_PROVIDER (sp))
         {
-          _gtk_style_provider_private_lookup (sp, matcher, lookup,
+          gtk_style_provider_lookup (sp, matcher, lookup,
                                               change ? &iter_change : NULL);
           if (change)
             *change |= iter_change;
@@ -229,7 +224,7 @@ gtk_style_cascade_lookup (GtkStyleProviderPrivate *provider,
 }
 
 static void
-gtk_style_cascade_provider_private_iface_init (GtkStyleProviderPrivateInterface *iface)
+gtk_style_cascade_provider_iface_init (GtkStyleProviderInterface *iface)
 {
   iface->get_color = gtk_style_cascade_get_color;
   iface->get_settings = gtk_style_cascade_get_settings;
@@ -240,9 +235,7 @@ gtk_style_cascade_provider_private_iface_init (GtkStyleProviderPrivateInterface
 
 G_DEFINE_TYPE_EXTENDED (GtkStyleCascade, _gtk_style_cascade, G_TYPE_OBJECT, 0,
                         G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER,
-                                               gtk_style_cascade_provider_iface_init)
-                        G_IMPLEMENT_INTERFACE (GTK_TYPE_STYLE_PROVIDER_PRIVATE,
-                                               gtk_style_cascade_provider_private_iface_init));
+                                               gtk_style_cascade_provider_iface_init));
 
 static void
 gtk_style_cascade_dispose (GObject *object)
@@ -302,14 +295,14 @@ _gtk_style_cascade_set_parent (GtkStyleCascade *cascade,
       g_object_ref (parent);
       g_signal_connect_swapped (parent,
                                 "-gtk-private-changed",
-                                G_CALLBACK (_gtk_style_provider_private_changed),
+                                G_CALLBACK (gtk_style_provider_changed),
                                 cascade);
     }
 
   if (cascade->parent)
     {
       g_signal_handlers_disconnect_by_func (cascade->parent, 
-                                            _gtk_style_provider_private_changed,
+                                            gtk_style_provider_changed,
                                             cascade);
       g_object_unref (cascade->parent);
     }
@@ -333,7 +326,7 @@ _gtk_style_cascade_add_provider (GtkStyleCascade  *cascade,
   data.priority = priority;
   data.changed_signal_id = g_signal_connect_swapped (provider,
                                                      "-gtk-private-changed",
-                                                     G_CALLBACK (_gtk_style_provider_private_changed),
+                                                     G_CALLBACK (gtk_style_provider_changed),
                                                      cascade);
 
   /* ensure it gets removed first */
@@ -346,7 +339,7 @@ _gtk_style_cascade_add_provider (GtkStyleCascade  *cascade,
     }
   g_array_insert_val (cascade->providers, i, data);
 
-  _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (cascade));
+  gtk_style_provider_changed (GTK_STYLE_PROVIDER (cascade));
 }
 
 void
@@ -366,7 +359,7 @@ _gtk_style_cascade_remove_provider (GtkStyleCascade  *cascade,
         {
           g_array_remove_index (cascade->providers, i);
   
-          _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (cascade));
+          gtk_style_provider_changed (GTK_STYLE_PROVIDER (cascade));
           break;
         }
     }
@@ -383,7 +376,7 @@ _gtk_style_cascade_set_scale (GtkStyleCascade *cascade,
 
   cascade->scale = scale;
 
-  _gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (cascade));
+  gtk_style_provider_changed (GTK_STYLE_PROVIDER (cascade));
 }
 
 int
index 24d35e056176edccf871b778614c1115408c5768..fbe2e6af5c0c43971b85f8812bacc4bc1be77e53 100644 (file)
@@ -409,12 +409,12 @@ gtk_style_context_get_root (GtkStyleContext *context)
     return priv->cssnode;
 }
 
-GtkStyleProviderPrivate *
+GtkStyleProvider *
 gtk_style_context_get_style_provider (GtkStyleContext *context)
 {
   GtkStyleContextPrivate *priv = gtk_style_context_get_instance_private (context);
 
-  return GTK_STYLE_PROVIDER_PRIVATE (priv->cascade);
+  return GTK_STYLE_PROVIDER (priv->cascade);
 }
 
 static gboolean
@@ -1451,7 +1451,7 @@ _gtk_style_context_resolve_color (GtkStyleContext    *context,
   g_return_val_if_fail (result != NULL, FALSE);
 
   val = _gtk_css_color_value_resolve (color,
-                                      GTK_STYLE_PROVIDER_PRIVATE (priv->cascade),
+                                      GTK_STYLE_PROVIDER (priv->cascade),
                                       _gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_COLOR),
                                       NULL);
   if (val == NULL)
@@ -1484,7 +1484,7 @@ gtk_style_context_lookup_color (GtkStyleContext *context,
   g_return_val_if_fail (color_name != NULL, FALSE);
   g_return_val_if_fail (color != NULL, FALSE);
 
-  value = _gtk_style_provider_private_get_color (GTK_STYLE_PROVIDER_PRIVATE (priv->cascade), color_name);
+  value = gtk_style_provider_get_color (GTK_STYLE_PROVIDER (priv->cascade), color_name);
   if (value == NULL)
     return FALSE;
 
index 1bb433450081082bcf55c7d730cb4d5992015f9b..3973215abb0cfe28b76b488666904a7b48cf10ea 100644 (file)
@@ -34,7 +34,7 @@ GtkCssNode     *gtk_style_context_get_node                   (GtkStyleContext *c
 void            gtk_style_context_set_id                     (GtkStyleContext *context,
                                                               const char      *id);
 const char *    gtk_style_context_get_id                     (GtkStyleContext *context);
-GtkStyleProviderPrivate *
+GtkStyleProvider *
                 gtk_style_context_get_style_provider         (GtkStyleContext *context);
 
 void            gtk_style_context_save_named                 (GtkStyleContext *context,
index 9eb735d4de276b906f2c5b14b703a91dcc446220..032e9bd07a7d5374278e66c173bc5036d3cb9b00 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "config.h"
 
-#include "gtkstyleprovider.h"
+#include "gtkstyleproviderprivate.h"
 
 #include "gtkintl.h"
 #include "gtkprivate.h"
  * See gtk_style_context_add_provider() and gtk_style_context_add_provider_for_display().
  */
 
-static void gtk_style_provider_iface_init (gpointer g_iface);
+enum {
+  CHANGED,
+  LAST_SIGNAL
+};
 
-GType
-gtk_style_provider_get_type (void)
+G_DEFINE_INTERFACE (GtkStyleProvider, gtk_style_provider, GTK_TYPE_STYLE_PROVIDER)
+
+static guint signals[LAST_SIGNAL];
+
+static void
+gtk_style_provider_default_init (GtkStyleProviderInterface *iface)
 {
-  static GType style_provider_type = 0;
+  signals[CHANGED] = g_signal_new (I_("-gtk-private-changed"),
+                                   G_TYPE_FROM_INTERFACE (iface),
+                                   G_SIGNAL_RUN_LAST,
+                                   G_STRUCT_OFFSET (GtkStyleProviderInterface, changed),
+                                   NULL, NULL,
+                                   g_cclosure_marshal_VOID__VOID,
+                                   G_TYPE_NONE, 0);
 
-  if (!style_provider_type)
-    style_provider_type = g_type_register_static_simple (G_TYPE_INTERFACE,
-                                                         I_("GtkStyleProvider"),
-                                                         sizeof (GtkStyleProviderIface),
-                                                         (GClassInitFunc) gtk_style_provider_iface_init,
-                                                         0, NULL, 0);
-  return style_provider_type;
 }
 
-static void
-gtk_style_provider_iface_init (gpointer g_iface)
+GtkCssValue *
+gtk_style_provider_get_color (GtkStyleProvider *provider,
+                              const char       *name)
+{
+  GtkStyleProviderInterface *iface;
+
+  /* for compat with gtk_symbolic_color_resolve() */
+  if (provider == NULL)
+    return NULL;
+
+  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (!iface->get_color)
+    return NULL;
+
+  return iface->get_color (provider, name);
+}
+
+GtkCssKeyframes *
+gtk_style_provider_get_keyframes (GtkStyleProvider *provider,
+                                  const char       *name)
 {
+  GtkStyleProviderInterface *iface;
+
+  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
+  gtk_internal_return_val_if_fail (name != NULL, NULL);
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (!iface->get_keyframes)
+    return NULL;
+
+  return iface->get_keyframes (provider, name);
+}
+
+void
+gtk_style_provider_lookup (GtkStyleProvider    *provider,
+                           const GtkCssMatcher *matcher,
+                           GtkCssLookup        *lookup,
+                           GtkCssChange        *out_change)
+{
+  GtkStyleProviderInterface *iface;
+
+  gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER (provider));
+  gtk_internal_return_if_fail (matcher != NULL);
+  gtk_internal_return_if_fail (lookup != NULL);
+
+  if (out_change)
+    *out_change = 0;
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (!iface->lookup)
+    return;
+
+  iface->lookup (provider, matcher, lookup, out_change);
+}
+
+void
+gtk_style_provider_changed (GtkStyleProvider *provider)
+{
+  gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER (provider));
+
+  g_signal_emit (provider, signals[CHANGED], 0);
+}
+
+GtkSettings *
+gtk_style_provider_get_settings (GtkStyleProvider *provider)
+{
+  GtkStyleProviderInterface *iface;
+
+  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), NULL);
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (!iface->get_settings)
+    return NULL;
+
+  return iface->get_settings (provider);
+}
+
+int
+gtk_style_provider_get_scale (GtkStyleProvider *provider)
+{
+  GtkStyleProviderInterface *iface;
+
+  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER (provider), 1);
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (!iface->get_scale)
+    return 1;
+
+  return iface->get_scale (provider);
+}
+
+void
+gtk_style_provider_emit_error (GtkStyleProvider *provider,
+                               GtkCssSection    *section,
+                               GError           *error)
+{
+  GtkStyleProviderInterface *iface;
+
+  iface = GTK_STYLE_PROVIDER_GET_INTERFACE (provider);
+
+  if (iface->emit_error)
+    iface->emit_error (provider, section, error);
 }
index 38bcd3b570700357d87b3256a255ea522e1b6919..5e36d0c1f0eac851c6c2dc79bd76c119499d7389 100644 (file)
@@ -31,7 +31,6 @@ G_BEGIN_DECLS
 #define GTK_TYPE_STYLE_PROVIDER          (gtk_style_provider_get_type ())
 #define GTK_STYLE_PROVIDER(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProvider))
 #define GTK_IS_STYLE_PROVIDER(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROVIDER))
-#define GTK_STYLE_PROVIDER_GET_IFACE(o)  (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProviderIface))
 
 /**
  * GTK_STYLE_PROVIDER_PRIORITY_FALLBACK:
@@ -84,18 +83,8 @@ G_BEGIN_DECLS
  */
 #define GTK_STYLE_PROVIDER_PRIORITY_USER        800
 
-typedef struct _GtkStyleProviderIface GtkStyleProviderIface;
 typedef struct _GtkStyleProvider GtkStyleProvider; /* dummy typedef */
 
-/**
- * GtkStyleProviderIface:
- */
-struct _GtkStyleProviderIface
-{
-  /*< private >*/
-  GTypeInterface g_iface;
-};
-
 GDK_AVAILABLE_IN_ALL
 GType gtk_style_provider_get_type (void) G_GNUC_CONST;
 
diff --git a/gtk/gtkstyleproviderprivate.c b/gtk/gtkstyleproviderprivate.c
deleted file mode 100644 (file)
index 8779f1e..0000000
+++ /dev/null
@@ -1,157 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "config.h"
-
-#include "gtkstyleproviderprivate.h"
-
-#include "gtkintl.h"
-#include "gtkstyleprovider.h"
-#include "gtkprivate.h"
-
-enum {
-  CHANGED,
-  LAST_SIGNAL
-};
-
-G_DEFINE_INTERFACE (GtkStyleProviderPrivate, _gtk_style_provider_private, GTK_TYPE_STYLE_PROVIDER)
-
-static guint signals[LAST_SIGNAL];
-
-static void
-_gtk_style_provider_private_default_init (GtkStyleProviderPrivateInterface *iface)
-{
-  signals[CHANGED] = g_signal_new (I_("-gtk-private-changed"),
-                                   G_TYPE_FROM_INTERFACE (iface),
-                                   G_SIGNAL_RUN_LAST,
-                                   G_STRUCT_OFFSET (GtkStyleProviderPrivateInterface, changed),
-                                   NULL, NULL,
-                                   g_cclosure_marshal_VOID__VOID,
-                                   G_TYPE_NONE, 0);
-
-}
-
-GtkCssValue *
-_gtk_style_provider_private_get_color (GtkStyleProviderPrivate *provider,
-                                       const char              *name)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  /* for compat with gtk_symbolic_color_resolve() */
-  if (provider == NULL)
-    return NULL;
-
-  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL);
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (!iface->get_color)
-    return NULL;
-
-  return iface->get_color (provider, name);
-}
-
-GtkCssKeyframes *
-_gtk_style_provider_private_get_keyframes (GtkStyleProviderPrivate *provider,
-                                           const char              *name)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL);
-  gtk_internal_return_val_if_fail (name != NULL, NULL);
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (!iface->get_keyframes)
-    return NULL;
-
-  return iface->get_keyframes (provider, name);
-}
-
-void
-_gtk_style_provider_private_lookup (GtkStyleProviderPrivate *provider,
-                                    const GtkCssMatcher     *matcher,
-                                    GtkCssLookup            *lookup,
-                                    GtkCssChange            *out_change)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider));
-  gtk_internal_return_if_fail (matcher != NULL);
-  gtk_internal_return_if_fail (lookup != NULL);
-
-  if (out_change)
-    *out_change = 0;
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (!iface->lookup)
-    return;
-
-  iface->lookup (provider, matcher, lookup, out_change);
-}
-
-void
-_gtk_style_provider_private_changed (GtkStyleProviderPrivate *provider)
-{
-  gtk_internal_return_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider));
-
-  g_signal_emit (provider, signals[CHANGED], 0);
-}
-
-GtkSettings *
-_gtk_style_provider_private_get_settings (GtkStyleProviderPrivate *provider)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), NULL);
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (!iface->get_settings)
-    return NULL;
-
-  return iface->get_settings (provider);
-}
-
-int
-_gtk_style_provider_private_get_scale (GtkStyleProviderPrivate *provider)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  gtk_internal_return_val_if_fail (GTK_IS_STYLE_PROVIDER_PRIVATE (provider), 1);
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (!iface->get_scale)
-    return 1;
-
-  return iface->get_scale (provider);
-}
-
-void
-_gtk_style_provider_private_emit_error (GtkStyleProviderPrivate *provider,
-                                        GtkCssSection           *section,
-                                        GError                  *error)
-{
-  GtkStyleProviderPrivateInterface *iface;
-
-  iface = GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE (provider);
-
-  if (iface->emit_error)
-    iface->emit_error (provider, section, error);
-}
index 086119c7e828e2a0e6c5881710191ffb95d2f5cf..c33438dd99d6166b2c5ad2bc513d703b1afb39b2 100644 (file)
 
 G_BEGIN_DECLS
 
-#define GTK_TYPE_STYLE_PROVIDER_PRIVATE          (_gtk_style_provider_private_get_type ())
-#define GTK_STYLE_PROVIDER_PRIVATE(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivate))
-#define GTK_IS_STYLE_PROVIDER_PRIVATE(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE))
-#define GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE(o)  (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivateInterface))
+#define GTK_STYLE_PROVIDER_GET_INTERFACE(o)  (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER, GtkStyleProviderInterface))
 
-typedef struct _GtkStyleProviderPrivateInterface GtkStyleProviderPrivateInterface;
-/* typedef struct _GtkStyleProviderPrivate GtkStyleProviderPrivate; */ /* dummy typedef */
+typedef struct _GtkStyleProviderInterface GtkStyleProviderInterface;
 
-struct _GtkStyleProviderPrivateInterface
+struct _GtkStyleProviderInterface
 {
   GTypeInterface g_iface;
 
-  GtkCssValue *         (* get_color)           (GtkStyleProviderPrivate *provider,
+  GtkCssValue *         (* get_color)           (GtkStyleProvider *provider,
                                                  const char              *name);
-  GtkSettings *         (* get_settings)        (GtkStyleProviderPrivate *provider);
-  GtkCssKeyframes *     (* get_keyframes)       (GtkStyleProviderPrivate *provider,
+  GtkSettings *         (* get_settings)        (GtkStyleProvider *provider);
+  GtkCssKeyframes *     (* get_keyframes)       (GtkStyleProvider *provider,
                                                  const char              *name);
-  int                   (* get_scale)           (GtkStyleProviderPrivate *provider);
-  void                  (* lookup)              (GtkStyleProviderPrivate *provider,
+  int                   (* get_scale)           (GtkStyleProvider *provider);
+  void                  (* lookup)              (GtkStyleProvider *provider,
                                                  const GtkCssMatcher     *matcher,
                                                  GtkCssLookup            *lookup,
                                                  GtkCssChange            *out_change);
-  void                  (* emit_error)          (GtkStyleProviderPrivate *provider,
+  void                  (* emit_error)          (GtkStyleProvider *provider,
                                                  GtkCssSection           *section,
                                                  const GError            *error);
   /* signal */
-  void                  (* changed)             (GtkStyleProviderPrivate *provider);
+  void                  (* changed)             (GtkStyleProvider *provider);
 };
 
-GType                   _gtk_style_provider_private_get_type     (void) G_GNUC_CONST;
-
-GtkSettings *           _gtk_style_provider_private_get_settings (GtkStyleProviderPrivate *provider);
-GtkCssValue *           _gtk_style_provider_private_get_color    (GtkStyleProviderPrivate *provider,
+GtkSettings *           gtk_style_provider_get_settings          (GtkStyleProvider *provider);
+GtkCssValue *           gtk_style_provider_get_color             (GtkStyleProvider *provider,
                                                                   const char              *name);
-GtkCssKeyframes *       _gtk_style_provider_private_get_keyframes(GtkStyleProviderPrivate *provider,
+GtkCssKeyframes *       gtk_style_provider_get_keyframes         (GtkStyleProvider *provider,
                                                                   const char              *name);
-int                     _gtk_style_provider_private_get_scale    (GtkStyleProviderPrivate *provider);
-void                    _gtk_style_provider_private_lookup       (GtkStyleProviderPrivate *provider,
+int                     gtk_style_provider_get_scale             (GtkStyleProvider *provider);
+void                    gtk_style_provider_lookup                (GtkStyleProvider *provider,
                                                                   const GtkCssMatcher     *matcher,
                                                                   GtkCssLookup            *lookup,
                                                                   GtkCssChange            *out_change);
 
-void                    _gtk_style_provider_private_changed      (GtkStyleProviderPrivate *provider);
+void                    gtk_style_provider_changed               (GtkStyleProvider *provider);
 
-void                    _gtk_style_provider_private_emit_error   (GtkStyleProviderPrivate *provider,
+void                    gtk_style_provider_emit_error            (GtkStyleProvider *provider,
                                                                   GtkCssSection           *section,
                                                                   GError                  *error);
 
index da95435a846818a7f04dc629e8c8f965c1dc0277..166e81e1a1ac37c9c4d056661f0a56fffab20224 100644 (file)
@@ -307,7 +307,6 @@ gtk_public_sources = files([
   'gtkstylecontext.c',
   'gtkstyleproperty.c',
   'gtkstyleprovider.c',
-  'gtkstyleproviderprivate.c',
   'gtkswitch.c',
   'gtktestutils.c',
   'gtktextattributes.c',