summaryrefslogtreecommitdiffstats
path: root/vcl/unx/gtk/app/gtkdata.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 18:44:21 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 18:44:21 +0000
commit43a7696a652f42e2de565dd10966649e37027a61 (patch)
treebb29f58558e65e789a03578a863f007513471d11 /vcl/unx/gtk/app/gtkdata.cxx
parentINTEGRATION: CWS warnings01 (1.3.22); FILE MERGED (diff)
downloadcore-43a7696a652f42e2de565dd10966649e37027a61.tar.gz
core-43a7696a652f42e2de565dd10966649e37027a61.zip
INTEGRATION: CWS warnings01 (1.19.66); FILE MERGED
2005/11/11 14:31:14 pl 1.19.66.3: #i55991# removed warnings 2005/11/04 10:47:58 pl 1.19.66.2: RESYNC: (1.19-1.21); FILE MERGED 2005/10/24 14:27:14 pl 1.19.66.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'vcl/unx/gtk/app/gtkdata.cxx')
-rw-r--r--vcl/unx/gtk/app/gtkdata.cxx53
1 files changed, 40 insertions, 13 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx
index f309045c539e..d28192ad682c 100644
--- a/vcl/unx/gtk/app/gtkdata.cxx
+++ b/vcl/unx/gtk/app/gtkdata.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: gtkdata.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: hr $ $Date: 2006-06-09 12:19:48 $
+ * last change: $Author: hr $ $Date: 2006-06-19 19:44:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -123,8 +123,17 @@ void GtkSalDisplay::deregisterFrame( SalFrame* pFrame )
SalDisplay::deregisterFrame( pFrame );
}
+extern "C" {
+GdkFilterReturn call_filterGdkEvent( GdkXEvent* sys_event,
+ GdkEvent* event,
+ gpointer data )
+{
+ return GtkSalDisplay::filterGdkEvent( sys_event, event, data );
+}
+}
+
GdkFilterReturn GtkSalDisplay::filterGdkEvent( GdkXEvent* sys_event,
- GdkEvent* event,
+ GdkEvent*,
gpointer data )
{
GTK_YIELD_GRAB();
@@ -234,7 +243,7 @@ GdkCursor *GtkSalDisplay::getCursor( PointerStyle ePointerStyle )
if ( !m_aCursors[ ePointerStyle ] )
{
- GdkCursor *pCursor;
+ GdkCursor *pCursor = NULL;
switch( ePointerStyle )
{
@@ -398,9 +407,9 @@ class GtkXLib : public SalXLib
oslMutex m_aDispatchMutex;
oslCondition m_aDispatchCondition;
+public:
static gboolean timeoutFn(gpointer data);
static gboolean userEventFn(gpointer data);
-public:
GtkXLib();
virtual ~GtkXLib();
@@ -552,7 +561,7 @@ void GtkXLib::Init()
m_pGtkSalDisplay = new GtkSalDisplay( pGdkDisp, aVI.visual, aColMap );
- gdk_window_add_filter( NULL, GtkSalDisplay::filterGdkEvent, m_pGtkSalDisplay );
+ gdk_window_add_filter( NULL, call_filterGdkEvent, m_pGtkSalDisplay );
sal_Bool bOldErrorSetting = GetIgnoreXErrors();
SetIgnoreXErrors( True );
@@ -566,6 +575,14 @@ void GtkXLib::Init()
}
+extern "C"
+{
+ gboolean call_timeoutFn(gpointer data)
+ {
+ return GtkXLib::timeoutFn(data);
+ }
+}
+
gboolean GtkXLib::timeoutFn(gpointer data)
{
SalData *pSalData = GetSalData();
@@ -604,7 +621,7 @@ void GtkXLib::StartTimer( ULONG nMS )
// than XEvents like in generic plugin
g_source_set_priority( m_pTimeout, G_PRIORITY_LOW );
g_source_set_can_recurse (m_pTimeout, TRUE);
- g_source_set_callback (m_pTimeout, timeoutFn,
+ g_source_set_callback (m_pTimeout, call_timeoutFn,
(gpointer) this, NULL);
g_source_attach (m_pTimeout, g_main_context_default ());
@@ -623,6 +640,14 @@ void GtkXLib::StopTimer()
}
}
+extern "C"
+{
+ gboolean call_userEventFn( gpointer data )
+ {
+ return GtkXLib::userEventFn( data );
+ }
+}
+
gboolean GtkXLib::userEventFn(gpointer data)
{
gboolean bContinue;
@@ -661,7 +686,7 @@ void GtkXLib::PostUserEvent()
m_pUserEvent = g_idle_source_new();
g_source_set_priority( m_pUserEvent, G_PRIORITY_HIGH );
g_source_set_can_recurse (m_pUserEvent, TRUE);
- g_source_set_callback (m_pUserEvent, userEventFn,
+ g_source_set_callback (m_pUserEvent, call_userEventFn,
(gpointer) this, NULL);
g_source_attach (m_pUserEvent, g_main_context_default ());
}
@@ -757,8 +782,8 @@ sal_source_check (GSource *source)
static gboolean
sal_source_dispatch (GSource *source,
- GSourceFunc callback,
- gpointer user_data)
+ GSourceFunc,
+ gpointer)
{
SalData *pSalData = GetSalData();
SalWatch *watch = (SalWatch *) source;
@@ -773,7 +798,7 @@ sal_source_dispatch (GSource *source,
}
static void
-sal_source_finalize (GSource *source)
+sal_source_finalize (GSource*)
{
}
@@ -781,7 +806,9 @@ static GSourceFuncs sal_source_watch_funcs = {
sal_source_prepare,
sal_source_check,
sal_source_dispatch,
- sal_source_finalize
+ sal_source_finalize,
+ NULL,
+ NULL
};
static GSource *
@@ -818,7 +845,7 @@ sal_source_create_watch (int fd,
void GtkXLib::Insert( int nFD,
void *data,
YieldFunc pending,
- YieldFunc queued,
+ YieldFunc,
YieldFunc handle )
{
GSource *source = sal_source_create_watch