Lines 378-383
void gnome_wp_xml_load_list (AppearanceD
Link Here
|
378 |
gnome_wp_xml_load_from_dir (WALLPAPER_DATADIR, data); |
378 |
gnome_wp_xml_load_from_dir (WALLPAPER_DATADIR, data); |
379 |
|
379 |
|
380 |
gnome_wp_load_legacy (data); |
380 |
gnome_wp_load_legacy (data); |
|
|
381 |
|
382 |
data->wp_xml_list_loaded = TRUE; |
381 |
} |
383 |
} |
382 |
|
384 |
|
383 |
static void gnome_wp_list_flatten (const gchar * key, GnomeWPItem * item, |
385 |
static void gnome_wp_list_flatten (const gchar * key, GnomeWPItem * item, |
Lines 394-399
void gnome_wp_xml_save_list (AppearanceD
Link Here
|
394 |
GSList * list = NULL; |
396 |
GSList * list = NULL; |
395 |
gchar * wpfile; |
397 |
gchar * wpfile; |
396 |
|
398 |
|
|
|
399 |
if (!data->wp_xml_list_loaded) { |
400 |
g_hash_table_destroy (data->wp_hash); |
401 |
return; |
402 |
} |
403 |
|
397 |
g_hash_table_foreach (data->wp_hash, |
404 |
g_hash_table_foreach (data->wp_hash, |
398 |
(GHFunc) gnome_wp_list_flatten, &list); |
405 |
(GHFunc) gnome_wp_list_flatten, &list); |
399 |
g_hash_table_destroy (data->wp_hash); |
406 |
g_hash_table_destroy (data->wp_hash); |