[glibmm] Gio::InetSocketAddress, ProxyAddress: No guint16 in _WRAP_PROPERTY()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::InetSocketAddress, ProxyAddress: No guint16 in _WRAP_PROPERTY()
- Date: Wed, 13 Dec 2017 17:15:38 +0000 (UTC)
commit 4e05fb4c120528984813ef8bd3646a6ba18e754b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed Dec 13 18:12:38 2017 +0100
Gio::InetSocketAddress, ProxyAddress: No guint16 in _WRAP_PROPERTY()
* gio/src/inetsocketaddress.hg:
* gio/src/proxyaddress.hg: Don't use guint16 or guint32 in _WRAP_PROPERTY().
There are no Glib::Value<> specializations for those types. Use guint which
is a typedef of unsigned int.
gio/src/inetsocketaddress.hg | 11 +++++++----
gio/src/proxyaddress.hg | 8 ++++----
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/gio/src/inetsocketaddress.hg b/gio/src/inetsocketaddress.hg
index 59c9fca..4177cb5 100644
--- a/gio/src/inetsocketaddress.hg
+++ b/gio/src/inetsocketaddress.hg
@@ -54,10 +54,13 @@ public:
_WRAP_METHOD(guint32 get_flowinfo() const, g_inet_socket_address_get_flowinfo)
_WRAP_METHOD(guint32 get_scope_id() const, g_inet_socket_address_get_scope_id)
- _WRAP_PROPERTY("address", Glib::RefPtr<InetAddress>)
- _WRAP_PROPERTY("port", guint16)
- _WRAP_PROPERTY("flowinfo", guint32)
- _WRAP_PROPERTY("scope-id", guint32)
+ _WRAP_PROPERTY("address", Glib::RefPtr<InetAddress>)
+ // Don't use guint16 or guint32 in _WRAP_PROPERTY().
+ // There are no Glib::Value<> specializations for those types.
+ // Glib::Value<unsigned int> exists, and guint is a typedef of unsigned int.
+ _WRAP_PROPERTY("port", guint)
+ _WRAP_PROPERTY("flowinfo", guint)
+ _WRAP_PROPERTY("scope-id", guint)
};
} // namespace Gio
diff --git a/gio/src/proxyaddress.hg b/gio/src/proxyaddress.hg
index 5d64bdd..44a9835 100644
--- a/gio/src/proxyaddress.hg
+++ b/gio/src/proxyaddress.hg
@@ -65,10 +65,10 @@ public:
_WRAP_PROPERTY("protocol", Glib::ustring)
_WRAP_PROPERTY("destination_protocol", Glib::ustring)
_WRAP_PROPERTY("destination_hostname", Glib::ustring)
-
-//TODO: This should really be a guint16:
- _WRAP_PROPERTY("destination_port", Glib::ustring)
-
+ // Don't use guint16 in _WRAP_PROPERTY().
+ // There is no Glib::Value<> specialization for guint16.
+ // Glib::Value<unsigned int> exists, and guint is a typedef of unsigned int.
+ _WRAP_PROPERTY("destination_port", guint)
_WRAP_PROPERTY("username", Glib::ustring)
_WRAP_PROPERTY("password", Glib::ustring)
_WRAP_PROPERTY("uri", Glib::ustring)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]