X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edc1cd8baf42910840cd2f86351f417868f9c1a9..a63d48fa138e9eaa3079172ace9a804ba5b0415e:/src/motif/settings.cpp diff --git a/src/motif/settings.cpp b/src/motif/settings.cpp index e8d4c9b01b..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,8 +181,13 @@ 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: + case wxSYS_VSCROLL_X: + return 15; case wxSYS_MOUSE_BUTTONS: // TODO case wxSYS_BORDER_X: @@ -220,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: @@ -233,10 +242,6 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) // TODO case wxSYS_SMALLICON_Y: // TODO - case wxSYS_HSCROLL_Y: - // TODO - case wxSYS_VSCROLL_X: - // TODO case wxSYS_VSCROLL_ARROW_X: // TODO case wxSYS_VSCROLL_ARROW_Y: @@ -259,7 +264,7 @@ int wxSystemSettingsNative::GetMetric(wxSystemMetric index) ; } - return 0; + return return_value; } bool wxSystemSettingsNative::HasFeature(wxSystemFeature index)