GNOME Bugzilla – Bug 64998
GtkEntry - gtk_entry_set_text emits "changed" twice
Last modified: 2006-12-24 05:18:33 UTC
Calling gtk_entry_set_text emits the "changed" signal twice, once when the existing text is deleted from the entry and once when the new text is added.
See also 53130
some comments in bug 53130 about how this could be solved. (Set a "in multiple change flag")
I think this bug should be fairly high priority as it can cause problems for apps that perform actions based on the contents of the entry when it changes. I've had to hack around it in Glade in a few places.
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
Moving various feature enhancements to the 2.4.0 milestone.
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as Matthias said he was trying to do himself on IRC and was asking for help with. If you see this message, it means I was successful at fixing the borken-ness in bugzilla :) Sorry for the spam; just query on this message and delete all emails you get with this message, since there will probably be a lot.
*** Bug 311842 has been marked as a duplicate of this bug. ***
*** Bug 324638 has been marked as a duplicate of this bug. ***
Created attachment 61928 [details] [review] simple patch
*** Bug 339799 has been marked as a duplicate of this bug. ***
Created attachment 64478 [details] example (python) code This bug happens for me only when using a custom renderer for the completion. See attachment. Change USE_CUSTOM_RENDERER to True to cause bug.
*** Bug 354353 has been marked as a duplicate of this bug. ***
I have some additional example code in http://bugzilla.gnome.org/show_bug.cgi?id=354353. This is not a completition issue, it happens without, too. Johan Dahlin's patch looks good to me.
Bug 339799 includes a patch that's even simpler. Can we get this one fixed for the next major release?
2006-12-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkentry.c (gtk_entry_set_text): Emit changed and notify:text only once. The same fix was applied for replacing the selection via DND or copy-and-paste. (#64998, Damon Chaplin, Sven Herzberg)