if (aGEE != nsnull) {
if (aGEE != nsnull) { #ifdef DEBUG_EVENTS g_print("expose event: x = %i , y = %i , w = %i , h = %i\n", aGEE->area.x, aGEE->area.y, aGEE->area.width, aGEE->area.height); #endif anEvent.point.x = aGEE->area.x; anEvent.point.y = aGEE->area.y;
void InitExposeEvent(GdkEventExpose *aGEE,                            gpointer   p,                            nsPaintEvent &anEvent,                            PRUint32   aEventType){  anEvent.message = aEventType;  anEvent.widget  = (nsWidget *) p;  anEvent.eventStructType = NS_PAINT_EVENT;  if (aGEE != nsnull) {    nsRect *rect = new nsRect(aGEE->area.x, aGEE->area.y,                              aGEE->area.width, aGEE->area.height);    anEvent.rect = rect;    anEvent.time = gdk_event_get_time((GdkEvent*)aGEE);  }}