[tracker] all: Remove use of g_type_init() now it's deprecated in GLib since 2.35.x



commit 4303d743bb831eb8643fb0d122094da8d5e2c435
Author: Martyn Russell <martyn lanedo com>
Date:   Fri Mar 8 16:22:01 2013 +0000

    all: Remove use of g_type_init() now it's deprecated in GLib since 2.35.x

 docs/reference/libtracker-sparql/examples.sgml     |   12 ------------
 docs/tools/ontology-graph.c                        |    2 --
 docs/tools/ttl2sgml.c                              |    2 --
 examples/libtracker-miner/tracker-main.c           |    2 --
 examples/libtracker-sparql/async-connection.c      |    2 --
 examples/libtracker-sparql/class-signal.c          |    1 -
 src/miners/fs/tracker-main.c                       |    1 -
 src/miners/rss/tracker-main.c                      |    2 --
 src/tracker-control/tracker-control.c              |    2 --
 src/tracker-extract/tracker-extract-dvi.c          |    2 --
 src/tracker-extract/tracker-extract-pdf.c          |    2 --
 src/tracker-extract/tracker-extract-xps.c          |    2 --
 src/tracker-extract/tracker-main.c                 |    2 --
 src/tracker-utils/tracker-import.c                 |    2 --
 src/tracker-utils/tracker-info.c                   |    2 --
 src/tracker-utils/tracker-search.c                 |    3 ---
 src/tracker-utils/tracker-sparql.c                 |    2 --
 src/tracker-utils/tracker-stats.c                  |    2 --
 src/tracker-utils/tracker-tag.c                    |    2 --
 src/tracker-writeback/tracker-main.c               |    2 --
 .../ipc/test-update-array-performance.c            |    2 --
 tests/gvdb/gvdb-test.c                             |    2 --
 tests/libtracker-common/tracker-crc32-test.c       |    1 -
 tests/libtracker-common/tracker-date-time-test.c   |    1 -
 tests/libtracker-common/tracker-dbus-test.c        |    1 -
 tests/libtracker-common/tracker-file-utils-test.c  |    1 -
 tests/libtracker-common/tracker-media-art-test.c   |    1 -
 tests/libtracker-common/tracker-sched-test.c       |    1 -
 tests/libtracker-common/tracker-type-utils-test.c  |    1 -
 tests/libtracker-common/tracker-utils-test.c       |    1 -
 tests/libtracker-data/tracker-backup-test.c        |    2 --
 tests/libtracker-data/tracker-db-journal.c         |    1 -
 .../libtracker-data/tracker-ontology-change-test.c |    2 --
 tests/libtracker-data/tracker-ontology-test.c      |    2 --
 tests/libtracker-data/tracker-sparql-blank-test.c  |    2 --
 tests/libtracker-data/tracker-sparql-test.c        |    2 --
 tests/libtracker-extract/tracker-encoding-test.c   |    1 -
 tests/libtracker-extract/tracker-exif-test.c       |    1 -
 .../libtracker-extract/tracker-extract-info-test.c |    1 -
 tests/libtracker-extract/tracker-guarantee-test.c  |    1 -
 tests/libtracker-extract/tracker-iptc-test.c       |    1 -
 tests/libtracker-extract/tracker-test-utils.c      |    1 -
 tests/libtracker-extract/tracker-test-xmp.c        |    1 -
 tests/libtracker-fts/tracker-fts-test.c            |    2 --
 tests/libtracker-fts/tracker-parser-test.c         |    1 -
 tests/libtracker-fts/tracker-parser.c              |    2 --
 tests/libtracker-miner/tracker-crawler-test.c      |    1 -
 .../libtracker-miner/tracker-file-notifier-test.c  |    1 -
 tests/libtracker-miner/tracker-file-system-test.c  |    1 -
 .../libtracker-miner/tracker-indexing-tree-test.c  |    1 -
 .../libtracker-miner/tracker-miner-manager-test.c  |    1 -
 tests/libtracker-miner/tracker-monitor-test.c      |    1 -
 .../tracker-password-provider-test.c               |    2 --
 .../libtracker-miner/tracker-priority-queue-test.c |    1 -
 tests/libtracker-miner/tracker-task-pool-test.c    |    1 -
 tests/libtracker-miner/tracker-thumbnailer-test.c  |    1 -
 tests/libtracker-sparql/tracker-test.c             |    1 -
 tests/tracker-steroids/tracker-test.c              |    1 -
 utils/mtp/mtp-dummy.c                              |    3 ---
 utils/playlists/playlist2ttl.c                     |    2 --
 utils/services/data-validator.c                    |    2 --
 utils/services/ontology-validator.c                |    3 ---
 utils/services/qname-test.c                        |    1 -
 utils/services/ttl2graphviz.c                      |    2 --
 utils/tracker-sql/tracker-sql.c                    |    2 --
 65 files changed, 0 insertions(+), 112 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/examples.sgml b/docs/reference/libtracker-sparql/examples.sgml
