gnome-menus r881 - in trunk: . libmenu



Author: vuntz
Date: Sun Apr 13 18:45:23 2008
New Revision: 881
URL: http://svn.gnome.org/viewvc/gnome-menus?rev=881&view=rev

Log:
2008-04-13  Vincent Untz  <vuntz gnome org>

	* libmenu/gmenu-tree.c: (gmenu_tree_execute_moves): correctly order the
	list of move operations to execute, so it's possible to undo a move by
	doing the opposite move afterwards.
	Fix bug #323771.


Modified:
   trunk/ChangeLog
   trunk/libmenu/gmenu-tree.c

Modified: trunk/libmenu/gmenu-tree.c
==============================================================================
--- trunk/libmenu/gmenu-tree.c	(original)
+++ trunk/libmenu/gmenu-tree.c	Sun Apr 13 18:45:23 2008
@@ -2719,6 +2719,9 @@
       child = menu_layout_node_get_next (child);
     }
 
+  /* We need to execute the move operations in the order that they appear */
+  move_nodes = g_slist_reverse (move_nodes);
+
   tmp = move_nodes;
   while (tmp != NULL)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]