2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-10-20 21:45:21 +00:00

chore: add wildcard dialog selection for linux

This commit is contained in:
Jan Laupetin
2025-10-09 23:46:26 +02:00
parent 8e9358b07f
commit eb1262510e
2 changed files with 7 additions and 1 deletions

View File

@@ -55,6 +55,12 @@ namespace
g_object_unref(fileFilter);
}
auto* wildcardFilter = gtk_file_filter_new();
gtk_file_filter_set_name(wildcardFilter, "All files");
gtk_file_filter_add_pattern(wildcardFilter, "*.*");
g_list_store_append(listStore, wildcardFilter);
g_object_unref(wildcardFilter);
gtk_file_dialog_set_filters(pDialog, G_LIST_MODEL(listStore));
g_object_unref(listStore);
}

View File

@@ -39,7 +39,7 @@ namespace
}
COMDLG_FILTERSPEC wildCardSpec;
wildCardSpec.pszName = L"*.*";
wildCardSpec.pszName = L"All files";
wildCardSpec.pszSpec = L"*.*";
filterSpecs.emplace_back(wildCardSpec);