[nautilus-actions] Fix item selection when same label



commit 3d455c9572da93f99d12174f95fee16d24e5268c
Author: Pierre Wieser <pwieser trychlos org>
Date:   Thu Jul 2 19:10:43 2009 +0200

    Fix item selection when same label

 src/nact/nact-iactions-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nact/nact-iactions-list.c b/src/nact/nact-iactions-list.c
index bfd6b2b..06bd22f 100644
--- a/src/nact/nact-iactions-list.c
+++ b/src/nact/nact-iactions-list.c
@@ -224,7 +224,7 @@ nact_iactions_list_set_selection( NactWindow *window, const gchar *uuid, const g
 
 		gint ret_uuid = g_ascii_strcasecmp( iter_uuid, uuid );
 		gint ret_label = g_utf8_collate( iter_label, label );
-		if( ret_uuid == 0 || ret_label >= 0 ){
+		if(( ret_uuid == 0 && ret_label == 0 ) || ret_label > 0 ){
 			gtk_tree_selection_select_iter( selection, &iter );
 			found = TRUE;
 



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