[metacity] misc: remove deprecated g_[type/thread]_init



commit 43e43ec37b6a373cee2a1367238b54e4bd76c4cc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Jun 3 16:15:43 2014 +0300

    misc: remove deprecated g_[type/thread]_init

 src/core/main.c                |    5 -----
 src/tools/metacity-grayscale.c |    2 --
 2 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/core/main.c b/src/core/main.c
index 4f9a37c..8a2f796 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -413,14 +413,9 @@ main (int argc, char **argv)
   guint i;
   GIOChannel *channel;
 
-  if (!g_thread_supported ())
-    g_thread_init (NULL);
-  
   if (setlocale (LC_ALL, "") == NULL)
     meta_warning ("Locale not understood by C library, internationalization will not work\n");
 
-  g_type_init ();
-  
   sigemptyset (&empty_mask);
   act.sa_handler = SIG_IGN;
   act.sa_mask    = empty_mask;
diff --git a/src/tools/metacity-grayscale.c b/src/tools/metacity-grayscale.c
index 9d6bf65..c7ec0be 100644
--- a/src/tools/metacity-grayscale.c
+++ b/src/tools/metacity-grayscale.c
@@ -79,8 +79,6 @@ main (int argc, char **argv)
       return 1;
     }
 
-  g_type_init ();
-  
   err = NULL;
   pixbuf = gdk_pixbuf_new_from_file (argv[1], &err);
   if (err != NULL)


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