Re: [Setup-tool-hackers] src/common/tool.[ch]



Hans Petter Jansson <hpj@ximian.com> writes:

> > What I am running into with the network config is that basically each
> > connection has a config dialog.  This dialog sadly looks and acts just
> > like a main tool (same buttons etc) but I get to redo a lot of the
> > code from tool.c.
> > 
> > Is there a really really good reason not to do this?
> 
> What parts of the ToolContext are you re-using in the dialogs? I'm thinking
> we could have something like a ToolDialogContext to satisfy the family of
> complex dialogs. After all, ToolContext is intended for the entire tool, and
> dialogs don't load/save configuration parameters from/to the backend. Or are
> your dialogs behaving entirely like sub-tools?

This would pretty much solve my problem.

Jacob
-- 
"The people who made the Macintosh produced a miracle, but that
 doesn't mean their code was wonderful." -- Bob Cringely




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]