[gnome-bluetooth] lib: Sort the killswitches correctly



commit 33f9e8c880eb7909438c3d2ae69b170fc7715c61
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 9 11:10:58 2012 +0100

    lib: Sort the killswitches correctly
    
    As they are given to us by the kernel.

 lib/rfkill-glib.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/rfkill-glib.c b/lib/rfkill-glib.c
index 97c8b0f..039e80a 100644
--- a/lib/rfkill-glib.c
+++ b/lib/rfkill-glib.c
@@ -158,6 +158,7 @@ event_cb (GIOChannel   *source,
 							  &read,
 							  NULL);
 		}
+		events = g_list_reverse (events);
 	} else {
 		g_debug ("something else happened");
 		return FALSE;
@@ -244,6 +245,7 @@ rfkill_glib_open (RfkillGlib *rfkill)
 					 (GIOFunc) event_cb,
 					 rfkill);
 
+	events = g_list_reverse (events);
 	emit_changed_signal_and_free (rfkill, events);
 
 	return fd;



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