mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
added a CD-eject method for the mac; fixed a small CoreAudio bug; sorted out some minor message loop problems on the mac and windows; added a PlatformUtilities method to add an item to the OSX dock.
This commit is contained in:
parent
ec0557e7b6
commit
da340b4d2f
12 changed files with 129 additions and 14 deletions
|
|
@ -163,7 +163,13 @@ bool MessageManager::runDispatchLoopUntil (int millisecondsToRunFor)
|
|||
{
|
||||
JUCE_TRY
|
||||
{
|
||||
juce_dispatchNextMessageOnSystemQueue (millisecondsToRunFor >= 0);
|
||||
if (! juce_dispatchNextMessageOnSystemQueue (millisecondsToRunFor >= 0))
|
||||
{
|
||||
const int msToWait = (int) (endTime - Time::currentTimeMillis());
|
||||
|
||||
if (msToWait > 0)
|
||||
Thread::sleep (jmin (5, msToWait));
|
||||
}
|
||||
}
|
||||
JUCE_CATCH_EXCEPTION
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ void Label::showEditor()
|
|||
if (editor == 0)
|
||||
{
|
||||
addAndMakeVisible (editor = createEditorComponent());
|
||||
editor->setText (getText());
|
||||
editor->setText (getText(), false);
|
||||
editor->addListener (this);
|
||||
editor->grabKeyboardFocus();
|
||||
editor->setHighlightedRegion (0, text.length());
|
||||
|
|
|
|||
|
|
@ -961,8 +961,10 @@ void LookAndFeel::drawPopupMenuBackground (Graphics& g, int width, int height)
|
|||
for (int i = 0; i < height; i += 3)
|
||||
g.fillRect (0, i, width, 1);
|
||||
|
||||
#if ! JUCE_MAC
|
||||
g.setColour (findColour (PopupMenu::textColourId).withAlpha (0.6f));
|
||||
g.drawRect (0, 0, width, height);
|
||||
#endif
|
||||
}
|
||||
|
||||
void LookAndFeel::drawPopupMenuUpDownArrow (Graphics& g,
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ public:
|
|||
/** MAC ONLY - Returns true if this file is actually a bundle. */
|
||||
static bool isBundle (const String& filename);
|
||||
|
||||
/** MAC ONLY - Adds an item to the dock */
|
||||
static void addItemToDock (const File& file);
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue