Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
gnome-shell.15842
gnome-shell-Get-resource-scale-by-get_resource_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-shell-Get-resource-scale-by-get_resource_scale.patch of Package gnome-shell.15842
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(-) Index: gnome-shell-3.34.5/js/gdm/loginDialog.js =================================================================== --- gnome-shell-3.34.5.orig/js/gdm/loginDialog.js +++ gnome-shell-3.34.5/js/gdm/loginDialog.js @@ -775,12 +775,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, _LOGO_ICON_HEIGHT, scaleFactor, - this._logoBin.resource_scale)); + resourceScale)); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor