It seems that I have ran into another problem while using hildon touch selector . I´m trying to have hildon touch selector display l list of files from a directory as items on the selector, but i haven´t been able to find any documentation for this function. Can anyone help me with this? here´s a code snippet of what i have so far; the ¨const gchar *items[] = {Splash *}; function would be replaced by the file list function. ...
#include <gio/gio.h> #include <stdio.h> int main(int argc, char** argv) { gtk_init(&argc, &argv); char* path = "/home"; GFile* file = g_file_new_for_path(path); printf("path name: %s\n", g_file_get_basename(file)); GFileEnumerator* files = g_file_enumerate_children(file, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NONE, NULL, NULL); if(files!=NULL) { GFileInfo* info = g_file_enumerator_next_file(files, NULL, NULL); while(info) { printf("name %s\n", g_file_info_get_name(info)); info = g_file_enumerator_next_file(files, NULL, NULL); } g_object_unref(files); } return 0; }