X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/449090b54d2e74bfd28c217bab25d11764ca38cc..d34ad9ea8910361e3d8443ddda0ee5554dc6480d:/include/wx/apptrait.h diff --git a/include/wx/apptrait.h b/include/wx/apptrait.h index 3aa0e293ab..3595571c28 100644 --- a/include/wx/apptrait.h +++ b/include/wx/apptrait.h @@ -118,6 +118,10 @@ public: // return true if the port is using wxUniversal for the GUI, false if not virtual bool IsUsingUniversalWidgets() const = 0; + + // return the name of the Desktop Environment such as + // "KDE" or "GNOME". May return an empty string. + virtual wxString GetDesktopEnvironment() const { return wxEmptyString; } }; // ---------------------------------------------------------------------------- @@ -239,12 +243,12 @@ public: #include "wx/palmos/apptrait.h" #elif defined(__WIN32__) #include "wx/msw/apptrait.h" -#elif defined(__UNIX__) && !defined(__EMX__) +#elif defined(__OS2__) + #include "wx/os2/apptrait.h" +#elif defined(__UNIX__) #include "wx/unix/apptrait.h" #elif defined(__WXMAC__) #include "wx/mac/apptrait.h" -#elif defined(__WXPM__) - #include "wx/os2/apptrait.h" #elif defined(__DOS__) #include "wx/msdos/apptrait.h" #else