summaryrefslogtreecommitdiff
path: root/gladeui/glade-inspector.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-17 16:31:55 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-08-17 19:19:48 -0300
commit80de73f0b4d904e77164399811a5d7da7ecf47f3 (patch)
tree97aa017c186b1e485da389eee3db7c2ee100a5c0 /gladeui/glade-inspector.c
parenta987d81b4e9a7c9a3d1f616444500d36c6dda274 (diff)
downloadglade-80de73f0b4d904e77164399811a5d7da7ecf47f3.tar.gz
Use g_list_free_full() instead of g_list_foreach() + g_list_free()
Also fix -Wcast-function-type warnings
Diffstat (limited to 'gladeui/glade-inspector.c')
-rw-r--r--gladeui/glade-inspector.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gladeui/glade-inspector.c b/gladeui/glade-inspector.c
index 9c176d52..33be0912 100644
--- a/gladeui/glade-inspector.c
+++ b/gladeui/glade-inspector.c
@@ -1103,8 +1103,7 @@ glade_inspector_get_selected_items (GladeInspector *inspector)
items = g_list_prepend (items, glade_widget_get_from_gobject (object));
}
- g_list_foreach (paths, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (paths);
+ g_list_free_full (paths, (GDestroyNotify) gtk_tree_path_free);
return items;
}