summaryrefslogtreecommitdiff
path: root/src/eom-thumb-view.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-27 20:49:54 +0100
committerraveit65 <[email protected]>2020-03-10 20:29:47 +0100
commitd34df9832f460c2bca79257aae4b5cfc77c959a1 (patch)
tree74e7a06c4b018f9045ebd97d7252fa71f87066ab /src/eom-thumb-view.c
parent0c8d17a76050af39b22f26b33f7b47de949ef379 (diff)
downloadeom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.bz2
eom-d34df9832f460c2bca79257aae4b5cfc77c959a1.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'src/eom-thumb-view.c')
-rw-r--r--src/eom-thumb-view.c6
1 files changed, 2 insertions, 4 deletions
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));