diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-04 00:08:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-04 01:29:20 +0800 |
commit | 9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1 (patch) | |
tree | aa1d53c8cedef6dc09455fbadd4b63216f9b7228 /modules/calendar/e-cal-shell-sidebar.c | |
parent | c9c3c3be92f3dbf133a5b1b42fb55905a1060d0e (diff) | |
download | gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.gz gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.tar.zst gsoc2013-evolution-9675f18d915fcbae59dd4b32b8a2ff36b3d27cc1.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/calendar/e-cal-shell-sidebar.c')
-rw-r--r-- | modules/calendar/e-cal-shell-sidebar.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c index 3ae662a82f..61f2f639c9 100644 --- a/modules/calendar/e-cal-shell-sidebar.c +++ b/modules/calendar/e-cal-shell-sidebar.c @@ -148,16 +148,16 @@ cal_shell_sidebar_backend_error_cb (ECalShellSidebar *cal_shell_sidebar, EShellView *shell_view; EShellWindow *shell_window; EShellSidebar *shell_sidebar; + ESourceGroup *source_group; + ESource *source; GtkWidget *dialog; - const gchar *cal_name; - const gchar *cal_group; shell_sidebar = E_SHELL_SIDEBAR (cal_shell_sidebar); shell_view = e_shell_sidebar_get_shell_view (shell_sidebar); shell_window = e_shell_view_get_shell_window (shell_view); - cal_name = e_source_peek_name ( e_cal_get_source ( client )); - cal_group = e_source_group_peek_name ( e_source_peek_group( e_cal_get_source ( client))); + source = e_cal_get_source (client); + source_group = e_source_peek_group (source); /* Translators: This string is displayed in a message dialog when * our connection to the calendar service detects an @@ -170,7 +170,8 @@ cal_shell_sidebar_backend_error_cb (ECalShellSidebar *cal_shell_sidebar, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("Error on %s: %s\n%s"), - cal_group, cal_name, message); + e_source_group_peek_name (source_group), + e_source_peek_name (source), message); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); |