fix xlib build (not part of default build)

This commit is contained in:
alecf%netscape.com 2000-03-24 07:57:53 +00:00
Родитель face54c533
Коммит 92236327af
1 изменённых файлов: 15 добавлений и 9 удалений

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

@ -211,9 +211,11 @@ int main(int argc, char **argv)
if (!NS_SUCCEEDED(rv)) if (!NS_SUCCEEDED(rv))
return 1; return 1;
sgWebShell->Init((nsNativeWidget *)GDK_WINDOW_XWINDOW(main_window->window), // XXX - fix me!
0, 0, //sgWebShell->Init((nsNativeWidget *)GDK_WINDOW_XWINDOW(main_window->window),
500, 500); // 0, 0,
//500, 500);
NS_ASSERTION(PR_FALSE, "Please fix this code.");
gsWindowService->GetEventDispatcher(&gsEventDispatcher); gsWindowService->GetEventDispatcher(&gsEventDispatcher);
@ -228,8 +230,10 @@ int main(int argc, char **argv)
sgPrefs->StartUp(); sgPrefs->StartUp();
sgPrefs->ReadUserPrefs(); sgPrefs->ReadUserPrefs();
nsIContentViewer *content_viewer; nsIContentViewer *content_viewer=nsnull;
rv = sgWebShell->GetContentViewer(&content_viewer); // XXX fix me!
//rv = sgWebShell->GetContentViewer(&content_viewer);
NS_ASSERTION(PR_FALSE, "Please fix this code.");
if (NS_SUCCEEDED(rv) && content_viewer) { if (NS_SUCCEEDED(rv) && content_viewer) {
content_viewer->Show(); content_viewer->Show();
NS_RELEASE(content_viewer); NS_RELEASE(content_viewer);
@ -277,10 +281,12 @@ void handle_size_allocate(GtkWidget *w, GtkAllocation *alloc, gpointer p)
{ {
printf("handling size allocate\n"); printf("handling size allocate\n");
nsIWebShell *moz_widget = (nsIWebShell *)p; nsIWebShell *moz_widget = (nsIWebShell *)p;
nsIContentViewer *content_viewer; nsIContentViewer *content_viewer=nsnull;
nsresult rv; nsresult rv=NS_OK;
rv = moz_widget->GetContentViewer(&content_viewer); // XXX - fix me!
// rv = moz_widget->GetContentViewer(&content_viewer);
NS_ASSERTION(PR_FALSE, "Please fix this code.");
if (NS_SUCCEEDED(rv) && content_viewer) { if (NS_SUCCEEDED(rv) && content_viewer) {
nsRect bounds(0,0, alloc->width, alloc->height); nsRect bounds(0,0, alloc->width, alloc->height);