NS_ADDREF(anEvent.widget);
void InitDrawEvent(GdkRectangle *area,                            gpointer   p,                            nsPaintEvent &anEvent,                            PRUint32   aEventType){  anEvent.message = aEventType;  anEvent.widget  = (nsWidget *) p;  NS_ADDREF(anEvent.widget);  anEvent.eventStructType = NS_PAINT_EVENT;  if (area != NULL) {    nsRect *rect = new nsRect(area->x, area->y, area->width, area->height);    anEvent.rect = rect;  }}