mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 10:20:09 +00:00
Avoid gratitious behaviour change
gtk_entry_set_text() used to emit the ::delete-text, ::insert-text signals. Changing to GtkEntryBuffer should not change this.
This commit is contained in:
parent
b5dab96b45
commit
9a3af66a21
@ -6708,6 +6708,7 @@ void
|
||||
gtk_entry_set_text (GtkEntry *entry,
|
||||
const gchar *text)
|
||||
{
|
||||
gint tmp_pos;
|
||||
GtkEntryCompletion *completion;
|
||||
GtkEntryPrivate *priv;
|
||||
|
||||
@ -6727,7 +6728,9 @@ gtk_entry_set_text (GtkEntry *entry,
|
||||
|
||||
begin_change (entry);
|
||||
g_object_freeze_notify (G_OBJECT (entry));
|
||||
gtk_entry_buffer_set_text (priv->buffer, text, -1);
|
||||
gtk_editable_delete_text (GTK_EDITABLE (entry), 0, -1);
|
||||
tmp_pos = 0;
|
||||
gtk_editable_insert_text (GTK_EDITABLE (entry), text, strlen (text), &tmp_pos);
|
||||
g_object_thaw_notify (G_OBJECT (entry));
|
||||
end_change (entry);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user