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





Mikael Hallendal wrote:

Hi,

Here is a patch to make an abstraction layer between the application and
GConf. The idea is to have planner-conf.h as a common header file and
planner-conf-gconf.c and planner-conf-windows.c that implements the
functions in the header file. At compile time either planner-conf-
gconf.c or planner-conf-windows.c is linked in to provide the
implementation of the functions.

Could the file name be planner-conf-mswindows.c or planner-conf-mswin32.c
so its clearer its MS Windows. This makes grepping for the strings
easier as Windows is *so* generic ;)


The API mimics GConf and I've only added the functions needed so far,
for example:

gboolean foo = planner_conf_get_bool ("/general/last_dir", error);

So, keep in mind that you don't have to add "/apps/planner", that is
added within planner-conf-gconf.c.

So Richard, can I commit this?

Best Regards,
  Mikael Hallendal




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