fix critical in gtk_editable_insert_text

This commit is contained in:
Jean Brefort 2010-01-07 16:40:49 +01:00 committed by Tristan Van Berkom
parent f8d1cf58af
commit 694bf7230e

View File

@ -4537,7 +4537,7 @@ gtk_entry_real_insert_text (GtkEditable *editable,
* following signal handlers: buffer_inserted_text(), buffer_notify_display_text(), * following signal handlers: buffer_inserted_text(), buffer_notify_display_text(),
* buffer_notify_text(), buffer_notify_length() * buffer_notify_text(), buffer_notify_length()
*/ */
n_inserted = gtk_entry_buffer_insert_text (GTK_ENTRY_GET_PRIVATE (editable)->buffer, *position, new_text, n_chars); n_inserted = gtk_entry_buffer_insert_text (get_buffer (GTK_ENTRY (editable)), *position, new_text, n_chars);
if (n_inserted != n_chars) if (n_inserted != n_chars)
gtk_widget_error_bell (GTK_WIDGET (editable)); gtk_widget_error_bell (GTK_WIDGET (editable));