Mercurial > geeqie
diff src/desktop_file.c @ 1736:8e64965c1d92
load desktop files in idle time
- scanning all desktop files takes a lot of time because of hdd seek
- this change moves the scanning to idle time
- the editors appears in the menus some time after startup
https://sourceforge.net/tracker/index.php?func=detail&aid=2852522&group_id=222125&atid=1054680
author | nadvornik |
---|---|
date | Sun, 06 Sep 2009 14:01:03 +0000 |
parents | c8252313dcfa |
children | a0e47436b552 |
line wrap: on
line diff
--- a/src/desktop_file.c Sun Sep 06 09:08:37 2009 +0000 +++ b/src/desktop_file.c Sun Sep 06 14:01:03 2009 +0000 @@ -95,7 +95,9 @@ g_free(path); g_free(dir); g_free(text); - layout_editors_reload_all(); + layout_editors_reload_start(); + /* idle function is not needed, everything should be cached */ + layout_editors_reload_finish(); return ret; } @@ -290,7 +292,9 @@ else { /* refresh list */ - layout_editors_reload_all(); + layout_editors_reload_start(); + /* idle function is not needed, everything should be cached */ + layout_editors_reload_finish(); } editor_list_window_delete_dlg_cancel(gd, data);