Accepting request 1156279 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/1156279 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-shell?expand=0&rev=251
This commit is contained in:
commit
4a73e81e81
@ -1,8 +1,8 @@
|
||||
Index: gnome-shell-45.0/js/js-resources.gresource.xml
|
||||
Index: gnome-shell-45.3/js/js-resources.gresource.xml
|
||||
===================================================================
|
||||
--- gnome-shell-45.0.orig/js/js-resources.gresource.xml
|
||||
+++ gnome-shell-45.0/js/js-resources.gresource.xml
|
||||
@@ -41,6 +41,7 @@
|
||||
--- gnome-shell-45.3.orig/js/js-resources.gresource.xml
|
||||
+++ gnome-shell-45.3/js/js-resources.gresource.xml
|
||||
@@ -42,6 +42,7 @@
|
||||
<file>misc/util.js</file>
|
||||
<file>misc/weather.js</file>
|
||||
|
||||
@ -10,10 +10,10 @@ Index: gnome-shell-45.0/js/js-resources.gresource.xml
|
||||
<file>ui/accessDialog.js</file>
|
||||
<file>ui/altTab.js</file>
|
||||
<file>ui/animation.js</file>
|
||||
Index: gnome-shell-45.0/js/ui/panel.js
|
||||
Index: gnome-shell-45.3/js/ui/panel.js
|
||||
===================================================================
|
||||
--- gnome-shell-45.0.orig/js/ui/panel.js
|
||||
+++ gnome-shell-45.0/js/ui/panel.js
|
||||
--- gnome-shell-45.3.orig/js/ui/panel.js
|
||||
+++ gnome-shell-45.3/js/ui/panel.js
|
||||
@@ -36,6 +36,7 @@ import * as ThunderboltStatus from './st
|
||||
import * as AutoRotateStatus from './status/autoRotate.js';
|
||||
import * as BackgroundAppsStatus from './status/backgroundApps.js';
|
||||
@ -30,10 +30,10 @@ Index: gnome-shell-45.0/js/ui/panel.js
|
||||
'activities': ActivitiesButton,
|
||||
'appMenu': AppMenuButton,
|
||||
'quickSettings': QuickSettings,
|
||||
Index: gnome-shell-45.0/js/ui/sessionMode.js
|
||||
Index: gnome-shell-45.3/js/ui/sessionMode.js
|
||||
===================================================================
|
||||
--- gnome-shell-45.0.orig/js/ui/sessionMode.js
|
||||
+++ gnome-shell-45.0/js/ui/sessionMode.js
|
||||
--- gnome-shell-45.3.orig/js/ui/sessionMode.js
|
||||
+++ gnome-shell-45.3/js/ui/sessionMode.js
|
||||
@@ -60,7 +60,7 @@ const _modes = {
|
||||
? ['networkAgent', 'polkitAgent']
|
||||
: ['polkitAgent'],
|
||||
@ -43,11 +43,11 @@ Index: gnome-shell-45.0/js/ui/sessionMode.js
|
||||
center: ['dateMenu'],
|
||||
right: ['dwellClick', 'a11y', 'keyboard', 'quickSettings'],
|
||||
},
|
||||
Index: gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
Index: gnome-shell-45.3/js/ui/aboutMenu.js
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
@@ -0,0 +1,145 @@
|
||||
+++ gnome-shell-45.3/js/ui/aboutMenu.js
|
||||
@@ -0,0 +1,144 @@
|
||||
+// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
+
|
||||
+import GLib from 'gi://GLib';
|
||||
@ -74,7 +74,7 @@ Index: gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
+ this.hostname_label = new St.Label({y_align: Clutter.ActorAlign.CENTER});
|
||||
+ this.about_hbox.add_child(this.hostname_label);
|
||||
+
|
||||
+ this.actor.add_child(this.about_hbox);
|
||||
+ this.add_child(this.about_hbox);
|
||||
+ hbox = new St.BoxLayout({ name: 'aboutArea' });
|
||||
+ this.menu.box.add_child(hbox);
|
||||
+
|
||||
@ -87,11 +87,10 @@ Index: gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
+ // let's use a "safer" option.
|
||||
+ let sysinfo_text = 'SUSE Linux';
|
||||
+ try {
|
||||
+ let success, contents, tag;
|
||||
+ let _os_release = Gio.File.new_for_path('/etc/os-release');
|
||||
+ [success, contents, tag] = _os_release.load_contents(null);
|
||||
+ let [success_, contents] = _os_release.load_contents(null);
|
||||
+
|
||||
+ let osReleaseContentStr = contents.toString();
|
||||
+ let osReleaseContentStr = new TextDecoder().decode(contents);
|
||||
+ let prettyNameReg = /^PRETTY_NAME="(.+)"/;
|
||||
+ let match = null;
|
||||
+ for (let line of osReleaseContentStr.split('\n')) {
|
||||
@ -108,7 +107,7 @@ Index: gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
+
|
||||
+ this._sysinfo = new St.Label({ text: sysinfo_text, can_focus: true });
|
||||
+ vbox.add(this._sysinfo);
|
||||
+ this.actor.hide();
|
||||
+ this.hide();
|
||||
+
|
||||
+ this._updateHostnameId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
|
||||
+ this._ticket,
|
||||
@ -130,7 +129,7 @@ Index: gnome-shell-45.0/js/ui/aboutMenu.js
|
||||
+ this._ticket = 1;
|
||||
+ this._hostname = hostname_text;
|
||||
+ this.hostname_label.set_text(this._hostname);
|
||||
+ this.actor.show();
|
||||
+ this.show();
|
||||
+ }
|
||||
+ this._updateHostnameId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT,
|
||||
+ this._ticket,
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 07:47:00 UTC 2024 - Xiaoguang Wang <xiaoguang.wang@suse.com>
|
||||
|
||||
- Update gnome-shell-gdm-login-applet.patch: Clean up JS errors
|
||||
(bsc#1221100).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 20 10:03:05 UTC 2024 - Alynx Zhou <alynx.zhou@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user