After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 64998 - GtkEntry - gtk_entry_set_text emits "changed" twice
GtkEntry - gtk_entry_set_text emits "changed" twice
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.10.x
Other Linux
: Normal normal
: Small fix
Assigned To: gtk-bugs
gtk-bugs
: 311842 324638 339799 354353 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-11-21 01:09 UTC by Damon Chaplin
Modified: 2006-12-24 05:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple patch (3.47 KB, patch)
2006-03-24 17:53 UTC, Johan (not receiving bugmail) Dahlin
none Details | Review
example (python) code (1.62 KB, text/x-python)
2006-04-28 16:32 UTC, brett
  Details

Description Damon Chaplin 2001-11-21 01:09:01 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.
Comment 1 Owen Taylor 2001-12-12 00:58:05 UTC
See also 53130
Comment 2 Owen Taylor 2002-02-27 03:46:48 UTC
some comments in bug 53130 about how this could be solved.
(Set a "in multiple change flag")
Comment 3 Damon Chaplin 2002-03-21 18:45:01 UTC
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.
Comment 4 Matthias Clasen 2002-04-05 13:34:48 UTC
Move open bugs from milestones 2.0.[012] -- > 2.0.3, since 2.0.2 is already out.
Comment 5 Owen Taylor 2002-10-24 16:49:31 UTC
Moving various feature enhancements to the 2.4.0 milestone.
Comment 6 Elijah Newren 2004-06-19 18:44:59 UTC
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.
Comment 7 Owen Taylor 2005-07-28 14:44:52 UTC
*** Bug 311842 has been marked as a duplicate of this bug. ***
Comment 8 Matthias Clasen 2005-12-21 06:51:38 UTC
*** Bug 324638 has been marked as a duplicate of this bug. ***
Comment 9 Johan (not receiving bugmail) Dahlin 2006-03-24 17:53:34 UTC
Created attachment 61928 [details] [review]
simple patch
Comment 10 Owen Taylor 2006-04-26 21:27:13 UTC
*** Bug 339799 has been marked as a duplicate of this bug. ***
Comment 11 brett 2006-04-28 16:32:25 UTC
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.
Comment 12 Joachim Breitner 2006-09-04 22:32:50 UTC
*** Bug 354353 has been marked as a duplicate of this bug. ***
Comment 13 Joachim Breitner 2006-09-04 22:39:21 UTC
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.
Comment 14 Sven Herzberg 2006-10-04 15:54:14 UTC
Bug 339799 includes a patch that's even simpler. Can we get this one fixed for the next major release?
Comment 15 Matthias Clasen 2006-12-24 05:18:33 UTC
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)