[gnome-shell-extensions] user-theme: Stop using Gio._LocalFilePrototype



commit 0b7e8f9720a20684dadde065764dfa2f368b96ca
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 11 15:42:20 2022 +0100

    user-theme: Stop using Gio._LocalFilePrototype
    
    Now that promisify() works on interfaces, we don't need this
    cludge anymore.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/214>

 extensions/user-theme/prefs.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/user-theme/prefs.js b/extensions/user-theme/prefs.js
index c84e444..5430478 100644
--- a/extensions/user-theme/prefs.js
+++ b/extensions/user-theme/prefs.js
@@ -11,9 +11,9 @@ const ExtensionUtils = imports.misc.extensionUtils;
 const Me = ExtensionUtils.getCurrentExtension();
 const Util = Me.imports.util;
 
-Gio._promisify(Gio._LocalFilePrototype,
+Gio._promisify(Gio.File.prototype,
     'enumerate_children_async', 'enumerate_children_finish');
-Gio._promisify(Gio._LocalFilePrototype,
+Gio._promisify(Gio.File.prototype,
     'query_info_async', 'query_info_finish');
 Gio._promisify(Gio.FileEnumerator.prototype,
     'next_files_async', 'next_files_finish');


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