Re: [Vala] Genie, subclassing and some help!

2010-07-06 Thread Harry Van Haaren
Hey, Got this compiled after a little hassle, for people that want the command: valac --vapidir=./ --pkg gtk+-2.0 --pkg appindicator-0.1 --pkg webkit-1.0 indicator.gs webkit_view.gs main_window.gs main.gs with the appindicator.vapi in the same dir as the files. It should compile, assuming you

Re: [Vala] Genie, subclassing and some help!

2010-07-04 Thread Andrew
On 03/07/10 20:45, Harry Van Haaren wrote: Don't worry got it solved, indicator was being lost (a local variable) and so I had to bind it as a property of the class and now even subclassing works! Hey, Glad you got it working... any chance you'd post a .zip of the files

Re: [Vala] Genie, subclassing and some help!

2010-07-03 Thread Andrew
On 02/07/10 18:25, Andrew wrote: On 30/06/10 14:41, Harry Van Haaren wrote: Aha, fully understand the problem now at least. Do you have one of these appIndicator dock things in your panel? The following document [1] seems to say that they might re-design/ change some things in how the docks

Re: [Vala] Genie, subclassing and some help!

2010-07-03 Thread Harry Van Haaren
Don't worry got it solved, indicator was being lost (a local variable) and so I had to bind it as a property of the class and now even subclassing works! Hey, Glad you got it working... any chance you'd post a .zip of the files as you had before with the working example..? To test on my LXDE

Re: [Vala] Genie, subclassing and some help!

2010-07-02 Thread Andrew
On 30/06/10 14:41, Harry Van Haaren wrote: Aha, fully understand the problem now at least. Do you have one of these appIndicator dock things in your panel? The following document [1] seems to say that they might re-design/ change some things in how the docks work. I'm running LXDE, (no

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Andrew
On 29/06/10 12:58, Harry Van Haaren wrote: Hey! 2) Perhaps related, in the main.gs http://main.gs file, I have: init Gtk.init(ref args) create_indicator() Gtk.main() However, if I don;t put the Gtk.main() in the function above (rather than the

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Andrew
On 30/06/10 11:57, Harry Van Haaren wrote: BZR branch with code in (if you need it in other form, please don't hesitate to ask): Would you mind just tar-ing or zipping it? I tried to find a download zip button on Launchpad, only Bazaar is there I think though... And I don't use

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Andrew
On 30/06/10 12:37, Harry Van Haaren wrote: Okay, I have put a Zip of the branch in the branch which you can download here: http://bazaar.launchpad.net/~and471/+junk/not-working/annotate/head:/wasiliana.zip

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Harry Van Haaren
In the .vide project you have included a file in /home/andrew/Temp/appindicator-0.1.vapi Were going to need that file too. Put it in the vapi folder. The vapi is in the vapi/ dir, don't know why it has been set to another directory sorry about that. The appindicator-0.1.vapi is in the

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Andrew
On 30/06/10 13:10, Harry Van Haaren wrote: In the .vide project you have included a file in /home/andrew/Temp/appindicator-0.1.vapi Were going to need that file too. Put it in the vapi folder. The vapi is in the vapi/ dir, don't know why it has been set to another

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Harry Van Haaren
Aha, fully understand the problem now at least. Do you have one of these appIndicator dock things in your panel? The following document [1] seems to say that they might re-design/ change some things in how the docks work. I'm running LXDE, (no fancy AppIndicator dock I dont think...). What I

Re: [Vala] Genie, subclassing and some help!

2010-06-30 Thread Andrew
On 30/06/10 14:41, Harry Van Haaren wrote: Aha, fully understand the problem now at least. Do you have one of these appIndicator dock things in your panel? The following document [1] seems to say that they might re-design/ change some things in how the docks work. I'm running LXDE, (no

Re: [Vala] Genie, subclassing and some help!

2010-06-29 Thread Harry Van Haaren
Hey! 2) Perhaps related, in the main.gs file, I have: init Gtk.init(ref args) create_indicator() Gtk.main() However, if I don;t put the Gtk.main() in the function above (rather than the init), it doesn't work. Why is this/is this on purpose? Maybe you understand this already,

Re: [Vala] Genie, subclassing and some help!

2010-06-28 Thread Andrew
On 27/06/10 18:47, Abderrahim Kitouni wrote: Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 17:32, Abderrahim Kitouni wrote: Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 08:16, Andrew wrote: Ignore that, I managed to do the APP_INDICATOR_TYPE correctly in the vapi file,

Re: [Vala] Genie, subclassing and some help!

