mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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:
parent
baf3a3eecd
commit
d775caff7f
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user