diff options
author | Maciej Stachowiak <mstachow@src.gnome.org> | 2001-02-02 03:52:20 +0000 |
---|---|---|
committer | Maciej Stachowiak <mstachow@src.gnome.org> | 2001-02-02 03:52:20 +0000 |
commit | 2fa1795d4a0be070abe85b10b96068fd7eb55cd4 (patch) | |
tree | 66da429abdbd611be1cbd74fe46cf4f5cccb4e9b /src/nautilus-main.c | |
parent | f938b03d684a30e839cb41bc9c8a10d846ad14a8 (diff) | |
download | nautilus-2fa1795d4a0be070abe85b10b96068fd7eb55cd4.tar.gz |
reviewed by: Darin Adler <darin@eazel.com> and
Robey Pointer <robey@eazel.com>
Fix bugs 5528 (oaf command-line options show up in main program
section, not a separate section) and 5510 (descriptions of
OAF-specific options in --help are not translated). To do this I
had to change the way the oaf popt options are processed in all
the places that do so.
* components/adapter/main.c: (main):
* components/hardware/main.c: (main):
* components/help/hyperbola-main.c: (main):
* components/image-viewer/Nautilus_View_image.oaf.in:
* components/image-viewer/nautilus-image-view.c:
(init_server_factory):
* components/loser/content/main.c: (main):
* components/loser/sidebar/main.c: (main):
* components/mozilla/main.c: (main):
* components/music/main.c: (main):
* components/notes/nautilus-notes.c: (main):
* components/rpmview/main.c: (main):
* components/services/install/command-line/eazel-alt-install-corba.
c: (main):
* components/services/install/nautilus-view/main.c: (main):
* components/services/login/nautilus-view/main.c: (main):
* components/services/summary/nautilus-view/main.c: (main):
* components/services/time/command-line/main.c: (main):
* components/services/time/nautilus-view/main.c: (main):
* components/services/trilobite/libtrilobite/trilobite-core-utils.c
: (trilobite_init):
* components/shell/shell.c:
* components/text/Nautilus_View_text.oaf.in:
* components/text/main.c: (main):
* components/throbber/main.c: (main):
* components/tree/main.c: (main):
* libnautilus/nautilus-view-standard-main.c:
(nautilus_view_standard_main_multi):
* src/Nautilus_shell.oaf.in:
* src/nautilus-main.c: (main):
* test/test-nautilus-mime-actions-set.c: (main):
* test/test-nautilus-mime-actions.c: (main): Register oaf options
with gnomelib_register_popt_options and move oaf_init call to
before gnome_init to fix the aforementioned bugs.
Diffstat (limited to 'src/nautilus-main.c')
-rw-r--r-- | src/nautilus-main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nautilus-main.c b/src/nautilus-main.c index a92565cd9..b138d8cdf 100644 --- a/src/nautilus-main.c +++ b/src/nautilus-main.c @@ -150,10 +150,6 @@ main (int argc, char *argv[]) N_("Quit Nautilus."), NULL }, { "restart", '\0', POPT_ARG_NONE | POPT_ARGFLAG_DOC_HIDDEN, &restart_shell, 0, N_("Restart Nautilus."), NULL }, - /* FIXME bugzilla.eazel.com 5228: The help for these OAF options - * should be in a separate section. - */ - { NULL, '\0', POPT_ARG_INCLUDE_TABLE, &oaf_popt_options, 0, NULL, NULL }, { NULL, '\0', 0, NULL, 0, NULL, NULL } }; @@ -195,6 +191,11 @@ main (int argc, char *argv[]) no_default_window = FALSE; perform_self_check = FALSE; restart_shell = FALSE; + + gnomelib_register_popt_table (oaf_popt_options, + oaf_get_popt_table_name ()); + orb = oaf_init (argc, argv); + gnome_init_with_popt_table ("nautilus", VERSION, argc, argv, options, 0, &popt_context); @@ -227,7 +228,7 @@ main (int argc, char *argv[]) LIBXML_TEST_VERSION g_atexit (xmlCleanupParser); g_thread_init (NULL); - orb = oaf_init (argc, argv); + if (g_getenv ("NAUTILUS_ENABLE_TEST_COMPONENTS") != NULL) { oaf_set_test_components_enabled (TRUE); } |