After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766150 - Unable to create Gio::SocketAddress instance using Gio::SocketAddress::create()
Unable to create Gio::SocketAddress instance using Gio::SocketAddress::create()
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: giomm
2.46.x
Other Windows
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2016-05-08 21:10 UTC by Vladimir
Modified: 2016-05-09 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladimir 2016-05-08 21:10:24 UTC
Call Gio::SocketAddress::create(gpointer native, gsize len) fails with any parameters:

glibmm-WARNING **: Glib::ConstructParams::ConstructParams(): object class "gtkmm__GSocketAddress" has no property named "native"
Comment 1 Murray Cumming 2016-05-09 10:37:17 UTC
Thanks.

This should fix that:
https://git.gnome.org/browse/glibmm/commit/?id=1bd61e69afed88b1ffc9e46370b415397d530c0e

In the meantime, you could try doing this instead:

Glib::RefPtr<SocketAddress> address = Glib::wrap(g_socket_address_new_from_native(native, len));

That's what the new code does, so please let us know if that works for you.
Comment 2 Vladimir 2016-05-09 12:33:08 UTC
Yeah, it works fine with Glib::wrap.