[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnome-components
Subject:    Re: GTK_MODULE (G)Option breakage & init ordering ...
From:       michael meeks <michael.meeks () novell ! com>
Date:       2006-02-07 14:58:21
Message-ID: 1139324301.26159.15.camel () linux ! site
[Download RAW message or body]


On Tue, 2006-02-07 at 09:24 -0500, Matthias Clasen wrote:
> >         Unfortunately - the introduction of GOption clobbered all GtkModule
> > argument passing; and ensures that no GtkModule gets anything but a
> > 0/NULL argc/argv cf.
>
> Looks like this is a bug that got introduced when we first switched to
> GOption, and never discovered. Surprising that nobody noticed it before.

	Right ;-) of course, there could be a 3rd bug somewhere that's
revealing this suddenly.

> I'll look into it, we may just have to do the argv-duping earlier.

	Well - IMHO it'd be better to re-work that -slightly- to dlopen the
gtk_modules earlier (since that has to be done anyway) and hooking some
GOption info out of them - so they can have a crack at parsing the args
themselves [ no idea if that'll work though ;-) perhaps a double parse
is necessary to get the --gtk-modules= flag out first ].

	That'd IMHO add a clean / generic way to allow modules to register
arguments I suppose.

	Either way - the libbonobo fix for this wrt. accumulating arguments as
they are passed in is quite simple & fairly clean, and committed ;-)

	Thanks anyhow,

		Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot

_______________________________________________
gnome-components-list mailing list
gnome-components-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-components-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic