[gnome-control-center] region: Use HdyLeaflet:folded



commit a0dfbb7aac642218954d7097f9b01bf9ebb63230
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Mar 6 11:26:39 2020 +0100

    region: Use HdyLeaflet:folded
    
    Replace the dropped fold enum property by the folded boolean one.

 panels/region/cc-format-chooser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index 0aecceffc2..f83296154b 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -285,7 +285,7 @@ format_chooser_leaflet_fold_changed_cb (CcFormatChooser *self)
 
   g_assert (CC_IS_FORMAT_CHOOSER (self));
 
-  folded = hdy_leaflet_get_fold (HDY_LEAFLET (self->main_leaflet)) == HDY_FOLD_FOLDED;
+  folded = hdy_leaflet_get_folded (HDY_LEAFLET (self->main_leaflet));
   gtk_container_foreach (GTK_CONTAINER (self->common_region_listbox),
                          (GtkCallback)cc_format_chooser_preview_button_set_visible,
                          GINT_TO_POINTER (folded));


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