summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/window/gtkobject.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2011-10-03 12:21:34 +0100
committerMichael Meeks <michael.meeks@suse.com>2011-10-25 13:41:51 +0100
commita4d7b25e7a006c3105a226343bfb52d9e1bc356a (patch)
treed84cd975f087ca9fbb24fa0de2e5ae168b9eff72 /vcl/unx/gtk/window/gtkobject.cxx
parent9b51808742ae4236b582b2693578e8db8e126a13 (diff)
generic: create shared display class and re-factor to use it
Diffstat (limited to 'vcl/unx/gtk/window/gtkobject.cxx')
-rw-r--r--vcl/unx/gtk/window/gtkobject.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/unx/gtk/window/gtkobject.cxx b/vcl/unx/gtk/window/gtkobject.cxx
index ca910f0c29f7..26b68c3f8f9e 100644
--- a/vcl/unx/gtk/window/gtkobject.cxx
+++ b/vcl/unx/gtk/window/gtkobject.cxx
@@ -57,13 +57,12 @@ GtkSalObject::GtkSalObject( GtkSalFrame* pParent, sal_Bool bShow )
// realize so we can get a window id
gtk_widget_realize( m_pSocket );
-
// make it transparent; some plugins may not insert
// their own window here but use the socket window itself
gtk_widget_set_app_paintable( m_pSocket, TRUE );
- //system data
- SalDisplay* pDisp = GetX11SalData()->GetDisplay();
+ // system data
+ SalDisplay* pDisp = GetGenericData()->GetSalDisplay();
m_aSystemData.nSize = sizeof( SystemChildData );
m_aSystemData.pDisplay = pDisp->GetDisplay();
m_aSystemData.aWindow = GDK_WINDOW_XWINDOW(widget_get_window(m_pSocket));
@@ -200,7 +199,6 @@ const SystemEnvData* GtkSalObject::GetSystemData() const
return &m_aSystemData;
}
-
gboolean GtkSalObject::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer object )
{
GtkSalObject* pThis = (GtkSalObject*)object;