]> git.saurik.com Git - wxWidgets.git/commitdiff
added method for finding out, whether the macos system is fully initialized for this...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 5 Jan 2002 16:36:46 +0000 (16:36 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 5 Jan 2002 16:36:46 +0000 (16:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/uma.h
src/mac/carbon/uma.cpp
src/mac/uma.cpp

index 6a7de05e46ba586e5d21f379833824ce3f16e9da..b242acb9616c6a6602fa874bff63acd241213635 100644 (file)
@@ -21,6 +21,7 @@ long UMAGetAppearanceVersion() ;
 bool UMAHasWindowManager() ;
 long UMAGetWindowManagerAttr() ;
 bool UMAHasAquaLayout() ;
+bool UMASystemIsInitialized() ;
 
 // process manager
 
index 1c31f87d4c8356d76f5ae89f2b18782281ac7d79..2e50863903ee53493cbfc528b211b988b561691c 100644 (file)
@@ -19,6 +19,8 @@
 static bool    sUMAHasAppearance = false ;
 static long sUMAAppearanceVersion = 0 ;
 static bool sUMAHasAquaLayout = false ;
+static bool sUMASystemInitialized = false ;
+
 extern int gAGABackgroundColor ;
 bool UMAHasAppearance() { return sUMAHasAppearance ; }
 long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
 bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
 long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
 bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
-
+bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
 
 void UMACleanupToolbox()
 {
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
   Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
   if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
     sUMAHasAquaLayout = true ;
-
+  sUMASystemInitialized = true ;
 }
 
 // process manager
index 1c31f87d4c8356d76f5ae89f2b18782281ac7d79..2e50863903ee53493cbfc528b211b988b561691c 100644 (file)
@@ -19,6 +19,8 @@
 static bool    sUMAHasAppearance = false ;
 static long sUMAAppearanceVersion = 0 ;
 static bool sUMAHasAquaLayout = false ;
+static bool sUMASystemInitialized = false ;
+
 extern int gAGABackgroundColor ;
 bool UMAHasAppearance() { return sUMAHasAppearance ; }
 long UMAGetAppearanceVersion() { return sUMAAppearanceVersion ; }
@@ -29,7 +31,7 @@ static long sUMAWindowManagerAttr = 0 ;
 bool UMAHasWindowManager() { return sUMAHasWindowManager ; }
 long UMAGetWindowManagerAttr() { return sUMAWindowManagerAttr ; }
 bool UMAHasAquaLayout() { return sUMAHasAquaLayout ; }
-
+bool UMASystemIsInitialized() { return sUMASystemInitialized ; }
 
 void UMACleanupToolbox()
 {
@@ -112,7 +114,7 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls )
   Gestalt( gestaltMenuMgrAttr , &menuMgrAttr ) ;
   if ( menuMgrAttr & gestaltMenuMgrAquaLayoutMask )
     sUMAHasAquaLayout = true ;
-
+  sUMASystemInitialized = true ;
 }
 
 // process manager