Re: copy GVariant



On Mon, 2011-02-07 at 23:07 +0200, Povietkin Konstantin wrote:
> I asked this question because i needed a c++ class that was using
> GVariant c-object.
> My solution is simple:
> 
>     GVariant * first;
>     GVariant * second;
> 
>     first = g_variant_new_string( "Тестовая строка" );
> 
>     second = g_variant_new_parsed( g_variant_print( first, TRUE ) );

You are still not using glibmm or gtkmm for this. Please ask questions
about the C API on an appropriate mailing list.


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



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