reverse part of arg parsing patch
James LewisMoss
dres@phoenixdsl.com
06 Dec 2000 12:58:20 -0500
I messed up. Unintended consequences and all. Please apply below to
reverse the effect of my last patch.
Index: top-level.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnome/top-level.c,v
retrieving revision 1.54
diff -u -b -r1.54 top-level.c
--- top-level.c 2000/12/05 10:36:18 1.54
+++ top-level.c 2000/12/06 17:58:01
@@ -143,13 +143,16 @@
int
gnucash_ui_init(void)
{
+ int fake_argc = 1;
+ char *fake_argv[] = {"gnucash"};
+
ENTER ("\n");
/* We're going to have to have other ways to handle X and GUI
specific args... */
if (!gnome_is_initialized)
{
- gnome_init("GnuCash", NULL, gnc_get_global_argc(), gnc_get_global_argv());
+ gnome_init("GnuCash", NULL, fake_argc, fake_argv);
gnome_is_initialized = TRUE;
/* initialization required for gtkhtml */
--
@James LewisMoss <dres@debian.org> | Blessed Be!
@ http://jimdres.home.mindspring.com | Linux is kewl!
@"Argue for your limitations and sure enough, they're yours." Bach