[gtk+] Fix tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix tests
- Date: Sat, 13 Mar 2010 05:51:00 +0000 (UTC)
commit c55e0fc372e1221cb975083d7b47c39a76a82fba
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 13 00:47:59 2010 -0500
Fix tests
gtk/gtkentry.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 227af1c..a92e670 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -6692,6 +6692,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);
@@ -6708,9 +6711,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]