[gnome-maps/wip/mlundblad/cleanup-gtk-deprecations: 3/8] placePopover: Stop using generic GtkContainer add and remove
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/cleanup-gtk-deprecations: 3/8] placePopover: Stop using generic GtkContainer add and remove
- Date: Fri, 26 Mar 2021 21:43:35 +0000 (UTC)
commit c2385080375284dbcbf4a043c128993b8333580d
Author: Marcus Lundblad <ml update uu se>
Date: Wed Mar 24 23:14:21 2021 +0100
placePopover: Stop using generic GtkContainer add and remove
In preparation for GTK 4 use class-specific methods
to add and remove children when possible.
src/placePopover.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/placePopover.js b/src/placePopover.js
index 72917423..4a0f0d63 100644
--- a/src/placePopover.js
+++ b/src/placePopover.js
@@ -128,7 +128,7 @@ var PlacePopover = GObject.registerClass({
let row = this._list.get_row_at_index(i);
while (row) {
- row.destroy();
+ this._list.remove(row);
row = this._list.get_row_at_index(i);
}
}
@@ -138,6 +138,6 @@ var PlacePopover = GObject.registerClass({
searchString: searchString,
type: type,
can_focus: true });
- this._list.add(row);
+ this._list.insert(row, -1);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]