wxColour GetBackgroundColour() const
{ return m_mainWin->GetBackgroundColour(); }
void SetBackgroundColour( const wxColour &colour )
- { m_mainWin->SetBackgroundColour(colour); }
+ { m_mainWin->SetBackgroundColour( colour ); }
wxColour GetForegroundColour() const
{ return m_mainWin->GetForegroundColour(); }
void SetForegroundColour( const wxColour &colour )
- { m_mainWin->SetForegroundColour(colour); }
+ { m_mainWin->SetForegroundColour( colour ); }
bool PopupMenu( wxMenu *menu, int x, int y )
{ return m_mainWin->PopupMenu( menu, x, y ); }
// System dependent include
// ---------------------------------------------------------------------------
-#if defined(__LINUX__) || defined(__SGI__)
+#ifdef __UNIX__
#include <dlfcn.h>
#endif
else
delete m_liblist;
-#if defined(__LINUX__) || defined(__SGI__)
+#ifdef __UNIX__
dlclose(m_handle);
#endif
#ifdef __WINDOWS__
void *wxLibrary::GetSymbol(const wxString& symbname)
{
-#if defined(__LINUX__) || defined(__SGI__)
+#ifdef __UNIX__
return dlsym(m_handle, WXSTRINGCAST symbname);
#endif
#ifdef __WINDOWS__
if ( (node = m_loaded.Find(name.GetData())) )
return ((wxLibrary *)node->Data());
-#if defined(__LINUX__) || defined(__SGI__)
+#ifdef __UNIX__
lib_name.Prepend("lib");
lib_name += ".so";
if (!handle)
return NULL;
-#elif defined( __WINDOWS__ )
+#endif
+#ifdef __WINDOWS__
lib_name += ".dll";
HMODULE handle = LoadLibrary(lib_name);
if (!handle)
return NULL;
-#else
- return NULL;
#endif
-#if defined(__LINUX__) || defined(__SGI__) || defined (__WINDOWS__)
lib = new wxLibrary((void *)handle);
m_loaded.Append(name.GetData(), lib);
return lib;
-#endif
}
wxObject *wxLibraries::CreateObject(const wxString& path)
{
#ifdef USE_GDK_IMLIB
if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
- if (m_image) gdk_imlib_destroy_image( m_image );
+ if (m_image) gdk_imlib_kill_image( m_image );
#else
if (m_pixmap) gdk_pixmap_unref( m_pixmap );
#endif
{
#ifdef USE_GDK_IMLIB
if (m_pixmap) gdk_imlib_free_pixmap( m_pixmap );
- if (m_image) gdk_imlib_destroy_image( m_image );
+ if (m_image) gdk_imlib_kill_image( m_image );
#else
if (m_pixmap) gdk_pixmap_unref( m_pixmap );
#endif