]> git.saurik.com Git - wxWidgets.git/commitdiff
Compile fix.
authorRobert Roebling <robert@roebling.de>
Tue, 6 Aug 2002 19:14:44 +0000 (19:14 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 6 Aug 2002 19:14:44 +0000 (19:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/font.cpp
src/gtk1/font.cpp

index e8dbe802e54cff97ef3c8ad72d4d1b9437c26cec..67fe2d4df0238cddd7ccf2e4c3480fc51afa1399 100644 (file)
@@ -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 )
index e8dbe802e54cff97ef3c8ad72d4d1b9437c26cec..67fe2d4df0238cddd7ccf2e4c3480fc51afa1399 100644 (file)
@@ -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 )