[gtk/matthiasc/for-main] Rename gtk_widget_get_style_color




commit 27259e33362592f2cbcdf05947013aee134f039b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 16 20:59:38 2022 -0400

    Rename gtk_widget_get_style_color
    
    This name wasn't everybody's favorite, so go with
    the generic name gtk_widget_get_color() instead.

 gtk/deprecated/gtkstylecontext.c | 2 +-
 gtk/gtkwidget.c                  | 6 +++---
 gtk/gtkwidget.h                  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/deprecated/gtkstylecontext.c b/gtk/deprecated/gtkstylecontext.c
index d8f113f369..1ba9b9b2af 100644
--- a/gtk/deprecated/gtkstylecontext.c
+++ b/gtk/deprecated/gtkstylecontext.c
@@ -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,
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index df62e32822..b57d8c340c 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -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;
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index 04eec3f732..ffcab268c6 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -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);
 
 


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