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 339799 - GtkEntry should not emit notify::text more than once while calling gtk_entry_set_text()
GtkEntry should not emit notify::text more than once while calling gtk_entry_...
Status: RESOLVED DUPLICATE of bug 64998
Product: gtk+
Classification: Platform
Component: Widget: Other
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: Sven Herzberg
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-04-26 11:17 UTC by Sven Herzberg
Modified: 2006-04-26 21:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (798 bytes, patch)
2006-04-26 11:19 UTC, Sven Herzberg
needs-work Details | Review
Testcase (689 bytes, text/x-csrc)
2006-04-26 11:32 UTC, Sven Herzberg
  Details

Description Sven Herzberg 2006-04-26 11:17:44 UTC
gtk_entry_set_text() calls gtk_entry_delete_text() and gtk_entry_insert_text() and both of them emit the "notify::text" signal. IMHO it should only be emitted while actually setting the text.
Comment 1 Sven Herzberg 2006-04-26 11:19:46 UTC
Created attachment 64307 [details] [review]
Proposed patch
Comment 2 Sven Herzberg 2006-04-26 11:30:17 UTC
Sorry, it is both the "changed" signal and the "notify::text" signal.
Comment 3 Sven Herzberg 2006-04-26 11:32:37 UTC
Created attachment 64309 [details]
Testcase
Comment 4 Owen Taylor 2006-04-26 21:27:13 UTC

*** This bug has been marked as a duplicate of 64998 ***