Commit 3cc91d53 authored by O H's avatar O H
Browse files

Fix g_list_find_custom usage

thunarx-python.c:250:40: error: passing argument 3 of 'g_list_find_custom' from incompatible pointer type [-Werror=incompatible-pointer-types]

Signed-off-by: O H's avatarOlaf Hering <>
parent 0d167220
......@@ -244,18 +244,23 @@ thunarx_python_load_dir (ThunarxProviderPlugin *plugin,
static gint
compare_dir(gconstpointer a, gconstpointer b)
return strcmp(a, b);
static GList *
add_unique_dir(GList *dirs, char *dir)
if (!g_list_find_custom(dirs, dir, strcmp))
if (!g_list_find_custom(dirs, dir, compare_dir))
dirs = g_list_append(dirs, dir);
return dirs;
static void
thunarx_python_check_all_directories(ThunarxProviderPlugin *plugin) {
gchar *extensions_dir = NULL;
thunarx_python_check_all_directories(ThunarxProviderPlugin *plugin)
GList *dirs = NULL;
// Check ~/.local/share first
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment