[gtk+] Complete the get_buffer() conversion



commit 20dc8509f8fd41f9ff15629d3be8dd4295fc3a0e
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 15:09:35 2009 -0400

    Complete the get_buffer() conversion
    
    There was one direct buffer access in gtk_entry_real_delete_text
    leftover, and it promptly made our testsuite fail.

 gtk/gtkentry.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c490f4d..246f343 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4545,7 +4545,7 @@ gtk_entry_real_delete_text (GtkEditable *editable,
    * buffer_notify_text(), buffer_notify_length()
    */
 
-  gtk_entry_buffer_delete_text (GTK_ENTRY_GET_PRIVATE (editable)->buffer, start_pos, end_pos - start_pos);
+  gtk_entry_buffer_delete_text (get_buffer (GTK_ENTRY (editable)), start_pos, end_pos - start_pos);
 }
 
 /* GtkEntryBuffer signal handlers



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