win->Release();
gint handle_draw_event(GtkWidget *w, GdkRectangle *area, gpointer p){  nsPaintEvent pevent;  InitDrawEvent(area, p, pevent, NS_PAINT);  nsWindow *win = (nsWindow *)p;  win->OnPaint(pevent);  UninitDrawEvent(area, p, pevent, NS_PAINT);  return PR_TRUE;}