• Federico Mena Quintero's avatar
    bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing · 3d527afa
    Federico Mena Quintero authored
    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: default avatarFederico Mena Quintero <federico@novell.com>
    3d527afa
gtkfilechooserprivate.h 10.9 KB