mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
scrollbar: Add new API to gtk4-sections.txt
and update the css node docs
This commit is contained in:
parent
0a70ec2d36
commit
b9f70b473c
@ -2524,6 +2524,8 @@ gtk_scrollable_get_type
|
||||
<TITLE>GtkScrollbar</TITLE>
|
||||
GtkScrollbar
|
||||
gtk_scrollbar_new
|
||||
gtk_scrollbar_get_adjustment
|
||||
gtk_scrollbar_set_adjustment
|
||||
<SUBSECTION Standard>
|
||||
GTK_SCROLLBAR
|
||||
GTK_IS_SCROLLBAR
|
||||
|
@ -458,6 +458,7 @@ gtk_range_class_init (GtkRangeClass *class)
|
||||
g_object_class_install_properties (gobject_class, LAST_PROP, properties);
|
||||
|
||||
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RANGE_ACCESSIBLE);
|
||||
gtk_widget_class_set_css_name (widget_class, "range");
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "gtkscrollbar.h"
|
||||
#include "gtkrangeprivate.h"
|
||||
#include "gtkrange.h"
|
||||
|
||||
#include "gtkadjustment.h"
|
||||
#include "gtkintl.h"
|
||||
@ -59,17 +59,15 @@
|
||||
*
|
||||
* |[<!-- language="plain" -->
|
||||
* scrollbar[.fine-tune]
|
||||
* ╰── contents
|
||||
* ├── [button.up]
|
||||
* ├── [button.down]
|
||||
* ├── trough
|
||||
* │ ╰── slider
|
||||
* ├── [button.up]
|
||||
* ╰── [button.down]
|
||||
* ╰── box
|
||||
* ╰── range
|
||||
* ╰── trough
|
||||
* ╰── slider
|
||||
* ]|
|
||||
*
|
||||
* GtkScrollbar has a main CSS node with name scrollbar and a subnode for its
|
||||
* contents, with subnodes named trough and slider.
|
||||
* contents. Both the main node and the box subnode get the .horizontal or .vertical
|
||||
* style classes applied, depending on the scrollbar's orientation.
|
||||
*
|
||||
* The main node gets the style class .fine-tune added when the scrollbar is
|
||||
* in 'fine-tuning' mode.
|
||||
|
@ -30,7 +30,7 @@
|
||||
#error "Only <gtk/gtk.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#include <gtk/gtkrange.h>
|
||||
#include <gtk/gtkwidget.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user