diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 11:25:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 11:26:07 +0000 |
commit | d967cc35fd0c77d9f3dd0b3d0c7df850db6ec274 (patch) | |
tree | 4eb24ffea5dee094c72c569a5cfe5a83408bc992 /cui/source/options | |
parent | f752a223d19fd52d4e1dd7defa3e134388458f18 (diff) |
Resolves: tdf#97904 opengl stuff isn't implemented for gtk3
Change-Id: I1abbceebadf320f28955f54058b2d0ebfc79b9bc
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optgdlg.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 8e2bd660b9dc..f4d4d5cc771b 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -629,6 +629,14 @@ OfaViewTabPage::OfaViewTabPage(vcl::Window* pParent, const SfxItemSet& rSet) get(m_pMousePosLB, "mousepos"); get(m_pMouseMiddleLB, "mousemiddle"); + if (Application::GetToolkitName() == "gtk3") + { + m_pUseOpenGL->Hide(); + m_pForceOpenGL->Hide(); + m_pOpenGLStatusEnabled->Hide(); + m_pOpenGLStatusDisabled->Hide(); + } + #if defined( UNX ) m_pFontAntiAliasing->SetToggleHdl( LINK( this, OfaViewTabPage, OnAntialiasingToggled ) ); #else @@ -969,6 +977,8 @@ void OfaViewTabPage::Reset( const SfxItemSet* ) void OfaViewTabPage::UpdateOGLStatus() { + if (Application::GetToolkitName() == "gtk3") + return; // Easier than a custom translation string. bool bEnabled = OpenGLWrapper::isVCLOpenGLEnabled(); m_pOpenGLStatusEnabled->Show(bEnabled); |