diff --git a/src/connection-editor/connection-helpers.c b/src/connection-editor/connection-helpers.c index 502bf6c4e8de2e0c7780d2438bf5dec5a89fcd9b..4c1ed035dcd8e8eb0ab64123d61ebcf070d84cc4 100644 --- a/src/connection-editor/connection-helpers.c +++ b/src/connection-editor/connection-helpers.c @@ -732,7 +732,7 @@ delete_cb (GObject *connection, g_clear_error (&error); if (result_func) - (*result_func) (NM_REMOTE_CONNECTION (connection), error == NULL, user_data); + (*result_func) (FUNC_TAG_DELETE_CONNECTION_RESULT_CALL, NM_REMOTE_CONNECTION (connection), error == NULL, user_data); } void diff --git a/src/connection-editor/connection-helpers.h b/src/connection-editor/connection-helpers.h index 90f5265ecf08b354f292f383b0627e18a4a77403..05640b5930597ee9d75df9f9d6db69cc06013cbb 100644 --- a/src/connection-editor/connection-helpers.h +++ b/src/connection-editor/connection-helpers.h @@ -66,7 +66,11 @@ void new_connection_of_type (GtkWindow *parent_window, NewConnectionResultFunc result_func, gpointer user_data); -typedef void (*DeleteConnectionResultFunc) (NMRemoteConnection *connection, +struct _func_tag_delete_connection_result; +#define FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL struct _func_tag_delete_connection_result *_dummy +#define FUNC_TAG_DELETE_CONNECTION_RESULT_CALL ((struct _func_tag_delete_connection_result *) NULL) +typedef void (*DeleteConnectionResultFunc) (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL, + NMRemoteConnection *connection, gboolean deleted, gpointer user_data); diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c index 4b7f759feedd212e6cd0970539a050c2a0566171..f391df014b687fa55e270db9d218bbcd39039a0c 100644 --- a/src/connection-editor/nm-connection-list.c +++ b/src/connection-editor/nm-connection-list.c @@ -359,7 +359,10 @@ do_edit (NMConnectionList *list) } static void -delete_connection_cb (NMRemoteConnection *connection, gboolean deleted, gpointer user_data) +delete_connection_cb (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL, + NMRemoteConnection *connection, + gboolean deleted, + gpointer user_data) { NMConnectionList *list = user_data; diff --git a/src/connection-editor/page-master.c b/src/connection-editor/page-master.c index eba7482c9bbe85f7311845688d77e62dcf2fc786..591feece35da78d00eee0e14efb6a61bad37131d 100644 --- a/src/connection-editor/page-master.c +++ b/src/connection-editor/page-master.c @@ -485,7 +485,8 @@ connection_double_clicked_cb (GtkTreeView *tree_view, } static void -delete_result_cb (NMRemoteConnection *connection, +delete_result_cb (FUNC_TAG_DELETE_CONNECTION_RESULT_IMPL, + NMRemoteConnection *connection, gboolean deleted, gpointer user_data) {