2010-06-27 Thread Andrew
On 26/06/10 23:09, Abderrahim Kitouni wrote: Hi, 2010/6/25, Andrew rugby...@gmail.com: Thankyou very much :-) That seemed to work and hopefully I shall try less ambitious things next time :-) However now I get this error, is this a bug in the library (this is without invoking a new

Re: [Vala] Genie, subclassing and some help!

2010-06-27 Thread Andrew
On 27/06/10 08:16, Andrew wrote: On 26/06/10 23:09, Abderrahim Kitouni wrote: Hi, 2010/6/25, Andrew rugby...@gmail.com: Thankyou very much :-) That seemed to work and hopefully I shall try less ambitious things next time :-) However now I get this error, is this a bug in the library

Re: [Vala] Genie, subclassing and some help!

2010-06-27 Thread Abderrahim Kitouni
Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 08:16, Andrew wrote: Ignore that, I managed to do the APP_INDICATOR_TYPE correctly in the vapi file, however I don't seem to have any success with the APP_INDICATOR_TYPE_INDICATOR_CATEGORY. Attached is the vapi file, could you point me in

Re: [Vala] Genie, subclassing and some help!

2010-06-27 Thread Andrew
On 27/06/10 18:11, Andrew wrote: On 27/06/10 17:32, Abderrahim Kitouni wrote: Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 08:16, Andrew wrote: Ignore that, I managed to do the APP_INDICATOR_TYPE correctly in the vapi file, however I don't seem to have any success with the

Re: [Vala] Genie, subclassing and some help!

2010-06-27 Thread Abderrahim Kitouni
Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 17:32, Abderrahim Kitouni wrote: Hi, 2010/6/27 Andrew rugby...@gmail.com: On 27/06/10 08:16, Andrew wrote: Ignore that, I managed to do the APP_INDICATOR_TYPE correctly in the vapi file, however I don't seem to have any success with the

Re: [Vala] Genie, subclassing and some help!

2010-06-26 Thread Abderrahim Kitouni
Hi, 2010/6/25, Andrew rugby...@gmail.com: Thankyou very much :-) That seemed to work and hopefully I shall try less ambitious things next time :-) However now I get this error, is this a bug in the library (this is without invoking a new instance of the subclass, just compiling the

Re: [Vala] Genie, subclassing and some help!

2010-06-25 Thread Andrew
On 24/06/10 21:39, Abderrahim Kitouni wrote: Hi, 2010/6/24, Andrew rugby...@gmail.com: Hi guys, I am a programmer coming form python and I am trying to get to grips with Genie. One problem I am having is as follows: Say I have a class called Gerrard and to create a new version of this

Re: [Vala] Genie, subclassing and some help!

2010-06-25 Thread Andrew
On 25/06/10 09:00, Abderrahim Kitouni wrote: Hi, 2010/6/25 Andrew rugby...@gmail.com: Thankyou for your help. I tried the first method but it didn't work (it is a Gtk object and so I doubted it would due to what you said above). I then tried to do the second method but I didn't really

Re: [Vala] Genie, subclassing and some help!

2010-06-25 Thread Abderrahim Kitouni
Hi, 2010/6/25 Andrew rugby...@gmail.com: Thankyou for your help. I tried the first method but it didn't work (it is a Gtk object and so I doubted it would due to what you said above). I then tried to do the second method but I didn't really understand what to do. Could you do an example

Re: [Vala] Genie, subclassing and some help!

2010-06-25 Thread Abderrahim Kitouni
Hi, 2010/6/25 Andrew rugby...@gmail.com: On 25/06/10 09:00, Abderrahim Kitouni wrote: Hi, 2010/6/25 Andrew rugby...@gmail.com: Thankyou for your help. I tried the first method but it didn't work (it is a Gtk object and so I doubted it would due to what you said above). I then tried to do

Re: [Vala] Genie, subclassing and some help!

2010-06-25 Thread Andrew
On 25/06/10 10:29, Abderrahim Kitouni wrote: Hi, 2010/6/25 Andrew rugby...@gmail.com: On 25/06/10 09:00, Abderrahim Kitouni wrote: Hi, 2010/6/25 Andrew rugby...@gmail.com: Thankyou for your help. I tried the first method but it didn't work (it is a Gtk object and so I doubted it would

[Vala] Genie, subclassing and some help!

2010-06-24 Thread Andrew
Hi guys, I am a programmer coming form python and I am trying to get to grips with Genie. One problem I am having is as follows: Say I have a class called Gerrard and to create a new version of this class, I use the following: var g = new Gerrard(arg1, arg2, arg3) Now I wish to subclass

Re: [Vala] Genie, subclassing and some help!

2010-06-24 Thread Abderrahim Kitouni
Hi, 2010/6/24, Andrew rugby...@gmail.com: Hi guys, I am a programmer coming form python and I am trying to get to grips with Genie. One problem I am having is as follows: Say I have a class called Gerrard and to create a new version of this class, I use the following: var g = new