summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-10-14 22:31:09 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-10-15 16:23:09 +0000
commit73e9281cbc146df12a3026c1521f1b458806e59e (patch)
treed9fefbd4c6b103afa3b4e420fdb3c218860a6bf8
parenta0658a2e995619b3745438f5194b1e22caeab255 (diff)
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@ubuntu.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/view/tabcont.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx
index 1c19b55751bf..b8eaf10fd2b4 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 ) );
}