summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2015-10-14 22:31:09 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-10-15 14:56:29 +0000
commit6894ebffe4154887fd8b2521b5c5d1980dfe9e62 (patch)
tree3590faf3a454d9dff76fc187275dd75c9ccea90c
parenta5961be2542914cd03132230d3afe1a07b7104a1 (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/19380 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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 ) );
}