[gtk+] fix critical in gtk_editable_insert_text



commit 808e698ea7ec48e28ffa175effa7b79939fccc80
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu Jan 7 16:40:49 2010 +0100

    fix critical in gtk_editable_insert_text

 gtk/gtkentry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c5e3a6e..b4eb264 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]