[gtk+/gtk-2-18] Fix the tests



commit bf3b7bd40b2908e67271c2e1ba6c58b794b535e2
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 13 00:40:10 2010 -0500

    Fix the tests

 gtk/gtkentry.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 5f2630e..cc1260c 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -6648,6 +6648,9 @@ gtk_entry_set_buffer (GtkEntry       *entry,
     {
        buffer_connect_signals (entry);
 
+       gtk_editable_set_position (GTK_EDITABLE (entry), 0);
+       gtk_entry_recompute (entry);
+
       /* COMPAT: Deprecated. Not used. Setting these fields no longer necessary in GTK 3.x */
       entry->text = (char*)gtk_entry_buffer_get_text (priv->buffer);
       entry->text_length = gtk_entry_buffer_get_length (priv->buffer);
@@ -6664,9 +6667,6 @@ gtk_entry_set_buffer (GtkEntry       *entry,
   g_object_notify (obj, "invisible-char");
   g_object_notify (obj, "invisible-char-set");
   g_object_thaw_notify (obj);
-
-  gtk_editable_set_position (GTK_EDITABLE (entry), 0);
-  gtk_entry_recompute (entry);
 }
 
 



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