[gtk+] window: Add a diagram to the CSS documentation



commit ad214e187124f253d036a38423c1c4a4cd5b30e5
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 5 16:13:06 2015 -0500

    window: Add a diagram to the CSS documentation

 gtk/gtkwindow.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e73df17..59a1f97 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 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]