[Libreoffice-commits] core.git: cui/source cui/uiconfig
Caolán McNamara
caolanm at redhat.com
Tue Aug 2 19:50:31 UTC 2016
cui/source/options/optgdlg.cxx | 12 ++++++++++++
cui/uiconfig/ui/optviewpage.ui | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
New commits:
commit 1c33b3f5f693d432f74c795a87f87bd487b09d47
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Aug 2 20:49:10 2016 +0100
Resolves: tdf#101196 line wrap very long checkbox content
Change-Id: Ie451b88240f755a0d64dd3db14d7981b8ed2a2a2
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 1f6019f..fb7aa58 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -644,6 +644,18 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
m_pOpenGLStatusEnabled->Hide();
m_pOpenGLStatusDisabled->Hide();
}
+ else
+ {
+ //tdf#191196, we need height-for-width support here, but for now we can
+ //bodge it
+ Size aPrefSize(m_pForceOpenGL->get_preferred_size());
+ Size aSize(m_pForceOpenGL->CalcMinimumSize(36*approximate_char_width()));
+ if (aPrefSize.Width() > aSize.Width())
+ {
+ m_pForceOpenGL->set_width_request(aSize.Width());
+ m_pForceOpenGL->set_height_request(aSize.Height());
+ }
+ }
#if defined( UNX )
m_pFontAntiAliasing->SetToggleHdl( LINK( this, OfaViewTabPage, OnAntialiasingToggled ) );
diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui
index deca725..a59758f 100644
--- a/cui/uiconfig/ui/optviewpage.ui
+++ b/cui/uiconfig/ui/optviewpage.ui
@@ -90,7 +90,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="forceopengl">
+ <object class="GtkCheckButton" id="forceopengl:wrap">
<property name="label" translatable="yes">Force OpenGL even if blacklisted (on restart)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
More information about the Libreoffice-commits
mailing list