1
0
mirror of https://gitlab.gnome.org/GNOME/nautilus synced 2024-07-07 20:07:07 +00:00

application: Hide --no-default-window option

It's a dead option since commit b80390d0c4

Hide it and drop it form the man page.

While we are at it, rearrange the code to group dead options together,
and elaborate on the code comment. Also, drop their descriptions, which
are useless for hidden options and may be wasting translators time.
This commit is contained in:
António Fernandes 2019-07-12 00:20:13 +01:00 committed by Carlos Soriano
parent 3a42ca56bb
commit f99977dd15
2 changed files with 10 additions and 12 deletions

View File

@ -41,10 +41,6 @@ Show the version of the program.
.BR \-w ", " \-\-new-window
Always open a new window for browsing specified URIs.
.TP
.BR \-n ", " \-\-no-default-window
Only create windows for explicitly specified URIs.
.TP
.BR \-q ", " \-\-quit
Quit Nautilus.

View File

@ -1065,24 +1065,26 @@ nautilus_application_init (NautilusApplication *self)
{ "check", 'c', 0, G_OPTION_ARG_NONE, NULL,
N_("Perform a quick set of self-check tests."), NULL },
#endif
/* dummy, only for compatibility reasons */
{ "browser", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, NULL,
NULL, NULL },
/* ditto */
{ "geometry", 'g', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, NULL,
N_("Create the initial window with the given geometry."), N_("GEOMETRY") },
{ "version", '\0', 0, G_OPTION_ARG_NONE, NULL,
N_("Show the version of the program."), NULL },
{ "new-window", 'w', 0, G_OPTION_ARG_NONE, NULL,
N_("Always open a new window for browsing specified URIs"), NULL },
{ "no-default-window", 'n', 0, G_OPTION_ARG_NONE, NULL,
N_("Only create windows for explicitly specified URIs."), NULL },
{ "quit", 'q', 0, G_OPTION_ARG_NONE, NULL,
N_("Quit Nautilus."), NULL },
{ "select", 's', 0, G_OPTION_ARG_NONE, NULL,
N_("Select specified URI in parent folder."), NULL },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, NULL, NULL, N_("[URI…]") },
/* The following are old options which have no effect anymore. We keep
* them around for compatibility reasons, e.g. not breaking old scripts.
*/
{ "browser", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, NULL,
NULL, NULL },
{ "geometry", 'g', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, NULL,
NULL, NULL },
{ "no-default-window", 'n', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, NULL,
NULL, NULL },
{ NULL }
};
NautilusApplicationPrivate *priv;