Use lock/unlock functions
Этот коммит содержится в:
родитель
85f17a4dc6
Коммит
b8f2eaa651
@ -341,6 +341,7 @@ reload_desktop_icons (int xpos, int ypos)
|
||||
GSList *need_position_list, *sl;
|
||||
GList *all_icons, *l;
|
||||
|
||||
|
||||
dir = mc_opendir (desktop_directory);
|
||||
if (!dir) {
|
||||
message (FALSE,
|
||||
@ -350,6 +351,8 @@ reload_desktop_icons (int xpos, int ypos)
|
||||
return;
|
||||
}
|
||||
|
||||
gnome_metadata_lock ();
|
||||
|
||||
/* Read the directory. For each file for which we do have an existing
|
||||
* icon, do nothing. Otherwise, if the file has its metadata for icon
|
||||
* position set, create an icon for it. Otherwise, store it in a list
|
||||
@ -404,6 +407,8 @@ reload_desktop_icons (int xpos, int ypos)
|
||||
|
||||
g_list_free (all_icons);
|
||||
|
||||
gnome_metadata_unlock ();
|
||||
|
||||
/* Now create the icons for all the files that did not have their
|
||||
* position set. This makes auto-placement work correctly without
|
||||
* overlapping icons.
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user