Hello community,
here is the log from the commit of package gnome-shell-extensions for
openSUSE:Factory checked in at 2018-06-05 12:51:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnome-shell-extensions (Old)
and /work/SRC/openSUSE:Factory/.gnome-shell-extensions.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnome-shell-extensions"
Tue Jun 5 12:51:50 2018 rev:81 rq:613929 version:3.28.1+20180413.6746061
Changes:
--------
---
/work/SRC/openSUSE:Factory/gnome-shell-extensions/gnome-shell-extensions.changes
2018-04-25 09:45:02.850720942 +0200
+++
/work/SRC/openSUSE:Factory/.gnome-shell-extensions.new/gnome-shell-extensions.changes
2018-06-05 12:51:55.683799400 +0200
@@ -1,0 +2,6 @@
+Mon Jun 4 03:11:44 UTC 2018 - [email protected]
+
+- Update [email protected]. Don't allow user to enable
+ sle-classic extension in tweak tool (bsc#1095325).
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ [email protected] ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/[email protected]/extension.js
new/[email protected]/extension.js
--- old/[email protected]/extension.js 2017-12-08 04:11:43.873463586
+0100
+++ new/[email protected]/extension.js 2018-06-04 04:34:13.923426268
+0200
@@ -22,6 +22,10 @@
const WINDOW_CLONE_MAXIMUM_SCALE = 1.0;
+function isSLEClassicMode() {
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
+}
+
// Simulate classic session
// global-shell.c shell_global_get_overrides_settings
// main.c shell_prefs_init
@@ -308,7 +312,7 @@
function init() {
Convenience.initTranslations();
- _updateBoxesOrigin = Layout.LayoutManager._updateBoxes;
+ _updateBoxesOrigin = Main.layoutManager._updateBoxes;
//bsc#1064378
computeScaleAndSpaceOrigin = Workspace.LayoutStrategy.computeScaleAndSpace;
@@ -316,6 +320,9 @@
}
function enable() {
+ if (!isSLEClassicMode())
+ return;
+
initClassicOverridesSchema();
mainPanelActorAllocateId = Main.panel.actor.connect('allocate',
Lang.bind(Main.panel, sle_classic_allocate));
@@ -359,5 +366,6 @@
Workspace.LayoutStrategy.prototype.computeWindowSlots =
computeWindowSlotsOrigin;
//bsc#1046570
- Main.panel.actor.disconnect(heightChangeId);
+ if (heightChangeId)
+ Main.panel.actor.disconnect(heightChangeId);
}