[gnome-maps/wip/mlundblad/cleanup-gtk-deprecations] 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] placePopover: Stop using generic GtkContainer add and remove
- Date: Wed, 24 Mar 2021 22:15:52 +0000 (UTC)
commit 414de81151638c1fcb042314afbdb731d0a04f26
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]