#else
wxCharBuffer buffer( wxConvLocal.cWC2WX( wxConvUTF8.cMB2WC( text ) ) );
#endif
- tmp = buffer;
+ if ( buffer )
+ tmp = buffer;
g_free( text );
#else
wxCharBuffer buffer( wxConvUTF8.cWC2MB( wxConvLocal.cWX2WC( value ) ) );
#endif
GtkTextBuffer *text_buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(m_text) );
+ if (gtk_text_buffer_get_char_count(text_buffer) != 0)
+ IgnoreNextTextUpdate();
+
gtk_text_buffer_set_text( text_buffer, buffer, strlen(buffer) );
#else
if ( !wxControl::SetBackgroundColour( colour ) )
return FALSE;
+#ifndef __WXGTK20__
if (!m_widget->window)
return FALSE;
+#endif
if (!m_backgroundColour.Ok())
return FALSE;