Re: copy GVariant



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 ) );
 
В Пнд, 07/02/2011 в 20:52 +0100, Murray Cumming пишет:
> On Mon, 2011-02-07 at 17:09 +0200, Povietkin Konstantin wrote:
> > Is there any way to make a _copy_ of an GVariant object?
> 
> This mailing list is for the gtkmm API. Questions about the C APIs would
> be more appropriate on gtk-list, for instance.
> 

-- 
"No Civilization = Freedom"
------------------------------------------------------------------------
Yes, I am a criminal. My crime is that of curiosity.

My crime is that of judging people by what they say and think, not what
they look like.

 



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