[gnome-control-center] Replace HdyColumn by HdyClamp



commit f06379e30cdd8cb94016198b7e31363684dc5132
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Jul 3 10:05:37 2020 +0200

    Replace HdyColumn by HdyClamp
    
    In libhandy 1, HdyClamp replaces HdyColumn. This stops setting values
    when they match HdyClamp's defaults.

 panels/applications/cc-applications-panel.ui   | 4 +---
 panels/background/cc-background-panel.ui       | 6 +++---
 panels/camera/cc-camera-panel.ui               | 4 +---
 panels/color/cc-color-panel.ui                 | 4 +---
 panels/datetime/cc-datetime-panel.ui           | 4 +---
 panels/diagnostics/cc-diagnostics-panel.ui     | 4 +---
 panels/display/cc-display-panel.ui             | 4 +---
 panels/info-overview/cc-info-overview-panel.ui | 4 +---
 panels/location/cc-location-panel.ui           | 4 +---
 panels/lock/cc-lock-panel.ui                   | 4 +---
 panels/microphone/cc-microphone-panel.ui       | 4 +---
 panels/network/cc-network-panel.ui             | 4 +---
 panels/network/cc-wifi-panel.ui                | 4 +---
 panels/notifications/cc-notifications-panel.ui | 4 +---
 panels/online-accounts/online-accounts.ui      | 4 +---
 panels/power/cc-power-panel.ui                 | 4 +---
 panels/region/cc-region-panel.ui               | 4 +---
 panels/search/cc-search-panel.ui               | 4 +---
 panels/sharing/cc-sharing-panel.ui             | 4 +---
 panels/sound/cc-sound-panel.ui                 | 4 +---
 panels/universal-access/cc-ua-panel.ui         | 4 +---
 panels/usage/cc-usage-panel.ui                 | 4 +---
 22 files changed, 24 insertions(+), 66 deletions(-)
---
diff --git a/panels/applications/cc-applications-panel.ui b/panels/applications/cc-applications-panel.ui
index 98eff3039a..3ab565ddd4 100644
--- a/panels/applications/cc-applications-panel.ui
+++ b/panels/applications/cc-applications-panel.ui
@@ -8,10 +8,8 @@
         <property name="visible">1</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/background/cc-background-panel.ui b/panels/background/cc-background-panel.ui
index e418d1ae03..7b5c3d3850 100644
--- a/panels/background/cc-background-panel.ui
+++ b/panels/background/cc-background-panel.ui
@@ -11,10 +11,10 @@
         <property name="orientation">vertical</property>
 
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">1</property>
-            <property name="maximum_width">300</property>
-            <property name="linear_growth_width">200</property>
+            <property name="maximum_size">300</property>
+            <property name="tightening_threshold">200</property>
             <child>
               <object class="GtkBox">
                 <property name="visible">True</property>
diff --git a/panels/camera/cc-camera-panel.ui b/panels/camera/cc-camera-panel.ui
index 88880749a1..8d87bbd618 100644
--- a/panels/camera/cc-camera-panel.ui
+++ b/panels/camera/cc-camera-panel.ui
@@ -56,10 +56,8 @@
             <property name="visible">true</property>
             <property name="hscrollbar-policy">never</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/color/cc-color-panel.ui b/panels/color/cc-color-panel.ui
index 5f5eac075f..647e598944 100644
--- a/panels/color/cc-color-panel.ui
+++ b/panels/color/cc-color-panel.ui
@@ -762,10 +762,8 @@
         <property name="visible">True</property>
         <property name="can_focus">False</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/datetime/cc-datetime-panel.ui b/panels/datetime/cc-datetime-panel.ui
index cc4d8e9473..528e8bc26e 100644
--- a/panels/datetime/cc-datetime-panel.ui
+++ b/panels/datetime/cc-datetime-panel.ui
@@ -161,10 +161,8 @@
         <property name="can-focus">False</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/diagnostics/cc-diagnostics-panel.ui b/panels/diagnostics/cc-diagnostics-panel.ui
index 1930e91334..4838a63e47 100644
--- a/panels/diagnostics/cc-diagnostics-panel.ui
+++ b/panels/diagnostics/cc-diagnostics-panel.ui
@@ -9,10 +9,8 @@
         <property name="visible">1</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/display/cc-display-panel.ui b/panels/display/cc-display-panel.ui
index 9728bbf9e4..855b34814a 100644
--- a/panels/display/cc-display-panel.ui
+++ b/panels/display/cc-display-panel.ui
@@ -57,12 +57,10 @@
                 <property name="can_focus">False</property>
                 <property name="shadow_type">none</property>
                 <child>
-                  <object class="HdyColumn">
+                  <object class="HdyClamp">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
                     <property name="valign">start</property>
-                    <property name="maximum_width">600</property>
-                    <property name="linear_growth_width">400</property>
                     <property name="margin_top">32</property>
                     <property name="margin_bottom">32</property>
                     <property name="margin_start">12</property>
diff --git a/panels/info-overview/cc-info-overview-panel.ui b/panels/info-overview/cc-info-overview-panel.ui
index 12dd7a702a..98cb85df34 100644
--- a/panels/info-overview/cc-info-overview-panel.ui
+++ b/panels/info-overview/cc-info-overview-panel.ui
@@ -11,10 +11,8 @@
         <property name="min-content-height">480</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/location/cc-location-panel.ui b/panels/location/cc-location-panel.ui
index 85f21ae200..9bceb9ca62 100644
--- a/panels/location/cc-location-panel.ui
+++ b/panels/location/cc-location-panel.ui
@@ -53,10 +53,8 @@
             <property name="visible">true</property>
             <property name="hscrollbar-policy">never</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/lock/cc-lock-panel.ui b/panels/lock/cc-lock-panel.ui
