[gnome-packagekit] Don't use the deprecated g_thread_init
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Don't use the deprecated g_thread_init
- Date: Wed, 19 Oct 2011 07:56:32 +0000 (UTC)
commit 901d4168b63cb1a5f47ccde2696030ecebbacddf
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 19 08:51:36 2011 +0100
Don't use the deprecated g_thread_init
src/gpk-application.c | 2 --
src/gpk-dbus-service.c | 2 --
src/gpk-distro-upgrade.c | 2 --
src/gpk-install-catalog.c | 2 --
src/gpk-install-local-file.c | 2 --
src/gpk-install-mime-type.c | 2 --
src/gpk-install-package-name.c | 2 --
src/gpk-install-provide-file.c | 2 --
src/gpk-log.c | 2 --
src/gpk-prefs.c | 2 --
src/gpk-self-test.c | 2 --
src/gpk-service-pack.c | 2 --
src/gpk-update-viewer.c | 2 --
13 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 25b634c..229074c 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -4058,8 +4058,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
dbus_g_thread_init ();
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-dbus-service.c b/src/gpk-dbus-service.c
index 684084c..39bbf89 100644
--- a/src/gpk-dbus-service.c
+++ b/src/gpk-dbus-service.c
@@ -146,8 +146,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
dbus_g_thread_init ();
g_type_init ();
notify_init (_("Software Install"));
diff --git a/src/gpk-distro-upgrade.c b/src/gpk-distro-upgrade.c
index f74d14c..d8d9751 100644
--- a/src/gpk-distro-upgrade.c
+++ b/src/gpk-distro-upgrade.c
@@ -759,8 +759,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
priv = g_new0 (GpkDistroUpgradePrivate, 1);
diff --git a/src/gpk-install-catalog.c b/src/gpk-install-catalog.c
index 22ccb4d..af36008 100644
--- a/src/gpk-install-catalog.c
+++ b/src/gpk-install-catalog.c
@@ -59,8 +59,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-install-local-file.c b/src/gpk-install-local-file.c
index 95d1c51..5753c0b 100644
--- a/src/gpk-install-local-file.c
+++ b/src/gpk-install-local-file.c
@@ -58,8 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-install-mime-type.c b/src/gpk-install-mime-type.c
index 8ebe44a..e435482 100644
--- a/src/gpk-install-mime-type.c
+++ b/src/gpk-install-mime-type.c
@@ -58,8 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-install-package-name.c b/src/gpk-install-package-name.c
index 947c893..064f5f6 100644
--- a/src/gpk-install-package-name.c
+++ b/src/gpk-install-package-name.c
@@ -57,8 +57,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-install-provide-file.c b/src/gpk-install-provide-file.c
index 5ae74d8..af3ba20 100644
--- a/src/gpk-install-provide-file.c
+++ b/src/gpk-install-provide-file.c
@@ -58,8 +58,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-log.c b/src/gpk-log.c
index 6033da0..3d6a6ea 100644
--- a/src/gpk-log.c
+++ b/src/gpk-log.c
@@ -831,8 +831,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-prefs.c b/src/gpk-prefs.c
index b6defd1..6445c3e 100644
--- a/src/gpk-prefs.c
+++ b/src/gpk-prefs.c
@@ -981,8 +981,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-self-test.c b/src/gpk-self-test.c
index f12ce73..37b15c4 100644
--- a/src/gpk-self-test.c
+++ b/src/gpk-self-test.c
@@ -39,8 +39,6 @@ main (int argc, char **argv)
{
EggTest *test;
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-service-pack.c b/src/gpk-service-pack.c
index b087741..f321cab 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -889,8 +889,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
g_type_init ();
gtk_init (&argc, &argv);
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index ce9f8e6..dc159a2 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -3353,8 +3353,6 @@ main (int argc, char *argv[])
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- if (! g_thread_supported ())
- g_thread_init (NULL);
dbus_g_thread_init ();
g_type_init ();
gtk_init (&argc, &argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]