Bernie Maier wrote:
>
> Well - I might want my application (that embeds the Gtk Mozilla
> embedding widget) to present a configuration dialog, rather than
> expecting my end-users to hand-edit a configuration file. Now,
> I know on Linux the users tend to be more comfortable doing this
> sort of thing than on Windows, but still the non-embedded Mozilla
> has preferences dialogs.
>
> Now, I suspect there's a programmatic way of doing this via XPCOM,
> but I'm just a simple programmer <g> using the GTK+ interface,
> hence my response to the original post, and the comment you've
> quoted.
>
> Also, I don't know if it is legitimate for my application to
> attempt to parse the preferences file itself, and write out
> the modified entries.
>
> But ultimately I made that comment because I wasn't sure I missed
> something in the documentation.
>
> Cheers,
>
> Bernie
The url I posted to the original question in this threads points to the
Nautilus code, which does exactly what you are asking for.
All you have to do is copy it.
-re