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 538458 - gtk_file_chooser_set_filename should be more sync
gtk_file_chooser_set_filename should be more sync
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.13.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2008-06-15 15:33 UTC by Erik van Pienbroek
Modified: 2018-02-10 04:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Testcase (885 bytes, text/plain)
2008-06-15 15:33 UTC, Erik van Pienbroek
Details

Description Erik van Pienbroek 2008-06-15 15:33:00 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:
Comment 1 Erik van Pienbroek 2008-06-15 15:33:33 UTC
Created attachment 112781 [details]
Testcase
Comment 2 Matthias Clasen 2018-02-10 04:34:53 UTC
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.