summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/window/gtkframe.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2012-11-28 07:49:30 -0200
committerMichael Meeks <michael.meeks@suse.com>2012-11-28 12:51:08 +0000
commitee9a6d9e854db07462a372ed530da1572cb4e349 (patch)
tree149971e9b64e669915863db3da2262b54fdd37a5 /vcl/unx/gtk/window/gtkframe.cxx
parent5d533bb75efde6dbe6f2d402d20cf5466135f1a4 (diff)
Remove useless method SetBackgroundBitmap
Thomas Arnhold asked me to take a look at the method SetBackgroundBitmap. In my XFCE, removing this method didn't chnage anything. So this needs more tests in Windows and other WM's. Change-Id: I3e10bea4eac114326ff981fb21ba0d292818b1da Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'vcl/unx/gtk/window/gtkframe.cxx')
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx46
1 files changed, 0 insertions, 46 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 8db1a1d035b4..6bba14123185 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -2932,52 +2932,6 @@ bool GtkSalFrame::Dispatch( const XEvent* pEvent )
}
#endif
-void GtkSalFrame::SetBackgroundBitmap( SalBitmap* pBitmap )
-{
-#if !GTK_CHECK_VERSION(3,0,0)
- if( m_hBackgroundPixmap )
- {
- XSetWindowBackgroundPixmap( getDisplay()->GetDisplay(),
- widget_get_xid(m_pWindow),
- None );
- XFreePixmap( getDisplay()->GetDisplay(), m_hBackgroundPixmap );
- m_hBackgroundPixmap = None;
- }
- if( pBitmap )
- {
- X11SalBitmap* pBM = static_cast<X11SalBitmap*>(pBitmap);
- Size aSize = pBM->GetSize();
- if( aSize.Width() && aSize.Height() )
- {
- m_hBackgroundPixmap =
- limitXCreatePixmap( getDisplay()->GetDisplay(),
- widget_get_xid(m_pWindow),
- aSize.Width(),
- aSize.Height(),
- getDisplay()->GetVisual(m_nXScreen).GetDepth() );
- if( m_hBackgroundPixmap )
- {
- SalTwoRect aTwoRect;
- aTwoRect.mnSrcX = aTwoRect.mnSrcY = aTwoRect.mnDestX = aTwoRect.mnDestY = 0;
- aTwoRect.mnSrcWidth = aTwoRect.mnDestWidth = aSize.Width();
- aTwoRect.mnSrcHeight = aTwoRect.mnDestHeight = aSize.Height();
- pBM->ImplDraw( m_hBackgroundPixmap,
- m_nXScreen,
- getDisplay()->GetVisual(m_nXScreen).GetDepth(),
- aTwoRect,
- getDisplay()->GetCopyGC(m_nXScreen) );
- XSetWindowBackgroundPixmap( getDisplay()->GetDisplay(),
- widget_get_xid(m_pWindow),
- m_hBackgroundPixmap );
- }
- }
- }
-#else
- (void)pBitmap;
-#warning FIXME: no SetBackgroundBitmap impl. for gtk3
-#endif
-}
-
gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer frame )
{
GtkSalFrame* pThis = (GtkSalFrame*)frame;