From 647d0a6f2bf243c61f2b04f1e4bd93260b8d5cca Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 1 Jul 2014 14:24:58 +0200 Subject: Drop deprecated g_type_init, type initialized automatically. --- logview/tests/test-reader.c | 2 -- mate-dictionary/src/gdict-app.c | 6 ------ 2 files changed, 8 deletions(-) diff --git a/logview/tests/test-reader.c b/logview/tests/test-reader.c index a04d6835..e208a30b 100644 --- a/logview/tests/test-reader.c +++ b/logview/tests/test-reader.c @@ -48,8 +48,6 @@ callback (LogviewLog *log, int main (int argc, char **argv) { - g_type_init (); - loop = g_main_loop_new (NULL, FALSE); logview_log_create ("/var/log/dpkg.log.2.gz", callback, NULL); g_main_loop_run (loop); diff --git a/mate-dictionary/src/gdict-app.c b/mate-dictionary/src/gdict-app.c index 20a1ae06..6e9b3e8f 100644 --- a/mate-dictionary/src/gdict-app.c +++ b/mate-dictionary/src/gdict-app.c @@ -352,12 +352,6 @@ gdict_init (int *argc, char ***argv) { NULL }, }; - /* we must have GLib's type system up and running in order to create the - * singleton object for mate-dictionary; thus, we can't rely on - * mate_program_init() calling g_type_init() for us. - */ - g_type_init (); - g_assert (singleton == NULL); singleton = GDICT_APP (g_object_new (GDICT_TYPE_APP, NULL)); -- cgit v1.2.1