[gtk/matthiasc/for-master: 44/44] dropdown: Use our own CSS name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 44/44] dropdown: Use our own CSS name
- Date: Sun, 7 Jun 2020 13:03:39 +0000 (UTC)
commit b0bb413faabbb3a9a884710f08497581251e3ca3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 7 09:01:20 2020 -0400
dropdown: Use our own CSS name
Use the name dropdown for the css node, and document it.
gtk/gtkdropdown.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c
index 4d94d17e2c..6674a8ba35 100644
--- a/gtk/gtkdropdown.c
+++ b/gtk/gtkdropdown.c
@@ -88,7 +88,11 @@
* </items>
* </object>
* ]|
-
+ *
+ * * # CSS nodes
+ *
+ * GtkDropDown has a single CSS node with name dropdown,
+ * with the button and popover nodes as children.
*/
struct _GtkDropDown
@@ -526,7 +530,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
gtk_widget_class_bind_template_callback (widget_class, search_changed);
gtk_widget_class_bind_template_callback (widget_class, search_stop);
- gtk_widget_class_set_css_name (widget_class, I_("combobox"));
+ gtk_widget_class_set_css_name (widget_class, I_("dropdown"));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]