From 990a430ad13be7deb5a81457070a000b770b0ff3 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 18 May 2014 00:55:29 +0200 Subject: Remove deprecated g_thread_init and g_type_init functions --- plugins/datetime/msd-datetime-mechanism-main.c | 4 ---- plugins/smartcard/msd-smartcard-manager.c | 7 ------- plugins/xsettings/fontconfig-monitor.c | 2 -- 3 files changed, 13 deletions(-) (limited to 'plugins') diff --git a/plugins/datetime/msd-datetime-mechanism-main.c b/plugins/datetime/msd-datetime-mechanism-main.c index df84550..473c968 100644 --- a/plugins/datetime/msd-datetime-mechanism-main.c +++ b/plugins/datetime/msd-datetime-mechanism-main.c @@ -130,11 +130,7 @@ main (int argc, char **argv) ret = 1; - if (! g_thread_supported ()) { - g_thread_init (NULL); - } dbus_g_thread_init (); - g_type_init (); connection = get_system_bus (); if (connection == NULL) { diff --git a/plugins/smartcard/msd-smartcard-manager.c b/plugins/smartcard/msd-smartcard-manager.c index 503123a..d22bbe3 100644 --- a/plugins/smartcard/msd-smartcard-manager.c +++ b/plugins/smartcard/msd-smartcard-manager.c @@ -340,11 +340,6 @@ msd_smartcard_manager_init (MsdSmartcardManager *manager) g_str_equal, (GDestroyNotify) g_free, (GDestroyNotify) g_object_unref); - - if (!g_thread_supported ()) { - g_thread_init (NULL); - } - } static void @@ -1335,8 +1330,6 @@ main (int argc, g_log_set_always_fatal (G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING); - g_type_init (); - g_message ("creating instance of 'smartcard manager' object..."); manager = msd_smartcard_manager_new (NULL); g_message ("'smartcard manager' object created successfully"); diff --git a/plugins/xsettings/fontconfig-monitor.c b/plugins/xsettings/fontconfig-monitor.c index febb746..ed4a5a9 100644 --- a/plugins/xsettings/fontconfig-monitor.c +++ b/plugins/xsettings/fontconfig-monitor.c @@ -180,8 +180,6 @@ main (void) { GMainLoop *loop; - g_type_init (); - fontconfig_monitor_start ((GFunc) yay, NULL); loop = g_main_loop_new (NULL, TRUE); -- cgit v1.2.1