From 22e67d00902d4ded9ceea8fbc0f9b168c47a3f2e Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Fri, 22 Mar 2013 16:40:54 +0100 Subject: goa-mc-plugin: Fix deprecation warnings https://bugzilla.gnome.org/show_bug.cgi?id=696544 --- goa-mc-plugin/mcp-account-manager-goa.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c index 4b64e546d..41eb8f6eb 100644 --- a/goa-mc-plugin/mcp-account-manager-goa.c +++ b/goa-mc-plugin/mcp-account-manager-goa.c @@ -604,13 +604,12 @@ mcp_account_manager_goa_get_identifier (const McpAccountStorage *self, static void account_storage_iface_init (McpAccountStorageIface *iface) { - mcp_account_storage_iface_set_name (iface, PLUGIN_NAME); - mcp_account_storage_iface_set_desc (iface, PLUGIN_DESCRIPTION); - mcp_account_storage_iface_set_priority (iface, PLUGIN_PRIORITY); - mcp_account_storage_iface_set_provider (iface, PLUGIN_PROVIDER); + iface->name = PLUGIN_NAME; + iface->desc = PLUGIN_DESCRIPTION; + iface->priority = PLUGIN_PRIORITY; + iface->provider = PLUGIN_PROVIDER; -#define IMPLEMENT(x) mcp_account_storage_iface_implement_##x(iface, \ - mcp_account_manager_goa_##x) +#define IMPLEMENT(x) iface->x = mcp_account_manager_goa_##x IMPLEMENT (get); IMPLEMENT (list); IMPLEMENT (set); -- cgit v1.2.3