diff --git a/shell/platform/linux/fl_binary_messenger.cc b/shell/platform/linux/fl_binary_messenger.cc index e817fd36225bab885f891ddbc459974e87fccc61..770ec76edb6fdceece307d6617d2addee1eada69 100644 --- a/shell/platform/linux/fl_binary_messenger.cc +++ b/shell/platform/linux/fl_binary_messenger.cc @@ -100,7 +100,8 @@ static void platform_message_handler_free(gpointer data) { g_free(self); } -static void engine_weak_notify_cb(gpointer user_data, GObject* object) { +static void engine_weak_notify_cb(gpointer user_data, + GObject* where_the_object_was) { FlBinaryMessenger* self = FL_BINARY_MESSENGER(user_data); self->engine = nullptr; diff --git a/shell/platform/linux/fl_engine.cc b/shell/platform/linux/fl_engine.cc index 6a53f914420179277450563dc1d40906e52ac3fe..40428edf4066bc0175f7d039ce64fb65f0ad17fe 100644 --- a/shell/platform/linux/fl_engine.cc +++ b/shell/platform/linux/fl_engine.cc @@ -152,7 +152,8 @@ static gboolean flutter_source_dispatch(GSource* source, } // Called when the engine is disposed. -static void engine_weak_notify_cb(gpointer user_data, GObject* object) { +static void engine_weak_notify_cb(gpointer user_data, + GObject* where_the_object_was) { FlutterSource* source = reinterpret_cast(user_data); source->engine = nullptr; g_source_destroy(reinterpret_cast(source)); diff --git a/shell/platform/linux/fl_mouse_cursor_plugin.cc b/shell/platform/linux/fl_mouse_cursor_plugin.cc index f00ea52d91b2b629001f1cd6b7b04ae8eca75c83..20154101d1b95b9349c0db49228bf450b0cf5e3e 100644 --- a/shell/platform/linux/fl_mouse_cursor_plugin.cc +++ b/shell/platform/linux/fl_mouse_cursor_plugin.cc @@ -140,8 +140,9 @@ static void method_call_cb(FlMethodChannel* channel, } } -static void view_weak_notify_cb(gpointer user_data, GObject* object) { - FlMouseCursorPlugin* self = FL_MOUSE_CURSOR_PLUGIN(object); +static void view_weak_notify_cb(gpointer user_data, + GObject* where_the_object_was) { + FlMouseCursorPlugin* self = FL_MOUSE_CURSOR_PLUGIN(user_data); self->view = nullptr; } diff --git a/shell/platform/linux/fl_plugin_registrar.cc b/shell/platform/linux/fl_plugin_registrar.cc index 9ca72258b6e7344b56cc902995e3392702a7bd3b..fd099d59bf75bea696c74295a925a1ee734bf622 100644 --- a/shell/platform/linux/fl_plugin_registrar.cc +++ b/shell/platform/linux/fl_plugin_registrar.cc @@ -22,7 +22,8 @@ G_MODULE_EXPORT GType fl_plugin_registrar_get_type(); G_DEFINE_TYPE(FlPluginRegistrar, fl_plugin_registrar, G_TYPE_OBJECT) -static void view_weak_notify_cb(gpointer user_data, GObject* object) { +static void view_weak_notify_cb(gpointer user_data, + GObject* where_the_object_was) { FlPluginRegistrar* self = FL_PLUGIN_REGISTRAR(user_data); self->view = nullptr; }