]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove obsolete warning from wxMenuBar::GetTitle() documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Nov 2010 01:22:17 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Nov 2010 01:22:17 +0000 (01:22 +0000)
This method can be used for menu bar entries also since the previous commit.

Do mention that SetTitle() can't be used to change a menu bar menu title
however.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/menu.h

index 623f3c8911c6a9b4a4fb2130186bf6c782e5078a..a64d66729c6113fe9392a37551d7ad00d6ed242c 100644 (file)
@@ -781,9 +781,6 @@ public:
     /**
         Returns the title of the menu.
 
-        @remarks This is relevant only to popup menus, use
-                 wxMenuBar::GetMenuLabel for the menus in the menubar.
-
         @see SetTitle()
     */
     const wxString& GetTitle() const;
@@ -953,8 +950,9 @@ public:
         @param title
             The title to set.
 
-        @remarks This is relevant only to popup menus, use
-                 wxMenuBar::SetLabelTop for the menus in the menubar.
+        @remarks Notice that you can only call this method directly for the
+            popup menus, to change the title of a menu that is part of a menu
+            bar you need to use wxMenuBar::SetLabelTop().
 
         @see GetTitle()
     */