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 understand what to do. >> >> Could you do an example with this >> http://people.canonical.com/~ted/libappindicator/current/AppIndicator.html#app-indicator-new >> ? > > Take a look at the properties section [1], the "construct only" > properties cannot be changed afterwards and so need to be passed to > Object(...) if you don't want the default value. The other is > icon-name (which becomes icon_name in Vala/Genie). > > What we notice here is that the "usually" part in my past message > doesn't work : category is passed to the creation method as an enum > but is stored in the property as a string. I'm not sure how to do the > mapping, you may need to look at the source of app_indicator_new > > HTH, > Abderrahim > > [1] > http://people.canonical.com/~ted/libappindicator/current/AppIndicator.html#AppIndicator.properties
Sorry maybe I didn't explain, I am using Genie for the VERY FIRST time and so what you are saying doesn't really mean anything to me. Could you give me an example that I could learn off of? -- Andrew _______________________________________________ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list