From 8948c4f645eb1c416b931a09bd24aad4e2ff3b99 Mon Sep 17 00:00:00 2001 From: Ryo Nakano Date: Sat, 12 Jul 2025 13:04:11 +0900 Subject: [PATCH] Fix some build warnings --- src/MainWindow.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 3e5fc74..c09f7e5 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -184,6 +184,7 @@ public class Atlas.MainWindow : Adw.ApplicationWindow { var search_entry_gesture = new Gtk.EventControllerKey (); search_entry_gesture.key_pressed.connect (() => { search_res_popover.popdown (); + return true; }); ((Gtk.Widget) search_res_popover).add_controller (search_entry_gesture); @@ -242,8 +243,8 @@ public class Atlas.MainWindow : Adw.ApplicationWindow { Util.map_source_action_transform_to_cb, Util.map_source_action_transform_from_cb); Application.settings.bind_with_mapping ("map-source", map_widget, "map-source", SettingsBindFlags.DEFAULT, - Util.map_source_get_mapping_cb, - Util.map_source_set_mapping_cb, + (SettingsBindGetMappingShared) Util.map_source_get_mapping_cb, + (SettingsBindSetMappingShared) Util.map_source_set_mapping_cb, null, null); add_action (map_source_action); }