]> git.saurik.com Git - wxWidgets.git/commitdiff
add a comment about wxNativeFontInfo::SetFaceName return value
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 24 Mar 2009 23:13:57 +0000 (23:13 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 24 Mar 2009 23:13:57 +0000 (23:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/fontutil.cpp

index bdef942006ef9208efc0244a988719e003dc0b3f..4e027ae7d77bf208d92c065c0b6918ddd18b3d3e 100644 (file)
@@ -276,6 +276,10 @@ void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
 bool wxNativeFontInfo::SetFaceName(const wxString& facename)
 {
     pango_font_description_set_family(description, wxPANGO_CONV(facename));
+    
+    // we return true because Pango doesn't tell us if the call failed or not;
+    // instead on wxGTK wxFont::SetFaceName() will call wxFontBase::SetFaceName()
+    // which does the check
     return true;
 }