mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
Recompute label contents when the buffer changes
Also reset cursor positions to avoid assertions. This fixes bug 612505, patch by Tristan Van Berkom.
This commit is contained in:
parent
df95db7649
commit
9408915114
@ -6708,6 +6708,9 @@ gtk_entry_set_buffer (GtkEntry *entry,
|
|||||||
g_object_notify (obj, "invisible-char");
|
g_object_notify (obj, "invisible-char");
|
||||||
g_object_notify (obj, "invisible-char-set");
|
g_object_notify (obj, "invisible-char-set");
|
||||||
g_object_thaw_notify (obj);
|
g_object_thaw_notify (obj);
|
||||||
|
|
||||||
|
gtk_editable_set_position (GTK_EDITABLE (entry), 0);
|
||||||
|
gtk_entry_recompute (entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user