NS_RELEASE(NS_STATIC_CAST(nsIWidget*,win));
NS_RELEASE(win);
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;  NS_ADDREF(NS_STATIC_CAST(nsIWidget*,win));  win->OnExpose(pevent);  NS_RELEASE(NS_STATIC_CAST(nsIWidget*,win));  UninitExposeEvent(event, p, pevent, NS_PAINT);  return PR_TRUE;}