From fdc6d9f8d4b58b087ddef07cd27d0cdcd76ba939 Mon Sep 17 00:00:00 2001 From: Marcus Lundblad Date: Fri, 21 Apr 2023 08:42:06 +0200 Subject: sendToDialog: Unbreak OpenWithRows Port the missing OpenWithRow to GTK4, this was broken since the GTK4 port, causing the dialog to not work when there are installed apps supporting geo: (and Maps running as non-Flatpak). --- data/ui/open-with-row.ui | 19 ++++++++----------- src/sendToDialog.js | 6 ++---- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/data/ui/open-with-row.ui b/data/ui/open-with-row.ui index d236a2a8..f56afa4a 100644 --- a/data/ui/open-with-row.ui +++ b/data/ui/open-with-row.ui @@ -1,29 +1,26 @@ - + + diff --git a/src/sendToDialog.js b/src/sendToDialog.js index 549d2f54..9996e200 100644 --- a/src/sendToDialog.js +++ b/src/sendToDialog.js @@ -246,12 +246,10 @@ GObject.registerClass({ }, SendToDialog); export class OpenWithRow extends Gtk.ListBoxRow { - constructor(params) { - let appinfo = params.appinfo; - delete params.appinfo; - + constructor({ appinfo, ...params }) { super(params); + this.appinfo = appinfo; this._label.label = _("Open with %s").format(appinfo.get_name()); this._icon.gicon = appinfo.get_icon(); } -- cgit v1.2.1