[gnome-shell-extensions] apps-menu: Use "0o" prefix for octal literals



commit c1143fa716f6de0e28f46e213b0b9c3c33de3915
Author: Alexander Rüedlinger <a rueedlinger gmail com>
Date:   Tue Sep 5 07:58:33 2017 +0200

    apps-menu: Use "0o" prefix for octal literals
    
    In short, gjs complains that octal escape sequences are deprecated
    and advises to use the "0o" prefix for octal literals. Do that to
    fix the warning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787294

 extensions/apps-menu/extension.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index 7edfa31..2f4002a 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -358,7 +358,7 @@ const DesktopTarget = new Lang.Class({
             (o, res) => {
                 try {
                     let info = o.query_info_finish(res);
-                    let mode = info.get_attribute_uint32(modeAttr) | 0100;
+                    let mode = info.get_attribute_uint32(modeAttr) | 0o100;
 
                     info.set_attribute_uint32(modeAttr, mode);
                     info.set_attribute_string(trustedAttr, 'yes');


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