aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-actions.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-10-17 20:40:59 +0800
committerMilan Crha <mcrha@redhat.com>2012-10-17 20:40:59 +0800
commitbac4efc7ced9ec16f6cdc30959797d8fe3cffde1 (patch)
treef47458538cbe24fd884c0b0fbdac43d8b5213b1d /shell/e-shell-window-actions.c
parentf12ec068f993121f8dc8a3170591d21be6a2a665 (diff)
downloadgsoc2013-evolution-bac4efc7ced9ec16f6cdc30959797d8fe3cffde1.tar.gz
gsoc2013-evolution-bac4efc7ced9ec16f6cdc30959797d8fe3cffde1.tar.zst
gsoc2013-evolution-bac4efc7ced9ec16f6cdc30959797d8fe3cffde1.zip
Add format checker (in compile time) to e_notice()
Diffstat (limited to 'shell/e-shell-window-actions.c')
-rw-r--r--shell/e-shell-window-actions.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/shell/e-shell-window-actions.c b/shell/e-shell-window-actions.c
index 247b3814cc..ece1c24d8b 100644
--- a/shell/e-shell-window-actions.c
+++ b/shell/e-shell-window-actions.c
@@ -1222,13 +1222,10 @@ action_submit_bug_cb (GtkAction *action,
g_spawn_command_line_async (command_line, &error);
if (error != NULL) {
- const gchar *message;
-
- if (error->code == G_SPAWN_ERROR_NOENT)
- message = _("Bug Buddy is not installed.");
- else
- message = _("Bug Buddy could not be run.");
- e_notice (shell_window, GTK_MESSAGE_ERROR, message);
+ e_notice (shell_window, GTK_MESSAGE_ERROR,
+ error->code == G_SPAWN_ERROR_NOENT ?
+ _("Bug Buddy is not installed.") :
+ _("Bug Buddy could not be run."));
g_error_free (error);
}
}