From 8d8dcf5af67ad89c328e67dc2c3469ef90283d9a Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 11 Oct 2021 23:08:50 +0200 Subject: Fix compiler warnings ('[GtkChild] fields must be declared as `unowned'') --- main/src/ui/occupant_menu/list.vala | 4 ++-- main/src/ui/occupant_menu/list_row.vala | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'main/src/ui/occupant_menu') diff --git a/main/src/ui/occupant_menu/list.vala b/main/src/ui/occupant_menu/list.vala index 960b716b..fcb039d7 100644 --- a/main/src/ui/occupant_menu/list.vala +++ b/main/src/ui/occupant_menu/list.vala @@ -12,8 +12,8 @@ public class List : Box { public signal void conversation_selected(Conversation? conversation); private StreamInteractor stream_interactor; - [GtkChild] public ListBox list_box; - [GtkChild] private SearchEntry search_entry; + [GtkChild] public unowned ListBox list_box; + [GtkChild] private unowned SearchEntry search_entry; private Conversation conversation; private string[]? filter_values; diff --git a/main/src/ui/occupant_menu/list_row.vala b/main/src/ui/occupant_menu/list_row.vala index 92fff32f..e0fb3f14 100644 --- a/main/src/ui/occupant_menu/list_row.vala +++ b/main/src/ui/occupant_menu/list_row.vala @@ -8,8 +8,8 @@ namespace Dino.Ui.OccupantMenu { [GtkTemplate (ui = "/im/dino/Dino/occupant_list_item.ui")] public class ListRow : ListBoxRow { - [GtkChild] private AvatarImage image; - [GtkChild] public Label name_label; + [GtkChild] private unowned AvatarImage image; + [GtkChild] public unowned Label name_label; public Conversation? conversation; public Jid? jid; -- cgit v1.2.3-70-g09d2