summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-02-14 11:14:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-02-14 11:14:23 -0500
commit7ebc3a9489a55191a1d4f16296d75ffefdfa19c8 (patch)
treecb3be1e2c5b5c24ce6db944b70f6ffd39e8568e9
parenta4f17eaa8bf2794af5a7fd027a59e3622ffb91f4 (diff)
downloadgtk+-7ebc3a9489a55191a1d4f16296d75ffefdfa19c8.tar.gz
Update popover css docs
Mention that shadows are now possible.
-rw-r--r--gtk/gtkpopover.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index bf9be24709..b00cdd3827 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -83,14 +83,15 @@
* to differentiate from plain popovers.
*
* When styling a popover directly, the popover node should usually
- * not have any background.
+ * not have any background. The visible part of the popover can have a shadow.
+ * To specify it in CSS, set the box-shadow of the contents node.
*
* Note that, in order to accomplish appropriate arrow visuals, #GtkPopover uses
* custom drawing for the arrow node. This makes it possible for the arrow to
* change its shape dynamically, but it also limits the possibilities of styling
* it using CSS. In particular, the arrow gets drawn over the content node's
- * border so they look like one shape, which means that the border-width of
- * the content node and the arrow node should be the same. The arrow also does
+ * shadow border so they look like one shape, which means that the border width
+ * of the content node and the arrow node should be the same. The arrow also does
* not support any border shape other than solid, no border-radius, only one
* border width (border-bottom-width is used) and no box-shadow.
*/