}
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return g_list_reverse(list);
}
if (di_n == di) found = TRUE;
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return found;
}
if (di) list = g_list_prepend(list, di);
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
dw->color_frozen = TRUE;
work = list;
gtk_tree_model_get_iter(store, &iter, tpath);
gtk_tree_model_get(store, &iter, DUPE_COLUMN_POINTER, &di, -1);
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
if (event->state & GDK_CONTROL_MASK)
{
return sysconf(_SC_NPROCESSORS_ONLN);
}
-void tree_path_free_wrapper(void *data, void *UNUSED(useradata))
-{
- gtk_tree_path_free(static_cast<GtkTreePath *>(data));
-}
-
/* Copied from the libarchive .repo. examples */
#ifndef HAVE_ARCHIVE
gchar *convert_rating_to_stars(gint rating);
gchar *get_symbolic_link(const gchar *path_utf8);
gint get_cpu_cores();
-void tree_path_free_wrapper(void *data, void *useradata);
gchar *open_archive(FileData *fd);
#endif /* MISC_H */
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */
if (mfd_n->fd == fd) found = TRUE;
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return found;
}
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
if (bytes) *bytes = total;
if (list) *list = g_list_reverse(plist);
flist = g_list_prepend(flist, mfd->fd);
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
work = flist;
while (work)
gtk_tree_model_get_iter(store, &iter, tpath);
gtk_tree_model_get(store, &iter, SEARCH_COLUMN_POINTER, &mfd, -1);
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
if (event->state & GDK_CONTROL_MASK)
{
if (fd_n == fd) found = TRUE;
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return found;
}
}
count = g_list_length(slist);
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return count;
}
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return g_list_reverse(list);
}
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
return g_list_reverse(list);
}
work = work->next;
}
- g_list_foreach(slist, static_cast<GFunc>(tree_path_free_wrapper), nullptr);
- g_list_free(slist);
+ g_list_free_full(slist, reinterpret_cast<GDestroyNotify>(gtk_tree_path_free));
}
/*