aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view
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/conversation_content_view
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/conversation_content_view')
-rw-r--r--main/src/ui/conversation_content_view/call_widget.vala12
-rw-r--r--main/src/ui/conversation_content_view/conversation_item_skeleton.vala6
-rw-r--r--main/src/ui/conversation_content_view/conversation_view.vala20
-rw-r--r--main/src/ui/conversation_content_view/file_default_widget.vala12
-rw-r--r--main/src/ui/conversation_content_view/message_widget.vala10
5 files changed, 30 insertions, 30 deletions
diff --git a/main/src/ui/conversation_content_view/call_widget.vala b/main/src/ui/conversation_content_view/call_widget.vala
index 9667e475..62156761 100644
--- a/main/src/ui/conversation_content_view/call_widget.vala
+++ b/main/src/ui/conversation_content_view/call_widget.vala
@@ -27,12 +27,12 @@ namespace Dino.Ui {
[GtkTemplate (ui = "/im/dino/Dino/call_widget.ui")]
public class CallWidget : SizeRequestBox {
- [GtkChild] public Image image;
- [GtkChild] public Label title_label;
- [GtkChild] public Label subtitle_label;
- [GtkChild] public Revealer incoming_call_revealer;
- [GtkChild] public Button accept_call_button;
- [GtkChild] public Button reject_call_button;
+ [GtkChild] public unowned Image image;
+ [GtkChild] public unowned Label title_label;
+ [GtkChild] public unowned Label subtitle_label;
+ [GtkChild] public unowned Revealer incoming_call_revealer;
+ [GtkChild] public unowned Button accept_call_button;
+ [GtkChild] public unowned Button reject_call_button;
private StreamInteractor stream_interactor;
private Call call;
diff --git a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
index d6bf5089..b356d8cc 100644
--- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
+++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala
@@ -113,9 +113,9 @@ public class ConversationItemSkeleton : EventBox {
[GtkTemplate (ui = "/im/dino/Dino/conversation_content_view/item_metadata_header.ui")]
public class ItemMetaDataHeader : Box {
- [GtkChild] public Label name_label;
- [GtkChild] public Label dot_label;
- [GtkChild] public Label time_label;
+ [GtkChild] public unowned Label name_label;
+ [GtkChild] public unowned Label dot_label;
+ [GtkChild] public unowned Label time_label;
public Image received_image = new Image() { opacity=0.4 };
public Widget? encryption_image = null;
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala
index 9eb18cfd..d6cbed62 100644
--- a/main/src/ui/conversation_content_view/conversation_view.vala
+++ b/main/src/ui/conversation_content_view/conversation_view.vala
@@ -12,16 +12,16 @@ public class ConversationView : Box, Plugins.ConversationItemCollection, Plugins
public Conversation? conversation { get; private set; }
- [GtkChild] public ScrolledWindow scrolled;
- [GtkChild] private Revealer notification_revealer;
- [GtkChild] private Box message_menu_box;
- [GtkChild] private Button button1;
- [GtkChild] private Image button1_icon;
- [GtkChild] private Box notifications;
- [GtkChild] private Box main;
- [GtkChild] private EventBox main_event_box;
- [GtkChild] private EventBox main_wrap_event_box;
- [GtkChild] private Stack stack;
+ [GtkChild] public unowned ScrolledWindow scrolled;
+ [GtkChild] private unowned Revealer notification_revealer;
+ [GtkChild] private unowned Box message_menu_box;
+ [GtkChild] private unowned Button button1;
+ [GtkChild] private unowned Image button1_icon;
+ [GtkChild] private unowned Box notifications;
+ [GtkChild] private unowned Box main;
+ [GtkChild] private unowned EventBox main_event_box;
+ [GtkChild] private unowned EventBox main_wrap_event_box;
+ [GtkChild] private unowned Stack stack;
private StreamInteractor stream_interactor;
private Gee.TreeSet<Plugins.MetaConversationItem> content_items = new Gee.TreeSet<Plugins.MetaConversationItem>(compare_meta_items);
diff --git a/main/src/ui/conversation_content_view/file_default_widget.vala b/main/src/ui/conversation_content_view/file_default_widget.vala
index 33b8f8a7..892c7ba2 100644
--- a/main/src/ui/conversation_content_view/file_default_widget.vala
+++ b/main/src/ui/conversation_content_view/file_default_widget.vala
@@ -9,12 +9,12 @@ namespace Dino.Ui {
[GtkTemplate (ui = "/im/dino/Dino/file_default_widget.ui")]
public class FileDefaultWidget : EventBox {
- [GtkChild] public Stack image_stack;
- [GtkChild] public Label name_label;
- [GtkChild] public Label mime_label;
- [GtkChild] public Image content_type_image;
- [GtkChild] public Spinner spinner;
- [GtkChild] public EventBox stack_event_box;
+ [GtkChild] public unowned Stack image_stack;
+ [GtkChild] public unowned Label name_label;
+ [GtkChild] public unowned Label mime_label;
+ [GtkChild] public unowned Image content_type_image;
+ [GtkChild] public unowned Spinner spinner;
+ [GtkChild] public unowned EventBox stack_event_box;
private FileTransfer.State state;
diff --git a/main/src/ui/conversation_content_view/message_widget.vala b/main/src/ui/conversation_content_view/message_widget.vala
index 93e48848..a2325797 100644
--- a/main/src/ui/conversation_content_view/message_widget.vala
+++ b/main/src/ui/conversation_content_view/message_widget.vala
@@ -271,11 +271,11 @@ public class MessageItemEditMode : Box {
public signal void cancelled();
public signal void send();
- [GtkChild] public MenuButton emoji_button;
- [GtkChild] public ChatTextView chat_text_view;
- [GtkChild] public Button cancel_button;
- [GtkChild] public Button send_button;
- [GtkChild] public Frame frame;
+ [GtkChild] public unowned MenuButton emoji_button;
+ [GtkChild] public unowned ChatTextView chat_text_view;
+ [GtkChild] public unowned Button cancel_button;
+ [GtkChild] public unowned Button send_button;
+ [GtkChild] public unowned Frame frame;
construct {
Util.force_css(frame, "* { border-radius: 3px; }");