Re: [Planner Dev] Patch to add an abstraction layer between Planner and GConf



Mikael,
	I was looking at how Gnumeric do this and they do similar
except they have a preferences structure which is all set in the
(planner)-conf and then just refer to that structure through the
rest of the program,

e.g. instead if

	priv->highlight_critical = planner_conf_get_bool (CRITICAL_PATH_KEY,
							  NULL);

we do

	priv->highlight_critical = planner-user-prefs->highlight_critical;

or similar, they wouldn't have to be the same names, though it would
be helpful.  Basically keep the key details central and just refer to
the structure. Different views could have different preference
structures.

Rgds,
Lincoln.





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