window = GTK_WINDOW(gtk_widget_get_toplevel(widget->mWidget));
window = widget->mWidget->GetTopLevelWindow();
void ModalWidgetList::Suppress(PRBool aSuppress) {  if (!gModalWidgets)    return;  GtkWindow       *window;  ModalWidgetList *widget;  if (aSuppress)    for (widget = gModalWidgets->mLast; widget; widget = widget->mPrev) {      window = GTK_WINDOW(gtk_widget_get_toplevel(widget->mWidget));      NS_ASSERTION(window, "non-window in modality suppression list");      gtk_window_set_modal(window, FALSE);    }  else    for (widget = gModalWidgets; widget; widget = widget->mNext) {      window = GTK_WINDOW(gtk_widget_get_toplevel(widget->mWidget));      NS_ASSERTION(window, "non-window in modality suppression list");      gtk_window_set_modal(window, TRUE);    }}