Browse Source

made sure mac windows have the correct title

tags/2021-05-28
jules 16 years ago
parent
commit
d74275a9e9
4 changed files with 8 additions and 4 deletions
  1. +2
    -0
      build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm
  2. +2
    -0
      juce_amalgamated.cpp
  3. +2
    -2
      juce_amalgamated.h
  4. +2
    -2
      src/juce_core/basics/juce_PlatformDefs.h

+ 2
- 0
build/macosx/platform_specific_code/juce_mac_NSViewComponentPeer.mm View File

@@ -727,6 +727,8 @@ NSViewComponentPeer::NSViewComponentPeer (Component* const component,
[window setExcludedFromWindowsMenu: (windowStyleFlags & windowIsTemporary) != 0];
[window setIgnoresMouseEvents: (windowStyleFlags & windowIgnoresMouseClicks) != 0];
}
setTitle (component->getName());
}
NSViewComponentPeer::~NSViewComponentPeer()


+ 2
- 0
juce_amalgamated.cpp View File

@@ -265252,6 +265252,8 @@ NSViewComponentPeer::NSViewComponentPeer (Component* const component,
[window setExcludedFromWindowsMenu: (windowStyleFlags & windowIsTemporary) != 0];
[window setIgnoresMouseEvents: (windowStyleFlags & windowIgnoresMouseClicks) != 0];
}

setTitle (component->getName());
}

NSViewComponentPeer::~NSViewComponentPeer()


+ 2
- 2
juce_amalgamated.h View File

@@ -363,11 +363,11 @@
#define MACOS_10_2_OR_EARLIER 1
#endif

#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)
#if (! defined (MAC_OS_X_VERSION_10_4)) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)
#define MACOS_10_3_OR_EARLIER 1
#endif

#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
#if (! defined (MAC_OS_X_VERSION_10_5)) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
#define MACOS_10_4_OR_EARLIER 1
#endif
#endif


+ 2
- 2
src/juce_core/basics/juce_PlatformDefs.h View File

@@ -113,11 +113,11 @@
#define MACOS_10_2_OR_EARLIER 1
#endif
#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)
#if (! defined (MAC_OS_X_VERSION_10_4)) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4)
#define MACOS_10_3_OR_EARLIER 1
#endif
#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
#if (! defined (MAC_OS_X_VERSION_10_5)) || (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5)
#define MACOS_10_4_OR_EARLIER 1
#endif
#endif


Loading…
Cancel
Save