[gnome-maps/wip/mlundblad/cleanup-gtk-deprecations] favoritesPopover: Stop using generic GtkContainer add method
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/cleanup-gtk-deprecations] favoritesPopover: Stop using generic GtkContainer add method
- Date: Wed, 24 Mar 2021 20:52:50 +0000 (UTC)
commit daa30bc3caea51d6800aa41981fc55f1cd3de588
Author: Marcus Lundblad <ml update uu se>
Date: Wed Mar 24 21:51:53 2021 +0100
favoritesPopover: Stop using generic GtkContainer add method
In preparation for GTK 4 use class-specific methods
to add and remove children when possible.
src/favoritesPopover.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/favoritesPopover.js b/src/favoritesPopover.js
index 097864ba..097c1e58 100644
--- a/src/favoritesPopover.js
+++ b/src/favoritesPopover.js
@@ -111,7 +111,7 @@ var FavoritesPopover = GObject.registerClass({
let row = new PlaceListRow.PlaceListRow({ place: place,
can_focus: true });
- this._list.add(row);
+ this._list.insert(row, -1);
rows++;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]