30088: Make typeahead find build, register and run on Linux as well as windows. Not part of the build yet.

This commit is contained in:
akkana%netscape.com 2002-07-09 19:38:37 +00:00
Родитель e5462749ed
Коммит 685cdfa613
2 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -75,5 +75,7 @@ CPPSRCS = \
include $(topsrcdir)/config/rules.mk
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
EXTRA_DSO_LDOPTS += \
$(MOZ_UNICHARUTIL_LIBS) \
$(MOZ_COMPONENT_LIBS)

Просмотреть файл

@ -64,17 +64,14 @@ static NS_METHOD nsTypeAheadFindRegistrationProc(nsIComponentManager *aCompMgr,
// an application component. This makes sure that we're
// initialized on application startup.
return NS_OK;
/*
// We used to be called on app startup via nsIObserver::Observe interface
// Now we use a pref callback to initialize ourselves
// Register nsTypeAheadFind to be instantiated on startup.
// XXX This is needed on linux, but for some reason not needed on win32.
nsresult rv;
nsCOMPtr<nsICategoryManager> categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
if (NS_SUCCEEDED(rv))
rv = categoryManager->AddCategoryEntry(APPSTARTUP_CATEGORY, "Type Ahead Find",
"service," NS_TYPEAHEADFIND_CONTRACTID, PR_TRUE, PR_TRUE, nsnull);
return rv;
*/
}