Frame: Enhance CSS docs
authorDaniel Boles <dboles@src.gnome.org>
Mon, 2 Oct 2017 18:26:22 +0000 (19:26 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 2 Oct 2017 18:50:06 +0000 (19:50 +0100)
Note optional .flat class and that the old shadow types are replaced by
CSS border-style et al.; quote names of nodes & classes for readability.

gtk/gtkframe.c

index a2e8c02042cb5c7288c22381de03fba9af5e3933..dedc4d87700027457e200fccd3d13e43de6a1617 100644 (file)
  *
  * |[<!-- language="plain" -->
  * frame 
- * ├── border
+ * ├── border[.flat]
  * ├── <label widget>
  * ╰── <child>
  * ]|
  *
- * GtkFrame has a main CSS node with name frame and a subnode with
- * name border. The border node is used to render the visible border.
+ * GtkFrame has a main CSS node named “frame” and a subnode named “border”. The
+ * “border” node is used to draw the visible border. You can set the appearance
+ * of the border using CSS properties like “border-style” on the “border” node.
  *
- * The border node can be given the style class .flat, which is used by themes
+ * The border node can be given the style class “.flat”, which is used by themes
  * to disable drawing of the border. To do this from code, call
- * gtk_frame_set_shadow_type() with %GTK_SHADOW_NONE to add the .flat class or
+ * gtk_frame_set_shadow_type() with %GTK_SHADOW_NONE to add the “.flat” class or
  * any other shadow type to remove it.
  */