GNOME Bugzilla – Bug 311842
gtk_entry_set_text produces double callback, the first with empty string
Last modified: 2005-07-28 14:44:50 UTC
Please describe the problem: When changing the GtkEntry content with gtk_entry_set_text function the callback with "changed" signal occures twice, first time gtk_entry_get_text returns empty string, second time it returns the normal content. Besides it is an overhead (callback function calls twice) in my case it brakes the program logic. The simple attached program illustrates this bug. Steps to reproduce: 1. Complile the test program with standard Gtk+ compiler and linker options 2. Press "Set text..." buttons 3. See output in the console Actual results: At each button press the output will be twice: first time with empty string< second time with normal string Expected results: Only single output per button press with the appropriate string Does this happen every time? Yes Other information: See attached program
Created attachment 49870 [details] Program that demonstrates the bug
*** This bug has been marked as a duplicate of 64998 ***