X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1aae5288576cd0066d2cbbf92935a969110bcea..c0f984728e5cac4d20f004aa962b15e9a30d91e6:/src/motif/settings.cpp diff --git a/src/motif/settings.cpp b/src/motif/settings.cpp index 91f8fc631b..25bcfddc02 100644 --- a/src/motif/settings.cpp +++ b/src/motif/settings.cpp @@ -13,7 +13,7 @@ // per-user file, which can be edited using a Windows-control-panel clone. // Also they should be documented better. Some are very MS Windows-ish. -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "settings.h" #endif @@ -30,6 +30,8 @@ #pragma message enable nosimpint #endif +#include "wx/x11/privx.h" + // To correctly read the resources from the database, we create a // sample widget. This has the application shell as the parent and // so will be destroyed when the applicaion is closed. @@ -179,6 +181,8 @@ wxFont wxSystemSettingsNative::GetFont(wxSystemFont index) // Get a system metric, e.g. scrollbar size int wxSystemSettingsNative::GetMetric(wxSystemMetric index) { + int return_value = 0; + switch ( index) { case wxSYS_HSCROLL_Y: @@ -223,11 +227,13 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) case wxSYS_WINDOWMIN_X: // TODO case wxSYS_WINDOWMIN_Y: - // TODO + break; case wxSYS_SCREEN_X: - // TODO + return_value = DisplayWidth( wxGlobalDisplay(), 0 ); + break; case wxSYS_SCREEN_Y: - // TODO + return_value = DisplayHeight( wxGlobalDisplay(), 0 ); + break; case wxSYS_FRAMESIZE_X: // TODO case wxSYS_FRAMESIZE_Y: @@ -258,7 +264,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) ; } - return 0; + return return_value; } bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)