Ticket #36581: patch-src-MainWindow.cpp.diff

File patch-src-MainWindow.cpp.diff, 648 bytes (added by james-mathiesen@…, 12 years ago)

declare qt_mac_set_dock_menu in the global namespace and attach main menu to tray icon

  • src/MainWindow.cpp

    old new  
    9797#endif
    9898
    9999#ifdef Q_WS_MAC
     100extern void qt_mac_set_dock_menu(QMenu *);
    100101#include "mac/GrowlInterface.h"
    101102#endif
    102103
     
    971972    KMenu *actionsMenu = new KMenu( m_menubar.data() );
    972973#ifdef Q_WS_MAC
    973974    // Add these functions to the dock icon menu in OS X
    974     //extern void qt_mac_set_dock_menu(QMenu *);
    975     //qt_mac_set_dock_menu(actionsMenu);
     975    ::qt_mac_set_dock_menu(actionsMenu);
    976976    // Change to avoid duplicate menu titles in OS X
    977977    actionsMenu->setTitle( i18n("&Music") );
    978978#else