diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-06-13 22:27:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-06-14 01:35:56 +0800 |
commit | c2e71bd88d6a75e93aaef8f01868a6c4e71a4833 (patch) | |
tree | 6c154442b094af6e05f135cb03fa36cddec6fa2d /modules | |
parent | 50226747edf06420597ba32edf46bb36cbfb0b2b (diff) | |
download | gsoc2013-evolution-c2e71bd88d6a75e93aaef8f01868a6c4e71a4833.tar.gz gsoc2013-evolution-c2e71bd88d6a75e93aaef8f01868a6c4e71a4833.tar.zst gsoc2013-evolution-c2e71bd88d6a75e93aaef8f01868a6c4e71a4833.zip |
Coding style and whitespace cleanups.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/addressbook/e-book-shell-view-actions.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c index c558fff131..029bdd783d 100644 --- a/modules/addressbook/e-book-shell-view-actions.c +++ b/modules/addressbook/e-book-shell-view-actions.c @@ -242,9 +242,9 @@ contact_editor_contact_modified_cb (EABEditor *editor, static void map_window_show_contact_editor_cb (EContactMapWindow *window, const gchar *contact_uid, - gpointer user_data) + gpointer user_data) { - EShell *shell = e_shell_get_default(); + EShell *shell = e_shell_get_default (); EBookShellView *book_shell_view = user_data; EBookShellSidebar *book_shell_sidebar; ESource *source; @@ -294,21 +294,21 @@ action_address_book_map_cb (GtkAction *action, { #ifdef WITH_CONTACT_MAPS EContactMapWindow *map_window; - EBookShellSidebar *book_shell_sidebar; - ESource *source; - ESourceSelector *selector; - EBook *book; - GError *error = NULL; - - book_shell_sidebar = book_shell_view->priv->book_shell_sidebar; - selector = e_book_shell_sidebar_get_selector (book_shell_sidebar); - source = e_source_selector_get_primary_selection (selector); - - g_return_if_fail (source != NULL); - book = e_book_new (source, &error); - if (error != NULL) { + EBookShellSidebar *book_shell_sidebar; + ESource *source; + ESourceSelector *selector; + EBook *book; + GError *error = NULL; + + book_shell_sidebar = book_shell_view->priv->book_shell_sidebar; + selector = e_book_shell_sidebar_get_selector (book_shell_sidebar); + source = e_source_selector_get_primary_selection (selector); + + g_return_if_fail (source != NULL); + book = e_book_new (source, &error); + if (error != NULL) { g_warning ("Error loading addressbook: %s", error->message); - g_error_free (error); + g_error_free (error); return; } |