GNOME Bugzilla – Bug 538458
gtk_file_chooser_set_filename should be more sync
Last modified: 2018-02-10 04:34:53 UTC
Please describe the problem: Hi, If an GTK program calls gtk_file_chooser_set_filename and shortly afterwards, performs a gtk_file_chooser_get_filename, frequently the value NULL is returned instead of the set filename. Due to the async nature of gtk_file_chooser_set_filename, the function gtk_file_chooser_get_filename only returns a sane value after a few msecs which can confuse GTK applications. Attached testcase demonstrates this behaviour Can this behaviour be changed so that the function gtk_file_chooser_set_filename is more sync (at least sync enough so that gtk_file_chooser_get_filename always returns sane data) ? Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 112781 [details] Testcase
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.