[gtk/prop-list: 23/27] Add a new scrollable policy



commit eaee8106b3d8e74f946f7d0aaf1e6b6f24641523
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 16 18:52:59 2019 -0500

    Add a new scrollable policy
    
    GTK_SCROLL_FIT will be used to indicate that
    we want the content to fit without scrollbars
    as long as the required size is between minimum
    and natural size.

 gtk/gtkenums.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index e89e41fc18..0342f7d28f 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -788,6 +788,8 @@ typedef enum
  * GtkScrollablePolicy:
  * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size
  * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size
+ * @GTK_SCROLL_FIT: Scrollable adjustments try to fit without scrollbars if the
+ *     required size is between minimum and natural
  *
  * Defines the policy to be used in a scrollable widget when updating
  * the scrolled window adjustments in a given orientation.
@@ -795,7 +797,8 @@ typedef enum
 typedef enum
 {
   GTK_SCROLL_MINIMUM = 0,
-  GTK_SCROLL_NATURAL
+  GTK_SCROLL_NATURAL,
+  GTK_SCROLL_FIT
 } GtkScrollablePolicy;
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]