reverse the list after loading so it keeps its order.

2008-05-16  Michael Natterer  <mitch@gimp.org>

	* app/dialogs/dialogs.c (dialogs_load_recent_docks): reverse the
	list after loading so it keeps its order.

	* app/menus/windows-menu.c (windows_menu_setup)
	(windows_menu_recent_add): keep the recent docks menu in MRU
	order.


svn path=/trunk/; revision=25672
This commit is contained in:
Michael Natterer 2008-05-16 16:24:24 +00:00 committed by Michael Natterer
parent ff5310a4ea
commit ab56cfdef5
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2008-05-16 Michael Natterer <mitch@gimp.org>
* app/dialogs/dialogs.c (dialogs_load_recent_docks): reverse the
list after loading so it keeps its order.
* app/menus/windows-menu.c (windows_menu_setup)
(windows_menu_recent_add): keep the recent docks menu in MRU
order.
2008-05-16 Michael Natterer <mitch@gimp.org>
Implement the presistent menu of recently closed docks, still

View File

@ -376,6 +376,8 @@ dialogs_load_recent_docks (Gimp *gimp)
g_clear_error (&error);
}
gimp_list_reverse (GIMP_LIST (global_recent_docks));
g_free (filename);
}

View File

@ -119,9 +119,9 @@ windows_menu_setup (GimpUIManager *manager,
G_CALLBACK (windows_menu_recent_remove),
manager, 0);
for (list = GIMP_LIST (global_recent_docks)->list;
for (list = g_list_last (GIMP_LIST (global_recent_docks)->list);
list;
list = g_list_next (list))
list = g_list_previous (list))
{
GimpSessionInfo *info = list->data;
@ -293,7 +293,7 @@ windows_menu_recent_add (GimpContainer *container,
gtk_ui_manager_add_ui (GTK_UI_MANAGER (manager), merge_id,
action_path, action_name, action_name,
GTK_UI_MANAGER_MENUITEM,
FALSE);
TRUE);
g_free (merge_key);
g_free (action_path);