[gnome-terminal] Use a new error code here
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Use a new error code here
- Date: Sun, 23 Aug 2009 19:53:03 +0000 (UTC)
commit 3a84887bd1a70c5bc84e5888654df1507133dfaa
Author: Christian Persch <chpe gnome org>
Date: Sun Aug 23 21:49:42 2009 +0200
Use a new error code here
src/terminal-app.c | 2 +-
src/terminal-options.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 9d02866..855dd32 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1685,7 +1685,7 @@ terminal_app_handle_options (TerminalApp *app,
if (options->remote_arguments)
return terminal_app_save_config_file (app, options->config_file, error);
- g_set_error_literal (error, TERMINAL_OPTION_ERROR, TERMINAL_OPTION_ERROR_EXCLUSIVE_OPTIONS,
+ g_set_error_literal (error, TERMINAL_OPTION_ERROR, TERMINAL_OPTION_ERROR_NOT_IN_FACTORY,
"Cannot use \"--save-config\" when starting the factory process");
return FALSE;
}
diff --git a/src/terminal-options.h b/src/terminal-options.h
index 9a70611..59fa065 100644
--- a/src/terminal-options.h
+++ b/src/terminal-options.h
@@ -87,6 +87,7 @@ typedef struct
#define TERMINAL_OPTION_ERROR (g_quark_from_static_string ("terminal-option-error"))
typedef enum {
+ TERMINAL_OPTION_ERROR_NOT_IN_FACTORY,
TERMINAL_OPTION_ERROR_EXCLUSIVE_OPTIONS,
TERMINAL_OPTION_ERROR_INVALID_CONFIG_FILE,
TERMINAL_OPTION_ERROR_INCOMPATIBLE_CONFIG_FILE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]