Bug 978147 - Remove deprecated g_type_init from Toolkit. f=dkeeler r=roc

This commit is contained in:
Raymond Etornam Agbeame(:retornam) 2014-03-06 15:36:23 -05:00
parent d7ef2c42c6
commit 3d4c18f441
3 changed files with 1 additions and 18 deletions

View File

@ -106,9 +106,6 @@ nsDownloadManager::GetSingleton()
gDownloadManagerService = new nsDownloadManager();
if (gDownloadManagerService) {
#if defined(MOZ_WIDGET_GTK)
g_type_init();
#endif
NS_ADDREF(gDownloadManagerService);
if (NS_FAILED(gDownloadManagerService->Init()))
NS_RELEASE(gDownloadManagerService);

View File

@ -43,10 +43,6 @@ DownloadPlatform* DownloadPlatform::GetDownloadPlatform()
NS_ADDREF(gDownloadPlatformService);
#if defined(MOZ_WIDGET_GTK)
g_type_init();
#endif
return gDownloadPlatformService;
}

View File

@ -62,20 +62,10 @@ static const mozilla::Module::ContractIDEntry kGnomeContracts[] = {
{ nullptr }
};
static nsresult
InitGType ()
{
g_type_init();
return NS_OK;
}
static const mozilla::Module kGnomeModule = {
mozilla::Module::kVersion,
kGnomeCIDs,
kGnomeContracts,
nullptr,
nullptr,
InitGType
kGnomeContracts
};
NSMODULE_DEFN(mozgnome) = &kGnomeModule;