wxCHECK_RET( font, wxT("invalid font") );
-#ifdef __WXGTK20__
+#if defined(__WXGTK20__)
wxCHECK_RET( m_context, wxT("no Pango context") );
#endif
x = XLOG2DEV(x);
y = YLOG2DEV(y);
-#ifdef __WXGTK20__
+#if defined(__WXGTK20__) && wxUSE_WCHAR_T
/* FIXME: the layout engine should probably be abstracted at a higher level in wxDC... */
PangoLayout *layout = pango_layout_new(m_context);
pango_layout_set_font_description(layout, m_fontdesc);
gdk_draw_line( m_window, m_textGC, x, ul_y, x + width, ul_y);
}
-#ifdef __WXGTK20__
+#if defined(__WXGTK20__) && wxUSE_WCHAR_T
g_object_unref( G_OBJECT( layout ) );
#endif