gnome-shell/gs-sle-classic-ext.patch
Bjørn Lie 0598ce145e Accepting request 525996 from home:xiaoguang_wang:branches:GNOME:Factory
- Update sle-classic patches to version 3.26.0:
  + Update SLEClassicExt.js
  + Update gnome-shell-1007468-lock-screen-SUSE-logo-missing.patch
  + Update gnome-shell-disable-ibus-when-not-installed.patch
  + Update gnome-shell-domain.patch
  + Update gnome-shell-gdm-login-applet.patch
  + Update gs-fate318433-prevent-same-account-multi-logins.patch
  + Update gs-sle-classic-ext.patch

OBS-URL: https://build.opensuse.org/request/show/525996
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=322
2017-09-14 11:46:11 +00:00

102 lines
3.7 KiB
Diff

Index: gnome-shell-3.25.91/js/js-resources.gresource.xml
===================================================================
--- gnome-shell-3.25.91.orig/js/js-resources.gresource.xml
+++ gnome-shell-3.25.91/js/js-resources.gresource.xml
@@ -111,6 +111,7 @@
<file>ui/workspaceThumbnail.js</file>
<file>ui/workspacesView.js</file>
<file>ui/xdndHandler.js</file>
+ <file>ui/SLEClassicExt.js</file>
<file>ui/components/__init__.js</file>
<file>ui/components/autorunManager.js</file>
Index: gnome-shell-3.25.91/js/ui/layout.js
===================================================================
--- gnome-shell-3.25.91.orig/js/ui/layout.js
+++ gnome-shell-3.25.91/js/ui/layout.js
@@ -25,6 +25,8 @@ var BACKGROUND_FADE_ANIMATION_TIME = 1.0
var HOT_CORNER_PRESSURE_THRESHOLD = 100; // pixels
var HOT_CORNER_PRESSURE_TIMEOUT = 1000; // ms
+const SLEClassicExt = imports.ui.SLEClassicExt;
+
function isPopupMetaWindow(actor) {
switch(actor.meta_window.get_window_type()) {
case Meta.WindowType.DROPDOWN_MENU:
@@ -458,7 +460,7 @@ var LayoutManager = new Lang.Class({
this.screenShieldGroup.set_position(0, 0);
this.screenShieldGroup.set_size(global.screen_width, global.screen_height);
- this.panelBox.set_position(this.primaryMonitor.x, this.primaryMonitor.y);
+ SLEClassicExt.setMainPanelPosition(this.panelBox, this.primaryMonitor);
this.panelBox.set_size(this.primaryMonitor.width, -1);
this.keyboardIndex = this.primaryIndex;
Index: gnome-shell-3.25.91/js/ui/main.js
===================================================================
--- gnome-shell-3.25.91.orig/js/ui/main.js
+++ gnome-shell-3.25.91/js/ui/main.js
@@ -45,6 +45,8 @@ const Magnifier = imports.ui.magnifier;
const XdndHandler = imports.ui.xdndHandler;
const Util = imports.misc.util;
+const SLEClassicExt = imports.ui.SLEClassicExt;
+
const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
const STICKY_KEYS_ENABLE = 'stickykeys-enable';
const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a';
@@ -130,6 +132,8 @@ function start() {
shellMountOpDBusService = new ShellMountOperation.GnomeShellMountOpHandler();
_sessionUpdated();
+
+ SLEClassicExt.init();
}
function _initializeUI() {
Index: gnome-shell-3.25.91/js/ui/panel.js
===================================================================
--- gnome-shell-3.25.91.orig/js/ui/panel.js
+++ gnome-shell-3.25.91/js/ui/panel.js
@@ -25,6 +25,8 @@ const RemoteMenu = imports.ui.remoteMenu
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
+const SLEClassicExt = imports.ui.SLEClassicExt
+
var PANEL_ICON_SIZE = 16;
var APP_MENU_ICON_MARGIN = 0;
@@ -850,7 +852,9 @@ var Panel = new Lang.Class({
alloc.natural_size = -1;
},
- _allocate: function(actor, box, flags) {
+ _allocate: SLEClassicExt._allocate,
+
+ _allocateOrigin: function(actor, box, flags) {
let allocWidth = box.x2 - box.x1;
let allocHeight = box.y2 - box.y1;
Index: gnome-shell-3.25.91/js/ui/sessionMode.js
===================================================================
--- gnome-shell-3.25.91.orig/js/ui/sessionMode.js
+++ gnome-shell-3.25.91/js/ui/sessionMode.js
@@ -13,6 +13,8 @@ const Config = imports.misc.config;
const DEFAULT_MODE = 'restrictive';
+const SLEClassicExt = imports.ui.SLEClassicExt;
+
const _modes = {
'restrictive': {
parentMode: null,
@@ -118,6 +120,7 @@ function _loadMode(file, info) {
try {
[success, fileContent, tag] = file.load_contents(null);
newMode = JSON.parse(fileContent);
+ newMode = SLEClassicExt.convertClassic2SLE(newMode);
} catch(e) {
return;
}