const char *dir_entry;
GDir *dir;
+ g_print ("fill icons from %s\n", path);
+
dir = g_dir_open (path, 0, NULL);
if (!dir)
return;
GList *list, *l;
int i;
GtkStringList *names;
+ const char * const *dirs;
t = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
fill_icons (path, t);
g_free (path);
+ dirs = g_get_system_data_dirs ();
+ for (i = 0; dirs[i]; i++)
+ {
+ path = g_build_filename (dirs[i], "icons", NULL);
+ fill_icons (path, t);
+ g_free (path);
+ }
+
list = NULL;
g_hash_table_iter_init (&iter, t);
while (g_hash_table_iter_next (&iter, (gpointer *)&theme, NULL))
GList *list, *l;
GtkStringList *names;
int i;
+ const char * const *dirs;
t = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
fill_cursors (path, t);
g_free (path);
+ dirs = g_get_system_data_dirs ();
+ for (i = 0; dirs[i]; i++)
+ {
+ path = g_build_filename (dirs[i], "icons", NULL);
+ fill_cursors (path, t);
+ g_free (path);
+ }
+
list = NULL;
g_hash_table_iter_init (&iter, t);
while (g_hash_table_iter_next (&iter, (gpointer *)&theme, NULL))