Do silly homepage tooltip text stuff in a callback.

git-svn-id: svn://10.0.0.236/trunk@126831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com 2002-08-09 00:22:07 +00:00
parent 87e0459927
commit 5014a5ed6d

View File

@ -245,16 +245,6 @@ function Startup()
return;
}
// Do all UI building here:
// set home button tooltip text
var homePage = getHomePage();
if (homePage) {
var homeButton = document.getElementById("home-button");
if (homeButton)
homeButton.setAttribute("tooltiptext", homePage);
}
// initialize observers and listeners
window.XULBrowserWindow = new nsBrowserStatusHandler();
@ -384,6 +374,14 @@ function Startup()
function LoadBookmarksCallback()
{
// set home button tooltip text
var homePage = getHomePage();
if (homePage) {
var homeButton = document.getElementById("home-button");
if (homeButton)
homeButton.setAttribute("tooltiptext", homePage);
}
try {
if (!gBookmarksService)
gBookmarksService = Components.classes["@mozilla.org/browser/bookmarks-service;1"]