]> git.saurik.com Git - wxWidgets.git/commitdiff
Revert menus and toolbars to using wxNewId() too since their IDs can't
authorRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 06:43:59 +0000 (06:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 06:43:59 +0000 (06:43 +0000)
be negative either

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

include/wx/tbarbase.h
src/common/menucmn.cpp

index 582fb2da81a80575fafb7e2173db930b7b3e9886..3aa70ce99dc4b62ee6c8fb6dc4f1328275aa496b 100644 (file)
@@ -76,7 +76,7 @@ public:
         m_tbar = tbar;
         m_id = toolid;
         if (m_id == wxID_ANY)
-            m_id = wxWindow::NewControlId();
+            m_id = wxNewId();
         m_clientData = clientData;
 
         m_bmpNormal = bmpNormal;
index 7d5185c1b51d0b043bacddbef01e13d14292bc55..49f3a00d9e08b8f9deef1edbf56b38949f59a60e 100644 (file)
@@ -375,7 +375,7 @@ wxMenuItemBase::wxMenuItemBase(wxMenu *parentMenu,
     m_id          = id;
     m_kind        = kind;
     if (m_id == wxID_ANY)
-        m_id = wxWindow::NewControlId();
+        m_id = wxNewId();
     if (m_id == wxID_SEPARATOR)
         m_kind = wxITEM_SEPARATOR;