diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-11-25 08:11:23 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 03:32:22 +0800 |
commit | 68d3608b81c2a980cd13352badfcfcfe59477c94 (patch) | |
tree | 1ba82b47176beb0e8ac0e3d104b087be7019dacd /plugins/groupwise-features | |
parent | 463aff5ebbf259490072a5dc01b55fbccffb9a39 (diff) | |
download | gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar.gz gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar.bz2 gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar.lz gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar.xz gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.tar.zst gsoc2013-evolution-68d3608b81c2a980cd13352badfcfcfe59477c94.zip |
port plugins to use new EError API
https://bugzilla.gnome.org/show_bug.cgi?id=602963
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r-- | plugins/groupwise-features/camel-gw-listener.c | 7 | ||||
-rw-r--r-- | plugins/groupwise-features/mail-retract.c | 4 | ||||
-rw-r--r-- | plugins/groupwise-features/process-meeting.c | 10 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy-login.c | 12 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy.c | 16 | ||||
-rw-r--r-- | plugins/groupwise-features/share-folder.c | 7 |
6 files changed, 41 insertions, 15 deletions
diff --git a/plugins/groupwise-features/camel-gw-listener.c b/plugins/groupwise-features/camel-gw-listener.c index 52b37fc92a..27bd49e36c 100644 --- a/plugins/groupwise-features/camel-gw-listener.c +++ b/plugins/groupwise-features/camel-gw-listener.c @@ -542,7 +542,9 @@ get_addressbook_names_from_server (gchar *source_url) /*FIXME: This error message should be relocated to addressbook and should reflect * that it actually failed to get the addressbooks*/ - e_error_run (e_shell_get_active_window (NULL), "mail:gw-accountsetup-error", poa_address, NULL); + e_error_run_dialog_for_args (e_shell_get_active_window (NULL), + "mail:gw-accountsetup-error", poa_address, + NULL); return NULL; } @@ -654,7 +656,8 @@ add_addressbook_sources (EAccount *account) if (!is_frequent_contacts) { /* display warning message */ - e_error_run (e_shell_get_active_window (NULL), "addressbook:gw-book-list-init", NULL); + e_error_run_dialog_for_args (e_shell_get_active_window (NULL), + "addressbook:gw-book-list-init", NULL); } return TRUE; } diff --git a/plugins/groupwise-features/mail-retract.c b/plugins/groupwise-features/mail-retract.c index 1de2dfdead..cffc371454 100644 --- a/plugins/groupwise-features/mail-retract.c +++ b/plugins/groupwise-features/mail-retract.c @@ -100,7 +100,9 @@ gw_retract_mail_cb (GtkAction *action, EShellView *shell_view) if (n == GTK_RESPONSE_YES) { if (e_gw_connection_retract_request (cnc, id, NULL, FALSE, FALSE) != E_GW_CONNECTION_STATUS_OK ) - e_error_run (GTK_WINDOW (e_shell_view_get_shell_window (shell_view)), "org.gnome.evolution.message.retract:retract-failure", NULL); + e_error_run_dialog_for_args (GTK_WINDOW (e_shell_view_get_shell_window (shell_view)), + "org.gnome.evolution.message.retract:retract-failure", + NULL); else { GtkWidget *dialog; dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, _("Message retracted successfully")); diff --git a/plugins/groupwise-features/process-meeting.c b/plugins/groupwise-features/process-meeting.c index e1e5e185ee..611213bd42 100644 --- a/plugins/groupwise-features/process-meeting.c +++ b/plugins/groupwise-features/process-meeting.c @@ -176,7 +176,8 @@ process_meeting (ECalendarView *cal_view, icalparameter_partstat status) else msg = "org.gnome.evolution.process_meeting:recurrence-decline"; - response = e_error_run (GTK_WINDOW (gtk_widget_get_toplevel ((GtkWidget *)cal_view)), msg, NULL); + response = e_error_run_dialog_for_args (GTK_WINDOW (gtk_widget_get_toplevel ((GtkWidget *)cal_view)), + msg, NULL); if (response == GTK_RESPONSE_YES) { icalproperty *prop; const gchar *uid = icalcomponent_get_uid (r_data->icalcomp); @@ -346,7 +347,9 @@ object_created_cb (CompEditor *ce, gpointer data) gtk_widget_hide (GTK_WIDGET (ce)); - response = e_error_run (GTK_WINDOW (gtk_widget_get_toplevel ((GtkWidget *)ce)), "org.gnome.evolution.process_meeting:resend-retract", NULL); + response = e_error_run_dialog_for_args (GTK_WINDOW (gtk_widget_get_toplevel ((GtkWidget *)ce)), + "org.gnome.evolution.process_meeting:resend-retract", + NULL); if (response == GTK_RESPONSE_NO) { free_thread_data (data); return; @@ -389,7 +392,8 @@ gw_resend_meeting_cb (GtkAction *action, EShellView *shell_view) else msg = "org.gnome.evolution.process_meeting:resend"; - response = e_error_run (GTK_WINDOW (e_shell_view_get_shell_window (shell_view)), msg, NULL); + response = e_error_run_dialog_for_args (GTK_WINDOW (e_shell_view_get_shell_window (shell_view)), + msg, NULL); if (response == GTK_RESPONSE_YES) { mod = CALOBJ_MOD_ALL; } else if (response == GTK_RESPONSE_CANCEL) { diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c index 8a8c103614..684dcd6d38 100644 --- a/plugins/groupwise-features/proxy-login.c +++ b/plugins/groupwise-features/proxy-login.c @@ -320,7 +320,9 @@ proxy_soap_login (gchar *email, GtkWindow *error_parent) if (email[i]=='@') name = g_strndup(email, i); else { - e_error_run (error_parent, "org.gnome.evolution.proxy-login:invalid-user",email ,NULL); + e_error_run_dialog_for_args (error_parent, + "org.gnome.evolution.proxy-login:invalid-user", + email, NULL); return; } @@ -328,7 +330,9 @@ proxy_soap_login (gchar *email, GtkWindow *error_parent) If so, it is violating the (li)unix philosophy of User creation. So dont care about that scenario*/ if (e_account_list_find (accounts, E_ACCOUNT_FIND_ID_ADDRESS, email) != NULL) { - e_error_run (error_parent, "org.gnome.evolution.proxy-login:already-loggedin", email, NULL); + e_error_run_dialog_for_args (error_parent, + "org.gnome.evolution.proxy-login:already-loggedin", + email, NULL); g_free (name); return; } @@ -363,7 +367,9 @@ proxy_soap_login (gchar *email, GtkWindow *error_parent) g_free (parent_source_url); camel_url_free (parent); } else { - e_error_run (error_parent, "org.gnome.evolution.proxy-login:invalid-user",email ,NULL); + e_error_run_dialog_for_args (error_parent, + "org.gnome.evolution.proxy-login:invalid-user", + email, NULL); return; } diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index 7e2aea30bf..bac1f9ba80 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -330,7 +330,9 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog, GtkWindow *pa tmp = destinations; if (!tmp) { - e_error_run (parent, "org.gnome.evolution.proxy:no-user",NULL ,NULL); + e_error_run_dialog_for_args (parent, + "org.gnome.evolution.proxy:no-user", + NULL, NULL); return -1; } @@ -342,11 +344,15 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog, GtkWindow *pa continue; if (g_strrstr (email, "@") == NULL) { - e_error_run (parent, "org.gnome.evolution.proxy:invalid-user", email, NULL); + e_error_run_dialog_for_args (parent, + "org.gnome.evolution.proxy:invalid-user", + email, NULL); return -1; } if (! g_ascii_strcasecmp(e_gw_connection_get_user_email (prd->cnc), email)) { - e_error_run (parent, "org.gnome.evolution.proxy:invalid-user", email, NULL); + e_error_run_dialog_for_args (parent, + "org.gnome.evolution.proxy:invalid-user", + email, NULL); return -1; } @@ -365,7 +371,9 @@ proxy_dialog_store_widgets_data (EAccount *account, gint32 dialog, GtkWindow *pa return 0; } - e_error_run (parent, "org.gnome.evolution.proxy:user-is-proxy",email ,NULL); + e_error_run_dialog_for_args (parent, + "org.gnome.evolution.proxy:user-is-proxy", + email, NULL); return -1; } } diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c index 9a39678e77..c7850c50e7 100644 --- a/plugins/groupwise-features/share-folder.c +++ b/plugins/groupwise-features/share-folder.c @@ -339,10 +339,13 @@ add_clicked(GtkButton *button, ShareFolder *sf) email = e_destination_get_email (tmp->data); /* You can't share a folder with yourself*/ if (g_strrstr (email, "@") == NULL || (!g_ascii_strcasecmp (email , self_email))) - e_error_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))), "org.gnome.evolution.mail_shared_folder:invalid-user",email ,NULL); + e_error_run_dialog_for_args (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))), + "org.gnome.evolution.mail_shared_folder:invalid-user", + email, NULL); else { if (!g_ascii_strcasecmp (email, "" )) { - e_error_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))), "org.gnome.evolution.mail_shared_folder:no-user",NULL); + e_error_run_dialog_for_args (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (button))), + "org.gnome.evolution.mail_shared_folder:no-user", NULL); return; } |