X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29e461a210d5d83a8fe88a9bd9dceaf8abc32816..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/gtk/app.h?ds=sidebyside diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index 57ff95fbf3..f4618d5a5a 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -56,6 +56,13 @@ public: // 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();