summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-11-05 16:13:06 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-11-05 16:13:06 -0500
commitad214e187124f253d036a38423c1c4a4cd5b30e5 (patch)
tree7d9c868d87f0c02b66360f3e92ece8a2d1b65e45 /gtk/gtkwindow.c
parent5d62c808b1831dcfa144e6fc8107bbf906ae6031 (diff)
downloadgtk+-ad214e187124f253d036a38423c1c4a4cd5b30e5.tar.gz
window: Add a diagram to the CSS documentation
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e73df17720..59a1f976ef 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -125,6 +125,21 @@
* The GtkWindow implementation of the GtkBuildable interface supports
* setting a child as the titlebar by specifying “titlebar” as the “type”
* attribute of a <child> element.
+ *
+ * # CSS nodes
+ *
+ * |[<!-- language="plain" -->
+ * window
+ * ╰── decoration
+ * ]|
+ *
+ * GtkWindow has a main CSS node with name window and style class .background,
+ * and a subnode with name decoration. Style classes that are typically used
+ * with the main CSS node are .csd, .solid-csd, .ssd, .tiled, .maximized,
+ * .fullscreen, .popup, .tooltip.
+ *
+ * GtkWindow adds the .titlebar and .default-decoration style classes to the
+ * widget that is added as a titlebar child.
*/
#define MNEMONICS_DELAY 300 /* ms */