]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Forgot to free string after usage.
[wxWidgets.git] / src / common / tbarbase.cpp
index 0bd33adcafb9e289f214803f6e626c7dbd16204e..e9b2c110ec0e0f2d39493f4261d654c05d90fe0f 100644 (file)
@@ -114,10 +114,30 @@ bool wxToolBarToolBase::SetLongHelp(const wxString& help)
     return true;
 }
 
-wxToolBarToolBase::~wxToolBarToolBase()
+#if WXWIN_COMPATIBILITY_2_2
+
+const wxBitmap& wxToolBarToolBase::GetBitmap1() const
+{
+    return GetNormalBitmap();
+}
+
+const wxBitmap& wxToolBarToolBase::GetBitmap2() const
 {
+    return GetDisabledBitmap();
 }
 
+void wxToolBarToolBase::SetBitmap1(const wxBitmap& bmp)
+{
+    SetNormalBitmap(bmp);
+}
+
+void wxToolBarToolBase::SetBitmap2(const wxBitmap& bmp)
+{
+    SetDisabledBitmap(bmp);
+}
+
+#endif // WXWIN_COMPATIBILITY_2_2
+
 // ----------------------------------------------------------------------------
 // wxToolBarBase adding/deleting items
 // ----------------------------------------------------------------------------