GNOME Bugzilla – Bug 304565
[Patch] gtk_file_chooser_remove_shortcut_folder_uri calls wrong method to convert uri
Last modified: 2005-05-18 21:01:53 UTC
Version details: CVS Head Distribution/Version: Fedora Core 4 1. Add a shortcut with gtk_file_chooser_add_shortcut_folder_uri. 2. Remove the just added shortcut with gtk_file_chooser_remove_shortcut_folder_uri. Expected Result: Successful removal of shortcut. Actual Result: Shortcut is not found and therefore not removed. The problem seems to be the following line: path = gtk_file_system_filename_to_path (_gtk_file_chooser_get_file_system (chooser), uri); Changing it to the following solves the problem: path = gtk_file_system_uri_to_path (_gtk_file_chooser_get_file_system (chooser), uri); I'm attaching a patch that applies in HEAD. Thanks.
Created attachment 46559 [details] [review] One-liner that fixes the issue
2005-05-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooser.c (gtk_file_chooser_remove_shortcut_folder_uri): Use the correct function to conver the uri to a path. (#304565, Ismael Juma)