summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-20 13:16:51 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-20 22:19:32 +0100
commitf4fbdf7f9c8e657cccb679b341397daabee7079b (patch)
treeda5535c167fff13a0f692ee10cc47a8748e67060 /vcl/unx/gtk
parent24f63831af82e71133fae0fc8309d1f752a402bf (diff)
unusedcode.easy: Remove SwProtocol::Snapshot()
And all implementations. Also unused and removed: ImplCreateFromXImage() ImplGetFrameBitmap()
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index f889e619ba35..7f4db68dd037 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -2446,32 +2446,6 @@ LanguageType GtkSalFrame::GetInputLanguage()
return LANGUAGE_DONTKNOW;
}
-SalBitmap* GtkSalFrame::SnapShot()
-{
- if( !m_pWindow )
- return NULL;
-
-#if GTK_CHECK_VERSION(3,0,0)
- SvpSalGraphics *pGraphics = static_cast<SvpSalGraphics *>(GetGraphics());
- if (!pGraphics)
- return NULL;
-
- SalBitmap *pRet = pGraphics->getBitmap( 0, 0, maGeometry.nWidth, maGeometry.nHeight );
- ReleaseGraphics( pGraphics );
-
- return pRet;
-#else
- X11SalBitmap *pBmp = new X11SalBitmap;
- if( pBmp->SnapShot( GDK_DISPLAY_XDISPLAY( getGdkDisplay() ),
- widget_get_xid(m_pWindow) ) )
- return pBmp;
- else
- delete pBmp;
-#endif
-
- return NULL;
-}
-
void GtkSalFrame::UpdateSettings( AllSettings& rSettings )
{
if( ! m_pWindow )