diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-11 23:31:15 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-12 10:25:06 +0800 |
commit | eb29179da623f9cf4abd663577395a085452ca18 (patch) | |
tree | a7eec4690f254d4cb9048ca87a5e7f401a2e74ae /addressbook/util/addressbook.c | |
parent | beb8e74577f695d0d3c2efea52dc10c2136f0135 (diff) | |
download | gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar.gz gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar.bz2 gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar.lz gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar.xz gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.tar.zst gsoc2013-evolution-eb29179da623f9cf4abd663577395a085452ca18.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'addressbook/util/addressbook.c')
-rw-r--r-- | addressbook/util/addressbook.c | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/addressbook/util/addressbook.c b/addressbook/util/addressbook.c index 2185434d00..10ec1a5b26 100644 --- a/addressbook/util/addressbook.c +++ b/addressbook/util/addressbook.c @@ -96,27 +96,32 @@ load_source_auth_cb (EBook *book, const GError *error, gpointer closure) so that it wil valid for other servers which provide anonymous access*/ - dialog = gtk_message_dialog_new (NULL, - 0, - GTK_MESSAGE_WARNING, - GTK_BUTTONS_OK, - "%s", _("Accessing LDAP Server anonymously")); - g_signal_connect (dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL); + dialog = gtk_message_dialog_new ( + NULL, 0, + GTK_MESSAGE_WARNING, + GTK_BUTTONS_OK, + "%s", _("Accessing LDAP Server anonymously")); + g_signal_connect ( + dialog, "response", + G_CALLBACK(gtk_widget_destroy), NULL); gtk_widget_show (dialog); error = NULL; goto done; } - } else if (g_error_matches (error, E_BOOK_ERROR, E_BOOK_ERROR_INVALID_SERVER_VERSION)) { - e_alert_run_dialog_for_args (e_shell_get_active_window (NULL), - "addressbook:server-version", - NULL); + } else if (g_error_matches (error, E_BOOK_ERROR, + E_BOOK_ERROR_INVALID_SERVER_VERSION)) { + e_alert_run_dialog_for_args ( + e_shell_get_active_window (NULL), + "addressbook:server-version", NULL); error = NULL; goto done; - } else if (g_error_matches (error, E_BOOK_ERROR, E_BOOK_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD)) { + } else if (g_error_matches (error, E_BOOK_ERROR, + E_BOOK_ERROR_UNSUPPORTED_AUTHENTICATION_METHOD)) { goto done; } else { - if (g_error_matches (error, E_BOOK_ERROR, E_BOOK_ERROR_AUTHENTICATION_FAILED)) { + if (g_error_matches (error, E_BOOK_ERROR, + E_BOOK_ERROR_AUTHENTICATION_FAILED)) { const gchar *uri = e_book_get_uri (book); gchar *stripped_uri = remove_parameters_from_uri (uri); const gchar *auth_domain = e_source_get_property (data->source, "auth-domain"); |