[Vala] How to append element to Variant array of tuples?



Hi!

In my app I use Settings with key defined in schema as follows:

a(sbsyssbyqqqq)

I am able to retreive it with

Variant mykey = settings.get_value("mykey");


The question is:

how can I add an element to end of this array and store that value in
the settings?

It could be interpret as a much more general question:

how to add in Vala an element to existing Variant if VariantType is
array of tuples?


Thank you in advance,

your help will be really appreciated.

m.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]