win->OnPaint(pevent);
win->OnExpose(pevent);
gint handle_expose_event(GtkWidget *w, GdkEventExpose *event, gpointer p){  if (event->type == GDK_NO_EXPOSE)    return PR_FALSE;  nsPaintEvent pevent;  InitExposeEvent(event, p, pevent, NS_PAINT);  nsWindow *win = (nsWindow *)p;  win->AddRef();  win->OnPaint(pevent);  win->Release();  UninitExposeEvent(event, p, pevent, NS_PAINT);  return PR_TRUE;}