index f0309b1..5590e3b 100644
--- a/docs/reference/libtracker-sparql/examples.sgml
+++ b/docs/reference/libtracker-sparql/examples.sgml
@@ -30,9 +30,6 @@ int main (int argc, char **argv)
   const gchar *query_str;
   time_t now;
 
-  /* Initialize GLib type system */
-  g_type_init ();
-
   /* Create builder */
   builder = <function><link 
linkend="tracker-sparql-builder-new-update">tracker_sparql_builder_new_update</link></function> ();
 
@@ -130,9 +127,6 @@ int main (int argc, const char **argv)
   <type><link linkend="TrackerSparqlCursor-struct">TrackerSparqlCursor</link></type> *cursor;
   const gchar *query = "SELECT nie:url(?u) WHERE { ?u a nfo:FileDataObject }";
 
-  /* Initialize GLib type system */
-  g_type_init ();
-
   /* As we know only read-only queries will be done, it's enough
    * to use a connection with only direct-access setup. The NULL
    * represents a possible GCancellable.
@@ -234,9 +228,6 @@ int main (int argc, const char **argv)
     "FILTER (!bound(?tag)) "
     "}";
 
-  /* Initialize GLib type system */
-  g_type_init ();
-
   /* Do NOT get a direct connection if you're going to do some write
    * operation in the Store. The NULL represents a possible
    * GCancellable.
@@ -330,9 +321,6 @@ int main (int argc, const char **argv)
   const gchar *query =
     "INSERT { _:foo a nie:InformationElement } WHERE { ?x a rdfs:Class }";
 
-  /* Initialize GLib type system */
-  g_type_init ();
-
   /* Do NOT get a direct connection if you're going to do some write
    * operation in the Store. The NULL represents a possible
    * GCancellable.
diff --git a/docs/tools/ontology-graph.c b/docs/tools/ontology-graph.c
index 2b62677..0417cef 100644
--- a/docs/tools/ontology-graph.c
+++ b/docs/tools/ontology-graph.c
@@ -635,8 +635,6 @@ main (int argc, char *argv[])
        FILE *f = NULL;
        GFile *dir;
 
-       g_type_init ();
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new ("- Generates graphviz for a TTL file");
diff --git a/docs/tools/ttl2sgml.c b/docs/tools/ttl2sgml.c
index 8cc9302..c796739 100644
--- a/docs/tools/ttl2sgml.c
+++ b/docs/tools/ttl2sgml.c
@@ -61,8 +61,6 @@ main (gint argc, gchar **argv)
        FILE *f = NULL;
        FILE *fts = NULL;
 
-       g_type_init ();
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new ("- Generates HTML doc for a TTL file");
diff --git a/examples/libtracker-miner/tracker-main.c b/examples/libtracker-miner/tracker-main.c
index 9bebd5f..a6699c7 100644
--- a/examples/libtracker-miner/tracker-main.c
+++ b/examples/libtracker-miner/tracker-main.c
@@ -193,8 +193,6 @@ main (int argc, char *argv[])
        TrackerMiner *miner;
        GMainLoop *main_loop;
 
-       g_type_init ();
-
        main_loop = g_main_loop_new (NULL, FALSE);
 
        miner = tracker_miner_test_new ("test");
diff --git a/examples/libtracker-sparql/async-connection.c b/examples/libtracker-sparql/async-connection.c
index 5e67a2c..5c4541a 100644
--- a/examples/libtracker-sparql/async-connection.c
+++ b/examples/libtracker-sparql/async-connection.c
@@ -148,8 +148,6 @@ main (gint argc, gchar *argv[])
 {
        MyData *md;
 
-       g_type_init ();
-
        md = g_new0 (MyData, 1);
        md->loop = g_main_loop_new (NULL, FALSE);
        md->timer = g_timer_new ();
diff --git a/examples/libtracker-sparql/class-signal.c b/examples/libtracker-sparql/class-signal.c
index 65750c2..3ba2ab3 100644
--- a/examples/libtracker-sparql/class-signal.c
+++ b/examples/libtracker-sparql/class-signal.c
@@ -85,7 +85,6 @@ main (gint argc, gchar *argv[])
        GDBusConnection *connection;
        guint signal_id;
 
-       g_type_init ();
        loop = g_main_loop_new (NULL, FALSE);
        con = tracker_sparql_connection_get (NULL, &error);
        connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index fb811e5..17c67fb 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -859,7 +859,6 @@ main (gint argc, gchar *argv[])
        gboolean store_available;
 
        main_loop = NULL;
-       g_type_init ();
 
        setlocale (LC_ALL, "");
 
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index 76acdf5..73dbc37 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -60,8 +60,6 @@ main (int argc, char **argv)
        GError *error = NULL;
        const gchar *error_message;
 
-       g_type_init ();
-
        setlocale (LC_ALL, "");
 
        bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
diff --git a/src/tracker-control/tracker-control.c b/src/tracker-control/tracker-control.c
index 48dfe8a..fc76b8b 100644
--- a/src/tracker-control/tracker-control.c
+++ b/src/tracker-control/tracker-control.c
@@ -66,8 +66,6 @@ main (int argc, char **argv)
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
 
-       g_type_init ();
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new (_(" - Manage Tracker processes and data"));
diff --git a/src/tracker-extract/tracker-extract-dvi.c b/src/tracker-extract/tracker-extract-dvi.c
index 5ddb2dd..355abdd 100644
--- a/src/tracker-extract/tracker-extract-dvi.c
+++ b/src/tracker-extract/tracker-extract-dvi.c
@@ -219,8 +219,6 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        gchar *filename;
        DviContext *context;
 
-       g_type_init ();
-
        metadata = tracker_extract_info_get_metadata_builder (info);
        file = tracker_extract_info_get_file (info);
        filename = g_file_get_path (file);
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index 308d81e..919b8d7 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -575,8 +575,6 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        gsize len;
        struct stat st;
 
-       g_type_init ();
-
        metadata = tracker_extract_info_get_metadata_builder (info);
        preupdate = tracker_extract_info_get_preupdate_builder (info);
        graph = tracker_extract_info_get_graph (info);
diff --git a/src/tracker-extract/tracker-extract-xps.c b/src/tracker-extract/tracker-extract-xps.c
index 537f768..941a600 100644
--- a/src/tracker-extract/tracker-extract-xps.c
+++ b/src/tracker-extract/tracker-extract-xps.c
@@ -34,8 +34,6 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        gchar *filename;
        GError *error = NULL;
 
-       g_type_init ();
-
        metadata = tracker_extract_info_get_metadata_builder (info);
        file = tracker_extract_info_get_file (info);
        xps_file = gxps_file_new (file, &error);
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index e805ad7..f38fac7 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -372,8 +372,6 @@ main (int argc, char *argv[])
 
        initialize_signal_handler ();
 
-       g_type_init ();
-
        g_set_application_name ("tracker-extract");
 
        setlocale (LC_ALL, "");
diff --git a/src/tracker-utils/tracker-import.c b/src/tracker-utils/tracker-import.c
index 6ad8213..2392f84 100644
--- a/src/tracker-utils/tracker-import.c
+++ b/src/tracker-utils/tracker-import.c
@@ -102,8 +102,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, &error);
 
        if (!connection) {
diff --git a/src/tracker-utils/tracker-info.c b/src/tracker-utils/tracker-info.c
index ebf474d..90b7768 100644
--- a/src/tracker-utils/tracker-info.c
+++ b/src/tracker-utils/tracker-info.c
@@ -376,8 +376,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, &error);
 
        if (!connection) {
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index 38914a9..d23e9e7 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -1601,9 +1601,6 @@ main (int argc, char **argv)
                disable_snippets = TRUE;
        }
 
-       g_type_init ();
-
-
 #if HAVE_TRACKER_FTS
        /* Only check stopwords if FTS is enabled */
        if (terms) {
diff --git a/src/tracker-utils/tracker-sparql.c b/src/tracker-utils/tracker-sparql.c
index 9b8c77a..ba1e07e 100644
--- a/src/tracker-utils/tracker-sparql.c
+++ b/src/tracker-utils/tracker-sparql.c
@@ -472,8 +472,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, &error);
 
        if (!connection) {
diff --git a/src/tracker-utils/tracker-stats.c b/src/tracker-utils/tracker-stats.c
index 8748e5c..d254f41 100644
--- a/src/tracker-utils/tracker-stats.c
+++ b/src/tracker-utils/tracker-stats.c
@@ -79,8 +79,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, &error);
 
        if (!connection) {
diff --git a/src/tracker-utils/tracker-tag.c b/src/tracker-utils/tracker-tag.c
index d900d58..11432a1 100644
--- a/src/tracker-utils/tracker-tag.c
+++ b/src/tracker-utils/tracker-tag.c
@@ -931,8 +931,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, &error);
 
        if (!connection) {
diff --git a/src/tracker-writeback/tracker-main.c b/src/tracker-writeback/tracker-main.c
index 91c7685..6e77710 100644
--- a/src/tracker-writeback/tracker-main.c
+++ b/src/tracker-writeback/tracker-main.c
@@ -85,8 +85,6 @@ main (int   argc,
        gchar *log_filename;
        guint shutdown_timeout;
 
-       g_type_init ();
-
        /* Set up locale */
        setlocale (LC_ALL, "");
 
diff --git a/tests/functional-tests/ipc/test-update-array-performance.c 
b/tests/functional-tests/ipc/test-update-array-performance.c
index 9d3c60f..8c6f35d 100644
--- a/tests/functional-tests/ipc/test-update-array-performance.c
+++ b/tests/functional-tests/ipc/test-update-array-performance.c
@@ -220,8 +220,6 @@ main (gint argc, gchar **argv)
 {
        GTimer *array_t, *update_t;
 
-       g_type_init ();
-
        connection = tracker_sparql_connection_get (NULL, NULL);
 
        g_print ("First run (first update then array)\n");
diff --git a/tests/gvdb/gvdb-test.c b/tests/gvdb/gvdb-test.c
index 14f8da2..9c7730b 100644
--- a/tests/gvdb/gvdb-test.c
+++ b/tests/gvdb/gvdb-test.c
@@ -234,8 +234,6 @@ test_gvdb_corrupted_file ()
 gint
 main (gint argc, gchar **argv) 
 {
-        g_type_init ();
-
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/gvdb/ref_unref", test_gvdb_ref_unref);
diff --git a/tests/libtracker-common/tracker-crc32-test.c b/tests/libtracker-common/tracker-crc32-test.c
index a583c21..43d94f5 100644
--- a/tests/libtracker-common/tracker-crc32-test.c
+++ b/tests/libtracker-common/tracker-crc32-test.c
@@ -36,7 +36,6 @@ test_crc32_calculate ()
 gint
 main (gint argc, gchar **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-common/crc32/calculate",
diff --git a/tests/libtracker-common/tracker-date-time-test.c 
b/tests/libtracker-common/tracker-date-time-test.c
index 24b13f2..a4bf767 100644
--- a/tests/libtracker-common/tracker-date-time-test.c
+++ b/tests/libtracker-common/tracker-date-time-test.c
@@ -223,7 +223,6 @@ test_date_time_get_local_time ()
 gint
 main (gint argc, gchar **argv) 
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-common/date-time/date_to_string",
diff --git a/tests/libtracker-common/tracker-dbus-test.c b/tests/libtracker-common/tracker-dbus-test.c
index 197a4b2..fc6bd38 100644
--- a/tests/libtracker-common/tracker-dbus-test.c
+++ b/tests/libtracker-common/tracker-dbus-test.c
@@ -288,7 +288,6 @@ main (int argc, char **argv) {
 
        gint result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
 /*
diff --git a/tests/libtracker-common/tracker-file-utils-test.c 
b/tests/libtracker-common/tracker-file-utils-test.c
index 31afe03..48f2ade 100644
--- a/tests/libtracker-common/tracker-file-utils-test.c
+++ b/tests/libtracker-common/tracker-file-utils-test.c
@@ -470,7 +470,6 @@ main (int argc, char **argv)
 {
        int result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        tracker_locale_init ();
diff --git a/tests/libtracker-common/tracker-media-art-test.c 
b/tests/libtracker-common/tracker-media-art-test.c
index 11a333f..c5114c0 100644
--- a/tests/libtracker-common/tracker-media-art-test.c
+++ b/tests/libtracker-common/tracker-media-art-test.c
@@ -161,7 +161,6 @@ test_albumart_location_path (void)
 gint
 main (gint argc, gchar **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-common/albumart/stripping",
diff --git a/tests/libtracker-common/tracker-sched-test.c b/tests/libtracker-common/tracker-sched-test.c
index 3d51e61..117be8e 100644
--- a/tests/libtracker-common/tracker-sched-test.c
+++ b/tests/libtracker-common/tracker-sched-test.c
@@ -53,7 +53,6 @@ test_sched_set_and_get (void)
 gint
 main (gint argc, gchar **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-common/sched/set_and_get",
diff --git a/tests/libtracker-common/tracker-type-utils-test.c 
b/tests/libtracker-common/tracker-type-utils-test.c
index 00e49b1..4eef837 100644
--- a/tests/libtracker-common/tracker-type-utils-test.c
+++ b/tests/libtracker-common/tracker-type-utils-test.c
@@ -397,7 +397,6 @@ main (int argc, char **argv)
 {
        gint result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_add_func ("/libtracker-common/tracker-type-utils/boolean_as_text_to_number",
diff --git a/tests/libtracker-common/tracker-utils-test.c b/tests/libtracker-common/tracker-utils-test.c
index 43e59fa..81c9b75 100644
--- a/tests/libtracker-common/tracker-utils-test.c
+++ b/tests/libtracker-common/tracker-utils-test.c
@@ -137,7 +137,6 @@ main (int argc, char **argv)
 {
        gboolean ret;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        tracker_locale_init ();
diff --git a/tests/libtracker-data/tracker-backup-test.c b/tests/libtracker-data/tracker-backup-test.c
index e4cd3bc..1b0c041 100644
--- a/tests/libtracker-data/tracker-backup-test.c
+++ b/tests/libtracker-data/tracker-backup-test.c
@@ -217,8 +217,6 @@ main (int argc, char **argv)
        gint result;
        gchar *current_dir;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        current_dir = g_get_current_dir ();
diff --git a/tests/libtracker-data/tracker-db-journal.c b/tests/libtracker-data/tracker-db-journal.c
index 1f765a2..febee15 100644
--- a/tests/libtracker-data/tracker-db-journal.c
+++ b/tests/libtracker-data/tracker-db-journal.c
@@ -365,7 +365,6 @@ main (int argc, char **argv)
        gchar *path;
        int result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
 #ifndef DISABLE_JOURNAL
diff --git a/tests/libtracker-data/tracker-ontology-change-test.c 
b/tests/libtracker-data/tracker-ontology-change-test.c
index f90979c..a650768 100644
--- a/tests/libtracker-data/tracker-ontology-change-test.c
+++ b/tests/libtracker-data/tracker-ontology-change-test.c
@@ -312,8 +312,6 @@ main (int argc, char **argv)
        gint result;
        gchar *data_dir;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        data_dir = g_build_filename (g_get_current_dir (), "test-cache", NULL);
diff --git a/tests/libtracker-data/tracker-ontology-test.c b/tests/libtracker-data/tracker-ontology-test.c
index 062d5e8..5cc4ed7 100644
--- a/tests/libtracker-data/tracker-ontology-test.c
+++ b/tests/libtracker-data/tracker-ontology-test.c
@@ -276,8 +276,6 @@ main (int argc, char **argv)
        gint i;
        gchar *data_dir;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        data_dir = g_build_filename (g_get_current_dir (), "test-cache", NULL);
diff --git a/tests/libtracker-data/tracker-sparql-blank-test.c 
b/tests/libtracker-data/tracker-sparql-blank-test.c
index fdb8b45..12c5673 100644
--- a/tests/libtracker-data/tracker-sparql-blank-test.c
+++ b/tests/libtracker-data/tracker-sparql-blank-test.c
@@ -125,8 +125,6 @@ main (int argc, char **argv)
        gint result;
        gchar *current_dir;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        current_dir = g_get_current_dir ();
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 9fc1f48..9cebc52 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -324,8 +324,6 @@ main (int argc, char **argv)
        gint i;
        gchar *current_dir;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        setlocale (LC_COLLATE, "en_US.utf8");
diff --git a/tests/libtracker-extract/tracker-encoding-test.c 
b/tests/libtracker-extract/tracker-encoding-test.c
index 6b09943..a6e458e 100644
--- a/tests/libtracker-extract/tracker-encoding-test.c
+++ b/tests/libtracker-extract/tracker-encoding-test.c
@@ -66,7 +66,6 @@ test_encoding_can_guess (void)
 int
 main (int argc, char **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        tracker_locale_init ();
diff --git a/tests/libtracker-extract/tracker-exif-test.c b/tests/libtracker-extract/tracker-exif-test.c
index 667fec2..4b1cb9c 100644
--- a/tests/libtracker-extract/tracker-exif-test.c
+++ b/tests/libtracker-extract/tracker-exif-test.c
@@ -85,7 +85,6 @@ test_exif_parse_empty (void)
 int
 main (int argc, char **argv) 
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-extract/exif/parse",
diff --git a/tests/libtracker-extract/tracker-extract-info-test.c 
b/tests/libtracker-extract/tracker-extract-info-test.c
index 4ae893d..3c968bc 100644
--- a/tests/libtracker-extract/tracker-extract-info-test.c
+++ b/tests/libtracker-extract/tracker-extract-info-test.c
@@ -70,7 +70,6 @@ test_extract_info_empty_objects (void)
 int
 main (int argc, char **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-extract/extract-info/empty_objects",
diff --git a/tests/libtracker-extract/tracker-guarantee-test.c 
b/tests/libtracker-extract/tracker-guarantee-test.c
index a143f7b..a146c28 100644
--- a/tests/libtracker-extract/tracker-guarantee-test.c
+++ b/tests/libtracker-extract/tracker-guarantee-test.c
@@ -143,7 +143,6 @@ test_guarantee_date (void)
 int
 main (int argc, char** argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-extract/guarantee/title",
diff --git a/tests/libtracker-extract/tracker-iptc-test.c b/tests/libtracker-extract/tracker-iptc-test.c
index ed98b0f..2306c08 100644
--- a/tests/libtracker-extract/tracker-iptc-test.c
+++ b/tests/libtracker-extract/tracker-iptc-test.c
@@ -153,7 +153,6 @@ test_iptc_extraction (void)
 int
 main (int argc, char **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-extract/iptc/extraction",
diff --git a/tests/libtracker-extract/tracker-test-utils.c b/tests/libtracker-extract/tracker-test-utils.c
index ee98bba..0839ab9 100644
--- a/tests/libtracker-extract/tracker-test-utils.c
+++ b/tests/libtracker-extract/tracker-test-utils.c
@@ -270,7 +270,6 @@ main (int argc, char **argv)
 {
        gint result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_add_func ("/libtracker-extract/tracker-utils/guess_date",
diff --git a/tests/libtracker-extract/tracker-test-xmp.c b/tests/libtracker-extract/tracker-test-xmp.c
index be1f212..89148fb 100644
--- a/tests/libtracker-extract/tracker-test-xmp.c
+++ b/tests/libtracker-extract/tracker-test-xmp.c
@@ -597,7 +597,6 @@ main (int    argc,
 {
        gint result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing XMP");
diff --git a/tests/libtracker-fts/tracker-fts-test.c b/tests/libtracker-fts/tracker-fts-test.c
index 150200e..7adcd5f 100644
--- a/tests/libtracker-fts/tracker-fts-test.c
+++ b/tests/libtracker-fts/tracker-fts-test.c
@@ -181,8 +181,6 @@ main (int argc, char **argv)
        gchar *current_dir;
        gchar *path;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        current_dir = g_get_current_dir ();
diff --git a/tests/libtracker-fts/tracker-parser-test.c b/tests/libtracker-fts/tracker-parser-test.c
index a7a3001..f9b43c1 100644
--- a/tests/libtracker-fts/tracker-parser-test.c
+++ b/tests/libtracker-fts/tracker-parser-test.c
@@ -348,7 +348,6 @@ main (int argc, char **argv)
 {
        gint i;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        /* We want the tests to properly find the stopwords dictionaries, so we
diff --git a/tests/libtracker-fts/tracker-parser.c b/tests/libtracker-fts/tracker-parser.c
index 9877a4f..2c725d8 100644
--- a/tests/libtracker-fts/tracker-parser.c
+++ b/tests/libtracker-fts/tracker-parser.c
@@ -220,8 +220,6 @@ run_parsing (void)
 int
 main (int argc, char **argv)
 {
-       g_type_init ();
-
        /* Setup locale */
        setlocale (LC_ALL, "");
 
diff --git a/tests/libtracker-miner/tracker-crawler-test.c b/tests/libtracker-miner/tracker-crawler-test.c
index 59dc866..0e4e710 100644
--- a/tests/libtracker-miner/tracker-crawler-test.c
+++ b/tests/libtracker-miner/tracker-crawler-test.c
@@ -319,7 +319,6 @@ int
 main (int    argc,
       char **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing filesystem crawler");
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index 4f76178..8cca453 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -742,7 +742,6 @@ gint
 main (gint    argc,
       gchar **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing file notifier");
diff --git a/tests/libtracker-miner/tracker-file-system-test.c 
b/tests/libtracker-miner/tracker-file-system-test.c
index 7967e47..968919d 100644
--- a/tests/libtracker-miner/tracker-file-system-test.c
+++ b/tests/libtracker-miner/tracker-file-system-test.c
@@ -235,7 +235,6 @@ gint
 main (gint    argc,
       gchar **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing file system abstraction");
diff --git a/tests/libtracker-miner/tracker-indexing-tree-test.c 
b/tests/libtracker-miner/tracker-indexing-tree-test.c
index 3778db3..78b874c 100644
--- a/tests/libtracker-miner/tracker-indexing-tree-test.c
+++ b/tests/libtracker-miner/tracker-indexing-tree-test.c
@@ -947,7 +947,6 @@ gint
 main (gint    argc,
       gchar **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing indexing tree");
diff --git a/tests/libtracker-miner/tracker-miner-manager-test.c 
b/tests/libtracker-miner/tracker-miner-manager-test.c
index e9f0278..5dd4dcc 100644
--- a/tests/libtracker-miner/tracker-miner-manager-test.c
+++ b/tests/libtracker-miner/tracker-miner-manager-test.c
@@ -137,7 +137,6 @@ main (int    argc,
 {
         gint result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
         
        g_test_message ("Testing miner manager");
diff --git a/tests/libtracker-miner/tracker-monitor-test.c b/tests/libtracker-miner/tracker-monitor-test.c
index 0a07a94..a431099 100644
--- a/tests/libtracker-miner/tracker-monitor-test.c
+++ b/tests/libtracker-miner/tracker-monitor-test.c
@@ -1874,7 +1874,6 @@ gint
 main (gint    argc,
       gchar **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing filesystem monitor");
diff --git a/tests/libtracker-miner/tracker-password-provider-test.c 
b/tests/libtracker-miner/tracker-password-provider-test.c
index eed300e..d866b5d 100644
--- a/tests/libtracker-miner/tracker-password-provider-test.c
+++ b/tests/libtracker-miner/tracker-password-provider-test.c
@@ -105,8 +105,6 @@ main (int argc, char **argv)
        const gchar *current_dir;
        gint retval;
 
-       g_type_init ();
-
        g_test_init (&argc, &argv, NULL);
 
        /* Set test environment up */
diff --git a/tests/libtracker-miner/tracker-priority-queue-test.c 
b/tests/libtracker-miner/tracker-priority-queue-test.c
index 8c16055..e6c38aa 100644
--- a/tests/libtracker-miner/tracker-priority-queue-test.c
+++ b/tests/libtracker-miner/tracker-priority-queue-test.c
@@ -225,7 +225,6 @@ int
 main (int    argc,
       char **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_add_func ("/libtracker-miner/tracker-priority-queue/emptiness",
diff --git a/tests/libtracker-miner/tracker-task-pool-test.c b/tests/libtracker-miner/tracker-task-pool-test.c
index e30f07c..0ece7c3 100644
--- a/tests/libtracker-miner/tracker-task-pool-test.c
+++ b/tests/libtracker-miner/tracker-task-pool-test.c
@@ -168,7 +168,6 @@ test_task_pool_foreach (void)
 gint
 main (gint argc, gchar **argv)
 {
-        g_type_init ();
         g_test_init (&argc, &argv, NULL);
 
         g_test_add_func ("/libtracker-miner/tracker-task-pool/limit_set",
diff --git a/tests/libtracker-miner/tracker-thumbnailer-test.c 
b/tests/libtracker-miner/tracker-thumbnailer-test.c
index 96e1888..9c05a10 100644
--- a/tests/libtracker-miner/tracker-thumbnailer-test.c
+++ b/tests/libtracker-miner/tracker-thumbnailer-test.c
@@ -132,7 +132,6 @@ int
 main (int    argc,
       char **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_message ("Testing thumbnailer");
diff --git a/tests/libtracker-sparql/tracker-test.c b/tests/libtracker-sparql/tracker-test.c
index fd330fd..e06e0a6 100644
--- a/tests/libtracker-sparql/tracker-test.c
+++ b/tests/libtracker-sparql/tracker-test.c
@@ -357,7 +357,6 @@ main (gint argc, gchar **argv)
 {
        int result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
 #if HAVE_TRACKER_FTS
diff --git a/tests/tracker-steroids/tracker-test.c b/tests/tracker-steroids/tracker-test.c
index 9db50f2..b246c4a 100644
--- a/tests/tracker-steroids/tracker-test.c
+++ b/tests/tracker-steroids/tracker-test.c
@@ -662,7 +662,6 @@ test_tracker_sparql_update_blank_async (void)
 gint
 main (gint argc, gchar **argv)
 {
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        /* test D-Bus backend */
diff --git a/utils/mtp/mtp-dummy.c b/utils/mtp/mtp-dummy.c
index 686faf4..8aaa457 100644
--- a/utils/mtp/mtp-dummy.c
+++ b/utils/mtp/mtp-dummy.c
@@ -529,9 +529,6 @@ check_duplicates (void)
 
 int main (int argc, char **argv)
 {
-       /* Initialize stuff */
-       g_type_init ();
-
        /* Initialize locale support! */
        setlocale (LC_ALL, "");
 
diff --git a/utils/playlists/playlist2ttl.c b/utils/playlists/playlist2ttl.c
index 01d91a1..2bb7f1f 100644
--- a/utils/playlists/playlist2ttl.c
+++ b/utils/playlists/playlist2ttl.c
@@ -82,8 +82,6 @@ main (int argc, char **argv)
        TotemPlParserResult result;
        GError *error = NULL;
 
-       g_type_init ();
-
        context = g_option_context_new ("- Parse a playlist and show info");
 
        g_option_context_add_main_entries (context, entries, NULL);
diff --git a/utils/services/data-validator.c b/utils/services/data-validator.c
index 7ff7a60..d80cdb5 100644
--- a/utils/services/data-validator.c
+++ b/utils/services/data-validator.c
@@ -163,8 +163,6 @@ main (gint argc, gchar **argv)
        TrackerTurtleReader *reader;
        GError *error = NULL;
 
-       g_type_init ();
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new ("- Validate a turtle file against the ontology");
diff --git a/utils/services/ontology-validator.c b/utils/services/ontology-validator.c
index 0e3c34e..7aa79ef 100644
--- a/utils/services/ontology-validator.c
+++ b/utils/services/ontology-validator.c
@@ -276,9 +276,6 @@ main (gint argc, gchar **argv)
        GOptionContext *context;
        GList *it;
 
-       g_type_init ();
-
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new ("- Validate the ontology consistency");
diff --git a/utils/services/qname-test.c b/utils/services/qname-test.c
index 5d0cd22..5a634cf 100644
--- a/utils/services/qname-test.c
+++ b/utils/services/qname-test.c
@@ -146,7 +146,6 @@ main (int argc, char **argv)
 {
        int result;
 
-       g_type_init ();
        g_test_init (&argc, &argv, NULL);
 
        g_test_add_func ("/html_generator/qname/qname_to_shortname",
diff --git a/utils/services/ttl2graphviz.c b/utils/services/ttl2graphviz.c
index f50b751..bc8e13c 100644
--- a/utils/services/ttl2graphviz.c
+++ b/utils/services/ttl2graphviz.c
@@ -50,8 +50,6 @@ main (gint argc, gchar **argv)
        gchar *dirname = NULL;
        FILE *f = NULL;
 
-       g_type_init ();
-
        /* Translators: this messagge will apper immediately after the  */
        /* usage string - Usage: COMMAND [OPTION]... <THIS_MESSAGE>     */
        context = g_option_context_new ("- Generates graphviz for a TTL file");
diff --git a/utils/tracker-sql/tracker-sql.c b/utils/tracker-sql/tracker-sql.c
index f29cfff..0737b29 100644
--- a/utils/tracker-sql/tracker-sql.c
+++ b/utils/tracker-sql/tracker-sql.c
@@ -91,8 +91,6 @@ main (int argc, char **argv)
 
        g_option_context_free (context);
 
-       g_type_init ();
-
        if (file) {
                gchar *path_in_utf8;
                gsize size;


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