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 371034 - Doc for gtk_file_chooser_get_filename: Is the resulting path absolute or not necessarily?
Doc for gtk_file_chooser_get_filename: Is the resulting path absolute or not ...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-11-05 14:08 UTC by Andreas Köhler
Modified: 2012-11-24 20:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add comment mentioning that returned path is absolute (1.33 KB, patch)
2012-11-22 21:19 UTC, David King
committed Details | Review

Description Andreas Köhler 2006-11-05 14:08:52 UTC
Doc for gtk_file_chooser_get_filenames:
Lists all the selected files and subfolders in the current folder of chooser. The returned names are full absolute paths. [...]

The doc for gtk_file_chooser_get_filename does not say so, actually it does not even mention absoluteness.
Comment 1 David King 2012-11-22 21:19:56 UTC
Created attachment 229682 [details] [review]
add comment mentioning that returned path is absolute

Both functions use g_file_get_path() to construct the filename, so it seems that the returned path should be absolute in both cases.
Comment 2 Cosimo Cecchi 2012-11-24 19:06:03 UTC
Review of attachment 229682 [details] [review]:

Looks good to me, thanks.
Comment 3 David King 2012-11-24 20:00:02 UTC
Comment on attachment 229682 [details] [review]
add comment mentioning that returned path is absolute

Thanks, pushed to master and gtk-3-6 as commits fbdb81bbdf5d366ddd60255eefd29a00da65e2dc and 1dbf309359d6483bdcbedef4b794abfb83d7d7c4.