: wxGraphicsContext(renderer)
{
#ifdef __WXGTK__
+#if wxUSE_NEW_DC
+ wxGTKImplDC *impldc = (wxGTKImplDC*) dc.GetImpl();
+ Init( gdk_cairo_create( impldc->GetGDKWindow() ) );
+#else
Init( gdk_cairo_create( dc.m_window ) );
#endif
+#endif
#ifdef __WXMAC__
int width, height;
dc.GetSize( &width, &height );
return;
#ifdef __WXGTK__
- const wxCharBuffer data = wxConvUTF8.cWC2MB( str );
+ const wxCharBuffer data = str.utf8_str();
if ( !data )
return;
size_t datalen = strlen(data);
PangoLayout *layout = pango_cairo_create_layout (m_context);
pango_layout_set_font_description( layout, ((wxCairoFontData*)m_font.GetRefData())->GetFont());
- const wxCharBuffer data = wxConvUTF8.cWC2MB( str );
+ const wxCharBuffer data = str.utf8_str();
if ( !data )
{
return;