[gtk+] cell view: Add an element name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cell view: Add an element name
- Date: Wed, 11 Nov 2015 01:46:17 +0000 (UTC)
commit 735a71da112cbf3cc6ae0cce8ea2147db510d109
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 10 20:45:42 2015 -0500
cell view: Add an element name
The element name is...cellview.
gtk/gtkcellview.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c
index 4297360..190f895 100644
--- a/gtk/gtkcellview.c
+++ b/gtk/gtkcellview.c
@@ -48,6 +48,10 @@
* listed top-to-bottom and thus all share the same width but may have separate
* individual heights (left-to-right menus should be allocated vertically since
* they all share the same height but may have variable widths).
+ *
+ * # CSS nodes
+ *
+ * GtkCellView has a single CSS node with name cellview.
*/
static void gtk_cell_view_constructed (GObject *object);
@@ -324,6 +328,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
ADD_SET_PROP ("background-set", PROP_BACKGROUND_SET,
P_("Background set"),
P_("Whether this tag affects the background color"));
+
+ gtk_widget_class_set_css_name (widget_class, "cellview");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]