aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:56:05 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:56:05 +0800
commitd440df54a8a719d6da8f9d6556e1191bfdb38924 (patch)
tree90fb594c56df5ff9f0938cc4439174d525a54538 /shell/e-shell.c
parent19e564f320e368e4b8f4f6c238158960380bba71 (diff)
downloadgsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.gz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.bz2
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.lz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.xz
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.tar.zst
gsoc2013-evolution-d440df54a8a719d6da8f9d6556e1191bfdb38924.zip
** Fix for bug #471791 (Move away from asserts to g_ret*)
svn path=/trunk/; revision=34159
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 667b02299d..5a8091e2af 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -351,7 +351,7 @@ window_delete_event_cb (GtkWidget *widget,
{
EShell *shell;
- g_assert (E_IS_SHELL_WINDOW (widget));
+ g_return_val_if_fail (E_IS_SHELL_WINDOW (widget), TRUE);
shell = E_SHELL (data);
return ! e_shell_request_close_window (shell, E_SHELL_WINDOW (widget));
@@ -706,7 +706,7 @@ e_shell_construct (EShell *shell,
break;
default:
start_online = FALSE; /* Make compiler happy. */
- g_assert_not_reached ();
+ g_return_val_if_reached(E_SHELL_CONSTRUCT_RESULT_OK);
}
e_passwords_set_online(start_online);
@@ -767,8 +767,8 @@ remove_dir(const char *root, const char *path)
goto fail;
/* make sure we're really removing something from evolution dir */
- g_assert(strlen(path) >= strlen(root)
- && strncmp(root, path, strlen(root)) == 0);
+ g_return_val_if_fail (strlen(path) >= strlen(root)
+ && strncmp(root, path, strlen(root)) == 0, -1);
if (S_ISDIR(st.st_mode)) {
if (remove_dir(root, new) == -1)
@@ -813,7 +813,7 @@ e_shell_attempt_upgrade (EShell *shell)
oldpath = g_build_filename(g_get_home_dir(), "evolution", NULL);
- g_assert(sscanf(BASE_VERSION, "%u.%u", &cmajor, &cminor) == 2);
+ g_return_val_if_fail (sscanf(BASE_VERSION, "%u.%u", &cmajor, &cminor) == 2, TRUE);
crevision = atoi(UPGRADE_REVISION);
detect_version (gconf_client, &major, &minor, &revision);