aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_content_view
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-10-07 14:29:26 +0200
committerfiaxh <git@lightrise.org>2023-10-07 14:34:23 +0200
commit1e167eeea67f18f3d5788dc34d97d94e6f401499 (patch)
treedf73a70a25fb02d7a2e70623b3ab5ecbe86ced53 /main/src/ui/conversation_content_view
parent0c45387bf903e5b0d02502d27642dd2a78aa6539 (diff)
downloaddino-1e167eeea67f18f3d5788dc34d97d94e6f401499.tar.gz
dino-1e167eeea67f18f3d5788dc34d97d94e6f401499.zip
Fix some compiler warnings
Diffstat (limited to 'main/src/ui/conversation_content_view')
-rw-r--r--main/src/ui/conversation_content_view/conversation_view.vala2
-rw-r--r--main/src/ui/conversation_content_view/file_image_widget.vala1
2 files changed, 1 insertions, 2 deletions
diff --git a/main/src/ui/conversation_content_view/conversation_view.vala b/main/src/ui/conversation_content_view/conversation_view.vala
index 4006a02f..33cb3b22 100644
--- a/main/src/ui/conversation_content_view/conversation_view.vala
+++ b/main/src/ui/conversation_content_view/conversation_view.vala
@@ -329,7 +329,7 @@ public class ConversationView : Widget, Plugins.ConversationItemCollection, Plug
do_insert_item(item);
}
ContentMetaItem meta_item = content_populator.get_content_meta_item(content_item);
- Widget w = insert_new(meta_item);
+ insert_new(meta_item);
content_items.add(meta_item);
meta_items.add(meta_item);
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 43c3b74d..a3579185 100644
--- a/main/src/ui/conversation_content_view/file_image_widget.vala
+++ b/main/src/ui/conversation_content_view/file_image_widget.vala
@@ -45,7 +45,6 @@ public class FileImageWidget : Box {
image.add_controller(gesture_click_controller);
FileInfo file_info = file.query_info("*", FileQueryInfoFlags.NONE);
- string? mime_type = file_info.get_content_type();
MenuButton button = new MenuButton();
button.icon_name = "view-more";