diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 734b7221c0..9cd46bac4b 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -487,6 +487,7 @@ bool wxFont::GTKSetPangoAttrs(PangoLayout* layout) const PangoAttrList* attrs = pango_attr_list_new(); PangoAttribute* a; +#ifndef __WXGTK3__ if (wx_pango_version_check(1,16,0)) { // a PangoLayout which has leading/trailing spaces with underlined font @@ -525,6 +526,8 @@ bool wxFont::GTKSetPangoAttrs(PangoLayout* layout) const pango_attr_list_insert(attrs, a); } } +#endif // !__WXGTK3__ + if (GetUnderlined()) { a = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE);