[gnome-shell/wip/carlosg/osk-cldr: 2/5] main: Load OSK layouts resource



commit 55d5170be2d3fa627cb69d8fe36f84aed4bfdd72
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 10 21:27:25 2017 +0200

    main: Load OSK layouts resource

 js/ui/main.js |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 85dbe1f..bddad63 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -83,6 +83,7 @@ let _defaultCssStylesheet = null;
 let _cssStylesheet = null;
 let _a11ySettings = null;
 let _themeResource = null;
+let _oskResource = null;
 
 function _sessionUpdated() {
     if (sessionMode.isPrimary)
@@ -145,6 +146,7 @@ function _initializeUI() {
     Shell.AppUsage.get_default();
 
     reloadThemeResource();
+    _loadOskLayouts();
     _loadDefaultStylesheet();
 
     // Setup the stage hierarchy early
@@ -305,6 +307,11 @@ function reloadThemeResource() {
     _themeResource._register();
 }
 
+function _loadOskLayouts() {
+    _oskResource = Gio.Resource.load(global.datadir + '/gnome-shell-osk-layouts.gresource');
+    _oskResource._register();
+}
+
 /**
  * loadTheme:
  *


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