From 4d7809bb12199a598b531ca3ca019a4bb5a867f7 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 26 Nov 2022 22:26:25 +0100 Subject: Fix compiler warnings --- main/src/ui/conversation_content_view/conversation_item_skeleton.vala | 3 +++ main/src/ui/conversation_content_view/conversation_view.vala | 2 -- main/src/ui/conversation_content_view/file_image_widget.vala | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui/conversation_content_view') 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 21aca876..7113b3b7 100644 --- a/main/src/ui/conversation_content_view/conversation_item_skeleton.vala +++ b/main/src/ui/conversation_content_view/conversation_item_skeleton.vala @@ -43,6 +43,9 @@ public class ConversationItemSkeleton : Plugins.ConversationItemWidgetInterface, this.item = item; this.content_meta_item = item as ContentMetaItem; + item.bind_property("in-edit-mode", this, "item-in-edit-mode"); + this.notify["item-in-edit-mode"].connect(update_edit_mode); + Builder builder = new Builder.from_resource("/im/dino/Dino/conversation_item_widget.ui"); main_grid = (Grid) builder.get_object("main_grid"); main_grid.add_css_class("message-box"); diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala index caeee09a..f0f6e118 100644 --- a/main/src/ui/conversation_content_view/conversation_view.vala +++ b/main/src/ui/conversation_content_view/conversation_view.vala @@ -136,7 +136,6 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug // Get widget under pointer int h = 0; Widget? w = null; - Plugins.MetaConversationItem? meta_item = null; foreach (Plugins.MetaConversationItem item in meta_items) { Widget widget = widgets[item]; h += widget.get_allocated_height() + widget.margin_top + widget.margin_bottom; @@ -404,7 +403,6 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug if (lower_item != null) { if (can_merge(item, lower_item)) { - ConversationItemSkeleton lower_skeleton = item_item_skeletons[lower_item]; item_skeleton.show_skeleton = false; } else { item_skeleton.show_skeleton = true; diff --git a/main/src/ui/conversation_content_view/file_image_widget.vala b/main/src/ui/conversation_content_view/file_image_widget.vala index 285e397e..097ac695 100644 --- a/main/src/ui/conversation_content_view/file_image_widget.vala +++ b/main/src/ui/conversation_content_view/file_image_widget.vala @@ -35,7 +35,6 @@ public class FileImageWidget : Box { pixbuf = pixbuf.apply_embedded_orientation(); image.load(pixbuf); - Picture picture = new Picture.for_pixbuf(pixbuf) { can_shrink=true, keep_aspect_ratio=true, halign=Align.START }; Idle.add(load_from_file.callback); return image; -- cgit v1.2.3-70-g09d2