Robert Graham Merkel writes:
> I have almost finished a "Tip Of The Day" dialog. Its appearance, and
> much of the code, is borrowed from gnome-hint.
>
> The only problem I have remaining is that I want to have a typical
> "show tips of the day at startup" checkbox present in the dialog box
> itself, but make this behaviour also configurable from the usual
> preferences dialog.
>
> Unfortunately, the preferences dialog seems to assume that, once set
> up, options are only going to be changed from within it (and not
> outside).
The function _gnc_option_refresh_ui was intended for that use from
the guile side, but it could probably be promoted to use by both C
and scheme. (If you go that route, you should remove the _ from the
start of the name).
> Would it be too much of a performance hit if we set things up so that
> when the preferences dialog was shown, it (perhaps optionally)
> rechecked all guile-side values? If so, what might be the best way
> to set things up so that the values that need to be reset, are?
> This is not altogether easy to do with the current setup, as the guile
> option code doesn't really care about the GUI widgets and so finding
> which widget needs to be reset is non-trivial.
For now, it's probably easiest to use the function I mentioned above.
If we find ourselves implementing multiple GUIs for several options,
we should probably generalize the code to handle that more automatically.
dave
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]