-
Committer:
Matthieu Baerts
-
Date:
2013-03-20 18:15:35 UTC
-
Revision ID:
matttbe@gmail.com-20130320181535-g60yh81d4simbb12
GMenu: preload: the preload of all icons should not be launched in the mainloop (with a g_idle) because when preloading these icons, the dock lag during a few seconds...
There are two solutions: remove this feature or try to load it in a thread (this is my solution)
When I tried to use gtk_widget_get_preferred_size in a new thread, I had a few crashes in GTK3...
Now the menu is created (cd_append_tree_in_menu + cd_populate_menu_from_directory) with all elements in the thread (and it will also preload all icons if needed)