From f7c22a2874f61cf39679c319ebc7a0f38950c8f2 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 6 Aug 2002 19:14:44 +0000 Subject: [PATCH] Compile fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/font.cpp | 3 ++- src/gtk1/font.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index e8dbe802e5..67fe2d4df0 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -179,7 +179,7 @@ void wxFontRefData::Init(int pointSize, m_underlined = underlined; m_encoding = encoding; - +#ifdef __WXGTK20__ // Create native font info m_nativeFontInfo.description = pango_font_description_new(); @@ -199,6 +199,7 @@ void wxFontRefData::Init(int pointSize, SetStyle( m_style ); SetPointSize( m_pointSize ); SetWeight( m_weight ); +#endif } wxFontRefData::wxFontRefData( const wxFontRefData& data ) diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index e8dbe802e5..67fe2d4df0 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -179,7 +179,7 @@ void wxFontRefData::Init(int pointSize, m_underlined = underlined; m_encoding = encoding; - +#ifdef __WXGTK20__ // Create native font info m_nativeFontInfo.description = pango_font_description_new(); @@ -199,6 +199,7 @@ void wxFontRefData::Init(int pointSize, SetStyle( m_style ); SetPointSize( m_pointSize ); SetWeight( m_weight ); +#endif } wxFontRefData::wxFontRefData( const wxFontRefData& data )