summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-11-11 17:19:59 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-07 13:49:43 +0000
commite3d4c2977fbf086e7d42c77e3713e1bcddda2a9c (patch)
tree6b9bd0fb1a069796367724a31e822797129febd7
parent4480d2b9f5bb72c8acf0e9f712c6f8346a174f91 (diff)
downloadtelepathy-glib-e3d4c2977fbf086e7d42c77e3713e1bcddda2a9c.tar.gz
Stop calling g_type_init()
It was deprecated in GLib 2.36, and we already have a hard dependency on that version. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--configure.ac2
-rw-r--r--examples/client/approver.c1
-rw-r--r--examples/client/contact-list.c1
-rw-r--r--examples/client/dbus-tubes/accepter.c2
-rw-r--r--examples/client/dbus-tubes/offerer.c2
-rw-r--r--examples/client/extended-client.c1
-rw-r--r--examples/client/inspect-channel.c1
-rw-r--r--examples/client/inspect-cm.c1
-rw-r--r--examples/client/inspect-connection.c1
-rw-r--r--examples/client/inspect-contact.c1
-rw-r--r--examples/client/list-connections.c1
-rw-r--r--examples/client/list-managers.c1
-rw-r--r--examples/client/media-observer.c1
-rw-r--r--examples/client/stream-tubes/accepter.c2
-rw-r--r--examples/client/stream-tubes/offerer.c2
-rw-r--r--examples/client/text-handler.c1
-rw-r--r--examples/cm/call/main.c4
-rw-r--r--telepathy-glib/errors.c1
-rw-r--r--telepathy-glib/run.c2
-rw-r--r--telepathy-glib/simple-client-factory.c2
-rw-r--r--tests/asv.c2
-rw-r--r--tests/capabilities.c1
-rw-r--r--tests/contact-search-result.c1
-rw-r--r--tests/dbus/account-manager.c1
-rw-r--r--tests/dbus/account-request.c1
-rw-r--r--tests/dbus/account.c1
-rw-r--r--tests/dbus/call-cancellation.c1
-rw-r--r--tests/dbus/call-channel.c1
-rw-r--r--tests/dbus/channel-dispatch-operation.c1
-rw-r--r--tests/dbus/channel-dispatcher.c1
-rw-r--r--tests/dbus/channel-introspect.c1
-rw-r--r--tests/dbus/channel-manager-request-properties.c1
-rw-r--r--tests/dbus/channel-request.c1
-rw-r--r--tests/dbus/cli-group.c1
-rw-r--r--tests/dbus/client.c1
-rw-r--r--tests/dbus/cm-message.c1
-rw-r--r--tests/dbus/cm.c1
-rw-r--r--tests/dbus/connection-aliasing.c3
-rw-r--r--tests/dbus/connection-balance.c3
-rw-r--r--tests/dbus/connection-bug-18845.c1
-rw-r--r--tests/dbus/connection-error.c2
-rw-r--r--tests/dbus/connection-getinterfaces-failure.c1
-rw-r--r--tests/dbus/connection-handles.c1
-rw-r--r--tests/dbus/connection-inject-bug16307.c1
-rw-r--r--tests/dbus/connection-interests.c1
-rw-r--r--tests/dbus/connection.c1
-rw-r--r--tests/dbus/contact-lists.c2
-rw-r--r--tests/dbus/contacts-bug-19101.c1
-rw-r--r--tests/dbus/contacts-mixin.c1
-rw-r--r--tests/dbus/disconnection.c1
-rw-r--r--tests/dbus/example-no-protocols.c1
-rw-r--r--tests/dbus/file-transfer-channel.c1
-rw-r--r--tests/dbus/finalized-in-invalidated-handler.c1
-rw-r--r--tests/dbus/group-mixin.c1
-rw-r--r--tests/dbus/handle-repo.c1
-rw-r--r--tests/dbus/handle-set.c1
-rw-r--r--tests/dbus/invalidated-while-invoking-signals.c1
-rw-r--r--tests/dbus/long-connection-name.c1
-rw-r--r--tests/dbus/message-mixin.c1
-rw-r--r--tests/dbus/params-cm.c1
-rw-r--r--tests/dbus/protocol-objects.c1
-rw-r--r--tests/dbus/self-presence.c1
-rw-r--r--tests/dbus/text-mixin.c1
-rw-r--r--tests/dbus/text-respawn.c1
-rw-r--r--tests/dbus/unsupported-interface.c1
-rw-r--r--tests/debug-domain.c2
-rw-r--r--tests/dtmf-player.c2
-rw-r--r--tests/enums.c4
-rw-r--r--tests/gnio-util.c1
-rw-r--r--tests/intset.c2
-rw-r--r--tests/lib/util.c3
-rw-r--r--tests/signal-connect-object.c1
-rw-r--r--tests/util-cxx.cpp2
-rw-r--r--tests/util.c2
-rw-r--r--tools/glib-errors-check-gen.py1
75 files changed, 1 insertions, 101 deletions
diff --git a/configure.ac b/configure.ac
index 2b29ff775..c1ea44923 100644
--- a/configure.ac
+++ b/configure.ac
@@ -296,7 +296,7 @@ CXXFLAGS="$GLIB_CFLAGS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[#include <gio/gio.h>]],
- [[g_type_init (); g_object_unref (g_file_new_for_path ("/"));]])
+ [[g_object_unref (g_file_new_for_path ("/"));]])
],
[tp_cxx_works=yes],
[tp_cxx_works=no])
diff --git a/examples/client/approver.c b/examples/client/approver.c
index 800f19788..3cc6f88c0 100644
--- a/examples/client/approver.c
+++ b/examples/client/approver.c
@@ -143,7 +143,6 @@ main (int argc,
GError *error = NULL;
TpBaseClient *approver;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
manager = tp_account_manager_dup ();
diff --git a/examples/client/contact-list.c b/examples/client/contact-list.c
index 5ed82a4af..7506d473f 100644
--- a/examples/client/contact-list.c
+++ b/examples/client/contact-list.c
@@ -74,7 +74,6 @@ main (int argc,
TpSimpleClientFactory *factory;
GMainLoop *loop;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
loop = g_main_loop_new (NULL, FALSE);
diff --git a/examples/client/dbus-tubes/accepter.c b/examples/client/dbus-tubes/accepter.c
index 2f2dae5ca..1219e6e1a 100644
--- a/examples/client/dbus-tubes/accepter.c
+++ b/examples/client/dbus-tubes/accepter.c
@@ -185,8 +185,6 @@ main (int argc,
TpBaseClient *handler;
GError *error = NULL;
- g_type_init ();
-
manager = tp_account_manager_dup ();
handler = tp_simple_handler_new_with_am (manager, FALSE, FALSE,
"ExampleServiceHandler", FALSE, handle_channels, NULL, NULL);
diff --git a/examples/client/dbus-tubes/offerer.c b/examples/client/dbus-tubes/offerer.c
index 2e4807bfc..48221a08d 100644
--- a/examples/client/dbus-tubes/offerer.c
+++ b/examples/client/dbus-tubes/offerer.c
@@ -188,8 +188,6 @@ main (int argc,
TpAccountChannelRequest *req;
GHashTable *request;
- g_type_init ();
-
if (argc != 3)
{
g_printerr ("Usage: offerer gabble/jabber/ladygaga t-pain@example.com\n");
diff --git a/examples/client/extended-client.c b/examples/client/extended-client.c
index 117223179..a2af57115 100644
--- a/examples/client/extended-client.c
+++ b/examples/client/extended-client.c
@@ -284,7 +284,6 @@ main (int argc,
GError *error = NULL;
TpDBusDaemon *dbus = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
example_cli_init ();
diff --git a/examples/client/inspect-channel.c b/examples/client/inspect-channel.c
index 969a4f831..ef8c89270 100644
--- a/examples/client/inspect-channel.c
+++ b/examples/client/inspect-channel.c
@@ -136,7 +136,6 @@ main (int argc,
TpConnection *connection = NULL;
GError *error = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
if (argc < 3)
diff --git a/examples/client/inspect-cm.c b/examples/client/inspect-cm.c
index 68fefedbe..c2a1532be 100644
--- a/examples/client/inspect-cm.c
+++ b/examples/client/inspect-cm.c
@@ -233,7 +233,6 @@ main (int argc,
TpDBusDaemon *dbus = NULL;
int ret = 1;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
if (g_getenv ("EXAMPLE_TIMING") != NULL)
diff --git a/examples/client/inspect-connection.c b/examples/client/inspect-connection.c
index 6b6fa81a1..460887a71 100644
--- a/examples/client/inspect-connection.c
+++ b/examples/client/inspect-connection.c
@@ -86,7 +86,6 @@ main (int argc,
TpSimpleClientFactory *factory;
GError *error = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
if (argc < 2)
diff --git a/examples/client/inspect-contact.c b/examples/client/inspect-contact.c
index 5c967c528..f960e0850 100644
--- a/examples/client/inspect-contact.c
+++ b/examples/client/inspect-contact.c
@@ -157,7 +157,6 @@ main (int argc,
TpSimpleClientFactory *factory;
GError *error = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
if (argc < 2)
diff --git a/examples/client/list-connections.c b/examples/client/list-connections.c
index 1b3211f04..3df69ee1e 100644
--- a/examples/client/list-connections.c
+++ b/examples/client/list-connections.c
@@ -62,7 +62,6 @@ main (int argc,
TpDBusDaemon *bus_daemon;
GError *error = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
bus_daemon = tp_dbus_daemon_dup (&error);
diff --git a/examples/client/list-managers.c b/examples/client/list-managers.c
index bffd19b23..87109e597 100644
--- a/examples/client/list-managers.c
+++ b/examples/client/list-managers.c
@@ -60,7 +60,6 @@ main (int argc,
TpDBusDaemon *bus_daemon;
GError *error = NULL;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
bus_daemon = tp_dbus_daemon_dup (&error);
diff --git a/examples/client/media-observer.c b/examples/client/media-observer.c
index 0d9a6940d..ef0aa8960 100644
--- a/examples/client/media-observer.c
+++ b/examples/client/media-observer.c
@@ -76,7 +76,6 @@ main (int argc,
GError *error = NULL;
TpBaseClient *observer;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
manager = tp_account_manager_dup ();
diff --git a/examples/client/stream-tubes/accepter.c b/examples/client/stream-tubes/accepter.c
index 574173abb..ed820562d 100644
--- a/examples/client/stream-tubes/accepter.c
+++ b/examples/client/stream-tubes/accepter.c
@@ -135,8 +135,6 @@ main (int argc,
TpBaseClient *handler;
GError *error = NULL;
- g_type_init ();
-
manager = tp_account_manager_dup ();
handler = tp_simple_handler_new_with_am (manager, FALSE, FALSE,
"ExampleServiceHandler", FALSE, _handle_channels, NULL, NULL);
diff --git a/examples/client/stream-tubes/offerer.c b/examples/client/stream-tubes/offerer.c
index 8d62da38d..16bb9279a 100644
--- a/examples/client/stream-tubes/offerer.c
+++ b/examples/client/stream-tubes/offerer.c
@@ -146,8 +146,6 @@ main (int argc,
return 2;
}
- g_type_init ();
-
factory = TP_SIMPLE_CLIENT_FACTORY (tp_automatic_client_factory_new (NULL));
account_path = g_strconcat (TP_ACCOUNT_OBJECT_PATH_BASE, argv[1], NULL);
diff --git a/examples/client/text-handler.c b/examples/client/text-handler.c
index 4eb94f565..6a079c878 100644
--- a/examples/client/text-handler.c
+++ b/examples/client/text-handler.c
@@ -124,7 +124,6 @@ main (int argc,
GError *error = NULL;
TpBaseClient *handler;
- g_type_init ();
tp_debug_set_flags (g_getenv ("EXAMPLE_DEBUG"));
manager = tp_account_manager_dup ();
diff --git a/examples/cm/call/main.c b/examples/cm/call/main.c
index aee9f17bc..1c5c966d2 100644
--- a/examples/cm/call/main.c
+++ b/examples/cm/call/main.c
@@ -50,10 +50,6 @@ main (int argc,
tp_debug_set_persistent (TRUE);
#endif
- /* strictly speaking, this is only necessary for client code, but it's
- * harmless here */
- g_type_init ();
-
return tp_run_connection_manager ("telepathy-example-cm-call",
VERSION, construct_cm, argc, argv);
}
diff --git a/telepathy-glib/errors.c b/telepathy-glib/errors.c
index bc045b5be..358f3130d 100644
--- a/telepathy-glib/errors.c
+++ b/telepathy-glib/errors.c
@@ -335,7 +335,6 @@ tp_error_quark (void)
* "tp-error-quark" */
GQuark domain = g_quark_from_static_string ("tp_errors");
- g_type_init ();
dbus_g_error_domain_register (domain, TP_ERROR_PREFIX,
TP_TYPE_ERROR);
g_once_init_leave (&quark, domain);
diff --git a/telepathy-glib/run.c b/telepathy-glib/run.c
index c3df19037..1b3393caf 100644
--- a/telepathy-glib/run.c
+++ b/telepathy-glib/run.c
@@ -219,8 +219,6 @@ tp_run_connection_manager (const char *prog_name,
add_signal_handlers ();
- g_type_init ();
-
g_set_prgname (prog_name);
#ifdef ENABLE_BACKTRACE
diff --git a/telepathy-glib/simple-client-factory.c b/telepathy-glib/simple-client-factory.c
index c096ea040..0060b9d0a 100644
--- a/telepathy-glib/simple-client-factory.c
+++ b/telepathy-glib/simple-client-factory.c
@@ -51,8 +51,6 @@
* TpSimpleClientFactory *factory;
* TpAccountManager *manager;
*
- * g_type_init ();
- *
* factory = my_factory_new ();
* manager = tp_account_manager_new_with_factory (factory);
* tp_account_manager_set_default (manager);
diff --git a/tests/asv.c b/tests/asv.c
index 80981ff18..390304f80 100644
--- a/tests/asv.c
+++ b/tests/asv.c
@@ -37,8 +37,6 @@ int main (int argc, char **argv)
/* Setup */
- g_type_init ();
-
hash = tp_asv_new (
"d:123.2", G_TYPE_DOUBLE, 123.2,
"s:test", G_TYPE_STRING, "test",
diff --git a/tests/capabilities.c b/tests/capabilities.c
index 7eab5e76e..3427117c3 100644
--- a/tests/capabilities.c
+++ b/tests/capabilities.c
@@ -23,7 +23,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
}
diff --git a/tests/contact-search-result.c b/tests/contact-search-result.c
index 63f914be5..185a31c1c 100644
--- a/tests/contact-search-result.c
+++ b/tests/contact-search-result.c
@@ -63,7 +63,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_debug_set_flags ("all");
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/account-manager.c b/tests/dbus/account-manager.c
index 65b210d2d..0cf95e9d7 100644
--- a/tests/dbus/account-manager.c
+++ b/tests/dbus/account-manager.c
@@ -134,7 +134,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/account-request.c b/tests/dbus/account-request.c
index 055be2e89..aedc6b858 100644
--- a/tests/dbus/account-request.c
+++ b/tests/dbus/account-request.c
@@ -547,7 +547,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/account.c b/tests/dbus/account.c
index 81ac8f159..1df043ab5 100644
--- a/tests/dbus/account.c
+++ b/tests/dbus/account.c
@@ -930,7 +930,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/call-cancellation.c b/tests/dbus/call-cancellation.c
index d1f15f81c..95e790fbd 100644
--- a/tests/dbus/call-cancellation.c
+++ b/tests/dbus/call-cancellation.c
@@ -174,7 +174,6 @@ main (int argc,
TpProxyPendingCall *pc;
gpointer tmp_obj;
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/call-channel.c b/tests/dbus/call-channel.c
index 810c0f423..12bafce78 100644
--- a/tests/dbus/call-channel.c
+++ b/tests/dbus/call-channel.c
@@ -71,7 +71,6 @@ setup (Test *test,
guint not_a_media_type = 31337;
GQuark conn_features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-dispatch-operation.c b/tests/dbus/channel-dispatch-operation.c
index 90406cfc8..f5c39f28d 100644
--- a/tests/dbus/channel-dispatch-operation.c
+++ b/tests/dbus/channel-dispatch-operation.c
@@ -55,7 +55,6 @@ setup (Test *test,
{
DBusConnection *libdbus;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-dispatcher.c b/tests/dbus/channel-dispatcher.c
index b789226aa..d3b466e03 100644
--- a/tests/dbus/channel-dispatcher.c
+++ b/tests/dbus/channel-dispatcher.c
@@ -27,7 +27,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-introspect.c b/tests/dbus/channel-introspect.c
index 072cf69e5..989dfde54 100644
--- a/tests/dbus/channel-introspect.c
+++ b/tests/dbus/channel-introspect.c
@@ -137,7 +137,6 @@ main (int argc,
GQuark some_features[] = { TP_CHANNEL_FEATURE_CORE,
TP_CHANNEL_FEATURE_CHAT_STATES, 0 };
- g_type_init ();
tp_tests_abort_after (10);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/channel-manager-request-properties.c b/tests/dbus/channel-manager-request-properties.c
index 69aaa3913..71ce7701c 100644
--- a/tests/dbus/channel-manager-request-properties.c
+++ b/tests/dbus/channel-manager-request-properties.c
@@ -42,7 +42,6 @@ setup (Test *test,
gboolean ok;
gchar *name, *conn_path;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/channel-request.c b/tests/dbus/channel-request.c
index 7cb7ca0b5..13920194d 100644
--- a/tests/dbus/channel-request.c
+++ b/tests/dbus/channel-request.c
@@ -75,7 +75,6 @@ setup (Test *test,
{
DBusConnection *libdbus;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/cli-group.c b/tests/dbus/cli-group.c
index 82a138dac..59c007c42 100644
--- a/tests/dbus/cli-group.c
+++ b/tests/dbus/cli-group.c
@@ -496,7 +496,6 @@ main (int argc,
gchar *name;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/client.c b/tests/dbus/client.c
index 9146f4f1e..3f442b8d9 100644
--- a/tests/dbus/client.c
+++ b/tests/dbus/client.c
@@ -27,7 +27,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/cm-message.c b/tests/dbus/cm-message.c
index 2c0f56da4..3084d536c 100644
--- a/tests/dbus/cm-message.c
+++ b/tests/dbus/cm-message.c
@@ -22,7 +22,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
tp_tests_create_and_connect_conn (TP_TESTS_TYPE_SIMPLE_CONNECTION,
diff --git a/tests/dbus/cm.c b/tests/dbus/cm.c
index 3888277d2..ad4285475 100644
--- a/tests/dbus/cm.c
+++ b/tests/dbus/cm.c
@@ -131,7 +131,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/connection-aliasing.c b/tests/dbus/connection-aliasing.c
index ddadab8d5..2572dc8fe 100644
--- a/tests/dbus/connection-aliasing.c
+++ b/tests/dbus/connection-aliasing.c
@@ -48,7 +48,6 @@ setup (Test *test,
GError *error = NULL;
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
@@ -153,8 +152,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
-
tp_tests_abort_after (5);
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/connection-balance.c b/tests/dbus/connection-balance.c
index b247e1404..c80899661 100644
--- a/tests/dbus/connection-balance.c
+++ b/tests/dbus/connection-balance.c
@@ -202,7 +202,6 @@ setup (Test *test,
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
GType conn_type = GPOINTER_TO_SIZE (data);
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
@@ -383,8 +382,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
-
tp_tests_abort_after (5);
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/connection-bug-18845.c b/tests/dbus/connection-bug-18845.c
index 88a308114..e76e62616 100644
--- a/tests/dbus/connection-bug-18845.c
+++ b/tests/dbus/connection-bug-18845.c
@@ -46,7 +46,6 @@ main (int argc,
DBusGProxy *proxy;
tp_tests_abort_after (10);
- g_type_init ();
invalidated_for_test.domain = TP_ERROR;
tp_debug_set_flags ("all");
diff --git a/tests/dbus/connection-error.c b/tests/dbus/connection-error.c
index 3d2e5613e..bf8ecaf8a 100644
--- a/tests/dbus/connection-error.c
+++ b/tests/dbus/connection-error.c
@@ -87,7 +87,6 @@ example_com_error_quark (void)
g_assert (sizeof (GQuark) <= sizeof (gsize));
- g_type_init ();
dbus_g_error_domain_register (domain, "com.example",
example_com_error_get_type ());
g_once_init_leave (&quark, domain);
@@ -116,7 +115,6 @@ global_setup (void)
done = TRUE;
- g_type_init ();
tp_debug_set_flags ("all");
tp_proxy_subclass_add_error_mapping (TP_TYPE_CONNECTION,
diff --git a/tests/dbus/connection-getinterfaces-failure.c b/tests/dbus/connection-getinterfaces-failure.c
index 4d3494a07..693feefcd 100644
--- a/tests/dbus/connection-getinterfaces-failure.c
+++ b/tests/dbus/connection-getinterfaces-failure.c
@@ -94,7 +94,6 @@ main (int argc,
gchar *conn_path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-handles.c b/tests/dbus/connection-handles.c
index bab685f14..23244657c 100644
--- a/tests/dbus/connection-handles.c
+++ b/tests/dbus/connection-handles.c
@@ -294,7 +294,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-inject-bug16307.c b/tests/dbus/connection-inject-bug16307.c
index 87bd041d2..379653029 100644
--- a/tests/dbus/connection-inject-bug16307.c
+++ b/tests/dbus/connection-inject-bug16307.c
@@ -41,7 +41,6 @@ main (int argc,
TpConnection *conn;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection-interests.c b/tests/dbus/connection-interests.c
index 7ffbda639..d5d703e43 100644
--- a/tests/dbus/connection-interests.c
+++ b/tests/dbus/connection-interests.c
@@ -148,7 +148,6 @@ setup (Test *test,
GError *error = NULL;
GQuark features[] = { TP_CONNECTION_FEATURE_CONNECTED, 0 };
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/connection.c b/tests/dbus/connection.c
index 51a887227..8ed18f620 100644
--- a/tests/dbus/connection.c
+++ b/tests/dbus/connection.c
@@ -57,7 +57,6 @@ setup (Test *test,
invalidated_for_test.domain = TP_ERROR;
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/contact-lists.c b/tests/dbus/contact-lists.c
index f072ef7e6..43ab26280 100644
--- a/tests/dbus/contact-lists.c
+++ b/tests/dbus/contact-lists.c
@@ -326,7 +326,6 @@ setup_pre_connect (
GError *error = NULL;
const gchar *account;
- g_type_init ();
tp_debug_set_flags ("all");
test->dbus = tp_tests_dbus_daemon_dup_or_die ();
test->main_loop = g_main_loop_new (NULL, FALSE);
@@ -2740,7 +2739,6 @@ int
main (int argc,
char **argv)
{
- g_type_init ();
tp_tests_abort_after (30);
tp_debug_set_flags ("all");
diff --git a/tests/dbus/contacts-bug-19101.c b/tests/dbus/contacts-bug-19101.c
index 77474e15e..debc35b9e 100644
--- a/tests/dbus/contacts-bug-19101.c
+++ b/tests/dbus/contacts-bug-19101.c
@@ -146,7 +146,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/contacts-mixin.c b/tests/dbus/contacts-mixin.c
index 5e286c3df..c3146ed52 100644
--- a/tests/dbus/contacts-mixin.c
+++ b/tests/dbus/contacts-mixin.c
@@ -158,7 +158,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/disconnection.c b/tests/dbus/disconnection.c
index bfa55cb2b..ef8ad11c8 100644
--- a/tests/dbus/disconnection.c
+++ b/tests/dbus/disconnection.c
@@ -164,7 +164,6 @@ main (int argc,
gboolean freed = FALSE;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
freed_user_data = tp_intset_sized_new (N_DAEMONS);
diff --git a/tests/dbus/example-no-protocols.c b/tests/dbus/example-no-protocols.c
index 4a076f5e6..2d22acd0f 100644
--- a/tests/dbus/example-no-protocols.c
+++ b/tests/dbus/example-no-protocols.c
@@ -97,7 +97,6 @@ main (int argc,
gboolean saw_exited;
tp_tests_abort_after (5);
- g_type_init ();
tp_debug_set_flags ("all");
diff --git a/tests/dbus/file-transfer-channel.c b/tests/dbus/file-transfer-channel.c
index b93ac6eb3..be4c4ea29 100644
--- a/tests/dbus/file-transfer-channel.c
+++ b/tests/dbus/file-transfer-channel.c
@@ -585,7 +585,6 @@ main (int argc,
char **argv)
{
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
g_test_init (&argc, &argv, NULL);
diff --git a/tests/dbus/finalized-in-invalidated-handler.c b/tests/dbus/finalized-in-invalidated-handler.c
index 03f7d6635..0eab5797c 100644
--- a/tests/dbus/finalized-in-invalidated-handler.c
+++ b/tests/dbus/finalized-in-invalidated-handler.c
@@ -84,7 +84,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/group-mixin.c b/tests/dbus/group-mixin.c
index 0b7a0a3a4..8943f4bef 100644
--- a/tests/dbus/group-mixin.c
+++ b/tests/dbus/group-mixin.c
@@ -526,7 +526,6 @@ main (int argc,
gchar *chan_path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/handle-repo.c b/tests/dbus/handle-repo.c
index ec8002486..500826fd1 100644
--- a/tests/dbus/handle-repo.c
+++ b/tests/dbus/handle-repo.c
@@ -101,7 +101,6 @@ test_handles (void)
int main (int argc, char **argv)
{
tp_tests_abort_after (10);
- g_type_init ();
test_handles ();
diff --git a/tests/dbus/handle-set.c b/tests/dbus/handle-set.c
index 4dc774b4e..4e9f9c007 100644
--- a/tests/dbus/handle-set.c
+++ b/tests/dbus/handle-set.c
@@ -27,7 +27,6 @@ main (int argc,
TpHandle h1, h2, h3, h4;
tp_tests_abort_after (10);
- g_type_init ();
repo = tp_tests_object_new_static_class (TP_TYPE_DYNAMIC_HANDLE_REPO,
"handle-type", TP_HANDLE_TYPE_CONTACT,
diff --git a/tests/dbus/invalidated-while-invoking-signals.c b/tests/dbus/invalidated-while-invoking-signals.c
index 93606449d..01a5f3029 100644
--- a/tests/dbus/invalidated-while-invoking-signals.c
+++ b/tests/dbus/invalidated-while-invoking-signals.c
@@ -65,7 +65,6 @@ main (int argc,
gchar *path;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
mainloop = g_main_loop_new (NULL, FALSE);
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/long-connection-name.c b/tests/dbus/long-connection-name.c
index 8be0e20f5..ac2b38b12 100644
--- a/tests/dbus/long-connection-name.c
+++ b/tests/dbus/long-connection-name.c
@@ -43,7 +43,6 @@ main (int argc,
gchar *conn_path;
tp_tests_abort_after (10);
- g_type_init ();
dbus = tp_tests_dbus_daemon_dup_or_die ();
MYASSERT (strlen (LONG_ACCOUNT_IS_LONG) == 256, "");
diff --git a/tests/dbus/message-mixin.c b/tests/dbus/message-mixin.c
index 7f526ec19..8e46b41bb 100644
--- a/tests/dbus/message-mixin.c
+++ b/tests/dbus/message-mixin.c
@@ -219,7 +219,6 @@ main (int argc,
GHashTable *parameters;
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/params-cm.c b/tests/dbus/params-cm.c
index 0b7b761f5..91f370253 100644
--- a/tests/dbus/params-cm.c
+++ b/tests/dbus/params-cm.c
@@ -59,7 +59,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/protocol-objects.c b/tests/dbus/protocol-objects.c
index b1c0fdaca..f33122d15 100644
--- a/tests/dbus/protocol-objects.c
+++ b/tests/dbus/protocol-objects.c
@@ -46,7 +46,6 @@ setup (Test *test,
TpBaseConnectionManager *service_cm_as_base;
gboolean ok;
- g_type_init ();
tp_debug_set_flags ("all");
test->mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/dbus/self-presence.c b/tests/dbus/self-presence.c
index c9ed4730a..2efa5fd0f 100644
--- a/tests/dbus/self-presence.c
+++ b/tests/dbus/self-presence.c
@@ -236,7 +236,6 @@ main (int argc,
/* Setup */
tp_tests_abort_after (10);
- g_type_init ();
tp_debug_set_flags ("all");
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/text-mixin.c b/tests/dbus/text-mixin.c
index b4f494e10..51bc6e1f6 100644
--- a/tests/dbus/text-mixin.c
+++ b/tests/dbus/text-mixin.c
@@ -94,7 +94,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
/* tp_debug_set_flags ("all"); */
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/text-respawn.c b/tests/dbus/text-respawn.c
index 46b99aa25..6de9f5b10 100644
--- a/tests/dbus/text-respawn.c
+++ b/tests/dbus/text-respawn.c
@@ -96,7 +96,6 @@ main (int argc,
TpHandle handle;
tp_tests_abort_after (10);
- g_type_init ();
/* tp_debug_set_flags ("all"); */
dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/dbus/unsupported-interface.c b/tests/dbus/unsupported-interface.c
index 98da098ab..43c8523a3 100644
--- a/tests/dbus/unsupported-interface.c
+++ b/tests/dbus/unsupported-interface.c
@@ -37,7 +37,6 @@ static void
setup (Fixture *f,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
f->dbus = tp_tests_dbus_daemon_dup_or_die ();
diff --git a/tests/debug-domain.c b/tests/debug-domain.c
index 37ef41804..d4dfb29cb 100644
--- a/tests/debug-domain.c
+++ b/tests/debug-domain.c
@@ -54,8 +54,6 @@ int main (int argc, char **argv)
#ifdef ENABLE_DEBUG
TestItem i;
- g_type_init ();
-
tp_debug_set_flags ("all");
g_log_set_default_handler (handler, NULL);
diff --git a/tests/dtmf-player.c b/tests/dtmf-player.c
index 33eb99c52..1f00f611d 100644
--- a/tests/dtmf-player.c
+++ b/tests/dtmf-player.c
@@ -96,8 +96,6 @@ static void
setup (Fixture *f,
gconstpointer nil G_GNUC_UNUSED)
{
- g_type_init ();
-
f->dtmf_player = tp_dtmf_player_new ();
g_assert (f->dtmf_player != NULL);
diff --git a/tests/enums.c b/tests/enums.c
index 17ec4b46c..251050bbd 100644
--- a/tests/enums.c
+++ b/tests/enums.c
@@ -22,8 +22,6 @@ test_tp_contact_feature (void)
{
GEnumClass *klass;
- g_type_init ();
-
klass = g_type_class_ref (TP_TYPE_CONTACT_FEATURE);
g_assert (klass != NULL);
@@ -40,8 +38,6 @@ test_tp_dbus_error (void)
{
GEnumClass *klass;
- g_type_init ();
-
klass = g_type_class_ref (TP_TYPE_DBUS_ERROR);
g_assert (klass != NULL);
diff --git a/tests/gnio-util.c b/tests/gnio-util.c
index 6ac758a0d..1a5bd1dda 100644
--- a/tests/gnio-util.c
+++ b/tests/gnio-util.c
@@ -302,7 +302,6 @@ test_sockaddr_to_variant_abstract_unix (void)
int
main (int argc, char **argv)
{
- g_type_init ();
dbus_g_type_specialized_init ();
test_variant_to_sockaddr_ipv4 ();
diff --git a/tests/intset.c b/tests/intset.c
index f92af36a0..16301389c 100644
--- a/tests/intset.c
+++ b/tests/intset.c
@@ -63,8 +63,6 @@ int main (int argc, char **argv)
TpIntset *ab_symmdiff, *ab_expected_symmdiff;
GValue *value;
- g_type_init ();
-
g_assert (tp_intset_is_empty (set1));
g_assert_cmpuint (tp_intset_size (set1), ==, 0);
diff --git a/tests/lib/util.c b/tests/lib/util.c
index 6dd6dd4fd..d5751f4a3 100644
--- a/tests/lib/util.c
+++ b/tests/lib/util.c
@@ -84,8 +84,6 @@ start_dbus_session (void)
{
g_assert (test_dbus == NULL);
- g_type_init ();
-
g_test_dbus_unset ();
/* GLib 2.36 does not unset STARTER env variables but tp-glib are using them.
@@ -379,7 +377,6 @@ void
tp_tests_init (int *argc,
char ***argv)
{
- g_type_init ();
tp_tests_abort_after (10);
tp_debug_set_flags ("all");
diff --git a/tests/signal-connect-object.c b/tests/signal-connect-object.c
index 90a867724..fa1c9e5da 100644
--- a/tests/signal-connect-object.c
+++ b/tests/signal-connect-object.c
@@ -60,7 +60,6 @@ static void
setup (Test *test,
gconstpointer data)
{
- g_type_init ();
tp_debug_set_flags ("all");
test->caught = 0;
diff --git a/tests/util-cxx.cpp b/tests/util-cxx.cpp
index 3b2a6b577..b8b822e36 100644
--- a/tests/util-cxx.cpp
+++ b/tests/util-cxx.cpp
@@ -28,8 +28,6 @@ int main (int argc, char **argv)
GObject *o;
GHashTable *h;
- g_type_init ();
-
o = (GObject *) g_file_new_for_path ("/");
tp_clear_object (&o);
diff --git a/tests/util.c b/tests/util.c
index 1bf9533c6..3b0b7c952 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -297,8 +297,6 @@ int main (int argc, char **argv)
GPtrArray *ptrarray;
gchar *string;
- g_type_init ();
-
g_assert (!tp_strdiff (NULL, NULL));
g_assert (tp_strdiff ("badger", NULL));
g_assert (tp_strdiff (NULL, "badger"));
diff --git a/tools/glib-errors-check-gen.py b/tools/glib-errors-check-gen.py
index fad261ece..3cc8a5afb 100644
--- a/tools/glib-errors-check-gen.py
+++ b/tools/glib-errors-check-gen.py
@@ -17,7 +17,6 @@ class Generator(object):
print(' GEnumValue *value_by_name;')
print(' GEnumValue *value_by_nick;')
print('')
- print(' g_type_init ();')
print(' klass = g_type_class_ref (TP_TYPE_ERROR);')
for error in self.errors.getElementsByTagNameNS(NS_TP, 'error'):