// data
//-----------------------------------------------------------------------------
-extern bool g_blockEventsOnDrag;
extern wxCursor g_globalCursor;
extern wxWindowGTK *g_delayedFocus;
#else
GtkTextIter line;
gtk_text_buffer_get_iter_at_line(m_buffer,&line,lineNo);
- GtkTextIter end;
- gtk_text_buffer_get_end_iter(m_buffer,&end );
+ GtkTextIter end = line;
+ gtk_text_iter_forward_to_line_end(&end);
gchar *text = gtk_text_buffer_get_text(m_buffer,&line,&end,TRUE);
wxString result(wxGTK_CONV_BACK(text));
g_free(text);
- return result.BeforeFirst(wxT('\n'));
+ return result;
#endif
}
else
else
#endif
{
- return (long) GET_EDITABLE_POS(m_text);
+ return (long) GET_EDITABLE_POS(m_text);
}
}
gtk_widget_set_sensitive(m_widget, false);
g_object_ref(m_buffer);
gtk_text_view_set_buffer(GTK_TEXT_VIEW(m_text), gtk_text_buffer_new(NULL));
- }
+ }
#else
gtk_text_freeze(GTK_TEXT(m_text));
#endif