forked from AuroraMiddleware/gtk
fix critical in gtk_editable_insert_text
This commit is contained in:
parent
f8d1cf58af
commit
694bf7230e
@ -4537,7 +4537,7 @@ gtk_entry_real_insert_text (GtkEditable *editable,
|
||||
* following signal handlers: buffer_inserted_text(), buffer_notify_display_text(),
|
||||
* 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)
|
||||
gtk_widget_error_bell (GTK_WIDGET (editable));
|
||||
|
Loading…
Reference in New Issue
Block a user