[planner] g_type_init() has been deprecated since GLib 2.36



commit 23699814d5cc425b89baa20236a802f28dca7c2c
Author: Andrew Miloradovsky <miloradovsky gmail com>
Date:   Fri May 5 14:38:27 2017 +0000

    g_type_init() has been deprecated since GLib 2.36
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782227

 README                      |    2 +-
 configure.ac                |    2 +-
 docs/libplanner/Makefile.am |    2 +-
 tests/calendar-test.c       |    2 --
 tests/cmd-manager-test.c    |    2 --
 tests/scheduler-test.c      |    2 --
 tests/task-test.c           |    2 --
 7 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/README b/README
index 5e44d0f..09066e6 100644
--- a/README
+++ b/README
@@ -56,7 +56,7 @@ Installation
 
 Dependencies:
 
-GLIB 2.6.0
+GLIB 2.36.0
 GTK 2.24.0
 LIBGNOMECANVAS 2.10.0
 LIBGLADE 2.3.0
diff --git a/configure.ac b/configure.ac
index 4dcd7b8..e22b23e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,7 +65,7 @@ dnl ==========================================================================
 dnl If you add a version number here, you *must* add an AC_SUBST line for
 dnl it too, or it will never make it into the spec file!
 
-GLIB_REQUIRED=2.6.0
+GLIB_REQUIRED=2.36.0
 GTK_REQUIRED=2.24.0
 LIBGNOMECANVAS_REQUIRED=2.10.0
 LIBGLADE_REQUIRED=2.3.0
diff --git a/docs/libplanner/Makefile.am b/docs/libplanner/Makefile.am
index d4d655d..51b6f1f 100644
--- a/docs/libplanner/Makefile.am
+++ b/docs/libplanner/Makefile.am
@@ -10,7 +10,7 @@ DOC_MAIN_SGML_FILE=libplanner-docs.sgml
 DOC_SOURCE_DIR=../../libplanner
 
 # Extra options to pass to gtkdoc-scangobj
-SCANGOBJ_OPTIONS=--type-init-func="g_type_init()" 
+SCANGOBJ_OPTIONS=
 
 # Extra options to supply to gtkdoc-scan
 #SCAN_OPTIONS=--deprecated-guards="GTK_ENABLE_BROKEN|GTK_DISABLE_DEPRECATED" 
diff --git a/tests/calendar-test.c b/tests/calendar-test.c
index fa8c4ba..ac77200 100644
--- a/tests/calendar-test.c
+++ b/tests/calendar-test.c
@@ -17,8 +17,6 @@ main (gint argc, gchar **argv)
         MrpDay         *day_a, *day_b, *day_c, *def_1_id;
         GList          *l = NULL;
 
-        g_type_init ();
-
        app = mrp_application_new ();
 
        project = mrp_project_new (NULL);
diff --git a/tests/cmd-manager-test.c b/tests/cmd-manager-test.c
index 6b463b0..863b1c4 100644
--- a/tests/cmd-manager-test.c
+++ b/tests/cmd-manager-test.c
@@ -119,8 +119,6 @@ main (gint argc, gchar **argv)
 {
        ActionHistory action_history;
 
-        g_type_init ();
-
        PlannerCmdManager *cmd_manager = planner_cmd_manager_new ();
 
        /* Initialise the action history */
diff --git a/tests/scheduler-test.c b/tests/scheduler-test.c
index ec185de..4bdab4b 100644
--- a/tests/scheduler-test.c
+++ b/tests/scheduler-test.c
@@ -227,8 +227,6 @@ main (gint argc, gchar **argv)
                NULL
        };
 
-        g_type_init ();
-
        app = mrp_application_new ();
 
        i = 0;
diff --git a/tests/task-test.c b/tests/task-test.c
index ab9c191..b93c9d8 100644
--- a/tests/task-test.c
+++ b/tests/task-test.c
@@ -21,8 +21,6 @@ main (gint argc, gchar **argv)
        MrpTask        *root;
        MrpRelation    *relation;
 
-        g_type_init ();
-
        app = mrp_application_new ();
 
        project_start = mrp_time_from_string ("20020218", NULL);


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