diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-10-22 18:46:33 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-10-22 19:21:17 +0200 |
commit | 0d9ebb501df60cf1803858efcd1c79542588abd8 (patch) | |
tree | e2347bda6bad31a926399b9342a1680045ec8546 /gtk/gtkenums.h | |
parent | ce5a29bc384542839a5f12061499c8ec706b1c34 (diff) | |
download | gtk+-0d9ebb501df60cf1803858efcd1c79542588abd8.tar.gz |
Move min-display-width/height to GtkScrolledWindow
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
Diffstat (limited to 'gtk/gtkenums.h')
-rw-r--r-- | gtk/gtkenums.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index 515881e9e4..60ffbc7c10 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -543,4 +543,19 @@ typedef enum G_END_DECLS +/** + * GtkScrollablePolicy: + * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size + * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size + * + * Defines the policy to be used in a scrollable widget when updating + * the scrolled window adjustments in a given orientation. + */ +typedef enum +{ + GTK_SCROLL_MINIMUM = 0, + GTK_SCROLL_NATURAL +} GtkScrollablePolicy; + + #endif /* __GTK_ENUMS_H__ */ |