summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-03-12 15:58:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-03-12 15:59:59 -0500
commit233281fd394b34e6b4a7684ea362781f72c3a476 (patch)
treee460b965fb14e5da643bca3a0d82eb4b8da920dc
parentf73f9d802ca412c08e3add899c7457438644d7c2 (diff)
downloadgtk+-233281fd394b34e6b4a7684ea362781f72c3a476.tar.gz
Recompute label contents when the buffer changes
Also reset cursor positions to avoid assertions. This fixes bug 612505, patch by Tristan Van Berkom.
-rw-r--r--gtk/gtkentry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 1a9442474e..227af1c7a8 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -6708,6 +6708,9 @@ 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);
}
/**