From 63cab98fa5c054887206d7df2f0b5398e577eea9 Mon Sep 17 00:00:00 2001 From: Paolo Rovelli Date: Wed, 26 Jul 2023 16:02:15 +0200 Subject: [PATCH] ISSUE-18 Remove MenuView object.actor warnings --- metadata.json | 2 +- src/presentation/views.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata.json b/metadata.json index 00bc91c..25e466b 100755 --- a/metadata.json +++ b/metadata.json @@ -14,5 +14,5 @@ "43", "44" ], - "version": 23 + "version": 24 } diff --git a/src/presentation/views.js b/src/presentation/views.js index f2c591b..c0fcb92 100755 --- a/src/presentation/views.js +++ b/src/presentation/views.js @@ -29,7 +29,7 @@ var MenuView = GObject.registerClass( addClickEvent() { let that = this; - return this.actor.connect("button_press_event", () => + return this.connect("button_press_event", () => that.presenter.onClick() ); } @@ -58,7 +58,7 @@ var MenuView = GObject.registerClass( ); layout.add_child(icon); }); - this.actor.add_child(layout); + this.add_child(layout); } showSectionContainer() { @@ -94,7 +94,7 @@ var MenuView = GObject.registerClass( } removeEvent(eventId) { - this.actor.disconnect(eventId); + this.disconnect(eventId); } destroy() {