aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/memo-page.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-31 01:20:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-01-31 01:45:55 +0800
commit763081aa862908e845bc780b784d939a07abd508 (patch)
tree1a060b3cc1ae28e915348939cbbcdd28416a13b5 /calendar/gui/dialogs/memo-page.c
parent0ff254b3a8946244b645f2ea74316926aa109ab6 (diff)
downloadgsoc2013-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/memo-page.c')
-rw-r--r--calendar/gui/dialogs/memo-page.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index a93068cb14..54de19e954 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -970,13 +970,9 @@ mpage_client_connect_cb (GObject *source_object,
if (error != NULL) {
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)));
@@ -984,14 +980,10 @@ mpage_client_connect_cb (GObject *source_object,
dialog = gtk_message_dialog_new (
NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
- _("Unable to open memos in '%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 {
icaltimezone *zone;