[polari] dropTarget: Call interface method on object



commit bb52beccf23826d624fb19804f5085a5d6cb8e13
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Aug 27 11:16:10 2021 +0200

    dropTarget: Call interface method on object
    
    gjs' interface support got better, and interface methods are now
    added to the prototype that implements it.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/225>

 src/chatView.js  | 2 +-
 src/entryArea.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 31c9137c..222c7192 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -442,7 +442,7 @@ export default GObject.registerClass({
         this._originalUpper = this.vadjustment.get_upper();
 
         this._app = Gio.Application.get_default();
-        DropTargetIface.addTargets(this, this._view);
+        this.addTargets(this._view);
 
         this._roomFocusChangedId = this._app.connect('room-focus-changed',
             this._checkMessages.bind(this));
diff --git a/src/entryArea.js b/src/entryArea.js
index 9bec113e..3a6741cc 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -31,7 +31,7 @@ export const ChatEntry = GObject.registerClass({
     _init(params) {
         super._init(params);
 
-        DropTargetIface.addTargets(this, this);
+        this.addTargets(this);
 
         let app = Gio.Application.get_default();
         let action = app.lookup_action('show-emoji-picker');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]