]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/aboutdlg.cpp
splitted wxApp docs in wxApp+wxAppConsole docs; fix the signature of the documented...
[wxWidgets.git] / src / mac / carbon / aboutdlg.cpp
index 27fe123bf810025545db8dc03a2387d65d08896c..243de8b7d7b2a1a69358fdf82a8d417ba4ca8b01 100644 (file)
 #include "wx/mac/private.h"
 
 // helper class for HIAboutBox options
 #include "wx/mac/private.h"
 
 // helper class for HIAboutBox options
-class AboutBoxOptions : public wxMacCFRefHolder<CFMutableDictionaryRef>
+class AboutBoxOptions : public wxCFRef<CFMutableDictionaryRef>
 {
 public:
 {
 public:
-    AboutBoxOptions() : wxMacCFRefHolder<CFMutableDictionaryRef>
+    AboutBoxOptions() : wxCFRef<CFMutableDictionaryRef>
                         (
                           CFDictionaryCreateMutable
                           (
                         (
                           CFDictionaryCreateMutable
                           (
@@ -69,7 +69,10 @@ void wxAboutBox(const wxAboutDialogInfo& info)
         opts.Set(kHIAboutBoxNameKey, info.GetName());
 
         if ( info.HasVersion() )
         opts.Set(kHIAboutBoxNameKey, info.GetName());
 
         if ( info.HasVersion() )
-            opts.Set(kHIAboutBoxVersionKey, info.GetVersion());
+        {
+            opts.Set(kHIAboutBoxVersionKey,
+                     wxString::Format(_("Version %s"), info.GetVersion()));
+        }
 
         if ( info.HasCopyright() )
             opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyright());
 
         if ( info.HasCopyright() )
             opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyright());