summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-12-03 13:59:55 -0500
committerColin Walters <walters@verbum.org>2012-12-03 14:24:28 -0500
commit4641a3559bda2d774a1a8f6fa670906cd9a84ca5 (patch)
treedd7037d1d24a3722bf041a1c7a63d6bbaee2a09a
parentbc10ee71ce68acad963a72307c8f06240a99b2e1 (diff)
downloadgdm-4641a3559bda2d774a1a8f6fa670906cd9a84ca5.tar.gz
Drop calls to g_type_init()/g_thread_init()
Both are deprecated and no longer necessary.
-rw-r--r--common/test-settings-client.c2
-rw-r--r--common/test-settings-server.c2
-rw-r--r--daemon/main.c2
-rw-r--r--daemon/session-worker-main.c2
-rw-r--r--daemon/simple-slave-main.c2
-rw-r--r--daemon/test-session-client.c2
-rw-r--r--daemon/xdmcp-chooser-slave-main.c2
-rw-r--r--gui/simple-chooser/chooser-main.c2
-rw-r--r--gui/simple-chooser/gdm-host-chooser.c2
-rw-r--r--gui/simple-greeter/extensions/smartcard/gdm-smartcard-manager.c7
-rw-r--r--gui/simple-greeter/extensions/smartcard/gdm-smartcard-worker.c2
-rw-r--r--gui/simple-greeter/greeter-main.c2
-rw-r--r--gui/simple-greeter/test-filesystem-type.c2
-rw-r--r--gui/simple-greeter/test-user-manager.c4
-rw-r--r--tests/m-common.c2
15 files changed, 0 insertions, 37 deletions
diff --git a/common/test-settings-client.c b/common/test-settings-client.c
index 59309c92..4a483fe9 100644
--- a/common/test-settings-client.c
+++ b/common/test-settings-client.c
@@ -76,8 +76,6 @@ main (int argc, char **argv)
{
GMainLoop *loop;
- g_type_init ();
-
if (! gdm_settings_client_init (DATADIR "/gdm/gdm.schemas", "/")) {
exit (1);
}
diff --git a/common/test-settings-server.c b/common/test-settings-server.c
index ce33415c..358af5cc 100644
--- a/common/test-settings-server.c
+++ b/common/test-settings-server.c
@@ -77,8 +77,6 @@ main (int argc, char **argv)
GMainLoop *main_loop;
GDBusConnection *connection;
- g_type_init ();
-
connection = get_system_bus ();
if (connection == NULL) {
goto out;
diff --git a/daemon/main.c b/daemon/main.c
index 7a8c8e22..c7aad763 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -343,8 +343,6 @@ main (int argc,
ret = 1;
- g_type_init ();
-
context = g_option_context_new (_("GNOME Display Manager"));
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_set_ignore_unknown_options (context, TRUE);
diff --git a/daemon/session-worker-main.c b/daemon/session-worker-main.c
index fb3d3a7e..eff41dc4 100644
--- a/daemon/session-worker-main.c
+++ b/daemon/session-worker-main.c
@@ -96,8 +96,6 @@ main (int argc,
textdomain (GETTEXT_PACKAGE);
setlocale (LC_ALL, "");
- g_type_init ();
-
/* Translators: worker is a helper process that does the work
of starting up a session */
context = g_option_context_new (_("GNOME Display Manager Session Worker"));
diff --git a/daemon/simple-slave-main.c b/daemon/simple-slave-main.c
index 7df80fb0..740cd808 100644
--- a/daemon/simple-slave-main.c
+++ b/daemon/simple-slave-main.c
@@ -130,8 +130,6 @@ main (int argc,
textdomain (GETTEXT_PACKAGE);
setlocale (LC_ALL, "");
- g_type_init ();
-
context = g_option_context_new (_("GNOME Display Manager Slave"));
g_option_context_add_main_entries (context, entries, NULL);
diff --git a/daemon/test-session-client.c b/daemon/test-session-client.c
index 0327c717..0dba2891 100644
--- a/daemon/test-session-client.c
+++ b/daemon/test-session-client.c
@@ -158,8 +158,6 @@ main (int argc,
char *address;
gboolean ok;
- g_type_init ();
-
g_debug ("creating instance of GdmDBusDisplay object...");
error = NULL;
diff --git a/daemon/xdmcp-chooser-slave-main.c b/daemon/xdmcp-chooser-slave-main.c
index 450e37bf..9025bb24 100644
--- a/daemon/xdmcp-chooser-slave-main.c
+++ b/daemon/xdmcp-chooser-slave-main.c
@@ -130,8 +130,6 @@ main (int argc,
textdomain (GETTEXT_PACKAGE);
setlocale (LC_ALL, "");
- g_type_init ();
-
context = g_option_context_new (_("GNOME Display Manager Slave"));
g_option_context_add_main_entries (context, entries, NULL);
diff --git a/gui/simple-chooser/chooser-main.c b/gui/simple-chooser/chooser-main.c
index 12606155..ca5b92c2 100644
--- a/gui/simple-chooser/chooser-main.c
+++ b/gui/simple-chooser/chooser-main.c
@@ -215,8 +215,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- g_type_init ();
-
gdm_log_init ();
gdm_log_set_debug (TRUE);
diff --git a/gui/simple-chooser/gdm-host-chooser.c b/gui/simple-chooser/gdm-host-chooser.c
index f2e35218..fa15be33 100644
--- a/gui/simple-chooser/gdm-host-chooser.c
+++ b/gui/simple-chooser/gdm-host-chooser.c
@@ -214,8 +214,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- g_type_init ();
-
gdm_log_init ();
gdm_log_set_debug (TRUE);
diff --git a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-manager.c b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-manager.c
index 07d1e5c3..846610fe 100644
--- a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-manager.c
+++ b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-manager.c
@@ -358,11 +358,6 @@ gdm_smartcard_manager_init (GdmSmartcardManager *manager)
g_str_equal,
(GDestroyNotify) g_free,
(GDestroyNotify) g_object_unref);
-
- if (!g_thread_supported()) {
- g_thread_init (NULL);
- }
-
}
static void
@@ -1448,8 +1443,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 = gdm_smartcard_manager_new (NULL);
g_message ("'smartcard manager' object created successfully");
diff --git a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-worker.c b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-worker.c
index 578ef37d..711c2c7f 100644
--- a/gui/simple-greeter/extensions/smartcard/gdm-smartcard-worker.c
+++ b/gui/simple-greeter/extensions/smartcard/gdm-smartcard-worker.c
@@ -149,8 +149,6 @@ main (int argc,
setlocale (LC_ALL, "");
- g_type_init ();
-
g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, on_debug_message, NULL);
event_loop = g_main_loop_new (NULL, FALSE);
diff --git a/gui/simple-greeter/greeter-main.c b/gui/simple-greeter/greeter-main.c
index 055f031d..de2ad652 100644
--- a/gui/simple-greeter/greeter-main.c
+++ b/gui/simple-greeter/greeter-main.c
@@ -223,8 +223,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- g_type_init ();
-
gdm_profile_start ("Initializing settings client");
if (! gdm_settings_client_init (DATADIR "/gdm/gdm.schemas", "/")) {
g_critical ("Unable to initialize settings client");
diff --git a/gui/simple-greeter/test-filesystem-type.c b/gui/simple-greeter/test-filesystem-type.c
index 9f44b3d3..30b795fb 100644
--- a/gui/simple-greeter/test-filesystem-type.c
+++ b/gui/simple-greeter/test-filesystem-type.c
@@ -91,8 +91,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- g_type_init ();
-
/* Option parsing */
ctx = g_option_context_new ("- Test filesystem type");
g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE);
diff --git a/gui/simple-greeter/test-user-manager.c b/gui/simple-greeter/test-user-manager.c
index ed84b8c6..71d75141 100644
--- a/gui/simple-greeter/test-user-manager.c
+++ b/gui/simple-greeter/test-user-manager.c
@@ -95,10 +95,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- g_type_init ();
-
- g_type_init ();
-
context = g_option_context_new ("GNOME Display Manager");
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_set_ignore_unknown_options (context, TRUE);
diff --git a/tests/m-common.c b/tests/m-common.c
index 6d384072..0c038054 100644
--- a/tests/m-common.c
+++ b/tests/m-common.c
@@ -45,8 +45,6 @@ main (int argc, char **argv)
failed = 0;
- g_type_init ();
-
context = g_option_context_new ("");
g_option_context_add_main_entries (context, entries, NULL);
error = NULL;