diff options
author | Li Yuan <li.yuan@sun.com> | 2010-05-27 14:57:38 +0800 |
---|---|---|
committer | Li Yuan <li.yuan@sun.com> | 2010-05-27 14:57:38 +0800 |
commit | 5c8bdc1a69aa4f8691803b9db89482d99d965828 (patch) | |
tree | 0b48d9d21d746fd6fde6fd24e539a276930041eb /modules | |
parent | 258f9e814aedb4da86531bd848e8ddb4228a505c (diff) | |
download | gtk+-5c8bdc1a69aa4f8691803b9db89482d99d965828.tar.gz |
Bug #619080.
Do not emit the text-changed::insert signal when the entry is empty.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/other/gail/gailentry.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/other/gail/gailentry.c b/modules/other/gail/gailentry.c index cfe724b1b3..33009eac99 100644 --- a/modules/other/gail/gailentry.c +++ b/modules/other/gail/gailentry.c @@ -1020,6 +1020,12 @@ gail_entry_idle_notify_insert (gpointer data) static void gail_entry_notify_insert (GailEntry *entry) { + GtkWidget *widget; + + widget = GTK_ACCESSIBLE (entry)->widget; + if (gtk_entry_get_text_length (GTK_ENTRY (widget)) == 0) + return; + if (entry->signal_name_insert) { g_signal_emit_by_name (entry, @@ -1043,6 +1049,9 @@ _gail_entry_insert_text_cb (GtkEntry *entry, GailEntry *gail_entry; gint *position = (gint *) arg3; + if (arg2 == 0) + return; + accessible = gtk_widget_get_accessible (GTK_WIDGET (entry)); gail_entry = GAIL_ENTRY (accessible); if (!gail_entry->signal_name_insert) |