From cf7f23f4ddc191c2ce91192b0d8f07c625b25a08 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 Nov 2015 23:35:20 -0500 Subject: [PATCH] scrolledwindow: Document overlay scrolling style classes Document which style classes are used on scrollbars to implement overlay scrolling. --- gtk/gtkscrollbar.c | 4 ++++ gtk/gtkscrolledwindow.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c index 29e8e63dbf..06ddc506bf 100644 --- a/gtk/gtkscrollbar.c +++ b/gtk/gtkscrollbar.c @@ -74,6 +74,10 @@ * If steppers are enabled, they are represented by up to four additional * subnodes with name button. These get the style classes .up and .down to * indicate in which direction they are moving. + * + * Other style classes that may be added to scrollbars inside #GtkScrolledWindow + * include the positional classes (.left, .right, .top, .bottom) and style + * classes related to overlay scrolling (.overlay-indicator, .dragging, .hovering). */ diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index ef55d40534..da37c0d4fb 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -116,7 +116,8 @@ * on where the indication is drawn. * * GtkScrolledWindow also sets the positional style classes (.left, - * .right, .top, .bottom) on the scrollbars. + * .right, .top, .bottom) and style classes related to overlay + * scrolling (.overlay-indicator, .dragging, .hovering) on its scrollbars. * * If both scrollbars are visible, the area where they meet is drawn * with a subnode named junction.