diff options
-rw-r--r-- | docs/reference/gtk/gtk3-sections.txt | 2 | ||||
-rw-r--r-- | gtk/gtkenums.h | 39 | ||||
-rw-r--r-- | gtk/gtkscrolledwindow.h | 41 | ||||
-rw-r--r-- | gtk/gtksettings.c | 1 |
4 files changed, 43 insertions, 40 deletions
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt index e99d8ccecd..b7f71d1df5 100644 --- a/docs/reference/gtk/gtk3-sections.txt +++ b/docs/reference/gtk/gtk3-sections.txt @@ -3119,6 +3119,7 @@ gtk_scrolled_window_get_hadjustment gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_hscrollbar gtk_scrolled_window_get_vscrollbar +GtkPolicyType gtk_scrolled_window_set_policy gtk_scrolled_window_add_with_viewport GtkCornerType @@ -6522,7 +6523,6 @@ GtkOrientation GtkPackType GtkPathPriorityType GtkPathType -GtkPolicyType GtkPositionType GtkReliefStyle GtkResizeMode diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index daaa604ea3..be3bd75ef2 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -361,29 +361,6 @@ typedef enum } GtkOrientation; /** - * GtkCornerType: - * @GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the - * widget (default behaviour). - * @GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the - * widget. - * @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the - * widget. - * @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the - * widget. - * - * Specifies which corner a child widget should be placed in when packed into - * a #GtkScrolledWindow. This is effectively the opposite of where the scroll - * bars are placed. - */ -typedef enum -{ - GTK_CORNER_TOP_LEFT, - GTK_CORNER_BOTTOM_LEFT, - GTK_CORNER_TOP_RIGHT, - GTK_CORNER_BOTTOM_RIGHT -} GtkCornerType; - -/** * GtkPackType: * @GTK_PACK_START: The child is packed into the start of the box * @GTK_PACK_END: The child is packed into the end of the box @@ -441,22 +418,6 @@ typedef enum } GtkPathType; /** - * GtkPolicyType: - * @GTK_POLICY_ALWAYS: The scrollbar is always visible. - * @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example, - * when all of a #GtkCList can not be seen. - * @GTK_POLICY_NEVER: The scrollbar will never appear. - * - * Determines when a scroll bar will be visible. - */ -typedef enum -{ - GTK_POLICY_ALWAYS, - GTK_POLICY_AUTOMATIC, - GTK_POLICY_NEVER -} GtkPolicyType; - -/** * GtkPositionType: * @GTK_POS_LEFT: The feature is at the left edge. * @GTK_POS_RIGHT: The feature is at the right edge. diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h index 503b3d707e..443a8c9a0f 100644 --- a/gtk/gtkscrolledwindow.h +++ b/gtk/gtkscrolledwindow.h @@ -94,6 +94,47 @@ struct _GtkScrolledWindowClass }; +/** + * GtkCornerType: + * @GTK_CORNER_TOP_LEFT: Place the scrollbars on the right and bottom of the + * widget (default behaviour). + * @GTK_CORNER_BOTTOM_LEFT: Place the scrollbars on the top and right of the + * widget. + * @GTK_CORNER_TOP_RIGHT: Place the scrollbars on the left and bottom of the + * widget. + * @GTK_CORNER_BOTTOM_RIGHT: Place the scrollbars on the top and left of the + * widget. + * + * Specifies which corner a child widget should be placed in when packed into + * a #GtkScrolledWindow. This is effectively the opposite of where the scroll + * bars are placed. + */ +typedef enum +{ + GTK_CORNER_TOP_LEFT, + GTK_CORNER_BOTTOM_LEFT, + GTK_CORNER_TOP_RIGHT, + GTK_CORNER_BOTTOM_RIGHT +} GtkCornerType; + + +/** + * GtkPolicyType: + * @GTK_POLICY_ALWAYS: The scrollbar is always visible. + * @GTK_POLICY_AUTOMATIC: The scrollbar will appear and disappear as necessary. For example, + * when all of a #GtkCList can not be seen. + * @GTK_POLICY_NEVER: The scrollbar will never appear. + * + * Determines when a scroll bar will be visible. + */ +typedef enum +{ + GTK_POLICY_ALWAYS, + GTK_POLICY_AUTOMATIC, + GTK_POLICY_NEVER +} GtkPolicyType; + + GDK_AVAILABLE_IN_ALL GType gtk_scrolled_window_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index a12d5d8830..dd4666288f 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -34,6 +34,7 @@ #include "gtkstyleproviderprivate.h" #include "gtktypebuiltins.h" #include "gtkversion.h" +#include "gtkscrolledwindow.h" #ifdef GDK_WINDOWING_X11 #include "x11/gdkx.h" |