aboutsummaryrefslogtreecommitdiffstats
path: root/shell
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 /shell
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 'shell')
-rw-r--r--shell/e-shell-content.c20
-rw-r--r--shell/e-shell-migrate.c10
-rw-r--r--shell/e-shell-window-actions.c4
-rw-r--r--shell/main.c1
4 files changed, 17 insertions, 18 deletions
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index e10d1094c6..44d2ff9604 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -1472,7 +1472,7 @@ e_shell_content_run_advanced_search_dialog (EShellContent *shell_content)
ERuleContext *context;
const gchar *user_filename;
gint response;
- EError *error = NULL;
+ EAlert *alert = NULL;
g_return_if_fail (E_IS_SHELL_CONTENT (shell_content));
@@ -1517,10 +1517,10 @@ run:
if (response != GTK_RESPONSE_OK && response != GTK_RESPONSE_APPLY)
goto exit;
- if (!e_filter_rule_validate (rule, &error)) {
- e_error_run_dialog (GTK_WINDOW (dialog), error);
- e_error_free (error);
- error = NULL;
+ if (!e_filter_rule_validate (rule, &alert)) {
+ e_alert_run_dialog (GTK_WINDOW (dialog), alert);
+ e_alert_free (alert);
+ alert = NULL;
goto run;
}
@@ -1576,7 +1576,7 @@ e_shell_content_run_save_search_dialog (EShellContent *shell_content)
const gchar *user_filename;
gchar *search_name;
gint response;
- EError *error = NULL;
+ EAlert *alert = NULL;
g_return_if_fail (E_IS_SHELL_CONTENT (shell_content));
@@ -1625,10 +1625,10 @@ run:
if (response != GTK_RESPONSE_OK)
goto exit;
- if (!e_filter_rule_validate (rule, &error)) {
- e_error_run_dialog (GTK_WINDOW (dialog), error);
- e_error_free (error);
- error = NULL;
+ if (!e_filter_rule_validate (rule, &alert)) {
+ e_alert_run_dialog (GTK_WINDOW (dialog), alert);
+ e_alert_free (alert);
+ alert = NULL;
goto run;
}
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index 0c17c97fe8..e2aacc451e 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -28,7 +28,7 @@
#include <libedataserver/e-xml-utils.h>
#include "e-util/e-bconf-map.h"
-#include "e-util/e-error.h"
+#include "e-util/e-alert.h"
#include "e-util/e-file-utils.h"
#include "e-util/e-util.h"
@@ -70,7 +70,7 @@ shell_migrate_attempt (EShell *shell,
if (error != NULL) {
gint response;
- response = e_error_run_dialog_for_args (
+ response = e_alert_run_dialog_for_args (
e_shell_get_active_window (shell), "shell:upgrade-failed",
error->message, NULL);
@@ -242,7 +242,7 @@ e_shell_migrate_attempt (EShell *shell)
need = g_strdup_printf (_("%ld KB"), usage);
have = g_strdup_printf (_("%ld KB"), avail);
- e_error_run_dialog_for_args (
+ e_alert_run_dialog_for_args (
e_shell_get_active_window (shell), "shell:upgrade-nospace",
need, have, NULL);
@@ -285,13 +285,13 @@ check_old:
string = g_strdup_printf (
"%d.%d.%d", last_major, last_minor, last_micro);
- response = e_error_run_dialog_for_args (
+ response = e_alert_run_dialog_for_args (
e_shell_get_active_window (shell), "shell:upgrade-remove-1-4", string, NULL);
g_free (string);
switch (response) {
case GTK_RESPONSE_OK: /* delete */
- response = e_error_run_dialog_for_args (
+ response = e_alert_run_dialog_for_args (
e_shell_get_active_window (shell),
"shell:upgrade-remove-1-4-confirm",
NULL);
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 82970092c3..d961ebef55 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -23,7 +23,7 @@
#include "e-preferences-window.h"
#include <e-util/e-dialog-utils.h>
-#include <e-util/e-error.h>
+#include <e-util/e-alert.h>
#include <e-util/e-print.h>
#include <gal-define-views-dialog.h>
@@ -752,7 +752,7 @@ action_forget_passwords_cb (GtkAction *action,
{
gint response;
- response = e_error_run_dialog_for_args (
+ response = e_alert_run_dialog_for_args (
GTK_WINDOW (shell_window), "shell:forget-passwords", NULL);
if (response == GTK_RESPONSE_OK)
diff --git a/shell/main.c b/shell/main.c
index c37ccc4d6c..7a09f60d12 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -54,7 +54,6 @@
#include "e-util/e-bconf-map.h"
#include "e-util/e-dialog-utils.h"
-#include "e-util/e-error.h"
#include "e-util/e-plugin.h"
#include "e-util/e-plugin-ui.h"
#include "e-util/e-profile-event.h"
014-12-091-1/+1 * Cleanup plistbapt2014-10-201-48/+0 * Chase library dependencies after libcdio <-> libcdio-paranoia splitarved2014-08-091-0/+1 * - Fix build SID pluginvg2014-08-081-1/+1 * - Upgrade to 0.6.2 releasevg2014-08-072-6/+3 * USES=execinfobapt2014-08-051-3/+2 * - Fix build without convertervg2014-08-041-21/+11 * - Upgrade to 0.6.2 rc5vg2014-08-022-3/+3 * - Upgrade to 0.6.2-rc4vg2014-07-316-107/+92 * - Fix plistamdmi32014-07-261-4/+4 * Support LIBS like LDFLAGS.tijl2014-06-111-3/+3 * Convert archivers/libzip to USES=libtool. Bump PORTREVISION on alltijl2014-05-061-1/+1 * Support stagebapt2014-04-292-285/+115 * Chase libmad changesbapt2014-02-051-1/+1 * Remove useless over inclusion bsd.port.mkbapt2014-01-161-3/+1 * In preparation for making libtool generate libraries with a sane name, fix allbapt2013-12-111-17/+17 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-221-1/+0 * audio/deadbeef: link using ffmpeg0wg2013-10-093-4/+58 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-201-0/+1 * Convert audio from USE_GMAKE to USES=gmakebapt2013-08-311-2/+1 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * Fixed OGG supportvg2013-08-022-4/+4 * - Changed my emailvg2013-07-221-2/+2 * - Update to 7.31.0sunpoet2013-07-121-1/+1 * * Major update to FLAC 1.3.0, including shared library bumps.naddy2013-06-101-1/+1 * Use shebangfixbapt2013-05-071-3/+2 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-2/+1 * - Convert USE_GETTEXT to USES (part 4)ak2013-04-261-2/+1 * Convert USE_PKGCONFIG -> USES=pkgconf for audio categorybapt2013-04-231-1/+1 * Convert to new options framework left un converted ports in a* categoriesbapt2013-03-221-171/+165 * libogg.so.8: Bump PORTREVISION for ports that depend on libogg,naddy2012-07-201-0/+1 * - Update to 0.5.5beech2012-06-122-3/+3 * - Update to 0.5.5-rc1beech2012-06-073-34/+92 * - update png to 1.5.10dinoex2012-06-01