[gtk] widget: Fix namespacing problem
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] widget: Fix namespacing problem
- Date: Sun, 16 Feb 2020 19:07:13 +0000 (UTC)
commit 410dbdf671b35d1e893ed35c68b9c467d4a595f8
Author: Benjamin Otte <otte redhat com>
Date: Sun Feb 16 20:05:05 2020 +0100
widget: Fix namespacing problem
In Vala and JS at least, gtk_widget_get_css_name() and
gtk_widget_class_get_css_name() are resolved to
GtkWidget.get_css_name().
To avoid this problem, we rename the class version.
gtk/gtkwidget.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a72bd390bf..2a717863e7 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -11147,7 +11147,7 @@ _gtk_widget_remove_attached_window (GtkWidget *widget,
}
/**
- * gtk_widget_class_set_css_name:
+ * gtk_widget_class_set_css_name: (rename-to gtk_widget_class_set_class_css_name)
* @widget_class: class to set the name on
* @name: name to use
*
@@ -11177,7 +11177,7 @@ gtk_widget_class_get_visible_by_default (GtkWidgetClass *widget_class)
}
/**
- * gtk_widget_class_get_css_name:
+ * gtk_widget_class_get_css_name: (rename-to gtk_widget_class_get_class_css_name)
* @widget_class: class to set the name on
*
* Gets the name used by this class for matching in CSS code. See
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]