Do not use deprecated function in glib 2.36+

Fixes issue #3596
This commit is contained in:
John Maguire 2013-04-06 13:45:40 -07:00
parent bc5aa4055c
commit 2cdbe9ea82
1 changed files with 3 additions and 1 deletions

View File

@ -263,7 +263,9 @@ int main(int argc, char *argv[]) {
#endif
// This makes us show up nicely in gnome-volume-control
g_type_init();
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init(); // Deprecated in glib 2.36.0
#endif
g_set_application_name(QCoreApplication::applicationName().toLocal8Bit());
RegisterMetaTypes();