From 7cf3eec85b171d0e51b356b29446b58a86feb44d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 Oct 2015 19:27:13 -0400 Subject: [PATCH] Add since tags to new api gtk_widget_class_set/get_css_name were missing it. --- gtk/gtkwidget.c | 14 +++++++++----- gtk/gtkwidget.h | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index df34d1068b..4b1668d295 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -16321,11 +16321,13 @@ gtk_widget_clear_path (GtkWidget *widget) * @widget_class: class to set the name on * @name: name to use * - * Sets the name to be used for CSS matching of widgets. + * Sets the name to be used for CSS matching of widgets. * - * If this function is not calles for a given class, the name + * If this function is not called for a given class, the name * of the parent class is used. - **/ + * + * Since: 3.20 + */ void gtk_widget_class_set_css_name (GtkWidgetClass *widget_class, const char *name) @@ -16344,10 +16346,12 @@ gtk_widget_class_set_css_name (GtkWidgetClass *widget_class, * gtk_widget_class_get_css_name: * @widget_class: class to set the name on * - * Gets the name used by this class for matching in CSS code. See + * Gets the name used by this class for matching in CSS code. See * gtk_widget_class_set_css_name() for details. * - * Returns: the CSS name of the given class. + * Returns: the CSS name of the given class + * + * Since: 3.20 */ const char * gtk_widget_class_get_css_name (GtkWidgetClass *widget_class) diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 6aeda831d4..67441de36f 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -1302,10 +1302,10 @@ GtkStyleContext * gtk_widget_get_style_context (GtkWidget *widget); GDK_AVAILABLE_IN_ALL GtkWidgetPath * gtk_widget_get_path (GtkWidget *widget); -/*GDK_AVAILABLE_IN_3_20*/ +GDK_AVAILABLE_IN_3_20 void gtk_widget_class_set_css_name (GtkWidgetClass *widget_class, const char *name); -/*GDK_AVAILABLE_IN_3_20*/ +GDK_AVAILABLE_IN_3_20 const char * gtk_widget_class_get_css_name (GtkWidgetClass *widget_class); GDK_AVAILABLE_IN_3_4