diff options
author | Federico Mena Quintero <federico@novell.com> | 2009-06-18 21:29:54 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@novell.com> | 2009-06-18 21:57:54 -0500 |
commit | 3d527afadb802c9027365480023f8aeda18e7ad7 (patch) | |
tree | 60c8bdb4cab610774b5f20f791d011afdb6745f5 /gtk/gtkfilechooserprivate.h | |
parent | 6382eac6d85409a43b9a3b96cd303338de582f65 (diff) | |
download | gtk+-3d527afadb802c9027365480023f8aeda18e7ad7.tar.gz |
bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing
The virtual method list_shortcut_folders returns a GSList * of GFile *.
In turn, gtk_file_chooser_list_shortcut_folders() converts those to strings.
However, the delegate in gtkfilechooserutils.c was calling
gtk_file_chooser_list_shortcut_folders() every time, so we were trying
to convert invalid data.
Now we have an internal function that deals with GFile *. That
function is called by the delegate, and the conversion is done only
once by the API entry points.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilechooserprivate.h')
-rw-r--r-- | gtk/gtkfilechooserprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 400a211270..be10757c29 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -102,6 +102,7 @@ gboolean _gtk_file_chooser_add_shortcut_folder (GtkFileChooser *cho gboolean _gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser, GFile *folder, GError **error); +GSList * _gtk_file_chooser_list_shortcut_folder_files (GtkFileChooser *chooser); /* GtkFileChooserDialog private */ |