index 85140eefa6..fa30378993 100644
--- a/panels/lock/cc-lock-panel.ui
+++ b/panels/lock/cc-lock-panel.ui
@@ -8,10 +8,8 @@
         <property name="visible">1</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/microphone/cc-microphone-panel.ui b/panels/microphone/cc-microphone-panel.ui
index e166e7beab..04f943b35d 100644
--- a/panels/microphone/cc-microphone-panel.ui
+++ b/panels/microphone/cc-microphone-panel.ui
@@ -56,10 +56,8 @@
             <property name="visible">true</property>
             <property name="hscrollbar-policy">never</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/network/cc-network-panel.ui b/panels/network/cc-network-panel.ui
index 80cf3570d4..84735fdbfc 100644
--- a/panels/network/cc-network-panel.ui
+++ b/panels/network/cc-network-panel.ui
@@ -16,10 +16,8 @@
             <property name="can_focus">False</property>
             <property name="shadow_type">none</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/network/cc-wifi-panel.ui b/panels/network/cc-wifi-panel.ui
index c450ac2f40..a6ba995c4a 100644
--- a/panels/network/cc-wifi-panel.ui
+++ b/panels/network/cc-wifi-panel.ui
@@ -11,10 +11,8 @@
         <property name="can-focus">False</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/notifications/cc-notifications-panel.ui b/panels/notifications/cc-notifications-panel.ui
index 527e03b53f..31e041c1e1 100644
--- a/panels/notifications/cc-notifications-panel.ui
+++ b/panels/notifications/cc-notifications-panel.ui
@@ -14,10 +14,8 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/online-accounts/online-accounts.ui b/panels/online-accounts/online-accounts.ui
index a78f61e027..c101964d99 100644
--- a/panels/online-accounts/online-accounts.ui
+++ b/panels/online-accounts/online-accounts.ui
@@ -70,10 +70,8 @@
             <property name="hscrollbar_policy">never</property>
             <property name="min_content_height">500</property>
             <child>
-              <object class="HdyColumn">
+              <object class="HdyClamp">
                 <property name="visible">True</property>
-                <property name="maximum_width">600</property>
-                <property name="linear_growth_width">400</property>
                 <property name="margin_top">32</property>
                 <property name="margin_bottom">32</property>
                 <property name="margin_start">12</property>
diff --git a/panels/power/cc-power-panel.ui b/panels/power/cc-power-panel.ui
index 739d081781..74aed35cd7 100644
--- a/panels/power/cc-power-panel.ui
+++ b/panels/power/cc-power-panel.ui
@@ -118,10 +118,8 @@
         <property name="can_focus">False</property>
         <property name="hscrollbar_policy">never</property>
         <child>
-          <object class="HdyColumn" id="main_box">
+          <object class="HdyClamp" id="main_box">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/region/cc-region-panel.ui b/panels/region/cc-region-panel.ui
index 20456aa5b2..b779142673 100644
--- a/panels/region/cc-region-panel.ui
+++ b/panels/region/cc-region-panel.ui
@@ -11,10 +11,8 @@
         <property name="can-focus">False</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/search/cc-search-panel.ui b/panels/search/cc-search-panel.ui
index 59a734efdf..731cc95d26 100644
--- a/panels/search/cc-search-panel.ui
+++ b/panels/search/cc-search-panel.ui
@@ -11,10 +11,8 @@
         <property name="hscrollbar_policy">never</property>
         <property name="can_focus">False</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/sharing/cc-sharing-panel.ui b/panels/sharing/cc-sharing-panel.ui
index bcb78a3fd9..40a112ab3e 100644
--- a/panels/sharing/cc-sharing-panel.ui
+++ b/panels/sharing/cc-sharing-panel.ui
@@ -11,10 +11,8 @@
         <property name="can-focus">False</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/sound/cc-sound-panel.ui b/panels/sound/cc-sound-panel.ui
index 588c578d8c..140feaa96a 100644
--- a/panels/sound/cc-sound-panel.ui
+++ b/panels/sound/cc-sound-panel.ui
@@ -8,10 +8,8 @@
         <property name="visible">True</property>
         <property name="hscrollbar_policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>
diff --git a/panels/universal-access/cc-ua-panel.ui b/panels/universal-access/cc-ua-panel.ui
index b5ab770e73..5dc561f5c1 100644
--- a/panels/universal-access/cc-ua-panel.ui
+++ b/panels/universal-access/cc-ua-panel.ui
@@ -52,10 +52,8 @@
 
                 <!-- Content -->
                 <child>
-                  <object class="HdyColumn">
+                  <object class="HdyClamp">
                     <property name="visible">true</property>
-                    <property name="maximum-width">600</property>
-                    <property name="linear-growth-width">400</property>
                     <property name="margin-top">32</property>
                     <property name="margin-bottom">32</property>
                     <property name="margin-start">12</property>
diff --git a/panels/usage/cc-usage-panel.ui b/panels/usage/cc-usage-panel.ui
index fb132ada43..22aac47537 100644
--- a/panels/usage/cc-usage-panel.ui
+++ b/panels/usage/cc-usage-panel.ui
@@ -8,10 +8,8 @@
         <property name="visible">true</property>
         <property name="hscrollbar-policy">never</property>
         <child>
-          <object class="HdyColumn">
+          <object class="HdyClamp">
             <property name="visible">True</property>
-            <property name="maximum_width">600</property>
-            <property name="linear_growth_width">400</property>
             <property name="margin_top">32</property>
             <property name="margin_bottom">32</property>
             <property name="margin_start">12</property>


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