X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eafc087e69e52add5952190bfd5bcbbf931ad12b..64a1451536e1917c240a8377c7672ea155e7681d:/src/gtk/utilsgtk.cpp?ds=sidebyside diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index dedecb696e..3fdfdfde0f 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -51,6 +51,31 @@ int wxKill(long pid, int sig) return kill(pid, sig); }; +void wxDisplaySize( int *width, int *height ) +{ + if (width) *width = gdk_screen_width(); + if (height) *height = gdk_screen_height(); +} + +void wxGetMousePosition( int* x, int* y ) +{ + wxFAIL_MSG( "GetMousePosition not yet implemented" ); + if (x) *x = 0; + if (y) *y = 0; +}; + +bool wxColourDisplay(void) +{ + wxFAIL_MSG( "wxColourDisplay always returns TRUE" ); + return TRUE; +} + +int wxDisplayDepth(void) +{ + wxFAIL_MSG( "wxDisplayDepth always returns 8" ); + return 8; +} + //------------------------------------------------------------------------ // user and home routines //------------------------------------------------------------------------ @@ -343,7 +368,7 @@ typedef struct { } wxEndProcessData; static void GTK_EndProcessDetector(gpointer data, gint source, - GdkInputCondition condition) + GdkInputCondition WXUNUSED(condition) ) { wxEndProcessData *proc_data = (wxEndProcessData *)data; int pid; @@ -441,3 +466,4 @@ long wxExecute( const wxString& command, bool sync, wxProcess *process ) return wxExecute(argv, sync, process); }; +