Re: copy GVariant
- From: Murray Cumming <murrayc murrayc com>
- To: Povietkin Konstantin <povetkin k gmail com>
- Cc: GTKMM-List <gtkmm-list gnome org>
- Subject: Re: copy GVariant
- Date: Tue, 08 Feb 2011 08:44:48 +0100
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]