mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 978147 - Remove deprecated g_type_init from Toolkit. f=dkeeler r=roc
This commit is contained in:
parent
d7ef2c42c6
commit
3d4c18f441
@ -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);
|
||||
|
@ -43,10 +43,6 @@ DownloadPlatform* DownloadPlatform::GetDownloadPlatform()
|
||||
|
||||
NS_ADDREF(gDownloadPlatformService);
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK)
|
||||
g_type_init();
|
||||
#endif
|
||||
|
||||
return gDownloadPlatformService;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user