]> git.0d.be Git - empathy.git/commitdiff
keyring: allow set and delete password to have NULL callbacks
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Mon, 6 Dec 2010 12:28:13 +0000 (12:28 +0000)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Mon, 6 Dec 2010 12:28:13 +0000 (12:28 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
libempathy/empathy-keyring.c

index 55ddd1f697de1756f8e5323874092fa2e7533209..f3d523e54757461cfee4cbe24dd31610458d283a 100644 (file)
@@ -145,7 +145,6 @@ empathy_keyring_set_password_async (TpAccount *account,
 
   g_return_if_fail (TP_IS_ACCOUNT (account));
   g_return_if_fail (password != NULL);
-  g_return_if_fail (callback != NULL);
 
   simple = g_simple_async_result_new (G_OBJECT (account), callback,
       user_data, empathy_keyring_set_password_async);
@@ -243,7 +242,6 @@ empathy_keyring_delete_password_async (TpAccount *account,
   const gchar *account_id;
 
   g_return_if_fail (TP_IS_ACCOUNT (account));
-  g_return_if_fail (callback != NULL);
 
   simple = g_simple_async_result_new (G_OBJECT (account), callback,
       user_data, empathy_keyring_delete_password_async);