diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-01-31 01:20:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-01-31 01:45:55 +0800 |
commit | 763081aa862908e845bc780b784d939a07abd508 (patch) | |
tree | 1a060b3cc1ae28e915348939cbbcdd28416a13b5 /calendar/gui/dialogs/event-page.c | |
parent | 0ff254b3a8946244b645f2ea74316926aa109ab6 (diff) | |
download | gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.gz gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.bz2 gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.lz gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.xz gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.tar.zst gsoc2013-evolution-763081aa862908e845bc780b784d939a07abd508.zip |
Fix up error handling around e_book/cal_client_connect_finish().
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 6850a3b151..a65da3469b 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -3016,13 +3016,9 @@ epage_client_connect_cb (GObject *source_object, if (error) { GtkWidget *dialog; ECalClient *old_client; - ESource *source; old_client = comp_editor_get_client (editor); - source = e_source_combo_box_ref_active ( - E_SOURCE_COMBO_BOX (priv->source_combo_box)); - e_source_combo_box_set_active ( E_SOURCE_COMBO_BOX (priv->source_combo_box), e_client_get_source (E_CLIENT (old_client))); @@ -3030,14 +3026,10 @@ epage_client_connect_cb (GObject *source_object, dialog = gtk_message_dialog_new ( NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, - _("Unable to open the calendar '%s': %s"), - e_source_get_display_name (source), - error->message); + "%s", error->message); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); - g_object_unref (source); - g_clear_error (&error); } else { gchar *backend_addr = NULL; |