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 /components/loser | |
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 'components/loser')
-rw-r--r-- | components/loser/content/main.c | 10 | ||||
-rw-r--r-- | components/loser/sidebar/main.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/components/loser/content/main.c b/components/loser/content/main.c index 24d6c943a..6b4a28ab0 100644 --- a/components/loser/content/main.c +++ b/components/loser/content/main.c @@ -80,12 +80,12 @@ int main(int argc, char *argv[]) nautilus_content_loser_maybe_fail ("pre-init"); - gnome_init_with_popt_table("nautilus-content-loser", VERSION, - argc, argv, - oaf_popt_options, 0, NULL); - + gnomelib_register_popt_table (oaf_popt_options, oaf_get_popt_table_name ()); orb = oaf_init (argc, argv); - + + gnome_init ("nautilus-content-loser", VERSION, + argc, argv); + bonobo_init (orb, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL); nautilus_content_loser_maybe_fail ("post-init"); diff --git a/components/loser/sidebar/main.c b/components/loser/sidebar/main.c index 455635d98..c71e6609d 100644 --- a/components/loser/sidebar/main.c +++ b/components/loser/sidebar/main.c @@ -80,11 +80,11 @@ int main(int argc, char *argv[]) nautilus_sidebar_loser_maybe_fail ("pre-init"); - gnome_init_with_popt_table("nautilus-sidebar-loser", VERSION, - argc, argv, - oaf_popt_options, 0, NULL); - + gnomelib_register_popt_table (oaf_popt_options, oaf_get_popt_table_name ()); orb = oaf_init (argc, argv); + + gnome_init ("nautilus-sidebar-loser", VERSION, + argc, argv); bonobo_init (orb, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL); |