From d34df9832f460c2bca79257aae4b5cfc77c959a1 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 27 Feb 2020 20:49:54 +0100 Subject: Remove warnings: cast between incompatible function types --- src/eom-thumb-view.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/eom-thumb-view.c') diff --git a/src/eom-thumb-view.c b/src/eom-thumb-view.c index 86bf842..05b0416 100644 --- a/src/eom-thumb-view.c +++ b/src/eom-thumb-view.c @@ -856,8 +856,7 @@ eom_thumb_view_get_first_selected_image (EomThumbView *thumbview) image = eom_thumb_view_get_image_from_path (thumbview, path); - g_list_foreach (list, (GFunc) gtk_tree_path_free , NULL); - g_list_free (list); + g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free); return image; } @@ -983,8 +982,7 @@ eom_thumb_view_select_single (EomThumbView *thumbview, } else { list = gtk_icon_view_get_selected_items (GTK_ICON_VIEW (thumbview)); path = gtk_tree_path_copy ((GtkTreePath *) list->data); - g_list_foreach (list, (GFunc) gtk_tree_path_free , NULL); - g_list_free (list); + g_list_free_full (list, (GDestroyNotify) gtk_tree_path_free); gtk_icon_view_unselect_all (GTK_ICON_VIEW (thumbview)); -- cgit v1.2.1