diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-08-31 15:00:06 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-04-11 16:19:28 +0200 |
commit | f593801f079d9cb0096866fb88942cbbc5d6d225 (patch) | |
tree | 119d80d94a862523718ecc733998a646b9dc88db | |
parent | d2aff13542eecdb2d9161b99423dc6c1f8525a01 (diff) | |
download | connman-gnome-f593801f079d9cb0096866fb88942cbbc5d6d225.tar.gz |
connman-gnome: Fix security type mismatch
Latest connman change the Security type to be array{String}, fix
connman-gnome accordingly.
-rw-r--r-- | common/connman-dbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/connman-dbus.c b/common/connman-dbus.c index 0f4e1db..6669749 100644 --- a/common/connman-dbus.c +++ b/common/connman-dbus.c @@ -384,7 +384,8 @@ static void service_changed(DBusGProxy *proxy, const char *property, gtk_tree_store_set(store, &iter, CONNMAN_COLUMN_FAVORITE, favorite, -1); } else if (g_str_equal(property, "Security") == TRUE) { - const char *security = value ? g_value_get_string(value) : NULL; + char **array = value ? g_value_get_boxed(value) : NULL; + const char *security = g_strjoinv(" ", array); gtk_tree_store_set(store, &iter, CONNMAN_COLUMN_SECURITY, security, -1); @@ -487,7 +488,7 @@ static void service_properties(DBusGProxy *proxy, GHashTable *hash, strength = value ? g_value_get_uchar(value) : 0; value = g_hash_table_lookup(hash, "Security"); - security = value ? g_value_get_string(value) : NULL; + security = value ? g_strjoinv(" ", g_value_get_boxed(value)) : NULL; value = g_hash_table_lookup(hash, "PassPhrase"); passphrase = value ? g_value_get_string(value) : NULL; |