summaryrefslogtreecommitdiff
path: root/libnautilus
diff options
context:
space:
mode:
authorMaciej Stachowiak <mstachow@src.gnome.org>2001-02-02 03:52:20 +0000
committerMaciej Stachowiak <mstachow@src.gnome.org>2001-02-02 03:52:20 +0000
commit2fa1795d4a0be070abe85b10b96068fd7eb55cd4 (patch)
tree66da429abdbd611be1cbd74fe46cf4f5cccb4e9b /libnautilus
parentf938b03d684a30e839cb41bc9c8a10d846ad14a8 (diff)
downloadnautilus-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 'libnautilus')
-rw-r--r--libnautilus/nautilus-view-standard-main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libnautilus/nautilus-view-standard-main.c b/libnautilus/nautilus-view-standard-main.c
index ec9a00561..424d46a42 100644
--- a/libnautilus/nautilus-view-standard-main.c
+++ b/libnautilus/nautilus-view-standard-main.c
@@ -113,12 +113,13 @@ nautilus_view_standard_main_multi (const char *executable_name,
/* Disable session manager connection */
gnome_client_disable_master_connection ();
+ gnomelib_register_popt_table (oaf_popt_options, oaf_get_popt_table_name ());
+ orb = oaf_init (argc, argv);
+
/* Initialize libraries. */
- gnome_init_with_popt_table (executable_name, version,
- argc, argv,
- oaf_popt_options, 0, NULL);
+ gnome_init (executable_name, version,
+ argc, argv);
gdk_rgb_init ();
- orb = oaf_init (argc, argv);
gnome_vfs_init ();
bonobo_init (orb, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL);