[compiz] Re: [PATCH] Dbus improvements (was Include option type
in gconf schema)
Mike Dransfield
mike at blueroot.co.uk
Mon Dec 11 11:23:09 PST 2006
I have quite a few changes planned for the dbus
and annotate plugins. I am working towards a
full scripting API which can use the plugins'
individual functions for themselves.
My first proof of concept was a copy of
cairo-clock but rendered to the screen rather
than as an app. It used python to communicate
over dbus with the annotate plugin.
I hope you dont mind, but I would like to maintain
a version of dbus and annotate for a while so that I
can work on a better API. A git repository would be
useful here because it would make it easier for people
to test and provide feedback. We are having trouble
with exchanging tarballs over a forum :)
My current versions are here, the only real difference
at the moment is that I use dictionaries and my
annotate has svg support.
http://www.anykeysoftware.co.uk/compiz/plugins/scripting-0.9.1.tar.bz2
I obviously would like all of this included in the official
distribution eventually, but I would like to experiment
a bit to see what is and what isn't possible.
Also, would you be open to me writing patches so that
things are returned as a dictionary?, it would help with
forward compatibility if any extra information is added.
Thanks
David Reveman wrote:
> I've improved mike's patch a bit and included it. I also made the dbus
> plugin send signals when options change.
>
> -David
>
> On Sat, 2006-12-02 at 16:19 +0000, Ben Reeves wrote:
>
>> Whats the status of these patches, are they going to be included in
>> git? I would really think these improvements would be useful
>>
>> Thanks,
>> Ben
>>
>> On 11/24/06, Mike Dransfield <mike at blueroot.co.uk> wrote:
>>
>> > Great, I've been hoping that someone would implement
>> functionality for
>> > retrieving all the option meta data through the dbus plugin.
>> Let me know
>> > when this is ready to go into head and I'll have a look at
>> it.
>> >
>> >
>>
>> I think the attached patch is much better than the previous
>> one I have made the methods return complex datatypes and
>> I have split the function into type specific rest
>> functions. This
>> will hopefully make it much easier for strictly typed
>> languages.
>>
>> I have also added some changes to send notifications as
>> signals,
>> this serves as a simple way for the actions to return
>> information, doing it any other way would mean some nasty
>> hacks to the core. The downside is that script writers will
>> have to deal with asynchronous programming.
>>
>> I will have a look at adding some functions to get information
>> on windows and screens and then I will have a look at
>> introspection.
>>
>> I have attached the patches in the git format specified,
>> hopefully they will be acceptable.
>>
>> _______________________________________________
>> compiz mailing list
>> compiz at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/compiz
>>
>
>
> _______________________________________________
> compiz mailing list
> compiz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz
>
More information about the compiz
mailing list