Bjørn Lie 2019-12-10 20:37:05 +00:00 committed by Git OBS Bridge
parent 30df07f62b
commit 24a7443564
4 changed files with 76 additions and 151 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Dec 10 00:58:50 UTC 2019 - Xiaoguang Wang <xwang@suse.com>
- Update gse-sle-classic-ext.patch: Adapt version 3.34.1
(bsc#1158496).
- Remove file sle-classic-xorg.desktop: now sle-classic only works
on X, we don't need this file anymore.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 2 09:17:46 UTC 2019 - Frederic Crozat <fcrozat@suse.com> Mon Dec 2 09:17:46 UTC 2019 - Frederic Crozat <fcrozat@suse.com>

View File

@ -29,7 +29,6 @@ Source0: https://download.gnome.org/sources/gnome-shell-extensions/3.34/%
Source1: README.SUSE Source1: README.SUSE
Source2: sle-classic.desktop Source2: sle-classic.desktop
Source3: SLE-theme.tar.gz Source3: SLE-theme.tar.gz
Source4: sle-classic-xorg.desktop
Source5: sle-classic.json Source5: sle-classic.json
Source6: sle-classic@suse.com.tar.gz Source6: sle-classic@suse.com.tar.gz
Source7: 00_org.gnome.shell.extensions.sle-classic.gschema.override Source7: 00_org.gnome.shell.extensions.sle-classic.gschema.override
@ -148,7 +147,6 @@ 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 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 install -m0644 %{SOURCE7} %{buildroot}/%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.sle-classic.gschema.override
%if !0%{?is_opensuse} %if !0%{?is_opensuse}
install -m0644 %{SOURCE4} %{buildroot}/%{_datadir}/xsessions/sle-classic-xorg.desktop
tar -xzvf %{SOURCE3} tar -xzvf %{SOURCE3}
install -d %{buildroot}%{_datadir}/gnome-shell/theme install -d %{buildroot}%{_datadir}/gnome-shell/theme
cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme cp SLE-theme/theme/* %{buildroot}%{_datadir}/gnome-shell/theme
@ -214,7 +212,6 @@ ln -s %{_sysconfdir}/alternatives/default-waylandsession.desktop %{buildroot}%{_
%dir %{_datadir}/wayland-sessions %dir %{_datadir}/wayland-sessions
%{_datadir}/gnome-shell/theme/sle-background.png %{_datadir}/gnome-shell/theme/sle-background.png
%{_datadir}/xsessions/default.desktop %{_datadir}/xsessions/default.desktop
%{_datadir}/xsessions/sle-classic-xorg.desktop
%{_datadir}/wayland-sessions/default.desktop %{_datadir}/wayland-sessions/default.desktop
%ghost %{_sysconfdir}/alternatives/default-xsession.desktop %ghost %{_sysconfdir}/alternatives/default-xsession.desktop
%ghost %{_sysconfdir}/alternatives/default-waylandsession.desktop %ghost %{_sysconfdir}/alternatives/default-waylandsession.desktop

View File

@ -12,7 +12,63 @@ Index: gnome-shell-extensions-3.34.1/extensions/window-list/extension.js
function _minimizeOrActivateWindow(window) { function _minimizeOrActivateWindow(window) {
let focusWindow = global.display.focus_window; let focusWindow = global.display.focus_window;
@@ -1141,19 +1144,45 @@ class Extension { @@ -691,11 +694,13 @@ const WindowList = GObject.registerClass
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({
@@ -837,7 +842,8 @@ const WindowList = GObject.registerClass
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() {
@@ -873,6 +879,9 @@ const WindowList = GObject.registerClass
}
_getMaxWindowListWidth() {
+ if (this._workspaceIndicator == null)
+ return this.width;
+
let indicatorsBox = this._workspaceIndicator.get_parent();
return this.width - indicatorsBox.get_preferred_width(-1)[1];
}
@@ -1082,7 +1091,8 @@ const WindowList = GObject.registerClass
this._mutterSettings.disconnect(this._workspacesOnlyOnPrimaryChangedId);
this._mutterSettings.disconnect(this._dynamicWorkspacesChangedId);
- this._workspaceIndicator.destroy();
+ if (this._workspaceIndicator != null)
+ this._workspaceIndicator.destroy();
Main.ctrlAltTabManager.removeGroup(this);
@@ -1122,6 +1132,7 @@ class Extension {
constructor() {
this._windowLists = null;
this._hideOverviewOrig = Main.overview.hide;
+ this._isSLEClassic = isSLEClassicMode();
}
enable() {
@@ -1141,19 +1152,47 @@ class Extension {
this._hideOverviewOrig.call(Main.overview); this._hideOverviewOrig.call(Main.overview);
}; };
@ -45,11 +101,13 @@ Index: gnome-shell-extensions-3.34.1/extensions/window-list/extension.js
- if (showOnAllMonitors || monitor === Main.layoutManager.primaryMonitor) - if (showOnAllMonitors || monitor === Main.layoutManager.primaryMonitor)
+ if (isSLEClassicMode()){ + if (isSLEClassicMode()){
+ let list = new WindowList(false, Main.layoutManager.primaryMonitor); + let list = new WindowList(false, Main.layoutManager.primaryMonitor);
+ list._workspaceIndicator.destroy();
+ list._workspaceIndicator = null;
+ Main.layoutManager.removeChrome(list); + Main.layoutManager.removeChrome(list);
+ +
+ let [box] = list.get_children(); + let [box] = list.get_children();
+ box.remove_child(list._windowList); + box.remove_child(list._windowList);
+ Main.panel._centerBox.add(list._windowList, {expand: true, x_align: St.Align.START}); + Main.panel._centerBox.add_child(list._windowList);
+ +
+ this._windowLists.push(list); + this._windowLists.push(list);
+ } else { + } else {
@ -62,19 +120,23 @@ Index: gnome-shell-extensions-3.34.1/extensions/window-list/extension.js
} }
disable() { disable() {
@@ -1167,6 +1196,7 @@ class Extension { @@ -1167,6 +1206,11 @@ class Extension {
this._monitorsChangedId = 0; this._monitorsChangedId = 0;
this._windowLists.forEach(windowList => { this._windowLists.forEach(windowList => {
+ if (this._isSLEClassic) {
+ Main.panel._centerBox.remove_child(windowList._windowList); + Main.panel._centerBox.remove_child(windowList._windowList);
+ let [box] = windowList.get_children();
+ box.add_child(windowList._windowList);
+ }
windowList.hide(); windowList.hide();
windowList.destroy(); windowList.destroy();
}); });
@@ -1175,6 +1205,11 @@ class Extension { @@ -1175,6 +1219,11 @@ class Extension {
Main.windowPicker.destroy(); Main.windowPicker.destroy();
delete Main.windowPicker; delete Main.windowPicker;
+ if (isSLEClassicMode()) { + if (this._isSLEClassic) {
+ Main.overview.disconnect(this.overviewShowingId); + Main.overview.disconnect(this.overviewShowingId);
+ Main.overview.disconnect(this.overviewHidingId); + Main.overview.disconnect(this.overviewHidingId);
+ } + }

View File

@ -1,142 +0,0 @@
[Desktop Entry]
Name=SLE Classic on Xorg
Name[af]=SLE Klassiek Xorg
Name[an]=SLE clasico Xorg
Name[ar]=جنوم تقليدية
Name[as]=SLE ি
Name[bg]=Класически SLE Xorg
Name[bn_IN]=SLE ি
Name[bs]=Klasični SLE Xorg
Name[ca]=SLE clàssic Xorg
Name[ca@valencia]=SLE clàssic Xorg
Name[cs]=SLE klasik Xorg
Name[da]=SLE Classic on Xorg
Name[de]=SLE Classic on Xorg
Name[el]=SLE Classic on Xorg
Name[en_GB]=SLE Classic on Xorg
Name[eo]=SLE-klasika Xorg
Name[es]=SLE clásico Xorg
Name[et]=Klassikaline SLE Xorg
Name[eu]=SLE Klasikoa Xorg
Name[fa]=گنوم کلاسیک
Name[fi]=Perinteinen Gnome
Name[fr]=SLE Classique Xorg
Name[fur]=SLE Classic on Xorg
Name[gd]=SLE clasaigeach Xorg
Name[gl]=SLE clasico Xorg
Name[gu]=SLE િ
Name[he]=SLE קלסי
Name[hi]=SLE ि
Name[hu]=Klasszikus SLE Xorg
Name[id]=SLE Klasik Xorg
Name[is]=SLE Klassík Xorg
Name[it]=SLE classico Xorg
Name[ja]=SLE Xorg
Name[kk]=Классикалық SLE Xorg
Name[km]=SLE Classic on Xorg
Name[kn]=SLE ಿ
Name[ko]=
Name[lt]=Klasikinis SLE Xorg
Name[lv]=Klasiskais SLE Xorg
Name[ml]= ി
Name[mr]=SLE ि
Name[ms]=SLE Klasik
Name[nb]=Klassisk SLE
Name[ne]=ि ि
Name[nl]=Gnome klassiek
Name[oc]=SLE Classic on Xorg
Name[or]=SLE ି
Name[pa]= ਿ
Name[pl]=Klasyczne SLE Xorg
Name[pt]=SLE clássico Xorg
Name[pt_BR]=SLE Clássico Xorg
Name[ro]=SLE Clasic Xorg
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 Xorg
Name[ta]=SLE ிி
Name[te]= ి
Name[tg]=SLE-и классикӣ
Name[th]=SLE
Name[tr]=SLE Klasik
Name[uk]=Класичний SLE
Name[vi]=SLE c đin
Name[zh_CN]= Xorg SLE
Name[zh_HK]=SLE Classic Xorg
Name[zh_TW]=SLE Classic Xorg
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 vic này đăng nhp bn vào SLE C đin
Comment[zh_CN]=SLE
Comment[zh_HK]= SLE Classic
Comment[zh_TW]= SLE Classic
Exec=env GNOME_SHELL_SESSION_MODE=sle-classic gnome-session --session gnome-classic
TryExec=gnome-session
Icon=
Type=Application
DesktopNames=sle-Classic;GNOME