[libadwaita/wip/exalm/view-switcher-cleanup: 13/16] leaflet: Use minimum fold policy by default




commit f50998014620d61e4c22d9035449184e5b5346b7
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Aug 31 16:16:09 2021 +0500

    leaflet: Use minimum fold policy by default
    
    Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/218

 src/adw-leaflet.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-leaflet.c b/src/adw-leaflet.c
index 994eb48a..07e09a07 100644
--- a/src/adw-leaflet.c
+++ b/src/adw-leaflet.c
@@ -2350,7 +2350,7 @@ adw_leaflet_class_init (AdwLeafletClass *klass)
                        "Fold Threshold Policy",
                        "Determines when the leaflet will fold",
                        ADW_TYPE_FOLD_THRESHOLD_POLICY,
-                       ADW_FOLD_THRESHOLD_POLICY_NATURAL,
+                       ADW_FOLD_THRESHOLD_POLICY_MINIMUM,
                        G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
@@ -2603,7 +2603,7 @@ adw_leaflet_init (AdwLeaflet *self)
   self->children_reversed = NULL;
   self->visible_child = NULL;
   self->folded = FALSE;
-  self->fold_threshold_policy = ADW_FOLD_THRESHOLD_POLICY_NATURAL;
+  self->fold_threshold_policy = ADW_FOLD_THRESHOLD_POLICY_MINIMUM;
   self->homogeneous[ADW_FOLD_UNFOLDED][GTK_ORIENTATION_HORIZONTAL] = FALSE;
   self->homogeneous[ADW_FOLD_UNFOLDED][GTK_ORIENTATION_VERTICAL] = FALSE;
   self->homogeneous[ADW_FOLD_FOLDED][GTK_ORIENTATION_HORIZONTAL] = TRUE;
@@ -3828,7 +3828,7 @@ adw_leaflet_get_pages (AdwLeaflet *self)
 AdwFoldThresholdPolicy
 adw_leaflet_get_fold_threshold_policy (AdwLeaflet *self)
 {
-  g_return_val_if_fail (ADW_IS_LEAFLET (self), ADW_FOLD_THRESHOLD_POLICY_NATURAL);
+  g_return_val_if_fail (ADW_IS_LEAFLET (self), ADW_FOLD_THRESHOLD_POLICY_MINIMUM);
 
   return self->fold_threshold_policy;
 }


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