Related tdf#38850 - Hide context-sensitive column unless experimental
Using a zero width does not work on gtk; this set_column_visible() method
was introduced in b1654a57b5
Change-Id: I1efbdfcb3a8b7224d066400501e9d68abc5c7a2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199538
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
committed by
Heiko Tietze
parent
99e13066b6
commit
6ca5fd8cbb
@@ -163,6 +163,9 @@ void ToolbarTabPage::Reset(const SfxItemSet* /* rSet*/)
|
||||
}
|
||||
}
|
||||
}
|
||||
//TODO: context-sensitivity not working properly, see comment on tdf#38850
|
||||
m_pToolbarList->set_column_visible(3, bIsExperimentalMode);
|
||||
|
||||
m_pToolbarList->thaw();
|
||||
m_pToolbarList->make_sorted();
|
||||
|
||||
@@ -174,8 +177,6 @@ void ToolbarTabPage::Reset(const SfxItemSet* /* rSet*/)
|
||||
OUString sTitle = m_pToolbarList->get_column_title(i);
|
||||
aWidths.push_back(m_pToolbarList->get_pixel_size(sTitle).Width() + 12); // some padding
|
||||
}
|
||||
if (!bIsExperimentalMode)
|
||||
aWidths.push_back(0); // zero width for context_sensitive column, otherwise available space
|
||||
m_pToolbarList->set_column_fixed_widths(aWidths);
|
||||
|
||||
// treeview height
|
||||
|
||||
Reference in New Issue
Block a user