libnm-glib: NMSettingsInterface::add_connection() should take an NMConnection

instead of an NMSettingsConnectionInterface, because we won't always have an
object that implements NMSettingsConnectionInterface.  Plus, since NMConnection
is a prerequisite of NMSettingsConnectionInterface, the NMConnection will
always be there anyway.
This commit is contained in:
Dan Williams
2009-08-11 14:12:48 -05:00
parent cb0303180d
commit d26b436d9e
6 changed files with 12 additions and 12 deletions

View File

@@ -643,7 +643,7 @@ out:
static void
add_connection (NMSettingsService *service,
NMSettingsConnectionInterface *connection,
NMConnection *connection,
DBusGMethodInvocation *context, /* Only present for D-Bus calls */
NMSettingsAddConnectionFunc callback,
gpointer user_data)
@@ -663,7 +663,7 @@ add_connection (NMSettingsService *service,
return;
}
call = polkit_call_new (self, context, NM_CONNECTION (connection), callback, user_data, NULL);
call = polkit_call_new (self, context, connection, callback, user_data, NULL);
g_assert (call);
polkit_authority_check_authorization (priv->authority,
call->subject,