made the stars 'n comets animation the default for the throbber.

This commit is contained in:
michaelp%netscape.com 1998-11-23 03:30:24 +00:00
Родитель 1261cf624b
Коммит aaf7c2ce32
1 изменённых файлов: 11 добавлений и 1 удалений

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

@ -89,8 +89,17 @@
#include "nsIDeviceContext.h"
// XXX greasy constants
#ifdef THROBBING_N
#define THROBBER_WIDTH 32
#define THROBBER_HEIGHT 32
#define THROBBER_AT "resource:/res/throbber/anims%02d.gif"
#define THROB_NUM 14
#else
#define THROBBER_WIDTH 42
#define THROBBER_HEIGHT 42
#define THROBBER_AT "resource:/res/throbber/LargeAnimation%02d.gif"
#define THROB_NUM 38
#endif
#define BUTTON_WIDTH 90
#define BUTTON_HEIGHT THROBBER_HEIGHT
@ -1163,7 +1172,8 @@ nsBrowserWindow::CreateToolBar(PRInt32 aWidth)
if (NS_OK != rv) {
return rv;
}
mThrobber->Init(mWindow, r);
nsString throbberURL(THROBBER_AT);
mThrobber->Init(mWindow, r, throbberURL, THROB_NUM);
mThrobber->Show();
return NS_OK;