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 ha

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 t

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 LX

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

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, (n

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, (n

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 s

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 anothe

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

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 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

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 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 >

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 al

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

2010-06-29 Thread Abderrahim Kitouni
Hello, 2010/6/28, Andrew : > Just two more questions: > > 1) I have to use the code below to do what I want it to, can I put this > in the init of the class cuz it doesn't appear to work > > def create_indicator() > var ind = new wAppIndicator("wasiliana-wapp", "indicator-messages", > Cat

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 : >> On 27/06/10 17:32, Abderrahim Kitouni wrote: >>> Hi, >>> >>> 2010/6/27 Andrew : 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

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

2010-06-27 Thread Abderrahim Kitouni
Hi, 2010/6/27 Andrew : > On 27/06/10 17:32, Abderrahim Kitouni wrote: >> Hi, >> >> 2010/6/27 Andrew : >>> 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_TYP

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 : >>> 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_INDI

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

2010-06-27 Thread Andrew
On 27/06/10 17:32, Abderrahim Kitouni wrote: > Hi, > > 2010/6/27 Andrew : >> 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. >> >> Atta

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

2010-06-27 Thread Abderrahim Kitouni
Hi, 2010/6/27 Andrew : > 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 the right di

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 : >>> 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 (thi

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 : >> 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

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

2010-06-26 Thread Abderrahim Kitouni
Hi, 2010/6/25, Andrew : > 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 > definition of the

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 : >> On 25/06/10 09:00, Abderrahim Kitouni wrote: >>> Hi, >>> >>> 2010/6/25 Andrew : 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

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

2010-06-25 Thread Abderrahim Kitouni
Hi, 2010/6/25 Andrew : > On 25/06/10 09:00, Abderrahim Kitouni wrote: >> Hi, >> >> 2010/6/25 Andrew : >>> 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 met

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

2010-06-25 Thread Abderrahim Kitouni
Hi, 2010/6/25 Andrew : > 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 with this > ht

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 : >> 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 understan

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 : >> 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-24 Thread Abderrahim Kitouni
Hi, 2010/6/24, 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

[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 Gerrard