int clip_GTK_FILECHOOSERLISTSHORTCUTFOLDERS(ClipMachine * ClipMachineMemory) { C_object *cchooser = _fetch_co_arg(ClipMachineMemory); GSList *list; ClipVar *cv = RETPTR(ClipMachineMemory); long l; CHECKCOBJ(cchooser, GTK_IS_FILE_CHOOSER(cchooser->object)); list = gtk_file_chooser_list_shortcut_folders(GTK_FILE_CHOOSER(cchooser->object)); l = g_slist_length(list); _clip_array(ClipMachineMemory, cv, 1, &l); for (l = 0; list; list = g_slist_next(list), l++) { ClipVar c; gchar *str; memset(&c, 0, sizeof(c)); str = (gchar *) list->data; _clip_var_str(str, strlen(str), &c); _clip_aset(ClipMachineMemory, cv, &c, 1, &l); _clip_destroy(ClipMachineMemory, &c); g_free(str); } g_slist_free(list); return 0; err: return 1; }
static GSList * delegate_list_shortcut_folders (GtkFileChooser *chooser) { return gtk_file_chooser_list_shortcut_folders (get_delegate (chooser)); }