summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/pluma-file-browser-store.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-28 09:07:37 +0100
committerraveit65 <[email protected]>2020-03-14 13:14:35 +0100
commit28a6895df5fa4a1a60c794ed5e85e31d764e85e7 (patch)
treef9b5d3eae40ecb5bd8eb357c10ce8458b2faa7f9 /plugins/filebrowser/pluma-file-browser-store.c
parentd265d00b72fc9a7fb126079780303df9ea217a29 (diff)
downloadpluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.bz2
pluma-28a6895df5fa4a1a60c794ed5e85e31d764e85e7.tar.xz
Remove warnings: cast between incompatible function types
Diffstat (limited to 'plugins/filebrowser/pluma-file-browser-store.c')
-rw-r--r--plugins/filebrowser/pluma-file-browser-store.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-store.c b/plugins/filebrowser/pluma-file-browser-store.c
index 03fd1fd2..ae100379 100644
--- a/plugins/filebrowser/pluma-file-browser-store.c
+++ b/plugins/filebrowser/pluma-file-browser-store.c
@@ -3253,8 +3253,7 @@ async_data_free (AsyncData * data)
{
g_object_unref (data->cancellable);
- g_list_foreach (data->files, (GFunc)g_object_unref, NULL);
- g_list_free (data->files);
+ g_list_free_full (data->files, g_object_unref);
if (!data->removed)
data->model->priv->async_handles = g_slist_remove (data->model->priv->async_handles, data);
@@ -3444,8 +3443,7 @@ pluma_file_browser_store_delete (PlumaFileBrowserStore * model,
rows = g_list_append(NULL, pluma_file_browser_store_get_path_real (model, node));
result = pluma_file_browser_store_delete_all (model, rows, trash);
- g_list_foreach (rows, (GFunc)gtk_tree_path_free, NULL);
- g_list_free (rows);
+ g_list_free_full (rows, (GDestroyNotify) gtk_tree_path_free);
return result;
}