From 3a6a00822d9930aab713b4fa924ad7d12798b9a3 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Tue, 24 Mar 2009 23:13:57 +0000 Subject: [PATCH] add a comment about wxNativeFontInfo::SetFaceName return value git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/fontutil.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unix/fontutil.cpp b/src/unix/fontutil.cpp index bdef942006..4e027ae7d7 100644 --- a/src/unix/fontutil.cpp +++ b/src/unix/fontutil.cpp @@ -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; }