// gtk+ doesn't support justify before gtk+-2.11.0 with pango-1.17 being available
// (but if new enough pango isn't available it's a mere gtk warning)
#if GTK_CHECK_VERSION(2,11,0)
- case wxTEXT_ALIGNMENT_JUSTIFIED:
+ case wxTEXT_ALIGNMENT_JUSTIFIED:
if (!gtk_check_version(2,11,0))
- align = GTK_JUSTIFY_FILL;
+ align = GTK_JUSTIFY_FILL;
else
align = GTK_JUSTIFY_LEFT;
- break;
+ break;
#endif
}
gtk_text_buffer_get_end_iter( m_buffer, &end );
wxGtkString text(gtk_text_buffer_get_text(m_buffer, &start, &end, true));
- const wxWxCharBuffer buf = wxGTK_CONV_BACK(text);
- if ( buf )
- tmp = buf;
+ return wxGTK_CONV_BACK(text);
}
else
{
const gchar *text = gtk_entry_get_text( GTK_ENTRY(m_text) );
- const wxWxCharBuffer buf = wxGTK_CONV_BACK( text );
- if ( buf )
- tmp = buf;
+ return wxGTK_CONV_BACK(text);
}
return tmp;