nsGUIEvent gevent; InitFocusEvent(event, p, gevent, NS_GOTFOCUS);
nsWindow *win = (nsWindow *)p; if (!win->IsDestroying()) { nsGUIEvent gevent; InitFocusEvent(event, p, gevent, NS_GOTFOCUS);
gint handle_focus_in_event(GtkWidget *w, GdkEventFocus * event, gpointer p){  nsGUIEvent gevent;  InitFocusEvent(event, p, gevent, NS_GOTFOCUS);  nsWindow *win = (nsWindow *)p;  win->DispatchFocus(gevent);  UninitFocusEvent(event, p, gevent, NS_GOTFOCUS);  return PR_TRUE;}