[Libreoffice-commits] core.git: svx/source svx/uiconfig

Katarina Behrens Katarina.Behrens at cib.de
Fri Jul 24 07:01:30 PDT 2015


 svx/source/sidebar/shadow/ShadowPropertyPanel.cxx |    1 -
 svx/uiconfig/ui/sidebarshadow.ui                  |    7 +++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit e0bbfcbed34bb71c1a4979a7db30e38bfd6a7f61
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date:   Fri Jul 24 15:58:16 2015 +0200

    Move spinbox limit definition to .ui file
    
    Change-Id: I5ef6e76d00e5b034109f5b3a0cabfd7b7fa798bc

diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
index 45ca003..717ca1b 100644
--- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
+++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx
@@ -126,7 +126,6 @@ void ShadowPropertyPanel::Initialize()
     Link<> bLink = LINK(this, ShadowPropertyPanel, ClickShadowHdl );
     mpShowShadow->SetClickHdl( bLink );
     Link<> aLink = LINK( this, ShadowPropertyPanel, ModifyShadowColorHdl );
-    mpShadowTransMetric->SetMax(100);
     mpShadowTransMetric->SetModifyHdl( LINK(this, ShadowPropertyPanel, ModifyShadowTransMetricHdl) );
     mpLBShadowColor->SetSelectHdl( aLink );
     mpShadowAngle->SetModifyHdl( LINK(this, ShadowPropertyPanel, ModifyShadowDistanceHdl) );
diff --git a/svx/uiconfig/ui/sidebarshadow.ui b/svx/uiconfig/ui/sidebarshadow.ui
index 1eca4d9..0b2e8cf 100644
--- a/svx/uiconfig/ui/sidebarshadow.ui
+++ b/svx/uiconfig/ui/sidebarshadow.ui
@@ -2,10 +2,16 @@
 <!-- Generated with glade 3.18.3 -->
 <interface>
   <requires lib="gtk+" version="3.0"/>
+  <requires lib="LibreOffice" version="1.0"/>
   <object class="GtkAdjustment" id="adjustment1">
     <property name="lower">-180</property>
     <property name="upper">360</property>
   </object>
+  <object class="GtkAdjustment" id="adjustment2">
+    <property name="upper">100</property>
+    <property name="step_increment">1</property>
+    <property name="page_increment">10</property>
+  </object>
   <object class="GtkGrid" id="ShadowPropertyPanel">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
@@ -125,6 +131,7 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="halign">end</property>
+                        <property name="adjustment">adjustment2</property>
                       </object>
                       <packing>
                         <property name="left_attach">2</property>


More information about the Libreoffice-commits mailing list