diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-02-09 09:36:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-02-09 09:36:55 +0000 |
commit | 081f3c0f70a9aa4d9f1f72bfbdb838bbd2dc993e (patch) | |
tree | 2f0a71e6841757da78d810d5b14aebcaaaf722a4 /cui | |
parent | 810824d10df45944d223db1efab4b3cb99161e33 (diff) |
Resolves: fdo#87876 full text of war and peace used as checkbox label
Change-Id: I016975123c0f277b4e4c8c8097e89fd84d93530a
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 11 | ||||
-rw-r--r-- | cui/uiconfig/ui/optviewpage.ui | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 512e8ad2c024..eedf11a1ea63 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -627,7 +627,18 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) get(m_pUseHardwareAccell, "useaccel"); get(m_pUseAntiAliase, "useaa"); get(m_pUseOpenGL, "useopengl"); + get(m_pForceOpenGL, "forceopengl"); + //fdo#87876 , 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(40*approximate_char_width())); + if (aPrefSize.Width() > aSize.Width()) + { + m_pForceOpenGL->set_width_request(aSize.Width()); + m_pForceOpenGL->set_height_request(aSize.Height()); + } + get(m_pMousePosLB, "mousepos"); get(m_pMouseMiddleLB, "mousemiddle"); // #i97672# diff --git a/cui/uiconfig/ui/optviewpage.ui b/cui/uiconfig/ui/optviewpage.ui index d433c6f1e22e..1a6d95d2cbe3 100644 --- a/cui/uiconfig/ui/optviewpage.ui +++ b/cui/uiconfig/ui/optviewpage.ui @@ -97,7 +97,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 (might expose driver bugs)</property> <property name="visible">True</property> <property name="can_focus">True</property> |