Recompute label contents when the buffer changes

Also reset cursor positions to avoid assertions.
This fixes bug 612505, patch by Tristan Van Berkom.
(cherry picked from commit 233281fd39)
This commit is contained in:
Matthias Clasen
2010-03-12 15:58:11 -05:00
parent 6bf6324626
commit dd64c7a2b9

View File

@@ -6664,6 +6664,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);
}