diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-08 00:19:37 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-08 02:25:23 +0800 |
commit | 31204c9cc21ec32c8006124cf18763161daa99d2 (patch) | |
tree | 7e2173da211f3e844172ea0dbdfb0e87638d8e85 /plugins | |
parent | f20528381a13299e8d160195d4b731e10b7ed437 (diff) | |
download | gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.gz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.bz2 gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.lz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.xz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.zst gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.zip |
Port all error code to use GObject-ified EAlert / EAlertDialog
The changes are mainly including the e-alert-header.h header instead of just
e-alert.h. This allows us to include e-alert.h in non-UI situations when
necessary.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/attachment-reminder/attachment-reminder.c | 4 | ||||
-rw-r--r-- | plugins/backup-restore/backup-restore.c | 8 | ||||
-rw-r--r-- | plugins/external-editor/external-editor.c | 2 | ||||
-rw-r--r-- | plugins/face/face.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/camel-gw-listener.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/mail-retract.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/process-meeting.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy-login.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/proxy.c | 2 | ||||
-rw-r--r-- | plugins/groupwise-features/share-folder.c | 2 | ||||
-rw-r--r-- | plugins/itip-formatter/itip-formatter.c | 2 | ||||
-rw-r--r-- | plugins/mailing-list-actions/mailing-list-actions.c | 2 | ||||
-rw-r--r-- | plugins/save-calendar/save-calendar.c | 2 | ||||
-rw-r--r-- | plugins/startup-wizard/startup-wizard.c | 4 |
14 files changed, 19 insertions, 19 deletions
diff --git a/plugins/attachment-reminder/attachment-reminder.c b/plugins/attachment-reminder/attachment-reminder.c index b023cbc5ce..ee17785fbd 100644 --- a/plugins/attachment-reminder/attachment-reminder.c +++ b/plugins/attachment-reminder/attachment-reminder.c @@ -39,7 +39,7 @@ #include <camel/camel-mime-message.h> #include <camel/camel-multipart.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-plugin.h> #include <mail/em-utils.h> @@ -122,7 +122,7 @@ ask_for_missing_attachment (EPlugin *ep, GtkWindow *window) GtkDialog *dialog = NULL; gint response; - dialog = (GtkDialog*)e_alert_new_dialog_for_args(window, "org.gnome.evolution.plugins.attachment_reminder:attachment-reminder", NULL); + dialog = (GtkDialog*)e_alert_dialog_new_for_args(window, "org.gnome.evolution.plugins.attachment_reminder:attachment-reminder", NULL); /*Check buttons*/ check = gtk_check_button_new_with_mnemonic (_("_Do not show this message again.")); diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index 9f3413cbbe..bc7766e861 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -33,7 +33,7 @@ #include <glib/gstdio.h> #include "mail/em-config.h" #include "mail/em-account-editor.h" -#include "e-util/e-alert.h" +#include "e-util/e-alert-dialog.h" #include "e-util/e-util.h" #include "e-util/e-dialog-utils.h" #include "shell/e-shell-utils.h" @@ -104,11 +104,11 @@ dialog_prompt_user(GtkWindow *parent, const gchar *string, const gchar *tag, con EAlert *alert = NULL; va_start(ap, arg0); - alert = e_alert_newv(tag, arg0, ap); + alert = e_alert_new_valist(tag, arg0, ap); va_end(ap); - mbox = e_alert_new_dialog (parent, alert); - e_alert_free (alert); + mbox = e_alert_dialog_new (parent, alert); + g_object_unref (alert); check = gtk_check_button_new_with_mnemonic (string); /* We should hardcode this to true */ diff --git a/plugins/external-editor/external-editor.c b/plugins/external-editor/external-editor.c index e75c47fc1c..5b10072a2d 100644 --- a/plugins/external-editor/external-editor.c +++ b/plugins/external-editor/external-editor.c @@ -29,7 +29,7 @@ #include <mail/em-config.h> #include <mail/em-composer-utils.h> #include <mail/mail-config.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-msg-composer.h> #include <camel/camel-mime-filter-tohtml.h> diff --git a/plugins/face/face.c b/plugins/face/face.c index 10864c0103..478f7888c6 100644 --- a/plugins/face/face.c +++ b/plugins/face/face.c @@ -29,7 +29,7 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> #include <mail/em-event.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-util.h> #include <e-util/e-icon-factory.h> diff --git a/plugins/groupwise-features/camel-gw-listener.c b/plugins/groupwise-features/camel-gw-listener.c index db3bcac4f7..a23e39ed00 100644 --- a/plugins/groupwise-features/camel-gw-listener.c +++ b/plugins/groupwise-features/camel-gw-listener.c @@ -29,7 +29,7 @@ #include <camel/camel-i18n.h> #include <e-gw-connection.h> #include <libedataserverui/e-passwords.h> -#include "e-util/e-alert.h" +#include "e-util/e-alert-dialog.h" #include <libedataserver/e-account.h> #include <libecal/e-cal.h> #include <shell/e-shell.h> diff --git a/plugins/groupwise-features/mail-retract.c b/plugins/groupwise-features/mail-retract.c index 0ef1fd8e88..3de31b6838 100644 --- a/plugins/groupwise-features/mail-retract.c +++ b/plugins/groupwise-features/mail-retract.c @@ -29,7 +29,7 @@ #include <camel/camel-store.h> #include <camel/camel-folder.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <mail/e-mail-reader.h> #include <mail/em-utils.h> diff --git a/plugins/groupwise-features/process-meeting.c b/plugins/groupwise-features/process-meeting.c index 5f12a9a0e5..5a2b55c2c9 100644 --- a/plugins/groupwise-features/process-meeting.c +++ b/plugins/groupwise-features/process-meeting.c @@ -30,7 +30,7 @@ #include <gtk/gtk.h> #include <libecal/e-cal.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <shell/e-shell-view.h> #include <calendar/gui/e-calendar-view.h> diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c index b885b1445b..764fb9d8c4 100644 --- a/plugins/groupwise-features/proxy-login.c +++ b/plugins/groupwise-features/proxy-login.c @@ -38,7 +38,7 @@ #include <mail/mail-ops.h> #include <libedataserver/e-account.h> #include <e-util/e-util.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-icon-factory.h> #include <e-util/e-util-private.h> #include <e-util/e-account-utils.h> diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index a6c1b58f90..625789c370 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -31,7 +31,7 @@ #include <libedataserverui/e-contact-store.h> #include <e-util/e-util.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-util-private.h> #include <e-gw-container.h> #include <e-gw-connection.h> diff --git a/plugins/groupwise-features/share-folder.c b/plugins/groupwise-features/share-folder.c index d417f4ce77..24772a89bc 100644 --- a/plugins/groupwise-features/share-folder.c +++ b/plugins/groupwise-features/share-folder.c @@ -27,7 +27,7 @@ #include <glib/gi18n-lib.h> #include <libedataserverui/e-contact-store.h> #include <e-util/e-util.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <e-util/e-util-private.h> #include <e-gw-container.h> #include <e-gw-connection.h> diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c index f9de6c7f9f..d1819b4b48 100644 --- a/plugins/itip-formatter/itip-formatter.c +++ b/plugins/itip-formatter/itip-formatter.c @@ -52,7 +52,7 @@ #include <mail/mail-tools.h> #include <mail/mail-mt.h> #include <libedataserver/e-account-list.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <calendar/gui/calendar-config.h> #include <calendar/gui/itip-utils.h> #include <calendar/common/authentication.h> diff --git a/plugins/mailing-list-actions/mailing-list-actions.c b/plugins/mailing-list-actions/mailing-list-actions.c index 8304345730..59e54e621a 100644 --- a/plugins/mailing-list-actions/mailing-list-actions.c +++ b/plugins/mailing-list-actions/mailing-list-actions.c @@ -46,7 +46,7 @@ #include "mail/mail-config.h" #include "mail/message-list.h" #include "e-util/e-util.h" -#include "e-util/e-alert.h" +#include "e-util/e-alert-dialog.h" #include "shell/e-shell-view.h" #include "shell/e-shell-window.h" #include "shell/e-shell-window-actions.h" diff --git a/plugins/save-calendar/save-calendar.c b/plugins/save-calendar/save-calendar.c index 2fbf0d7bbe..677bca5825 100644 --- a/plugins/save-calendar/save-calendar.c +++ b/plugins/save-calendar/save-calendar.c @@ -33,7 +33,7 @@ #include <libedataserver/e-source.h> #include <libedataserverui/e-source-selector.h> #include <libecal/e-cal.h> -#include <e-util/e-alert.h> +#include <e-util/e-alert-dialog.h> #include <string.h> #include <shell/e-shell-sidebar.h> diff --git a/plugins/startup-wizard/startup-wizard.c b/plugins/startup-wizard/startup-wizard.c index 8205040086..c727c58bcd 100644 --- a/plugins/startup-wizard/startup-wizard.c +++ b/plugins/startup-wizard/startup-wizard.c @@ -24,7 +24,7 @@ #include <gconf/gconf-client.h> #include <glib/gi18n.h> #include <gtk/gtk.h> -#include "e-util/e-alert.h" +#include "e-util/e-alert-dialog.h" #include "e-util/e-import.h" #include "shell/e-shell.h" #include "shell/es-event.h" @@ -227,7 +227,7 @@ startup_wizard_commit (EPlugin *ep, EMConfigTargetAccount *target) import_iterator = import_importers; import_importer = import_iterator->data; - import_dialog = e_alert_new_dialog_for_args (e_shell_get_active_window (shell), "shell:importing", _("Importing data."), NULL); + import_dialog = e_alert_dialog_new_for_args (e_shell_get_active_window (shell), "shell:importing", _("Importing data."), NULL); g_signal_connect(import_dialog, "response", G_CALLBACK(import_dialog_response), NULL); import_label = gtk_label_new(_("Please wait")); import_progress = gtk_progress_bar_new(); |