diff options
author | Dan Williams <dcbw@redhat.com> | 2009-08-11 14:12:48 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-08-11 14:12:48 -0500 |
commit | d26b436d9e6be3fa19ad7241dc79192076e65d14 (patch) | |
tree | 91b2bc8e36a877345c88a13bea1f3bad0430407e /src/system-settings | |
parent | cb0303180dfafa9f0cd41e0d7f1f5e4639bd30ed (diff) |
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.
Diffstat (limited to 'src/system-settings')
-rw-r--r-- | src/system-settings/nm-sysconfig-settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system-settings/nm-sysconfig-settings.c b/src/system-settings/nm-sysconfig-settings.c index ceef21b36d..7b9d923776 100644 --- a/src/system-settings/nm-sysconfig-settings.c +++ b/src/system-settings/nm-sysconfig-settings.c @@ -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, |