[compiz] Flat file backend (ini)

Mike Dransfield mike at blueroot.co.uk
Sat Mar 3 12:08:46 PST 2007


David Reveman wrote:
> On Fri, 2007-03-02 at 13:35 +0000, Mike Dransfield wrote:
>   
>> This seems roughly what I would need.  I applied your patches and added
>> IN_MODIFY since I need that too.
>>     
>
> Yes, we need a MODIFY bit.
>   

I am attaching a patch for that

I have also changed the notification functions as you said.
I now create a custom structure to pass through which contains
all the information that I need.

There are 2 major problems though:

1. If I add a delete and a notify function then the closure gets
mixed up.  Everything works if I just add 1 but more than 1 and
they seem to interact with each other.  I am creating the watches
with different functions, I just pass the same closure (line 1031).

2. The modify notification works, but only the first time.  With
the current version I can modify a file once and I get the notification
and the option reloads, but if I modify the file a second time then
I get no notification.

http://www.anykeysoftware.co.uk/compiz/plugins/ini.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-IN_MODIFY-bit.patch
Type: text/x-patch
Size: 1108 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/compiz/attachments/20070303/78f55412/0001-Added-IN_MODIFY-bit.bin


More information about the compiz mailing list