Skip to content

Commit

Permalink
Remove calls to deprecated g_type_init() function
Browse files Browse the repository at this point in the history
Since GLib 2.36 the type system is initialised automatically
and g_type_init() function does nothing.
  • Loading branch information
spiiroin committed Mar 14, 2014
1 parent 7a56637 commit 4c5e5bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions mce.c
Expand Up @@ -886,9 +886,6 @@ int main(int argc, char **argv)
if (daemonflag == TRUE)
daemonize();

/* Initialise GType system */
g_type_init();

/* Register a mainloop */
mainloop = g_main_loop_new(NULL, FALSE);

Expand Down
2 changes: 1 addition & 1 deletion rpm/mce.spec
Expand Up @@ -16,7 +16,7 @@ BuildRequires: pkgconfig(dbus-1) >= 1.0.2
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(dsme) >= 0.58
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.18.0
BuildRequires: pkgconfig(glib-2.0) >= 2.36.0
BuildRequires: pkgconfig(mce) >= 1.12.4
BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: kernel-headers >= 2.6.32
Expand Down
3 changes: 0 additions & 3 deletions tools/mcetool.c
Expand Up @@ -3044,9 +3044,6 @@ int main(int argc, char **argv)
{
int exitcode = EXIT_FAILURE;

/* Init GType */
g_type_init();

/* No args -> show mce status */
if( argc < 2 )
xmce_get_status();
Expand Down

0 comments on commit 4c5e5bb

Please sign in to comment.