[libgda-uimm] Remove the use of g_type_init() because it has been deprecated.



commit d94fae4d2d6a905e3461c3c809b4ca904bcb16e4
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Sun Oct 28 23:33:17 2012 -0400

    Remove the use of g_type_init() because it has been deprecated.
    
    	* tools/extra_defs_gen/generate_defs_libgda_ui.cc: The docs for the
    	function says that the GType system is initialized automatically now
    	as of glib-2.36.

 ChangeLog                                       |    8 ++++++++
 tools/extra_defs_gen/generate_defs_libgda_ui.cc |    3 ++-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fc35845..f772777 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-10-28  Josà Alburquerque  <jaalburquerque gmail com>
+
+	Remove the use of g_type_init() because it has been deprecated.
+
+	* tools/extra_defs_gen/generate_defs_libgda_ui.cc: The docs for the
+	function says that the GType system is initialized automatically now
+	as of glib-2.36.
+
 4.99.4:
 
 2011-10-03  Josà Alburquerque  <jaalburqu svn gnome org>
diff --git a/tools/extra_defs_gen/generate_defs_libgda_ui.cc b/tools/extra_defs_gen/generate_defs_libgda_ui.cc
index e15b8b7..c924cc1 100644
--- a/tools/extra_defs_gen/generate_defs_libgda_ui.cc
+++ b/tools/extra_defs_gen/generate_defs_libgda_ui.cc
@@ -42,7 +42,8 @@
 
 int main(int, char**)
 {
-  g_type_init();
+  // g_type_init() is deprecated as of glib-2.36.
+  // g_type_init();
 
   std::cout << get_defs(GDAUI_TYPE_BASIC_FORM)          << std::endl
             << get_defs(GDAUI_TYPE_CLOUD)               << std::endl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]