GNOME Bugzilla – Bug 399592
file chooser settings code is excessive
Last modified: 2007-02-02 19:09:43 UTC
The gtkfilechoosersettings.c code to store currently 3 settings of gtkfilechooser (location bar mode, show-hidden and expanded-folder) is implemented as a ~400 LOC GMarkup parser. Rewriting it to use a GKeyFile would greatly simplify and slim down the code. The only draw-back would be that the settings would be reset when the users upgrades from an earlier gtk version; but that would be tolerable IMHO.
Created attachment 80941 [details] [review] use a simple key file
Awesome! I hope that GKeyFile doesn't constrain us later. Please go ahead and commit to trunk.
* gtk/gtkfilechoosersettings.c: (get_config_filename), (ensure_settings_read), (_gtk_file_chooser_settings_init), (_gtk_file_chooser_settings_set_show_hidden), (_gtk_file_chooser_settings_set_expand_folders), (_gtk_file_chooser_settings_save): Use a simple key file instead of a markup file. Bug #399592.