// artists and translators) as a one long multiline string
wxString GetDescriptionAndCredits() const;
+ // returns the copyright with the (C) string substituted by the Unicode
+ // character U+00A9
+ wxString GetCopyrightToDisplay() const;
+
private:
wxString m_name,
m_version,
return icon;
}
+wxString wxAboutDialogInfo::GetCopyrightToDisplay() const
+{
+ wxString ret = m_copyright;
+
+ ret.Replace("(c)", "\u00A9");
+ ret.Replace("(C)", "\u00A9");
+
+ return ret;
+}
+
// ----------------------------------------------------------------------------
// wxGenericAboutDialog
// ----------------------------------------------------------------------------
m_sizerText->Add(label, wxSizerFlags().Centre().Border());
m_sizerText->AddSpacer(5);
- AddText(info.GetCopyright());
+ AddText(info.GetCopyrightToDisplay());
AddText(info.GetDescription());
if ( info.HasWebSite() )
GtkArray() : m_strings(0), m_count(0)
{
}
-
+
// Create GtkArray from wxArrayString. Note that the created object is
// only valid as long as 'a' is!
GtkArray(const wxArrayString& a)
else
gtk_about_dialog_set_version(dlg, NULL);
if ( info.HasCopyright() )
- gtk_about_dialog_set_copyright(dlg, wxGTK_CONV_SYS(info.GetCopyright()));
+ gtk_about_dialog_set_copyright(dlg, wxGTK_CONV_SYS(info.GetCopyrightToDisplay()));
else
gtk_about_dialog_set_copyright(dlg, NULL);
if ( info.HasDescription() )
}
if ( info.HasCopyright() )
- opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyright());
+ opts.Set(kHIAboutBoxCopyrightKey, info.GetCopyrightToDisplay());
opts.Set(kHIAboutBoxDescriptionKey, info.GetDescriptionAndCredits());
void SetAttributedString( CFStringRef key, const wxString& value )
{
- wxCFRef<CFAttributedStringRef> attrString(
+ wxCFRef<CFAttributedStringRef> attrString(
CFAttributedStringCreate(kCFAllocatorDefault, wxCFStringRef(value), NULL) );
CFDictionarySetValue(*this, key, attrString);
}
}
if ( info.HasCopyright() )
- opts.Set(CFSTR("Copyright"), info.GetCopyright());
+ opts.Set(CFSTR("Copyright"), info.GetCopyrightToDisplay());
opts.SetAttributedString(CFSTR("Credits"), info.GetDescriptionAndCredits());