mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-27 11:29:24 +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:
parent
3a42ca56bb
commit
f99977dd15
|
@ -41,10 +41,6 @@ Show the version of the program.
|
||||||
.BR \-w ", " \-\-new-window
|
.BR \-w ", " \-\-new-window
|
||||||
Always open a new window for browsing specified URIs.
|
Always open a new window for browsing specified URIs.
|
||||||
|
|
||||||
.TP
|
|
||||||
.BR \-n ", " \-\-no-default-window
|
|
||||||
Only create windows for explicitly specified URIs.
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BR \-q ", " \-\-quit
|
.BR \-q ", " \-\-quit
|
||||||
Quit Nautilus.
|
Quit Nautilus.
|
||||||
|
|
|
@ -1065,24 +1065,26 @@ nautilus_application_init (NautilusApplication *self)
|
||||||
{ "check", 'c', 0, G_OPTION_ARG_NONE, NULL,
|
{ "check", 'c', 0, G_OPTION_ARG_NONE, NULL,
|
||||||
N_("Perform a quick set of self-check tests."), NULL },
|
N_("Perform a quick set of self-check tests."), NULL },
|
||||||
#endif
|
#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,
|
{ "version", '\0', 0, G_OPTION_ARG_NONE, NULL,
|
||||||
N_("Show the version of the program."), NULL },
|
N_("Show the version of the program."), NULL },
|
||||||
{ "new-window", 'w', 0, G_OPTION_ARG_NONE, NULL,
|
{ "new-window", 'w', 0, G_OPTION_ARG_NONE, NULL,
|
||||||
N_("Always open a new window for browsing specified URIs"), 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,
|
{ "quit", 'q', 0, G_OPTION_ARG_NONE, NULL,
|
||||||
N_("Quit Nautilus."), NULL },
|
N_("Quit Nautilus."), NULL },
|
||||||
{ "select", 's', 0, G_OPTION_ARG_NONE, NULL,
|
{ "select", 's', 0, G_OPTION_ARG_NONE, NULL,
|
||||||
N_("Select specified URI in parent folder."), NULL },
|
N_("Select specified URI in parent folder."), NULL },
|
||||||
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, NULL, NULL, N_("[URI…]") },
|
{ 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 }
|
{ NULL }
|
||||||
};
|
};
|
||||||
NautilusApplicationPrivate *priv;
|
NautilusApplicationPrivate *priv;
|
||||||
|
|
Loading…
Reference in a new issue