diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-13 14:15:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-13 14:16:25 +0000 |
commit | 23f0cf39096d0ab8696a5a621bf8d6e237ab9958 (patch) | |
tree | d35682c2e4efb4f4e5dda694afdd5c08d0b9bbed /vcl/unx | |
parent | c117ab838b49b355a3f3fa48632a43284c989ffa (diff) |
loplugin:unreffun and loplugin:unnecessaryoverride for < gtk 3.16.0
Change-Id: I67613a72d92506cd4a12145112d6e9b3f9547be1
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 947bcc9dc54b..e6f5d2491bb1 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -948,11 +948,13 @@ private: virtual const GLWindow& getOpenGLWindow() const override { return m_aGLWin; } virtual GLWindow& getModifiableOpenGLWindow() override { return m_aGLWin; } +#if GTK_CHECK_VERSION(3,16,0) static void signalDestroy(GtkWidget*, gpointer context) { GtkOpenGLContext* pThis = static_cast<GtkOpenGLContext*>(context); pThis->m_pGLArea = nullptr; } +#endif virtual bool ImplInit() override { @@ -975,13 +977,13 @@ private: return bRet; } +#if GTK_CHECK_VERSION(3,16,0) virtual void restoreDefaultFramebuffer() override { OpenGLContext::restoreDefaultFramebuffer(); -#if GTK_CHECK_VERSION(3,16,0) gtk_gl_area_attach_buffers(GTK_GL_AREA(m_pGLArea)); -#endif } +#endif virtual void makeCurrent() override { |