]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Don't look for catalogs in AddCatalogLookupPathPrefix() path directly.
[wxWidgets.git] / src / common / tbarbase.cpp
index 2a33c1979bf8d61f340400252f8f3cc9c6dd090c..b20130ec33301e43d694522a1b2b1ea06c39a998 100644 (file)
@@ -631,7 +631,7 @@ bool wxToolBarBase::IsVertical() const
 // Only allow toggle if returns true
 bool wxToolBarBase::OnLeftClick(int toolid, bool toggleDown)
 {
-    wxCommandEvent event(wxEVT_COMMAND_TOOL_CLICKED, toolid);
+    wxCommandEvent event(wxEVT_TOOL, toolid);
     event.SetEventObject(this);
 
     // we use SetInt() to make wxCommandEvent::IsChecked() return toggleDown
@@ -651,7 +651,7 @@ void wxToolBarBase::OnRightClick(int toolid,
                                  long WXUNUSED(x),
                                  long WXUNUSED(y))
 {
-    wxCommandEvent event(wxEVT_COMMAND_TOOL_RCLICKED, toolid);
+    wxCommandEvent event(wxEVT_TOOL_RCLICKED, toolid);
     event.SetEventObject(this);
     event.SetInt(toolid);
 
@@ -665,7 +665,7 @@ void wxToolBarBase::OnRightClick(int toolid,
 // the tool toolid.
 void wxToolBarBase::OnMouseEnter(int toolid)
 {
-    wxCommandEvent event(wxEVT_COMMAND_TOOL_ENTER, GetId());
+    wxCommandEvent event(wxEVT_TOOL_ENTER, GetId());
     event.SetEventObject(this);
     event.SetInt(toolid);