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 | |
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')
-rw-r--r-- | addressbook/util/addressbook.c | 29 | ||||
-rw-r--r-- | addressbook/util/eab-book-util.c | 2 |
2 files changed, 18 insertions, 13 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"); diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c index 2b1966684e..a1827d3cc9 100644 --- a/addressbook/util/eab-book-util.c +++ b/addressbook/util/eab-book-util.c @@ -48,7 +48,7 @@ escape (const gchar *str) else g_string_append_c (s, *p); - p ++; + p++; } return g_string_free (s, FALSE); |