[gnome-shell] main: Move screenshotUI initialization earlier



commit 33cf163f95de29c12a3a848d5e445397983eb63d
Author: Ivan Molodetskikh <yalterz gmail com>
Date:   Tue Feb 8 19:13:25 2022 +0300

    main: Move screenshotUI initialization earlier
    
    A new screen recording panel indicator will connect to its signal, so it
    needs to be initialized before the panel.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

 js/ui/main.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 908688c5a6..3d7a044c42 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -221,6 +221,8 @@ function _initializeUI() {
     inputMethod = new InputMethod.InputMethod();
     Clutter.get_default_backend().set_input_method(inputMethod);
 
+    screenshotUI = new Screenshot.ScreenshotUI();
+
     messageTray = new MessageTray.MessageTray();
     panel = new Panel.Panel();
     keyboard = new Keyboard.KeyboardManager();
@@ -228,8 +230,6 @@ function _initializeUI() {
     windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
     componentManager = new Components.ComponentManager();
 
-    screenshotUI = new Screenshot.ScreenshotUI();
-
     introspectService = new Introspect.IntrospectService();
 
     layoutManager.init();


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