Changeset 1918
- Timestamp:
- 05/08/07 18:03:00
- Files:
-
- trunk/libtinymail-camel/tny-session-camel.c (modified) (5 diffs)
- trunk/libtinymail-gnome-desktop/tny-gnome-account-store.c (modified) (1 diff)
- trunk/libtinymail/tny-enums.h (modified) (2 diffs)
- trunk/libtinymail/tny-error.c (modified) (1 diff)
- trunk/libtinymail/tny-error.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libtinymail-camel/tny-session-camel.c
r1911 r1918 24 24 #include <stdlib.h> 25 25 #include <string.h> 26 27 #include <tny-error.h> 26 28 27 29 #include <glib.h> … … 170 172 171 173 static gboolean 172 tny_session_camel_alert_user (CamelSession *session, CamelSessionAlertType type, const GError *error, gboolean cancel)174 tny_session_camel_alert_user (CamelSession *session, CamelSessionAlertType type, const char *msg, gboolean cancel) 173 175 { 174 176 TnySessionCamel *self = (TnySessionCamel *)session; … … 176 178 GThread *thread; gboolean inf; 177 179 gboolean retval = FALSE; 180 GError *err = NULL; 178 181 179 182 if (priv->account_store) … … 196 199 } 197 200 201 g_set_error (&err, TNY_ACCOUNT_STORE_ERROR, 202 TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT, msg); 203 198 204 tny_lockable_lock (self->priv->ui_lock); 205 199 206 retval = tny_account_store_alert ( 200 207 (TnyAccountStore*) self->priv->account_store, 201 tnytype, error); 208 tnytype, (const GError *) err); 209 202 210 tny_lockable_unlock (self->priv->ui_lock); 211 212 g_error_free (err); 203 213 } 204 214 … … 415 425 if (err != NULL) 416 426 { 417 tny_session_camel_alert_user (session, CAMEL_SESSION_ALERT_ERROR, err , FALSE);427 tny_session_camel_alert_user (session, CAMEL_SESSION_ALERT_ERROR, err->message, FALSE); 418 428 g_error_free (err); 419 429 } trunk/libtinymail-gnome-desktop/tny-gnome-account-store.c
r1911 r1918 121 121 122 122 dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, 123 gtktype, GTK_BUTTONS_YES_NO, prompt);123 gtktype, GTK_BUTTONS_YES_NO, error->message); 124 124 125 125 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES) trunk/libtinymail/tny-enums.h
r1884 r1918 42 42 TNY_FOLDER_STORE_ERROR = 2, 43 43 TNY_TRANSPORT_ACCOUNT_ERROR = 3, 44 TNY_ACCOUNT_ERROR = 4 44 TNY_ACCOUNT_ERROR = 4, 45 TNY_ACCOUNT_STORE_ERROR = 5 45 46 } TnyErrorDomain; 46 47 … … 62 63 TNY_TRANSPORT_ACCOUNT_ERROR_SEND = 13, 63 64 64 TNY_ACCOUNT_ERROR_TRY_CONNECT = 14 65 TNY_ACCOUNT_ERROR_TRY_CONNECT = 14, 66 TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT = 15 65 67 } TnyError; 66 68 trunk/libtinymail/tny-error.c
r1866 r1918 75 75 76 76 { TNY_ACCOUNT_ERROR_TRY_CONNECT, "TNY_ACCOUNT_ERROR_TRY_CONNECT", "account_error_try_connect" }, 77 { TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT, "TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT", "account_store_error_unknown_alert" }, 77 78 78 79 { 0, NULL, NULL } trunk/libtinymail/tny-error.h
r1855 r1918 33 33 TNY_TRANSPORT_ACCOUNT_ERROR = 3, 34 34 TNY_ACCOUNT_ERROR = 4, 35 TNY_ACCOUNT_STORE_ERROR = 5 35 36 }; 36 37 … … 57 58 58 59 TNY_ACCOUNT_ERROR_TRY_CONNECT = 14, 60 61 TNY_ACCOUNT_STORE_ERROR_UNKNOWN_ALERT = 15 59 62 }; 60 63
