// Name: src/gtk1/utilsgtk.cpp
// Purpose:
// Author: Robert Roebling
-// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/evtloop.h"
#include "wx/process.h"
-#include "wx/unix/execute.h"
-
#include <stdarg.h>
#include <string.h>
#include <sys/stat.h>
//----------------------------------------------------------------------------
// misc.
//----------------------------------------------------------------------------
-#ifndef __EMX__
-// on OS/2, we use the wxBell from wxBase library
void wxBell()
{
gdk_beep();
}
-#endif
/* Don't synthesize KeyUp events holding down a key and producing
KeyDown events with autorepeat. */
void wxGetMousePosition( int* x, int* y )
{
- gdk_window_get_pointer( (GdkWindow*) NULL, x, y, (GdkModifierType*) NULL );
+ gdk_window_get_pointer( NULL, x, y, NULL );
}
bool wxColourDisplay()
// subprocess routines
// ----------------------------------------------------------------------------
-extern "C" {
-static
-void GTK_EndProcessDetector(gpointer data, gint source,
- GdkInputCondition WXUNUSED(condition) )
-{
- wxEndProcessData * const
- proc_data = static_cast<wxEndProcessData *>(data);
-
- // child exited, end waiting
- close(source);
-
- // don't call us again!
- gdk_input_remove(proc_data->tag);
-
- wxHandleProcessTermination(proc_data);
-}
-}
-
-int wxGUIAppTraits::AddProcessCallback(wxEndProcessData *proc_data, int fd)
-{
- int tag = gdk_input_add(fd,
- GDK_INPUT_READ,
- GTK_EndProcessDetector,
- (gpointer)proc_data);
-
- return tag;
-}
-
#if wxUSE_TIMER
wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
return new wxEventLoop;
}
-#if wxUSE_INTL
-void wxGUIAppTraits::SetLocale()
-{
- gtk_set_locale();
-}
-#endif
-