forked from pool/gnome-shell-extensions
Accepting request 967336 from home:qkzhu:branches:GNOME:Factory
- Deprecate SLE-Classic in GNOME 42: + Drop 00_org.gnome.shell.extensions.sle-classic.gschema.override + Drop gse-sle-classic-ext.patch + Drop sle-classic.desktop + Drop sle-classic.json + Drop sle-classic@suse.com.tar.gz SLE-Classic is not compatible with GNOME 42 which makes this mode not usable. After careful consideration, we decide to deprecate SLE-Classic in GNOME 42, please find the reason in (boo#1197907). OBS-URL: https://build.opensuse.org/request/show/967336 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell-extensions?expand=0&rev=258
This commit is contained in:
parent
d0b279ecf9
commit
4ebf93186b
@ -1,12 +0,0 @@
|
|||||||
[org.gnome.mutter:sle-Classic]
|
|
||||||
dynamic-workspaces=false
|
|
||||||
|
|
||||||
[org.gnome.desktop.wm.preferences:sle-Classic]
|
|
||||||
button-layout='appmenu:minimize,maximize,close'
|
|
||||||
|
|
||||||
[org.gnome.desktop.wm.keybindings:sle-Classic]
|
|
||||||
switch-applications=[]
|
|
||||||
switch-windows=['<Super>Tab','<Alt>Tab']
|
|
||||||
|
|
||||||
[org.gnome.settings-daemon.plugins.xsettings:sle-Classic]
|
|
||||||
overrides={'Gtk/ShellShowsAppMenu': <0>}
|
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 6 06:20:55 UTC 2022 - QK ZHU <qkzhu@suse.com>
|
||||||
|
|
||||||
|
- Deprecate SLE-Classic in GNOME 42:
|
||||||
|
+ Drop 00_org.gnome.shell.extensions.sle-classic.gschema.override
|
||||||
|
+ Drop gse-sle-classic-ext.patch
|
||||||
|
+ Drop sle-classic.desktop
|
||||||
|
+ Drop sle-classic.json
|
||||||
|
+ Drop sle-classic@suse.com.tar.gz
|
||||||
|
SLE-Classic is not compatible with GNOME 42 which makes this mode
|
||||||
|
not usable. After careful consideration, we decide to deprecate
|
||||||
|
SLE-Classic in GNOME 42, please find the reason in (boo#1197907).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 13 09:22:03 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
Sun Mar 13 09:22:03 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
@ -27,17 +27,11 @@ Group: System/GUI/GNOME
|
|||||||
URL: https://wiki.gnome.org/Projects/GnomeShell/Extensions
|
URL: https://wiki.gnome.org/Projects/GnomeShell/Extensions
|
||||||
Source0: https://download.gnome.org/sources/gnome-shell-extensions/42/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/gnome-shell-extensions/42/%{name}-%{version}.tar.xz
|
||||||
Source1: README.SUSE
|
Source1: README.SUSE
|
||||||
Source2: sle-classic.desktop
|
|
||||||
Source5: sle-classic.json
|
|
||||||
Source6: sle-classic@suse.com.tar.gz
|
|
||||||
Source7: 00_org.gnome.shell.extensions.sle-classic.gschema.override
|
|
||||||
|
|
||||||
# PATCH-FEATURE-OPENSUSE gnome-shell-add-app-to-desktop.patch bnc#870580 dliang@suse.com -- allow adding app shortcut to desktop easily.
|
# PATCH-FEATURE-OPENSUSE gnome-shell-add-app-to-desktop.patch bnc#870580 dliang@suse.com -- allow adding app shortcut to desktop easily.
|
||||||
Patch1: gnome-shell-add-app-to-desktop.patch
|
Patch1: gnome-shell-add-app-to-desktop.patch
|
||||||
|
|
||||||
## NOTE keep SLE Classic patch at the bottom
|
## NOTE keep SLE Classic patch at the bottom
|
||||||
# PATCH-NEEDS-REBASE gse-sle-classic-ext.patch Fate#318572 cxiong@suse.com -- add sle classic support Was:PATCH-FIX-SLE
|
|
||||||
Patch1000: gse-sle-classic-ext.patch
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
# Needed for directory ownership
|
# Needed for directory ownership
|
||||||
BuildRequires: gnome-shell
|
BuildRequires: gnome-shell
|
||||||
@ -103,9 +97,6 @@ to pick system installed themes or even themes installed in the user's home.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
# Patch needs rebase
|
|
||||||
#%%patch1000 -p1
|
|
||||||
|
|
||||||
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
# In openSUSE GNOME, we don't launch gnome-session directly, but wrap this through a shell script, /usr/bin/gnome
|
||||||
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
|
sed -i "s:Exec=gnome-session:Exec=gnome:g" data/gnome-classic.desktop.in
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
@ -123,16 +114,6 @@ sed -i -e 's/openSUSE/SUSE Linux Enterprise/g' README.SUSE
|
|||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%find_lang %{name} %{?no_lang_C}
|
||||||
#Install SLE theme
|
|
||||||
#Install sle-classic@suse.com extension
|
|
||||||
#install -m0644 %{SOURCE2} %{buildroot}/%{_datadir}/xsessions/sle-classic.desktop
|
|
||||||
#cp %{_builddir}/%{name}-%{version}/extensions/window-list/sle-classic.css \
|
|
||||||
#%{buildroot}/%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/sle-classic.css
|
|
||||||
#install -m0644 %{SOURCE5} %{buildroot}/%{_datadir}/gnome-shell/modes/sle-classic.json
|
|
||||||
#tar -xzvf %{SOURCE6}
|
|
||||||
#install -d %{buildroot}/%{_datadir}/gnome-shell/extensions/sle-classic@suse.com
|
|
||||||
#cp sle-classic@suse.com/* %{buildroot}/%{_datadir}/gnome-shell/extensions/sle-classic@suse.com
|
|
||||||
#install -m0644 %{SOURCE7} %{buildroot}/%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.sle-classic.gschema.override
|
|
||||||
%fdupes %{buildroot}%{_datadir}
|
%fdupes %{buildroot}%{_datadir}
|
||||||
|
|
||||||
%if 0%{?sle_version}
|
%if 0%{?sle_version}
|
||||||
@ -145,16 +126,6 @@ install -d -m755 %{buildroot}%{_datadir}/wayland-sessions
|
|||||||
ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop
|
ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_datadir}/wayland-sessions/default.desktop
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?sle_version}
|
|
||||||
%post -n gnome-shell-classic
|
|
||||||
%{_sbindir}/update-alternatives --install %{_datadir}/xsessions/default.desktop \
|
|
||||||
default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop 20
|
|
||||||
|
|
||||||
%postun -n gnome-shell-classic
|
|
||||||
[ -f %{_datadir}/xsessions/sle-classic.desktop ] || %{_sbindir}/update-alternatives \
|
|
||||||
--remove default-xsession.desktop %{_datadir}/xsessions/sle-classic.desktop
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.SUSE HACKING.md NEWS README.md
|
%doc README.SUSE HACKING.md NEWS README.md
|
||||||
@ -163,7 +134,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
|
|||||||
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
|
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.apps-menu.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.apps-menu.gschema.xml
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml
|
||||||
#%%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.sle-classic.gschema.override
|
|
||||||
%dir %{_datadir}/gnome-shell/extensions
|
%dir %{_datadir}/gnome-shell/extensions
|
||||||
%{_datadir}/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com/
|
%{_datadir}/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com/
|
||||||
%{_datadir}/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com/
|
%{_datadir}/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com/
|
||||||
@ -186,10 +156,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
|
|||||||
%{_datadir}/wayland-sessions/gnome-classic.desktop
|
%{_datadir}/wayland-sessions/gnome-classic.desktop
|
||||||
%{_datadir}/xsessions/gnome-classic-xorg.desktop
|
%{_datadir}/xsessions/gnome-classic-xorg.desktop
|
||||||
%{_datadir}/xsessions/gnome-classic.desktop
|
%{_datadir}/xsessions/gnome-classic.desktop
|
||||||
#%%{_datadir}/xsessions/sle-classic.desktop
|
|
||||||
#%{_datadir}/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com/sle-classic.css
|
|
||||||
#%{_datadir}/gnome-shell/modes/sle-classic.json
|
|
||||||
#%{_datadir}/gnome-shell/extensions/sle-classic@suse.com/
|
|
||||||
%if 0%{?sle_version}
|
%if 0%{?sle_version}
|
||||||
%dir %{_datadir}/wayland-sessions
|
%dir %{_datadir}/wayland-sessions
|
||||||
%{_datadir}/xsessions/default.desktop
|
%{_datadir}/xsessions/default.desktop
|
||||||
|
@ -1,348 +0,0 @@
|
|||||||
Index: gnome-shell-extensions-42.beta/extensions/window-list/extension.js
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/extensions/window-list/extension.js
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/window-list/extension.js
|
|
||||||
@@ -177,6 +177,9 @@ class WindowTitle extends St.BoxLayout {
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
+function isSLEClassicMode() {
|
|
||||||
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
||||||
+}
|
|
||||||
|
|
||||||
const BaseButton = GObject.registerClass({
|
|
||||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
|
||||||
@@ -691,11 +694,13 @@ class WindowList extends St.Widget {
|
|
||||||
let box = new St.BoxLayout({ x_expand: true, y_expand: true });
|
|
||||||
this.add_actor(box);
|
|
||||||
|
|
||||||
- let toggle = new WindowPickerToggle();
|
|
||||||
- box.add_actor(toggle);
|
|
||||||
+ if (!isSLEClassicMode()) {
|
|
||||||
+ let toggle = new WindowPickerToggle();
|
|
||||||
+ box.add_actor(toggle);
|
|
||||||
|
|
||||||
- toggle.connect('notify::checked',
|
|
||||||
- this._updateWindowListVisibility.bind(this));
|
|
||||||
+ toggle.connect('notify::checked',
|
|
||||||
+ this._updateWindowListVisibility.bind(this));
|
|
||||||
+ }
|
|
||||||
|
|
||||||
let layout = new Clutter.BoxLayout({ homogeneous: true });
|
|
||||||
this._windowList = new St.Widget({
|
|
||||||
@@ -733,6 +738,7 @@ class WindowList extends St.Widget {
|
|
||||||
this._menuManager = new PopupMenu.PopupMenuManager(this);
|
|
||||||
this._menuManager.addMenu(this._workspaceIndicator.menu);
|
|
||||||
|
|
||||||
+ if (!isSLEClassicMode()) {
|
|
||||||
Main.layoutManager.addChrome(this, {
|
|
||||||
affectsStruts: true,
|
|
||||||
trackFullscreen: true,
|
|
||||||
@@ -743,6 +749,7 @@ class WindowList extends St.Widget {
|
|
||||||
this.width = this._monitor.width;
|
|
||||||
this.connect('notify::height', this._updatePosition.bind(this));
|
|
||||||
this._updatePosition();
|
|
||||||
+ }
|
|
||||||
|
|
||||||
this._appSystem = Shell.AppSystem.get_default();
|
|
||||||
this._appStateChangedId = this._appSystem.connect(
|
|
||||||
@@ -842,7 +849,8 @@ class WindowList extends St.Widget {
|
|
||||||
let workspacesOnMonitor = this._monitor === Main.layoutManager.primaryMonitor ||
|
|
||||||
!this._mutterSettings.get_boolean('workspaces-only-on-primary');
|
|
||||||
|
|
||||||
- this._workspaceIndicator.visible = hasWorkspaces && workspacesOnMonitor;
|
|
||||||
+ if (this._workspaceIndicator != null)
|
|
||||||
+ this._workspaceIndicator.visible = hasWorkspaces && workspacesOnMonitor;
|
|
||||||
}
|
|
||||||
|
|
||||||
_updateWindowListVisibility() {
|
|
||||||
@@ -878,6 +886,9 @@ class WindowList extends St.Widget {
|
|
||||||
}
|
|
||||||
|
|
||||||
_getMaxWindowListWidth() {
|
|
||||||
+ if (this._workspaceIndicator == null)
|
|
||||||
+ return this.width;
|
|
||||||
+
|
|
||||||
let indicatorsBox = this._workspaceIndicator.get_parent();
|
|
||||||
return this.width - indicatorsBox.get_preferred_width(-1)[1];
|
|
||||||
}
|
|
||||||
@@ -1047,7 +1058,8 @@ class WindowList extends St.Widget {
|
|
||||||
this._mutterSettings.disconnect(this._workspacesOnlyOnPrimaryChangedId);
|
|
||||||
this._mutterSettings.disconnect(this._dynamicWorkspacesChangedId);
|
|
||||||
|
|
||||||
- this._workspaceIndicator.destroy();
|
|
||||||
+ if (this._workspaceIndicator != null)
|
|
||||||
+ this._workspaceIndicator.destroy();
|
|
||||||
|
|
||||||
Main.ctrlAltTabManager.removeGroup(this);
|
|
||||||
|
|
||||||
@@ -1090,6 +1102,7 @@ class Extension {
|
|
||||||
|
|
||||||
this._windowLists = null;
|
|
||||||
this._hideOverviewOrig = Main.overview.hide;
|
|
||||||
+ this._isSLEClassic = isSLEClassicMode();
|
|
||||||
}
|
|
||||||
|
|
||||||
enable() {
|
|
||||||
@@ -1109,19 +1122,51 @@ class Extension {
|
|
||||||
this._hideOverviewOrig.call(Main.overview);
|
|
||||||
};
|
|
||||||
|
|
||||||
+ if (isSLEClassicMode()) {
|
|
||||||
+ this.overviewShowingId = Main.overview.connect('showing', () => {
|
|
||||||
+ Main.panel._centerBox.hide(); });
|
|
||||||
+ this.overviewHidingId = Main.overview.connect('hiding', () => {
|
|
||||||
+ Main.panel._centerBox.show(); });
|
|
||||||
+
|
|
||||||
+ Main.sessionMode.hasOverview = false;
|
|
||||||
+ Main.layoutManager.connect('startup-complete', () => {
|
|
||||||
+ Main.sessionMode.hasOverview = true;
|
|
||||||
+ });
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
this._buildWindowLists();
|
|
||||||
}
|
|
||||||
|
|
||||||
_buildWindowLists() {
|
|
||||||
- this._windowLists.forEach(list => list.destroy());
|
|
||||||
+ this._windowLists.forEach(list => {
|
|
||||||
+ if (isSLEClassicMode()) {
|
|
||||||
+ Main.panel._centerBox.remove_child(list._windowList);
|
|
||||||
+ let [box] = list.get_children();
|
|
||||||
+ box.add_child(list._windowList);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ list.destroy();
|
|
||||||
+ });
|
|
||||||
this._windowLists = [];
|
|
||||||
|
|
||||||
let showOnAllMonitors = this._settings.get_boolean('show-on-all-monitors');
|
|
||||||
|
|
||||||
- Main.layoutManager.monitors.forEach(monitor => {
|
|
||||||
- if (showOnAllMonitors || monitor === Main.layoutManager.primaryMonitor)
|
|
||||||
+ if (isSLEClassicMode()){
|
|
||||||
+ let list = new WindowList(false, Main.layoutManager.primaryMonitor);
|
|
||||||
+ list._workspaceIndicator.destroy();
|
|
||||||
+ list._workspaceIndicator = null;
|
|
||||||
+
|
|
||||||
+ let [box] = list.get_children();
|
|
||||||
+ box.remove_child(list._windowList);
|
|
||||||
+ Main.panel._centerBox.add_child(list._windowList);
|
|
||||||
+
|
|
||||||
+ this._windowLists.push(list);
|
|
||||||
+ } else {
|
|
||||||
+ Main.layoutManager.monitors.forEach(monitor => {
|
|
||||||
+ if (showOnAllMonitors || monitor == Main.layoutManager.primaryMonitor)
|
|
||||||
this._windowLists.push(new WindowList(showOnAllMonitors, monitor));
|
|
||||||
- });
|
|
||||||
+ });
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
disable() {
|
|
||||||
@@ -1135,6 +1180,11 @@ class Extension {
|
|
||||||
this._monitorsChangedId = 0;
|
|
||||||
|
|
||||||
this._windowLists.forEach(windowList => {
|
|
||||||
+ if (this._isSLEClassic) {
|
|
||||||
+ Main.panel._centerBox.remove_child(windowList._windowList);
|
|
||||||
+ let [box] = windowList.get_children();
|
|
||||||
+ box.add_child(windowList._windowList);
|
|
||||||
+ }
|
|
||||||
windowList.hide();
|
|
||||||
windowList.destroy();
|
|
||||||
});
|
|
||||||
@@ -1143,6 +1193,11 @@ class Extension {
|
|
||||||
Main.windowPicker.destroy();
|
|
||||||
delete Main.windowPicker;
|
|
||||||
|
|
||||||
+ if (this._isSLEClassic) {
|
|
||||||
+ Main.overview.disconnect(this.overviewShowingId);
|
|
||||||
+ Main.overview.disconnect(this.overviewHidingId);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
Main.overview.hide = this._hideOverviewOrig;
|
|
||||||
}
|
|
||||||
|
|
||||||
Index: gnome-shell-extensions-42.beta/extensions/window-list/sle-classic.css
|
|
||||||
===================================================================
|
|
||||||
--- /dev/null
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/window-list/sle-classic.css
|
|
||||||
@@ -0,0 +1,46 @@
|
|
||||||
+@import url("stylesheet.css");
|
|
||||||
+
|
|
||||||
+#panel.bottom-panel {
|
|
||||||
+ border-top-width: 1px;
|
|
||||||
+ border-bottom-width: 0px;
|
|
||||||
+ height: 2.25em ;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button > StWidget {
|
|
||||||
+ background-gradient-drection: vertical;
|
|
||||||
+ background-color: #fff;
|
|
||||||
+ background-gradient-start: #fff;
|
|
||||||
+ background-gradient-end: #eee;
|
|
||||||
+ color: #000;
|
|
||||||
+ -st-natural-width: 18.7em;
|
|
||||||
+ max-width: 18.75em;
|
|
||||||
+ color: #2e3436;
|
|
||||||
+ background-color: #eee;
|
|
||||||
+ border-radius: 2px;
|
|
||||||
+ padding: 0px 6px 0px;
|
|
||||||
+ box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5);
|
|
||||||
+ text-shadow: 0 0 transparent;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button:hover > StWidget {
|
|
||||||
+ background-color: #f9f9f9;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button:active > StWidget,
|
|
||||||
+ .window-button:focus > StWidget {
|
|
||||||
+ box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button.focused > StWidget {
|
|
||||||
+ background-color: #ddd;
|
|
||||||
+ box-shadow: inset 1px 1px 1px rgba(0,0,0,0.5);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button.focused:hover > StWidget {
|
|
||||||
+ background-color: #e9e9e9;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ .window-button.minimized > StWidget {
|
|
||||||
+ color: #888;
|
|
||||||
+ box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5);
|
|
||||||
+ }
|
|
||||||
Index: gnome-shell-extensions-42.beta/extensions/places-menu/extension.js
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/extensions/places-menu/extension.js
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/places-menu/extension.js
|
|
||||||
@@ -139,6 +139,10 @@ function init() {
|
|
||||||
|
|
||||||
let _indicator;
|
|
||||||
|
|
||||||
+function isSLEClassicMode() {
|
|
||||||
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
/** */
|
|
||||||
function enable() {
|
|
||||||
_indicator = new PlacesMenu();
|
|
||||||
@@ -146,7 +150,10 @@ function enable() {
|
|
||||||
let pos = Main.sessionMode.panel.left.indexOf('appMenu');
|
|
||||||
if ('apps-menu' in Main.panel.statusArea)
|
|
||||||
pos++;
|
|
||||||
- Main.panel.addToStatusArea('places-menu', _indicator, pos, 'left');
|
|
||||||
+ if (isSLEClassicMode())
|
|
||||||
+ Main.panel.addToStatusArea('places-menu', _indicator, 1, 'left');
|
|
||||||
+ else
|
|
||||||
+ Main.panel.addToStatusArea('places-menu', _indicator, pos, 'left');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** */
|
|
||||||
Index: gnome-shell-extensions-42.beta/extensions/apps-menu/extension.js
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/extensions/apps-menu/extension.js
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/apps-menu/extension.js
|
|
||||||
@@ -26,6 +26,10 @@ const NAVIGATION_REGION_OVERSHOOT = 50;
|
|
||||||
Gio._promisify(Gio._LocalFilePrototype, 'query_info_async', 'query_info_finish');
|
|
||||||
Gio._promisify(Gio._LocalFilePrototype, 'set_attributes_async', 'set_attributes_finish');
|
|
||||||
|
|
||||||
+function isSLEClassicMode() {
|
|
||||||
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
var ApplicationMenuItem = GObject.registerClass(
|
|
||||||
class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|
||||||
_init(button, app) {
|
|
||||||
@@ -703,8 +707,6 @@ class ApplicationsButton extends PanelMe
|
|
||||||
this.applicationsByCategory = {};
|
|
||||||
this._tree.load_sync();
|
|
||||||
let root = this._tree.get_root_directory();
|
|
||||||
- let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
||||||
- this.categoriesBox.add_actor(categoryMenuItem);
|
|
||||||
let iter = root.iter();
|
|
||||||
let nextType;
|
|
||||||
while ((nextType = iter.next()) !== GMenu.TreeItemType.INVALID) {
|
|
||||||
@@ -719,11 +721,15 @@ class ApplicationsButton extends PanelMe
|
|
||||||
this.applicationsByCategory[categoryId] = [];
|
|
||||||
this._loadCategory(categoryId, dir);
|
|
||||||
if (this.applicationsByCategory[categoryId].length > 0) {
|
|
||||||
- categoryMenuItem = new CategoryMenuItem(this, dir);
|
|
||||||
+ let categoryMenuItem = new CategoryMenuItem(this, dir);
|
|
||||||
this.categoriesBox.add_actor(categoryMenuItem);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-
|
|
||||||
+ //put the favorites at the end of the app catogories
|
|
||||||
+ //bnc#890989
|
|
||||||
+ let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
||||||
+ this.categoriesBox.insert_child_at_index(categoryMenuItem,
|
|
||||||
+ isSLEClassicMode() ? -1 : 0);
|
|
||||||
// Load applications
|
|
||||||
this._displayButtons(this._listApplications(null));
|
|
||||||
|
|
||||||
@@ -787,7 +793,10 @@ let appsMenuButton;
|
|
||||||
function enable() {
|
|
||||||
appsMenuButton = new ApplicationsButton();
|
|
||||||
let index = Main.sessionMode.panel.left.indexOf('activities') + 1;
|
|
||||||
- Main.panel.addToStatusArea('apps-menu', appsMenuButton, index, 'left');
|
|
||||||
+ if (isSLEClassicMode())
|
|
||||||
+ Main.panel.addToStatusArea('apps-menu', appsMenuButton, 0, 'left');
|
|
||||||
+ else
|
|
||||||
+ Main.panel.addToStatusArea('apps-menu', appsMenuButton, index, 'left');
|
|
||||||
}
|
|
||||||
|
|
||||||
/** */
|
|
||||||
Index: gnome-shell-extensions-42.beta/data/gnome-classic.css
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/data/gnome-classic.css
|
|
||||||
+++ gnome-shell-extensions-42.beta/data/gnome-classic.css
|
|
||||||
@@ -2262,9 +2262,9 @@ StScrollBar {
|
|
||||||
#panel.solid .panel-corner:focus {
|
|
||||||
-panel-corner-radius: 0; }
|
|
||||||
#panel.lock-screen, #panel.unlock-screen, #panel.login-screen, #panel.solid.lock-screen, #panel.solid.unlock-screen, #panel.solid.login-screen {
|
|
||||||
- background-color: rgba(246, 245, 244, 0.5);
|
|
||||||
- background-gradient-start: rgba(246, 245, 244, 0.5);
|
|
||||||
- background-gradient-end: rgba(246, 245, 244, 0.5);
|
|
||||||
+ background-color: transparent;
|
|
||||||
+ background-gradient-direction: none;
|
|
||||||
+ background-gradient-end: none;
|
|
||||||
border-bottom: none; }
|
|
||||||
#panel.lock-screen .panel-button, #panel.unlock-screen .panel-button, #panel.login-screen .panel-button, #panel.solid.lock-screen .panel-button, #panel.solid.unlock-screen .panel-button, #panel.solid.login-screen .panel-button {
|
|
||||||
color: #eeeeec; }
|
|
||||||
@@ -2292,3 +2292,6 @@ StScrollBar {
|
|
||||||
|
|
||||||
.calendar-day-with-events {
|
|
||||||
background-image: url("calendar-today.svg"); }
|
|
||||||
+
|
|
||||||
+.popup-menu.panel-menu {
|
|
||||||
+ margin-bottom: 0em; }
|
|
||||||
Index: gnome-shell-extensions-42.beta/extensions/workspace-indicator/extension.js
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/extensions/workspace-indicator/extension.js
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/workspace-indicator/extension.js
|
|
||||||
@@ -321,7 +321,8 @@ class WorkspaceIndicator extends PanelMe
|
|
||||||
_updateThumbnailVisibility() {
|
|
||||||
const { workspaceManager } = global;
|
|
||||||
const vertical = workspaceManager.layout_rows === -1;
|
|
||||||
- const useMenu =
|
|
||||||
+ let isSLEClassicMode = Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
||||||
+ const useMenu = isSLEClassicMode ? true :
|
|
||||||
vertical || workspaceManager.n_workspaces > MAX_THUMBNAILS;
|
|
||||||
this.reactive = useMenu;
|
|
||||||
|
|
||||||
Index: gnome-shell-extensions-42.beta/extensions/workspace-indicator/stylesheet.css
|
|
||||||
===================================================================
|
|
||||||
--- gnome-shell-extensions-42.beta.orig/extensions/workspace-indicator/stylesheet.css
|
|
||||||
+++ gnome-shell-extensions-42.beta/extensions/workspace-indicator/stylesheet.css
|
|
||||||
@@ -1,5 +1,7 @@
|
|
||||||
.panel-workspace-indicator {
|
|
||||||
padding: 0 8px;
|
|
||||||
+ background-color: rgba(200, 200, 200, .5);
|
|
||||||
+ border: 1px solid #cccccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.panel-workspace-indicator-box {
|
|
@ -1,142 +0,0 @@
|
|||||||
[Desktop Entry]
|
|
||||||
Name=SLE Classic
|
|
||||||
Name[af]=SLE Klassiek
|
|
||||||
Name[an]=SLE clasico
|
|
||||||
Name[ar]=جنوم تقليدية
|
|
||||||
Name[as]=SLE ক্লাচিক
|
|
||||||
Name[bg]=Класически SLE
|
|
||||||
Name[bn_IN]=SLE ক্লাসিক
|
|
||||||
Name[bs]=Klasični SLE
|
|
||||||
Name[ca]=SLE clàssic
|
|
||||||
Name[ca@valencia]=SLE clàssic
|
|
||||||
Name[cs]=SLE klasik
|
|
||||||
Name[da]=SLE Classic
|
|
||||||
Name[de]=SLE Classic
|
|
||||||
Name[el]=SLE Classic
|
|
||||||
Name[en_GB]=SLE Classic
|
|
||||||
Name[eo]=SLE-klasika
|
|
||||||
Name[es]=SLE clásico
|
|
||||||
Name[et]=Klassikaline SLE
|
|
||||||
Name[eu]=SLE Klasikoa
|
|
||||||
Name[fa]=گنوم کلاسیک
|
|
||||||
Name[fi]=Perinteinen Gnome
|
|
||||||
Name[fr]=SLE Classique
|
|
||||||
Name[fur]=SLE Classic
|
|
||||||
Name[gd]=SLE clasaigeach
|
|
||||||
Name[gl]=SLE clasico
|
|
||||||
Name[gu]=SLE ક્લાસિક
|
|
||||||
Name[he]=SLE קלסי
|
|
||||||
Name[hi]=SLE क्लासिक
|
|
||||||
Name[hu]=Klasszikus SLE
|
|
||||||
Name[id]=SLE Klasik
|
|
||||||
Name[is]=SLE Klassík
|
|
||||||
Name[it]=SLE classico
|
|
||||||
Name[ja]=SLE クラシック
|
|
||||||
Name[kk]=Классикалық SLE
|
|
||||||
Name[km]=SLE Classic
|
|
||||||
Name[kn]=SLE ಕ್ಲಾಸಿಕ್
|
|
||||||
Name[ko]=그놈 클래식
|
|
||||||
Name[lt]=Klasikinis SLE
|
|
||||||
Name[lv]=Klasiskais SLE
|
|
||||||
Name[ml]=ഗ്നോം ക്ലാസ്സിക്
|
|
||||||
Name[mr]=SLE क्लासिक
|
|
||||||
Name[ms]=SLE Klasik
|
|
||||||
Name[nb]=Klassisk SLE
|
|
||||||
Name[ne]=जिनोम क्लासिक
|
|
||||||
Name[nl]=Gnome klassiek
|
|
||||||
Name[oc]=SLE Classic
|
|
||||||
Name[or]=SLE କ୍ଲାସିକ
|
|
||||||
Name[pa]=ਗਨੋਮ ਕਲਾਸਿਕ
|
|
||||||
Name[pl]=Klasyczne SLE
|
|
||||||
Name[pt]=SLE clássico
|
|
||||||
Name[pt_BR]=SLE Clássico
|
|
||||||
Name[ro]=SLE Clasic
|
|
||||||
Name[ru]=Классический SLE
|
|
||||||
Name[sk]=Klasické prostredie SLE
|
|
||||||
Name[sl]=Običajno namizje SLE
|
|
||||||
Name[sr]=Класичан Гном
|
|
||||||
Name[sr@latin]=Klasičan Gnom
|
|
||||||
Name[sv]=SLE Klassisk
|
|
||||||
Name[ta]=SLE கிளாஸிக்
|
|
||||||
Name[te]=గ్నోమ్ క్లాసిక్
|
|
||||||
Name[tg]=SLE-и классикӣ
|
|
||||||
Name[th]=SLE คลาสสิก
|
|
||||||
Name[tr]=SLE Klasik
|
|
||||||
Name[uk]=Класичний SLE
|
|
||||||
Name[vi]=SLE cổ điển
|
|
||||||
Name[zh_CN]=SLE 经典模式
|
|
||||||
Name[zh_HK]=SLE Classic
|
|
||||||
Name[zh_TW]=SLE Classic
|
|
||||||
Comment=This session logs you into SLE Classic
|
|
||||||
Comment[af]=Hierdie sessie laat mens aanmeld by SLE Klassiek
|
|
||||||
Comment[an]=Ista sesión encieta lo SLE clasico
|
|
||||||
Comment[ar]=تولجك هذه الجلسة في جنوم التقليدية
|
|
||||||
Comment[as]=এই অধিবেশনে আপোনাক SLE ক্লাচিকলৈ লগ কৰে
|
|
||||||
Comment[bg]=Работната среда изглежда като класическия SLE (2.x)
|
|
||||||
Comment[bn_IN]=এই সেশন অাপনাকে SLE ক্লাসিকে লগ করায়
|
|
||||||
Comment[bs]=Ova sesija vas prijavljuje na klasični SLE
|
|
||||||
Comment[ca]=Aquesta sessió us permet utilitzar el SLE clàssic
|
|
||||||
Comment[ca@valencia]=Esta sessió vos permet utilitzar el SLE clàssic
|
|
||||||
Comment[cs]=Toto sezení vás přihlásí do SLE klasik
|
|
||||||
Comment[da]=Denne session logger dig ind i SLE Classic
|
|
||||||
Comment[de]=Diese Sitzung meldet Sie in SLE Classic an
|
|
||||||
Comment[el]=Αυτή η συνεδρία σας συνδέει στο SLE Classic
|
|
||||||
Comment[en_GB]=This session logs you into SLE Classic
|
|
||||||
Comment[eo]=Ĉi seanco ensalutas vin SLE-klasiken
|
|
||||||
Comment[es]=Esta sesión inicia SLE clásico
|
|
||||||
Comment[et]=See on klassikalise SLE seanss
|
|
||||||
Comment[eu]=Saio honek SLE Klasikoa hasten du
|
|
||||||
Comment[fa]=این نشست شما را به گنوم کلاسیک وارد میکند
|
|
||||||
Comment[fi]=Tämä istunto kirjaa sinut perinteiseen Gnomeen
|
|
||||||
Comment[fr]=Cette session vous connnecte à SLE Classique
|
|
||||||
Comment[fur]=Cheste session a si invie cun SLE classic
|
|
||||||
Comment[gd]=Clàraidh an seisean seo a-steach gu SLE clasaigeach thu
|
|
||||||
Comment[gl]=Esta sesión iniciarao en SLE clásico
|
|
||||||
Comment[gu]=આ સત્ર તમને SLE ક્લાસિકમાં પ્રવેશ આપે છે
|
|
||||||
Comment[he]=הפעלה זו מכניסה אותך למצב הקלסי של SLE
|
|
||||||
Comment[hi]=यह सत्र गनोम क्लासिक में आपको लॉगइन करेगा
|
|
||||||
Comment[hu]=Bejelentkezés a klasszikus SLE környezetbe
|
|
||||||
Comment[id]=Sesi ini memasukkan Anda ke SLE Klasik
|
|
||||||
Comment[is]=Þessi seta skráir þig inn í klassískt SLE
|
|
||||||
Comment[it]=Questa sessione si avvia con SLE classico
|
|
||||||
Comment[ja]=SLE クラシックモードでログインします
|
|
||||||
Comment[kk]=Бұл сессия арқылы классикалық SLE ішіне кіресіз
|
|
||||||
Comment[km]=សម័យនេះនឹងឲ្យអ្នកចូល SLE Classic
|
|
||||||
Comment[kn]=ಈ ಅಧಿವೇಶನವು ನಿಮ್ಮನ್ನು SLE ಕ್ಲಾಸಿಕ್ಗೆ ಪ್ರವೇಶಿಸುವಂತೆ ಮಾಡುತ್ತದೆ
|
|
||||||
Comment[ko]=이 세션을 사용하면 그놈 클래식에 로그인합니다
|
|
||||||
Comment[lt]=Šis seansas prijungs jus prie klasikinio SLE
|
|
||||||
Comment[lv]=Šī sesija ieraksta jūs klasiskajā SLE vidē
|
|
||||||
Comment[ml]=ഈ പ്രവര്ത്തനവേള നിങ്ങളെ ഗ്നോം ക്ലാസ്സിക്കിലേക്കു് കയറ്റുന്നു
|
|
||||||
Comment[mr]=हे सत्र तुम्हाला SLE क्लासिक सत्रामध्ये प्रवेश करून देतो
|
|
||||||
Comment[ms]=Sesi ini log masukkan anda ke SLE Klasik
|
|
||||||
Comment[nb]=Denne økten logger inn i klassisk SLE
|
|
||||||
Comment[ne]=यो सेसन जिनोम क्लासिकमा लगईन हुन्छ
|
|
||||||
Comment[nl]=Deze sessie meldt u aan bij Gnome klassiek
|
|
||||||
Comment[oc]=Aquesta session vos connècta a SLE Classic
|
|
||||||
Comment[or]=ଏହି ଅଧିବେଶନ ଆପଣଙ୍କୁ SLE କ୍ଲାସିକରେ ଲଗ କରାଇଥାଏ
|
|
||||||
Comment[pa]=ਇਹ ਸ਼ੈਸ਼ਨ ਤੁਹਾਨੂੰ ਗਨੋਮ ਕਲਾਸਿਕ ਵਿੱਚ ਲਾਗ ਕਰਦਾ ਹੈ
|
|
||||||
Comment[pl]=Ta sesja loguje do klasycznego środowiska SLE
|
|
||||||
Comment[pt]=Esta sessão liga-o ao SLE clássico
|
|
||||||
Comment[pt_BR]=Essa sessão se inicia como SLE Clássico
|
|
||||||
Comment[ro]=Această sesiune vă autentifică în SLE Clasic
|
|
||||||
Comment[ru]=Данный сеанс использует классический рабочий стол SLE
|
|
||||||
Comment[sk]=Táto relácia vás prihlási do klasického prostredia SLE
|
|
||||||
Comment[sl]=Seja omogoča prijavo v običajno namizje SLE.
|
|
||||||
Comment[sr]=Ова сесија вас пријављује у класичан Гном
|
|
||||||
Comment[sr@latin]=Ova sesija vas prijavljuje u klasičan Gnom
|
|
||||||
Comment[sv]=Denna session loggar in dig till SLE Klassisk
|
|
||||||
Comment[ta]=இந்த அமர்வு உங்களை SLE கிளாஸிக்கில் புகுபதிவு செய்யும்
|
|
||||||
Comment[te]=ఈ సెషన్ గ్నోమ్ క్లాసిక్ లోనికి లాగ్ చేస్తుంది
|
|
||||||
Comment[tg]=Ин ҷаласа шуморо ба SLE-и классикӣ ворид мекунад
|
|
||||||
Comment[th]=วาระนี้จะนำคุณเข้าสู่ระบบ SLE คลาสสิก
|
|
||||||
Comment[tr]=Bu oturum, SLE Klasik sürümüne giriş yapmanızı sağlar.
|
|
||||||
Comment[uk]=Це — сеанс входу в класичний SLE
|
|
||||||
Comment[vi]=Phiên làm việc này đăng nhập bạn vào SLE Cổ điển
|
|
||||||
Comment[zh_CN]=该会话将登录到“SLE 经典模式”
|
|
||||||
Comment[zh_HK]=這個作業階段讓你登入 SLE Classic
|
|
||||||
Comment[zh_TW]=這個作業階段讓您登入 SLE Classic
|
|
||||||
Exec=env GNOME_SHELL_SESSION_MODE=sle-classic gnome-session
|
|
||||||
TryExec=gnome-session
|
|
||||||
Icon=
|
|
||||||
Type=Application
|
|
||||||
DesktopNames=sle-Classic;GNOME
|
|
@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"parentMode": "user",
|
|
||||||
"stylesheetName": "gnome-classic.css",
|
|
||||||
"enabledExtensions": [
|
|
||||||
"apps-menu@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"places-menu@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"alternate-tab@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"launch-new-instance@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"window-list@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"workspace-indicator@gnome-shell-extensions.gcampax.github.com",
|
|
||||||
"desktop-icons@csoriano",
|
|
||||||
"sle-classic@suse.com"
|
|
||||||
],
|
|
||||||
"panel": {
|
|
||||||
"left": [],
|
|
||||||
"center": [],
|
|
||||||
"right": ["a11y", "keyboard", "dateMenu", "aggregateMenu"]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:83c49e6b7428e0c32d9ed39ce9360988be60710ecec3f50dfe003dbbe2fd2139
|
|
||||||
size 4289
|
|
Loading…
Reference in New Issue
Block a user