[network-manager-applet/dcbw/libnm-bgo736911: 13/16] fixup! applet: port to libnm



commit 919fd37b047b5bc5b171723984852b90484e7673
Author: Dan Williams <dcbw redhat com>
Date:   Wed Feb 18 16:42:18 2015 -0600

    fixup! applet: port to libnm

 src/applet.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index cae9d52..98dfe8c 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -1695,7 +1695,10 @@ nma_menu_add_devices (GtkWidget *menu, NMApplet *applet)
 static int
 sort_vpn_connections (gconstpointer a, gconstpointer b)
 {
-       return strcmp (get_connection_id (NM_CONNECTION (a)), get_connection_id (NM_CONNECTION (b)));
+       NMConnection **ca = (NMConnection **) a;
+       NMConnection **cb = (NMConnection **) b;
+
+       return strcmp (nm_connection_get_id (NM_CONNECTION (*ca)), nm_connection_get_id (NM_CONNECTION 
(*cb)));
 }
 
 static GPtrArray *


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