Re: Handling preferences
Jorge Arellano Cid <[email protected]>
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Nov 16, 2012 at 03:14:41PM +0100, Sebastian Geerken wrote: > On Thu, Nov 15, Jorge Arellano Cid wrote: > > [...] > > AFAICS an init(p1, p2, ...) function is very good for setting > > the whole prefs pack at once, but it doesn't seem as convenient > > for changing just one of those vars at run time; which may be > > necessary for instance if we ever implement a preferences dpi or > > enable a custom UI (as with change panel size). > > > > I'm a bit more inclined towards the separate functions for each > > var approach. > > Yes, probably this is a good idea. However, should these methods be > static or not? That is, should it be possible that different instances > of dw::Textblock have different values set? > > One problem is that dw::Textblock is instanciated at a couple of > postions, and how configuration looks like eventually is not clear > yet; so I'd like to follow a more pragmatical approach to set the at > one position in the code. I'd go for the simple solution now (a global setting). i.e. a CLI parameter sets the whole browser. If the need arises in the future we may re-evaluate enabling the change of a particular textblock var on the fly. -- Cheers Jorge.-