Hi,

2010/6/25 Andrew <[email protected]>:
> 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
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to