inline wxIcon(const wxIcon& icon) { Ref(icon); }
inline wxIcon(const wxIcon* icon) { if (icon) Ref(*icon); }
- wxIcon( char **bits, int width = -1, int height = -1 ) :
+ wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
wxBitmap( bits ) {};
inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }
inline wxIcon(const wxIcon& icon) { Ref(icon); }
inline wxIcon(const wxIcon* icon) { if (icon) Ref(*icon); }
- wxIcon( char **bits, int width = -1, int height = -1 ) :
+ wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) :
wxBitmap( bits ) {};
inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; }
ac_help="$ac_help
**--with-shared create shared libraries"
ac_help="$ac_help
-**--without-optimise create unoptimised code"
+**--with-optimise create optimised code"
ac_help="$ac_help
**--with-debug_flag create code with DEBUG define set to 1"
ac_help="$ac_help
USE_SHARED)
AC_OVERRIDES(optimise,optimise,
-**--without-optimise create unoptimised code,
+**--with-optimise create optimised code,
USE_OPTIMISE)
AC_OVERRIDES(debug_flag,debug_flag,
gtk/choice.cpp \
gtk/colour.cpp \
gtk/control.cpp \
+ gtk/combobox.cpp \
gtk/cursor.cpp \
gtk/data.cpp \
gtk/dc.cpp \
/////////////////////////////////////////////////////////////////////////////
#ifdef __GNUG__
-#pragma implementation "utilscmn.h"
+#pragma implementation "utils.h"
#endif
// For compilers that support precompilation, includes "wx.h".
{
wxList list;
list.DeleteContents(TRUE);
- list.Append( new wxPoint(x1, y1) );
- list.Append( new wxPoint(x2, y2) );
- list.Append( new wxPoint(x3, y3) );
+ list.Append( (wxObject*)new wxPoint(x1, y1) );
+ list.Append( (wxObject*)new wxPoint(x2, y2) );
+ list.Append( (wxObject*)new wxPoint(x3, y3) );
DrawSpline(&list);
};
#endif
#include "wx/wx.h"
+#include "wx/module.h"
#include "wx/thread.h"
wxMutex::wxMutex()
wxDebugMsg("wxMutex warning: destroying a locked mutex (%d locks)\n", m_locked);
}
-MutexError wxMutex::Lock()
+wxMutexError wxMutex::Lock()
{
m_locked++;
return MUTEX_NO_ERROR;
}
-MutexError wxMutex::TryLock()
+wxMutexError wxMutex::TryLock()
{
if (m_locked > 0)
return MUTEX_BUSY;
return MUTEX_NO_ERROR;
}
-MutexError wxMutex::Unlock()
+wxMutexError wxMutex::Unlock()
{
if (m_locked == 0)
return MUTEX_UNLOCKED;
{
}
-struct wxThreadPrivate {
+struct wxThreadInternal {
int thread_id;
void* exit_status;
};
-ThreadError wxThread::Create()
+wxThreadError wxThread::Create()
{
p_internal->exit_status = Entry();
OnExit();
return THREAD_NO_ERROR;
}
-ThreadError wxThread::Destroy()
+wxThreadError wxThread::Destroy()
{
return THREAD_RUNNING;
}
-void wxThread::DeferDestroy()
+void wxThread::DeferDestroy( bool WXUNUSED(on) )
{
}
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
-int wxThread::GetPriority() const { }
+int wxThread::GetPriority() const { return 0; }
wxMutex wxMainMutex; // controls access to all GUI functions
wxThread::wxThread()
{
- p_internal = new wxThreadPrivate();
+ p_internal = new wxThreadInternal();
}
wxThread::~wxThread()
{
- Cancel();
+ Destroy();
Join();
delete p_internal;
}
return TRUE;
}
-void wxThreadModule::wxThreadExit()
+void wxThreadModule::OnExit()
{
wxMainMutex.Unlock();
}
return kill(pid, sig);
};
+void wxDisplaySize( int *width, int *height )
+{
+ if (width) *width = gdk_screen_width();
+ if (height) *height = gdk_screen_height();
+}
+
//------------------------------------------------------------------------
// user and home routines
//------------------------------------------------------------------------
return wxExecute(argv, sync, process);
};
+
{
wxList list;
list.DeleteContents(TRUE);
- list.Append( new wxPoint(x1, y1) );
- list.Append( new wxPoint(x2, y2) );
- list.Append( new wxPoint(x3, y3) );
+ list.Append( (wxObject*)new wxPoint(x1, y1) );
+ list.Append( (wxObject*)new wxPoint(x2, y2) );
+ list.Append( (wxObject*)new wxPoint(x3, y3) );
DrawSpline(&list);
};
#endif
#include "wx/wx.h"
+#include "wx/module.h"
#include "wx/thread.h"
wxMutex::wxMutex()
wxDebugMsg("wxMutex warning: destroying a locked mutex (%d locks)\n", m_locked);
}
-MutexError wxMutex::Lock()
+wxMutexError wxMutex::Lock()
{
m_locked++;
return MUTEX_NO_ERROR;
}
-MutexError wxMutex::TryLock()
+wxMutexError wxMutex::TryLock()
{
if (m_locked > 0)
return MUTEX_BUSY;
return MUTEX_NO_ERROR;
}
-MutexError wxMutex::Unlock()
+wxMutexError wxMutex::Unlock()
{
if (m_locked == 0)
return MUTEX_UNLOCKED;
{
}
-struct wxThreadPrivate {
+struct wxThreadInternal {
int thread_id;
void* exit_status;
};
-ThreadError wxThread::Create()
+wxThreadError wxThread::Create()
{
p_internal->exit_status = Entry();
OnExit();
return THREAD_NO_ERROR;
}
-ThreadError wxThread::Destroy()
+wxThreadError wxThread::Destroy()
{
return THREAD_RUNNING;
}
-void wxThread::DeferDestroy()
+void wxThread::DeferDestroy( bool WXUNUSED(on) )
{
}
}
void wxThread::SetPriority(int WXUNUSED(prio)) { }
-int wxThread::GetPriority() const { }
+int wxThread::GetPriority() const { return 0; }
wxMutex wxMainMutex; // controls access to all GUI functions
wxThread::wxThread()
{
- p_internal = new wxThreadPrivate();
+ p_internal = new wxThreadInternal();
}
wxThread::~wxThread()
{
- Cancel();
+ Destroy();
Join();
delete p_internal;
}
return TRUE;
}
-void wxThreadModule::wxThreadExit()
+void wxThreadModule::OnExit()
{
wxMainMutex.Unlock();
}
return kill(pid, sig);
};
+void wxDisplaySize( int *width, int *height )
+{
+ if (width) *width = gdk_screen_width();
+ if (height) *height = gdk_screen_height();
+}
+
//------------------------------------------------------------------------
// user and home routines
//------------------------------------------------------------------------
return wxExecute(argv, sync, process);
};
+