8ba23f
From 197efb35e6f9661ecbeac2897d36a25bc2f6433e Mon Sep 17 00:00:00 2001
8ba23f
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
8ba23f
Date: Sun, 14 Nov 2021 14:59:38 +0000
8ba23f
Subject: [PATCH] Resolves: tdf#140250 don't share adjustments between
8ba23f
 differerent spinbuttons
8ba23f
8ba23f
Change-Id: Ib684c746ff3176cf45ea9364efc12f2d6dde1f70
8ba23f
---
8ba23f
 cui/uiconfig/ui/breaknumberoption.ui | 18 ++++++++++++++++--
8ba23f
 cui/uiconfig/ui/calloutpage.ui       | 14 ++++++++++++--
8ba23f
 svx/uiconfig/ui/sidebareffect.ui     |  7 ++++++-
8ba23f
 3 files changed, 34 insertions(+), 5 deletions(-)
8ba23f
8ba23f
diff --git a/cui/uiconfig/ui/breaknumberoption.ui b/cui/uiconfig/ui/breaknumberoption.ui
8ba23f
index 2641babeeb5d..23fe294ec702 100644
8ba23f
--- a/cui/uiconfig/ui/breaknumberoption.ui
8ba23f
+++ b/cui/uiconfig/ui/breaknumberoption.ui
8ba23f
@@ -9,6 +9,20 @@
8ba23f
     <property name="step_increment">1</property>
8ba23f
     <property name="page_increment">10</property>
8ba23f
   </object>
8ba23f
+  <object class="GtkAdjustment" id="adjustment2">
8ba23f
+    <property name="lower">2</property>
8ba23f
+    <property name="upper">9</property>
8ba23f
+    <property name="value">1</property>
8ba23f
+    <property name="step_increment">1</property>
8ba23f
+    <property name="page_increment">10</property>
8ba23f
+  </object>
8ba23f
+  <object class="GtkAdjustment" id="adjustment3">
8ba23f
+    <property name="lower">2</property>
8ba23f
+    <property name="upper">9</property>
8ba23f
+    <property name="value">1</property>
8ba23f
+    <property name="step_increment">1</property>
8ba23f
+    <property name="page_increment">10</property>
8ba23f
+  </object>
8ba23f
   <object class="GtkDialog" id="BreakNumberOption">
8ba23f
     <property name="can_focus">False</property>
8ba23f
     <property name="border_width">6</property>
8ba23f
@@ -134,7 +148,7 @@
8ba23f
                         <property name="can_focus">True</property>
8ba23f
                         <property name="halign">start</property>
8ba23f
                         <property name="activates_default">True</property>
8ba23f
-                        <property name="adjustment">adjustment1</property>
8ba23f
+                        <property name="adjustment">adjustment2</property>
8ba23f
                         <property name="truncate-multiline">True</property>
8ba23f
                         <child internal-child="accessible">
8ba23f
                           <object class="AtkObject" id="afterbreak-atkobject">
8ba23f
@@ -179,7 +193,7 @@
8ba23f
                         <property name="can_focus">True</property>
8ba23f
                         <property name="halign">start</property>
8ba23f
                         <property name="activates_default">True</property>
8ba23f
-                        <property name="adjustment">adjustment1</property>
8ba23f
+                        <property name="adjustment">adjustment3</property>
8ba23f
                         <property name="truncate-multiline">True</property>
8ba23f
                         <child internal-child="accessible">
8ba23f
                           <object class="AtkObject" id="wordlength-atkobject">
8ba23f
diff --git a/cui/uiconfig/ui/calloutpage.ui b/cui/uiconfig/ui/calloutpage.ui
8ba23f
index 87d4eff64eb4..00898dc3390c 100644
8ba23f
--- a/cui/uiconfig/ui/calloutpage.ui
8ba23f
+++ b/cui/uiconfig/ui/calloutpage.ui
8ba23f
@@ -7,6 +7,16 @@
8ba23f
     <property name="step_increment">0.5</property>
8ba23f
     <property name="page_increment">10</property>
8ba23f
   </object>
8ba23f
+  <object class="GtkAdjustment" id="adjustment2">
8ba23f
+    <property name="upper">2400</property>
8ba23f
+    <property name="step_increment">0.5</property>
8ba23f
+    <property name="page_increment">10</property>
8ba23f
+  </object>
8ba23f
+  <object class="GtkAdjustment" id="adjustment3">
8ba23f
+    <property name="upper">2400</property>
8ba23f
+    <property name="step_increment">0.5</property>
8ba23f
+    <property name="page_increment">10</property>
8ba23f
+  </object>
8ba23f
   <object class="GtkBox" id="CalloutPage">
8ba23f
     <property name="visible">True</property>
8ba23f
     <property name="can_focus">False</property>
8ba23f
@@ -231,7 +241,7 @@
8ba23f
                 <property name="can_focus">True</property>
8ba23f
                 <property name="activates_default">True</property>
8ba23f
                 <property name="text">0.00</property>
8ba23f
-                <property name="adjustment">adjustment1</property>
8ba23f
+                <property name="adjustment">adjustment2</property>
8ba23f
                 <property name="digits">2</property>
8ba23f
                 <property name="truncate-multiline">True</property>
8ba23f
                 <child internal-child="accessible">
8ba23f
@@ -277,7 +287,7 @@
8ba23f
                 <property name="can_focus">True</property>
8ba23f
                 <property name="activates_default">True</property>
8ba23f
                 <property name="text">0.00</property>
8ba23f
-                <property name="adjustment">adjustment1</property>
8ba23f
+                <property name="adjustment">adjustment3</property>
8ba23f
                 <property name="digits">2</property>
8ba23f
                 <property name="truncate-multiline">True</property>
8ba23f
                 <child internal-child="accessible">
8ba23f
diff --git a/svx/uiconfig/ui/sidebareffect.ui b/svx/uiconfig/ui/sidebareffect.ui
8ba23f
index 0e633242cd5c..1e041a2a8726 100644
8ba23f
--- a/svx/uiconfig/ui/sidebareffect.ui
8ba23f
+++ b/svx/uiconfig/ui/sidebareffect.ui
8ba23f
@@ -12,6 +12,11 @@
8ba23f
     <property name="step_increment">1</property>
8ba23f
     <property name="page_increment">10</property>
8ba23f
   </object>
8ba23f
+  <object class="GtkAdjustment" id="adjustment3">
8ba23f
+    <property name="upper">150</property>
8ba23f
+    <property name="step_increment">1</property>
8ba23f
+    <property name="page_increment">10</property>
8ba23f
+  </object>
8ba23f
   
8ba23f
   <object class="GtkGrid" id="EffectPropertyPanel">
8ba23f
     <property name="visible">True</property>
8ba23f
@@ -195,7 +200,7 @@
8ba23f
                             <property name="can_focus">True</property>
8ba23f
                             <property name="hexpand">True</property>
8ba23f
                             <property name="truncate-multiline">True</property>
8ba23f
-                            <property name="adjustment">adjustment1</property>
8ba23f
+                            <property name="adjustment">adjustment3</property>
8ba23f
                           </object>
8ba23f
                           <packing>
8ba23f
                             <property name="left_attach">1</property>
8ba23f
-- 
8ba23f
2.33.1
8ba23f