aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/occupant_menu
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-10-11 23:08:50 +0200
committerfiaxh <git@lightrise.org>2021-10-12 17:58:18 +0200
commit8d8dcf5af67ad89c328e67dc2c3469ef90283d9a (patch)
treebb4f055a17e5ef0d1f896b3eeb7522c639fc58fd /main/src/ui/occupant_menu
parentc85945ae26cab7eb65c67dbe49ebbf668a028b1c (diff)
downloaddino-8d8dcf5af67ad89c328e67dc2c3469ef90283d9a.tar.gz
dino-8d8dcf5af67ad89c328e67dc2c3469ef90283d9a.zip
Fix compiler warnings ('[GtkChild] fields must be declared as `unowned'')
Diffstat (limited to 'main/src/ui/occupant_menu')
-rw-r--r--main/src/ui/occupant_menu/list.vala4
-rw-r--r--main/src/ui/occupant_menu/list_row.vala4
2 files changed, 4 insertions, 4 deletions
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;