aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-01 01:34:43 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-01 03:33:04 +0800
commitc2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc (patch)
treee6430bf480afc3e4a220fdf713413c8df4a9da41 /calendar/gui/dialogs
parent495e9bf8001e2209a35e8991c07ec038576efdd4 (diff)
downloadgsoc2013-evolution-c2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc.tar.gz
gsoc2013-evolution-c2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc.tar.zst
gsoc2013-evolution-c2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc.zip
Rename EError to EAlert to match general use better
The EError mechanism is used both for error dialogs as well as basic alerts or user prompts, so we should give it a more general name which matches this use. This patch also cleans up a few includes of e-alert.h (formerly e-error.h) that were not actually being used. https://bugzilla.gnome.org/show_bug.cgi?id=602963
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/cancel-comp.c4
-rw-r--r--calendar/gui/dialogs/comp-editor.c6
-rw-r--r--calendar/gui/dialogs/delete-comp.c4
-rw-r--r--calendar/gui/dialogs/save-comp.c10
-rw-r--r--calendar/gui/dialogs/send-comp.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/calendar/gui/dialogs/cancel-comp.c b/calendar/gui/dialogs/cancel-comp.c
index 69331f03a1..81ac2b6f82 100644
--- a/calendar/gui/dialogs/cancel-comp.c
+++ b/calendar/gui/dialogs/cancel-comp.c
@@ -28,7 +28,7 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#include "cancel-comp.h"
@@ -105,7 +105,7 @@ cancel_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, g
return FALSE;
}
- if (e_error_run_dialog_for_args (parent, id, NULL) == GTK_RESPONSE_YES)
+ if (e_alert_run_dialog_for_args (parent, id, NULL) == GTK_RESPONSE_YES)
return TRUE;
else
return FALSE;
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 85f2304d8a..07d68806a5 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -65,7 +65,7 @@
#include "widgets/misc/e-attachment-view.h"
#include "widgets/misc/e-attachment-paned.h"
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#define COMP_EDITOR_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -833,7 +833,7 @@ action_save_cb (GtkAction *action,
}
if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) {
- e_error_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL);
+ e_alert_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL);
return;
}
@@ -1833,7 +1833,7 @@ prompt_and_save_changes (CompEditor *editor, gboolean send)
switch (save_component_dialog (GTK_WINDOW(editor), priv->comp)) {
case GTK_RESPONSE_YES: /* Save */
if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only) {
- e_error_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL);
+ e_alert_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (editor)), "calendar:prompt-read-only-cal-editor", e_source_peek_name (e_cal_get_source (priv->client)), NULL);
/* don't discard changes when selected readonly calendar */
return FALSE;
}
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index c205f3bd8d..d5f5929e6a 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -27,7 +27,7 @@
#endif
#include <glib/gi18n.h>
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#include "../calendar-config.h"
#include "delete-comp.h"
@@ -159,7 +159,7 @@ delete_component_dialog (ECalComponent *comp,
arg0 = g_strdup_printf ("%d", n_comps);
}
- response = e_error_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (widget), id, arg0, NULL);
+ response = e_alert_run_dialog_for_args ((GtkWindow *) gtk_widget_get_toplevel (widget), id, arg0, NULL);
g_free (arg0);
return response == GTK_RESPONSE_YES;
diff --git a/calendar/gui/dialogs/save-comp.c b/calendar/gui/dialogs/save-comp.c
index 91f55a0ca7..dc698b4596 100644
--- a/calendar/gui/dialogs/save-comp.c
+++ b/calendar/gui/dialogs/save-comp.c
@@ -25,7 +25,7 @@
#include <config.h>
#endif
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#include "save-comp.h"
#include "comp-editor.h"
@@ -50,13 +50,13 @@ save_component_dialog (GtkWindow *parent, ECalComponent *comp)
case E_CAL_COMPONENT_EVENT:
flags = comp_editor_get_flags (COMP_EDITOR(parent));
if (flags & COMP_EDITOR_MEETING)
- return e_error_run_dialog_for_args (parent, "calendar:prompt-save-meeting", NULL);
+ return e_alert_run_dialog_for_args (parent, "calendar:prompt-save-meeting", NULL);
else
- return e_error_run_dialog_for_args (parent, "calendar:prompt-save-appointment", NULL);
+ return e_alert_run_dialog_for_args (parent, "calendar:prompt-save-appointment", NULL);
case E_CAL_COMPONENT_TODO:
- return e_error_run_dialog_for_args (parent, "calendar:prompt-save-task", NULL);
+ return e_alert_run_dialog_for_args (parent, "calendar:prompt-save-task", NULL);
case E_CAL_COMPONENT_JOURNAL:
- return e_error_run_dialog_for_args (parent, "calendar:prompt-save-memo", NULL);
+ return e_alert_run_dialog_for_args (parent, "calendar:prompt-save-memo", NULL);
default:
return GTK_RESPONSE_NO;
}
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c
index 13f016982e..1d663478c8 100644
--- a/calendar/gui/dialogs/send-comp.c
+++ b/calendar/gui/dialogs/send-comp.c
@@ -27,7 +27,7 @@
#endif
#include <glib/gi18n-lib.h>
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#include "send-comp.h"
@@ -154,7 +154,7 @@ send_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, gbo
strip_alarms = NULL;
}
- dialog = e_error_new_dialog_for_args (parent, id, NULL);
+ dialog = e_alert_new_dialog_for_args (parent, id, NULL);
if (strip_alarms)
sa_checkbox = add_checkbox (GTK_BOX (GTK_DIALOG (dialog)->vbox), _("Send my alarms with this event"));
@@ -199,7 +199,7 @@ send_component_prompt_subject (GtkWindow *parent, ECal *client, ECalComponent *c
return FALSE;
}
- if (e_error_run_dialog_for_args (parent, id, NULL) == GTK_RESPONSE_YES)
+ if (e_alert_run_dialog_for_args (parent, id, NULL) == GTK_RESPONSE_YES)
return TRUE;
else
return FALSE;