diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index b1a29e63ae..1f16d5c820 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -36,6 +36,7 @@ gtkrecentchooserwidget.sgml gtkrecentmanager.sgml gtkscale.sgml gtkscalebutton.sgml +gtkscrollbar.sgml gtkscrolledwindow.sgml gtkseparator.sgml gtkseparatormenuitem.sgml diff --git a/docs/reference/gtk/tmpl/gtkscrollbar.sgml b/docs/reference/gtk/tmpl/gtkscrollbar.sgml deleted file mode 100644 index 9df668348f..0000000000 --- a/docs/reference/gtk/tmpl/gtkscrollbar.sgml +++ /dev/null @@ -1,103 +0,0 @@ - -GtkScrollbar - - -Base class for GtkHScrollbar and GtkVScrollbar - - - -The #GtkScrollbar widget is the base class for #GtkHScrollbar and -#GtkVScrollbar. It can be used in the same way as these, by setting -the "orientation" property appropriately. - - - -The position of the thumb in a scrollbar is controlled by the scroll -adjustments. See #GtkAdjustment for the fields in an adjustment - for -#GtkScrollbar, the "value" field represents the position of the -scrollbar, which must be between the "lower" field and "upper - -page_size." The "page_size" field represents the size of the visible -scrollable area. The "step_increment" and "page_increment" fields are -used when the user asks to step down (using the small stepper arrows) -or page down (using for example the PageDown key). - - - - - - - -#GtkHScrollbar -a horizontal scrollbar. - - - -#GtkVScrollbar -a vertical scrollbar. - - - -#GtkAdjustment -connects scrollbars to the widget being scrolled. - - - -#GtkScrolledWindow -convenient widget for setting up scrolling. - - - - - - - - - - - - - -The #GtkScrollbar struct does not contain any public data. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@orientation: -@adjustment: -@Returns: - - diff --git a/gtk/gtkscrollbar.c b/gtk/gtkscrollbar.c index ce41a231bd..d04ed7c387 100644 --- a/gtk/gtkscrollbar.c +++ b/gtk/gtkscrollbar.c @@ -31,6 +31,31 @@ #include "gtkintl.h" #include "gtkprivate.h" + +/** + * SECTION:gtkscrollbar + * @Short_description: Base class for GtkHScrollbar and GtkVScrollbar + * @Title: GtkScrollbar + * @See_also: #GtkHScrollbar, #GtkVScrollbar, #GtkAdjustment, + * #GtkScrolledWindow + * + * The #GtkScrollbar widget is the base class for #GtkHScrollbar and + * #GtkVScrollbar. It can be used in the same way as these, by setting + * the "orientation" property appropriately. + * + * The position of the thumb in a scrollbar is controlled by the scroll + * adjustments. See #GtkAdjustment for the fields in an adjustment - for + * #GtkScrollbar, the #GtkAdjustment.value field represents the position + * of the scrollbar, which must be between the #GtkAdjustment.lower field + * and #GtkAdjustment.upper - #GtkAdjustment.page_size. The + * #GtkAdjustment.page_size field represents the size of the visible + * scrollable area. The #GtkAdjustment.step_increment and + * #GtkAdjustment.page_increment fields are used when the user asks to + * step down (using the small stepper arrows) or page down (using for + * example the PageDown key). + */ + + static void gtk_scrollbar_style_set (GtkWidget *widget, GtkStyle *previous);