summaryrefslogtreecommitdiff
path: root/gtk/gtkscrolledwindow.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-04 23:15:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-09 20:18:51 -0400
commit94b680c2cd3c4573067322082860dde26cf5bffa (patch)
tree2ffbeb9263ba2083c2ce8b01de16a1308a3a4e28 /gtk/gtkscrolledwindow.h
parent3f4bd447f837696b44902ea6c8980cc7fa43782c (diff)
downloadgtk+-94b680c2cd3c4573067322082860dde26cf5bffa.tar.gz
GtkScrolledWindow: Allow scrolling without bars
Add a new policy, GTK_POLICY_EXTERNAL, which hides the scrollbar, but does not force the scrolled windows size to be determined by its child. This can be used to keep two scrolled windows in sync, while sharing a single scrollbar. https://bugzilla.gnome.org/show_bug.cgi?id=730730
Diffstat (limited to 'gtk/gtkscrolledwindow.h')
-rw-r--r--gtk/gtkscrolledwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h
index bbe9ee0265..f6f6df51cb 100644
--- a/gtk/gtkscrolledwindow.h
+++ b/gtk/gtkscrolledwindow.h
@@ -126,6 +126,9 @@ typedef enum
* For example, when all of a #GtkTreeView can not be seen.
* @GTK_POLICY_NEVER: The scrollbar should never appear. In this mode the
* content determines the size.
+ * @GTK_POLICY_EXTERNAL: Don't show a scrollbar, but don't force the
+ * size to follow the content. This can be used e.g. to make multiple
+ * scrolled windows share a scrollbar. Since: 3.16
*
* Determines how the size should be computed to achieve the one of the
* visibility mode for the scrollbars.
@@ -134,7 +137,8 @@ typedef enum
{
GTK_POLICY_ALWAYS,
GTK_POLICY_AUTOMATIC,
- GTK_POLICY_NEVER
+ GTK_POLICY_NEVER,
+ GTK_POLICY_EXTERNAL
} GtkPolicyType;