[goocanvasmm] init(): Add back the old deprecated method overload.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goocanvasmm] init(): Add back the old deprecated method overload.
- Date: Thu, 27 Oct 2011 06:52:39 +0000 (UTC)
commit a49b56af6b82500d5cf5d0a7b2aa94d0ff507385
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Oct 27 08:52:31 2011 +0200
init(): Add back the old deprecated method overload.
* goocanvas/goocanvasmm/init.[h|cc]: Add back the init() call with parameters,
but deprecated, to avoid disturbing projects using goocanvasmm too much.
ChangeLog | 7 +++++++
goocanvas/goocanvasmm/init.cc | 6 ++++++
goocanvas/goocanvasmm/init.h | 7 ++++++-
3 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a3c676c..db2a4d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-10-27 Murray Cumming <murrayc murrayc com>
+
+ init(): Add back the old deprecated method overload.
+
+ * goocanvas/goocanvasmm/init.[h|cc]: Add back the init() call with parameters,
+ but deprecated, to avoid disturbing projects using goocanvasmm too much.
+
1.90.7:
2011-10-26 Murray Cumming <murrayc murrayc com>
diff --git a/goocanvas/goocanvasmm/init.cc b/goocanvas/goocanvasmm/init.cc
index aaf06d2..c426516 100644
--- a/goocanvas/goocanvasmm/init.cc
+++ b/goocanvas/goocanvasmm/init.cc
@@ -34,4 +34,10 @@ void init()
wrap_init(); //Tells the Glib::wrap() table about the libgnomecanvasmm classes.
}
+void init(const Glib::ustring& /* app_id */, const Glib::ustring& /* version */, int /* nargs */, gchar * /* args */[])
+{
+ Glib::init(); //Sets up the g type system and the Glib::wrap() table.
+ wrap_init(); //Tells the Glib::wrap() table about the libgnomecanvasmm classes.
+}
+
} //namespace Goocanvas
diff --git a/goocanvas/goocanvasmm/init.h b/goocanvas/goocanvasmm/init.h
index a9e2e3d..eb32960 100644
--- a/goocanvas/goocanvasmm/init.h
+++ b/goocanvas/goocanvasmm/init.h
@@ -25,9 +25,14 @@
namespace Goocanvas
{
-//TODO: Remove these paramters.
+/** Initialize goocanvasmm
+ */
void init();
+/** @deprecated these parameters are not used. Please use init() instead.
+ */
+void init(const Glib::ustring& app_id, const Glib::ustring& version, int nargs, gchar *args[]);
+
} //namespace Goocanvas
#endif //_LIBGOOCANVASMM_INIT_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]