Accepting request 798353 from GNOME:Factory

- Add gnome-shell-Get-resource-scale-by-get_resource_scale.patch:
  To remove 'Getting invalid resource scale property' warnings in
  the log(bsc#1169845 glgo#GNOME/gnome-shell!1206). (forwarded request 797796 from xiaoguang_wang)

OBS-URL: https://build.opensuse.org/request/show/798353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-shell?expand=0&rev=178
This commit is contained in:
Dominique Leuenberger 2020-04-29 18:42:49 +00:00 committed by Git OBS Bridge
commit ed83049a98
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,35 @@
From be12c71534199a1a1fd0a334d046ddb85c6f165e Mon Sep 17 00:00:00 2001
From: Xiaoguang Wang <xwang@suse.com>
Date: Tue, 21 Apr 2020 16:17:09 +0800
Subject: [PATCH] loginDialog: Get resource scale by get_resource_scale
To shut up 'Getting invalid resource scale property' warnings in the log.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1206
---
js/gdm/loginDialog.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index 16a7536ce..0ee51e637 100644
--- a/js/gdm/loginDialog.js
+++ b/js/gdm/loginDialog.js
@@ -810,12 +810,13 @@ var LoginDialog = GObject.registerClass({
return;
this._logoBin.destroy_all_children();
- if (this._logoFile && this._logoBin.resource_scale > 0) {
+ const [valid, resourceScale] = this._logoBin.get_resource_scale();
+ if (this._logoFile && valid) {
let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
this._logoBin.add_child(this._textureCache.load_file_async(this._logoFile,
-1, -1,
scaleFactor,
- this._logoBin.resource_scale));
+ resourceScale));
}
}
--
2.26.0

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Apr 26 01:29:59 UTC 2020 - Xiaoguang Wang <xiaoguang.wang@suse.com>
- Add gnome-shell-Get-resource-scale-by-get_resource_scale.patch:
To remove 'Getting invalid resource scale property' warnings in
the log(bsc#1169845 glgo#GNOME/gnome-shell!1206).
-------------------------------------------------------------------
Wed Apr 22 07:26:51 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -40,6 +40,8 @@ Patch2: gnome-shell-disable-ibus-when-not-installed.patch
Patch4: gnome-shell-fate324570-Make-GDM-background-image-configurable.patch
# PATCH-NEEDS-REBASE gnome-shell-jscSLE9267-Remove-sessionList-of-endSessionDialog.patch jsc#SLE-9267 qkzhu@suse.com -- Remove sessionList of endSessionDialog (WAS: PATCH-FEATURE-OPENSUSE)
Patch5: gnome-shell-jscSLE9267-Remove-sessionList-of-endSessionDialog.patch
# PATCH-FIX-UPSTREAM gnome-shell-Get-resource-scale-by-get_resource_scale.patch bsc#1169845 glgo#GNOME/gnome-shell!1206 xwang@suse.com -- Get resource scale by get_resource_scale
Patch6: gnome-shell-Get-resource-scale-by-get_resource_scale.patch
## NOTE: Keep SLE-only patches at bottom (starting on 1000).
# PATCH-FEATURE-SLE gnome-shell-gdm-login-applet.patch fate#314545 dliang@suse.com -- Add an applet on login UI to display suse icon, product name, hostname.
@ -170,6 +172,7 @@ into GNOME Shell calendar.
%patch2 -p1
#patch4 -p1
#patch5 -p1
%patch6 -p1
translation-update-upstream