// 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();
// implementation only from now on
// -------------------------------
- // This returns the current visual: either that used by wxRootWindow
- // or the XVisualInfo* for SGI.
- GdkVisual *GetGdkVisual();
-
// check for pending events, without interference from our idle source
bool EventsPending();
bool DoIdle();
#if wxUSE_THREADS
wxMutex m_idleMutex;
#endif
- guint m_idleSourceId;
+ unsigned m_idleSourceId;
#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
HildonProgram *m_hildonProgram;