- static bool InitialzeVisual();
-
-#ifdef __WXDEBUG__
- virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg);
-
- bool IsInAssert() const { return m_isInAssert; }
-#endif // __WXDEBUG__
-
- gint m_idleTag;
- void RemoveIdleTag();
-
- unsigned char *m_colorCube;
-
- // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
- // selection.
- void *m_glVisualInfo; // this is actually an XVisualInfo*
- void *m_glFBCInfo; // this is actually an GLXFBConfig*
- // This returns the current visual: either that used by wxRootWindow
- // or the XVisualInfo* for SGI.
- GdkVisual *GetGdkVisual();
-
-#ifdef __WXGTK20__
- wxConvBrokenFileNames *m_convBrokenFileNames;
- wxMBConv *m_oldConvFileName;
-#endif
+ virtual void OnAssertFailure(const wxChar *file,
+ int line,
+ const wxChar *func,
+ const wxChar *cond,
+ const wxChar *msg);
+
+ // GTK-specific methods
+ // -------------------
+
+ // this can be overridden to return a specific visual to be used for GTK+
+ // instead of the default one (it's used by wxGLApp)
+ //
+ // must return XVisualInfo pointer (it is not freed by caller)
+ virtual void *GetXVisualInfo() { return NULL; }
+
+ // Check if we're using a global menu. Currently this is only true when
+ // running under Ubuntu Unity and global menu is not disabled.
+ //
+ // This is mostly used in the implementation in order to work around
+ // various bugs arising due to this.
+ static bool GTKIsUsingGlobalMenu();
+
+#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
+ // Maemo-specific method: get the main program object
+ HildonProgram *GetHildonProgram();
+#endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2
+
+ // implementation only from now on
+ // -------------------------------
+
+ // check for pending events, without interference from our idle source
+ bool EventsPending();
+ bool DoIdle();