[gnome-shell/gnome-40] extensions-tool: Request missing attribute



commit 457ce03a529c68bb4185abc231ea1433e7f01327
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jan 21 02:41:51 2022 +0100

    extensions-tool: Request missing attribute
    
    g_file_enumerator_iterate() requires an enumerator that was created
    with standard::file.
    
    (cherry picked from commit 869560e05451cb3bef9bdf3bceba4e57543ef0b2)
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2181>

 subprojects/extensions-tool/src/main.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/subprojects/extensions-tool/src/main.c b/subprojects/extensions-tool/src/main.c
index c1e85dcf1f..66a3476266 100644
--- a/subprojects/extensions-tool/src/main.c
+++ b/subprojects/extensions-tool/src/main.c
@@ -263,7 +263,11 @@ file_delete_recursively (GFile   *file,
   g_autoptr (GFileEnumerator) file_enum = NULL;
   GFile *child;
 
-  file_enum = g_file_enumerate_children (file, NULL, 0, NULL, NULL);
+  file_enum = g_file_enumerate_children (file,
+                                         G_FILE_ATTRIBUTE_STANDARD_NAME,
+                                         G_FILE_QUERY_INFO_NONE,
+                                         NULL,
+                                         NULL);
   if (file_enum)
     while (TRUE)
       {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]