Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
hamster-time-tracker
0121-panelWidget-fix-object.actor-is-deprecated...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0121-panelWidget-fix-object.actor-is-deprecated-warning.patch of Package hamster-time-tracker
From 9f5a7201c2d8c40c5308cabf9c6d8ad35a6d3b05 Mon Sep 17 00:00:00 2001 From: Martin Wilck <mwilck@suse.com> Date: Tue, 22 Oct 2019 16:54:26 +0200 Subject: [PATCH 121/130] panelWidget: fix "object.actor is deprecated" warning Fixes: gnome-shell[9973]: Usage of object.actor is deprecated for PanelWidget See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/487 --- extension/widgets/panelWidget.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extension/widgets/panelWidget.js b/extension/widgets/panelWidget.js index 905623a..9288f06 100644 --- a/extension/widgets/panelWidget.js +++ b/extension/widgets/panelWidget.js @@ -76,8 +76,10 @@ class PanelWidget extends PanelMenu.Button { // Setup the main layout container for the part of the extension // visible in the panel. let panelContainer = new St.BoxLayout({style_class: "panel-box"}); - this.actor.add_actor(panelContainer); - this.actor.add_style_class_name('panel-status-button'); + + let _actor = (this instanceof Clutter.Actor ? this : this.actor); + _actor.add_actor(panelContainer); + _actor.add_style_class_name('panel-status-button'); this.panelLabel = new St.Label({ text: _("Loading..."), -- 2.26.1
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