[gedit/wip/gtkapp-actions: 1/10] GeditApp: remove redundant help option
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/gtkapp-actions: 1/10] GeditApp: remove redundant help option
- Date: Fri, 3 Aug 2012 08:04:16 +0000 (UTC)
commit 9f9a4aedf571442e9889d454a92e5c2fa5d612e9
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Fri Aug 3 07:15:21 2012 +0200
GeditApp: remove redundant help option
The short option is -h instead of -?, by default.
gedit/gedit-app.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 9a351a7..6b6516e 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -103,7 +103,6 @@ struct _GeditAppPrivate
static GeditApp *app_instance = NULL;
-static gboolean help = FALSE;
static gboolean version = FALSE;
static gboolean list_encodings = FALSE;
static gchar *encoding_charset = NULL;
@@ -119,12 +118,6 @@ static GInputStream *stdin_stream = NULL;
static const GOptionEntry options[] =
{
- /* Help */
- {
- "help", '?', 0, G_OPTION_ARG_NONE, &help,
- N_("Show the application's help"), NULL
- },
-
/* Version */
{
"version", 'V', 0, G_OPTION_ARG_NONE, &version,
@@ -597,7 +590,6 @@ gedit_app_command_line (GApplication *application,
g_strfreev (remaining_args);
g_free (geometry);
- help = FALSE;
version = FALSE;
list_encodings = FALSE;
encoding_charset = NULL;
@@ -710,14 +702,6 @@ gedit_app_local_command_line (GApplication *application,
g_error_free (error);
*exit_status = 1;
}
- else if (help)
- {
- gchar *text = g_option_context_get_help(context, FALSE, NULL);
- g_print ("%s\n", text);
- g_free (text);
-
- return TRUE;
- }
else if (version)
{
g_print ("%s - Version %s\n", g_get_application_name (), VERSION);
@@ -752,7 +736,6 @@ gedit_app_local_command_line (GApplication *application,
g_free (geometry);
g_free (argv);
- help = FALSE;
version = FALSE;
list_encodings = FALSE;
encoding_charset = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]