[network-manager-applet/nm-1-4] team: don't use jansson 2.5 functionality
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/nm-1-4] team: don't use jansson 2.5 functionality
- Date: Tue, 23 Aug 2016 12:35:12 +0000 (UTC)
commit fd83a269a20cd49969dca085f1c838b83206db45
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Aug 23 14:04:26 2016 +0200
team: don't use jansson 2.5 functionality
We depend on 2.3. RHEL ships 2.4.
(cherry picked from commit 0e7b08b95f6671bd40cf2cf6d1f1da266491a135)
src/connection-editor/page-team.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/page-team.c b/src/connection-editor/page-team.c
index 1c530f6..a8015d3 100644
--- a/src/connection-editor/page-team.c
+++ b/src/connection-editor/page-team.c
@@ -164,7 +164,6 @@ select_in_tree (GtkTreeView *tree, json_t *arr, GError **error)
const gchar *name;
GtkTreeSelection *selection;
size_t i;
- json_t *val;
model = gtk_tree_view_get_model (tree);
selection = gtk_tree_view_get_selection (tree);
@@ -174,7 +173,8 @@ select_in_tree (GtkTreeView *tree, json_t *arr, GError **error)
if (!arr)
return TRUE;
- json_array_foreach (arr, i, val) {
+ for (i = 0; i < json_array_size (arr); i++) {
+ json_t *val = json_array_get (arr, i);
const char *str;
if (!json_is_string (val)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]