Commit ab56cfde authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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
parent ff5310a4
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
......
......@@ -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);
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment