View Full Version : Hello world plugin
mikedee
November 9th, 2006, 05:30 PM
I have written a basic hello world plugin which is based on the plugin template.
I have added all of the options things so that it can respond to keyboard input.
This plugin is now part of the example plugins, for more info see here.
http://forum.compiz.org/viewtopic.php?t=767
gandalfn
November 9th, 2006, 06:41 PM
hi mikedee,
first thank you for plugins backport.
I'll made for ubuntu packages a tarball which congregate your plugins, with this you can add translation file, regen schemas file like compiz tarball and of course made a ./configure && make && make install to build/install them. It missed some plugins but it's simplier to add them.
I hope that can help you
gandalfn
compiz-extra-0.3.3.tar.bz2 (http://gandalfn.club.fr/ubuntu/compiz-extra/compiz-extra-0.3.3.tar.bz2)
mikedee
November 9th, 2006, 07:35 PM
Thanks very much :)
I have linked it from this page. I also added install instructions.
http://www.anykeysoftware.co.uk/compiz/plugins/
Once the svn is up, they can be maintained there. I will try to post here if I make any major changes.
lowfi
November 10th, 2006, 12:47 AM
+1 for the backports.
the helloword is also very cool.
not sure but i think you missed some vars in the VTable
0, /* Features */
0 /* nFeatures */
mikedee
November 10th, 2006, 01:01 AM
Thanks for that, looks like the template linked from the fdo page is out of date.
I have updated it.
moppsy
November 10th, 2006, 08:39 PM
I have updated my template that is linked there.
please let me know if there are any problems with it, or if you have suggestions or improvements.
mikedee
November 11th, 2006, 01:42 AM
Thanks for that :)
My initial thoughts were that over time we could build a set of examples which do specific tasks like manipulating windows, getting / setting options etc.
Miniwin is a good starting point, but it is too complex for a beginner. Maybe some code could be ripped from it to do a simple shrink window example?
moppsy
November 11th, 2006, 12:51 PM
Maybe some code could be ripped from it to do a simple shrink window example?
I have something I did a while ago.
I wrote this to prove a point, but it is a simple example of how to shrink a window.
icon.tar.bz2 (http://home.comcast.net/~moppsy/compiz/icon.tar.bz2)
delphinen
November 12th, 2006, 09:46 PM
It would be very helpful if you could comment the code
mikedee
November 13th, 2006, 07:16 PM
OK - I have commented it, please let me know if anything isnt clear or if something is wrong.
Sephoroth
December 10th, 2007, 10:29 PM
I just thought I'd mention none of the links in this thread (excluding the one in moppsy's post) seem to work anymore.
SmSpillaz
December 11th, 2007, 12:51 AM
It's way out of date. Just ignore it. Can someone unsticky this thread?
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.