Rename gtk_widget_get_style_color

This name wasn't everybody's favorite, so go with
the generic name gtk_widget_get_color() instead.
This commit is contained in:
Matthias Clasen 2022-10-16 20:59:38 -04:00
parent baf3a3eecd
commit d775caff7f
4 changed files with 6 additions and 6 deletions

View File

@ -824,7 +824,7 @@ gtk_style_context_lookup_color (GtkStyleContext *context,
*
* Gets the foreground color for a given state.
*
* Deprecated: 4.10: Use [method@Gtk.Widget.get_style_color] instead
* Deprecated: 4.10: Use [method@Gtk.Widget.get_color] instead
*/
void
gtk_style_context_get_color (GtkStyleContext *context,

View File

@ -12871,7 +12871,7 @@ gtk_widget_set_css_classes (GtkWidget *widget,
}
/**
* gtk_widget_get_style_color:
* gtk_widget_get_color:
* @widget: a `GtkWidget`
* @color: (out): return location for the color
*
@ -12885,8 +12885,8 @@ gtk_widget_set_css_classes (GtkWidget *widget,
* Since: 4.10
*/
void
gtk_widget_get_style_color (GtkWidget *widget,
GdkRGBA *color)
gtk_widget_get_color (GtkWidget *widget,
GdkRGBA *color)
{
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
GtkCssStyle *style;

View File

@ -929,7 +929,7 @@ void gtk_widget_set_css_classes (GtkWidget *widget,
const char **classes);
GDK_AVAILABLE_IN_4_10
void gtk_widget_get_style_color (GtkWidget *widget,
void gtk_widget_get_color (GtkWidget *widget,
GdkRGBA *color);

View File

@ -153,7 +153,7 @@ graph_renderer_snapshot (GtkWidget *widget,
diff = maximum - minimum;
gtk_widget_get_style_color (widget, &color);
gtk_widget_get_color (widget, &color);
cr = gtk_snapshot_append_cairo (snapshot,
&GRAPHENE_RECT_INIT (