[gnumeric] Further house keeping.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Further house keeping.
- Date: Wed, 29 Nov 2017 23:58:35 +0000 (UTC)
commit b985d4dd3fe18f1ba0ec5ac03cf8ef530ee9ade4
Author: Morten Welinder <terra gnome org>
Date: Wed Nov 29 18:58:06 2017 -0500
Further house keeping.
doc/make-func-list.pl | 2 +-
src/main-application.c | 16 ++--------------
2 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/doc/make-func-list.pl b/doc/make-func-list.pl
index 4e1c1f1..365d81a 100755
--- a/doc/make-func-list.pl
+++ b/doc/make-func-list.pl
@@ -2,7 +2,7 @@
# Task: convert gnumeric's function documentation into a valid DocBook XML
# fragment.
-# Input format: as produced by gnumeric --dump-func-defs=file, i.e.
+# Input format: as produced by "sstest --dump-func-defs=file", i.e.
# a series of chunks documenting functions. The chunks consist of a number
# of lines. Lines are either
# - @KEYWORD=value
diff --git a/src/main-application.c b/src/main-application.c
index 802c57e..60eb357 100644
--- a/src/main-application.c
+++ b/src/main-application.c
@@ -103,17 +103,8 @@ static void
gnumeric_arg_parse (int argc, char **argv)
{
GOptionContext *ocontext;
- int i;
- gboolean funcdump = FALSE;
GError *error = NULL;
- /* no need to init gtk when dumping function info */
- for (i = 0 ; argv[i] ; i++)
- if (0 == strncmp ("--dump-func", argv[i], 11)) {
- funcdump = TRUE;
- break;
- }
-
ocontext = g_option_context_new (_("[FILE ...]"));
g_option_context_add_main_entries (ocontext, gnumeric_options, GETTEXT_PACKAGE);
g_option_context_add_group (ocontext, gnm_get_option_group ());
@@ -124,8 +115,7 @@ gnumeric_arg_parse (int argc, char **argv)
g_option_context_set_delocalize (ocontext, FALSE);
#endif
- if (!funcdump)
- g_option_context_add_group (ocontext, gtk_get_option_group (TRUE));
+ g_option_context_add_group (ocontext, gtk_get_option_group (TRUE));
g_option_context_parse (ocontext, &argc, &argv, &error);
if (ocontext)
@@ -138,9 +128,7 @@ gnumeric_arg_parse (int argc, char **argv)
exit (1);
}
- if (!funcdump) {
- gtk_init (&argc, &argv);
- }
+ gtk_init (&argc, &argv);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]