[nautilus-actions] NABoxed::string_list_from_void(): keep string lists in the same order



commit 1c8033f30ab16fff61bc21273992048a7c4b1dc2
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Feb 14 16:17:02 2012 +0100

    NABoxed::string_list_from_void(): keep string lists in the same order

 ChangeLog           |    3 +++
 src/core/na-boxed.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ef004b6..27cce36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-02-14 Pierre Wieser <pwieser trychlos org>
 
+	* src/core/na-boxed.c (string_list_from_void): Keep the source and the
+	target string lists in the same order.
+
 	* src/core/na-io-provider.c (na_io_provider_load_items): Fix comment.
 
 	* src/nact/nact-main-window.h:
diff --git a/src/core/na-boxed.c b/src/core/na-boxed.c
index cf12b20..ace5b19 100644
--- a/src/core/na-boxed.c
+++ b/src/core/na-boxed.c
@@ -1203,6 +1203,7 @@ string_list_from_void( NABoxed *boxed, const void *value )
 			boxed->private->u.string_list = g_slist_prepend( boxed->private->u.string_list, g_strdup(( const gchar * ) it->data ));
 		}
 	}
+	boxed->private->u.string_list = g_slist_reverse( boxed->private->u.string_list );
 }
 
 static gconstpointer



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