[gtk/prop-list: 109/113] Add a new scrollable policy
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 109/113] Add a new scrollable policy
- Date: Wed, 18 Dec 2019 05:11:05 +0000 (UTC)
commit 7823d91c0d55bc71adf68b069d490c1f3981e984
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]