[Libreoffice-commits] core.git: Branch 'libreoffice-5-0-3' - sc/source

Tomaž Vajngerl tomaz.vajngerl at collabora.com
Thu Oct 15 09:23:31 PDT 2015


 sc/source/ui/view/tabcont.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 73e9281cbc146df12a3026c1521f1b458806e59e
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date:   Wed Oct 14 22:31:09 2015 +0200

    tdf#93318 reintroduce first/last button in Calc tab bar
    
    Seems that first/last button are still useful when there are a lot
    of tabs. Using ctrl+click is not discoverable enough for the users
    so for now bring the buttons back.
    Also turn on enabling/disabling buttons when they have some
    effect (this was turned off for Calc for unknown reasons).
    
    Change-Id: I6bbb04d44066ebc6b89fe3d941ecafdbb378284a
    (cherry picked from commit b6fe593c8a60cc689e1bbb4d92d7cad89785be0d)
    Reviewed-on: https://gerrit.libreoffice.org/19381
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index 1c19b55..b8eaf10 100644
--- a/sc/source/ui/view/tabcont.cxx
+++ b/sc/source/ui/view/tabcont.cxx
@@ -38,7 +38,7 @@
 // STATIC DATA -----------------------------------------------------------
 
 ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData )
-    : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG)
+    : TabBar(pParent, WB_3DLOOK | WB_MINSCROLL | WB_SCROLL | WB_RANGESELECT | WB_MULTISELECT | WB_DRAG)
     , DropTargetHelper(this)
     , DragSourceHelper(this)
     , pViewData(pData)
@@ -79,7 +79,7 @@ ScTabControl::ScTabControl( vcl::Window* pParent, ScViewData* pData )
     EnableEditMode();
     UpdateInputContext();
 
-    SetScrollAlwaysEnabled(true);
+    SetScrollAlwaysEnabled(false);
 
     SetScrollAreaContextHdl( LINK( this, ScTabControl, ShowPageList ) );
 }


More information about the Libreoffice-commits mailing list