#include <gtk/gtk.h>
#include "wx/event.h"
+#include "wx/gtk/private/string.h"
// fail all version tests if the GTK+ version is so ancient that it doesn't
// even have GTK_CHECK_VERSION
extern void wxapp_install_idle_handler();
extern bool g_isIdle;
-//-----------------------------------------------------------------------------
-// Convenience class for g_freeing a gchar* on scope exit automatically
-//-----------------------------------------------------------------------------
-
-class wxGtkString
-{
-public:
- explicit wxGtkString(gchar *s) : m_str(s) { }
- ~wxGtkString() { g_free(m_str); }
-
- const gchar *c_str() const { return m_str; }
-
- operator gchar *() const { return m_str; }
-
-private:
- gchar *m_str;
-
- DECLARE_NO_COPY_CLASS(wxGtkString)
-};
-
//-----------------------------------------------------------------------------
// Misc. functions
//-----------------------------------------------------------------------------