[glibmm] Socket: Remove create_source() again.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Socket: Remove create_source() again.
- Date: Fri, 7 Sep 2012 08:48:30 +0000 (UTC)
commit 435d47c7d332610f374f3130e03416937c5c78c7
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Sep 7 10:48:24 2012 +0200
Socket: Remove create_source() again.
* gio/src/socket.hg:
* tools/m4/convert_glib.m4: Comment out
create_source() because Glib::Source (in main.h)
does not have a Glib::wrap(). Maybe it should.
ChangeLog | 9 +++++++++
gio/src/socket.hg | 2 +-
tools/m4/convert_glib.m4 | 2 +-
3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0d08834..47832ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2012-09-07 Murray Cumming <murrayc murrayc com>
+ Socket: Remove create_source() again.
+
+ * gio/src/socket.hg:
+ * tools/m4/convert_glib.m4: Comment out
+ create_source() because Glib::Source (in main.h)
+ does not have a Glib::wrap(). Maybe it should.
+
+2012-09-07 Murray Cumming <murrayc murrayc com>
+
Socket. Add several methods.
* gio/src/socket.hg: Added create_source(),
diff --git a/gio/src/socket.hg b/gio/src/socket.hg
index d50acf9..e29739b 100644
--- a/gio/src/socket.hg
+++ b/gio/src/socket.hg
@@ -151,7 +151,7 @@ public:
_WRAP_METHOD(void close(), g_socket_close, errthrow)
_WRAP_METHOD(bool is_closed(), g_socket_is_closed)
- _WRAP_METHOD(Glib::RefPtr<Glib::IOSource> create_source(Glib::IOCondition condition, const Glib::RefPtr<Cancellable>& cancellable{?}), g_socket_create_source)
+ //TODO: Glib::Source has no wrap() method: _WRAP_METHOD(Glib::RefPtr<Glib::Source> create_source(Glib::IOCondition condition, const Glib::RefPtr<Cancellable>& cancellable{?}), g_socket_create_source)
_WRAP_METHOD(void shutdown(bool shutdown_read, bool shutdown_write), g_socket_shutdown, errthrow)
_WRAP_METHOD(bool is_connected(), g_socket_is_connected)
diff --git a/tools/m4/convert_glib.m4 b/tools/m4/convert_glib.m4
index 3c2e28b..9bc7534 100644
--- a/tools/m4/convert_glib.m4
+++ b/tools/m4/convert_glib.m4
@@ -132,7 +132,7 @@ _CONVERSION(`GRegex*',`Glib::RefPtr<Regex>',`Glib::wrap($3)')
_CONVERSION(`GRegex*',`Glib::RefPtr<const Regex>',`Glib::wrap($3)')
#Source
-_CONVERSION(`GSource*',`Glib::RefPtr<Glib::IOSource>',`Glib::wrap($3)')
+_CONVERSION(`GSource*',`Glib::RefPtr<Glib::Source>',`Glib::wrap($3)')
dnl TimeVal
_CONVERSION(`const TimeVal&',`const GTimeVal*',`&($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]