What's wrong with Glib::ValueBase::gobj()? It returns a pointer to gobject_. What else do you want? How should your proposed Glib::ValueBase::get_gvalue() differ from Glib::ValueBase::gobj()? On 2019-04-23 06:14,
Pavlo Solntsev via gtkmm-list wrote:
Hi, I have Glib::Value<Foo> data; data.init(Glib::Value<Foo>::value_type()); How can I get pure C GValue*? I need it to use with the C API. data.gobj() returns C++ based type, which is not acceptable by C API. I see protected gobject_ in the base class. Does it make sense to have an API, e.g. const GValue* Glib::ValueBase::get_gvalue() to fetch thepointer for underlying GValue? Any other suggestion? Thanks. |