]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/menu.h
account for scroll offset correctly in the mouse event handler
[wxWidgets.git] / include / wx / menu.h
index 8cae2e12557e263a25e76c9ac3af98785ed3deab..963a8fac0b7418d82d00c336f944f0c52e823e1c 100644 (file)
@@ -248,7 +248,7 @@ public:
 
     // the title
     virtual void SetTitle(const wxString& title) { m_title = title; }
-    const wxString GetTitle() const { return m_title; }
+    const wxString& GetTitle() const { return m_title; }
 
     // event handler
     void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
@@ -532,7 +532,7 @@ protected:
 #elif defined(__WXGTK__)
     #include "wx/gtk1/menu.h"
 #elif defined(__WXMAC__)
-    #include "wx/mac/menu.h"
+    #include "wx/osx/menu.h"
 #elif defined(__WXCOCOA__)
     #include "wx/cocoa/menu.h"
 #elif defined(__WXPM__)