]> git.saurik.com Git - wxWidgets.git/commitdiff
Change friendship so that the base implementation class is the friend.
authorDavid Elliott <dfe@tgwbd.org>
Fri, 22 Oct 2004 15:42:16 +0000 (15:42 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Fri, 22 Oct 2004 15:42:16 +0000 (15:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/taskbar.h
src/cocoa/taskbar.mm

index 4316e92ebbe6bed4f2c597b8ae6f52897dcfdb4c..833cf83143502ce48b052af449f0af2828606a83 100644 (file)
@@ -22,11 +22,10 @@ class WXDLLEXPORT wxIcon;
 class WXDLLEXPORT wxMenu;
 
 class wxTaskBarIconCocoaImpl;
-class wxTaskBarIconDockImpl;
 
 class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
 {
-    friend class wxTaskBarIconDockImpl;
+    friend class wxTaskBarIconCocoaImpl;
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
 public:
     //type of taskbar item to create (currently only DOCK is implemented)
index 5975e31c3d2539eee01ecdbfb0e689db8f42190d..1a5cd8e5006089e69e9ca2b52372aa430397d99e 100644 (file)
@@ -61,6 +61,10 @@ public:
     virtual ~wxTaskBarIconCocoaImpl();
     inline wxTaskBarIcon* GetTaskBarIcon() { return m_taskBarIcon; }
 protected:
+    inline wxMenu* CreatePopupMenu()
+    {   wxASSERT(m_taskBarIcon);
+        m_taskBarIcon->CreatePopupMenu();
+    }
     wxTaskBarIcon *m_taskBarIcon;
     wxTaskBarIconWindow *m_iconWindow;
 private:
@@ -231,7 +235,7 @@ WX_NSMenu wxTaskBarIconDockImpl::CocoaGetDockNSMenu()
 
 WX_NSMenu wxTaskBarIconDockImpl::CocoaDoGetDockNSMenu()
 {
-    wxMenu *dockMenu = m_taskBarIcon->CreatePopupMenu();
+    wxMenu *dockMenu = CreatePopupMenu();
     if(!dockMenu)
         return nil;
     if(!m_iconWindow)