widget->DispatchActivateEvent();
gint handle_toplevel_focus_in(GtkWidget *      aWidget,                               GdkEventFocus *  aGdkFocusEvent,                               gpointer         aData){  GtkWindow *window = NULL;  GtkBin    *bin = NULL;  if (!aWidget)    return PR_TRUE;  if (!aGdkFocusEvent)    return PR_TRUE;  nsWindow *widget = (nsWindow *)aData;  if (!widget)    return PR_TRUE;#ifdef DEBUG_FOCUS  printf("handle_toplevel_focus_in %p\n", widget);#endif /* DEBUG_FOCUS */  window = GTK_WINDOW(aWidget);  bin = GTK_BIN(window);    gtk_widget_grab_focus(bin->child);  widget->DispatchSetFocusEvent();  widget->DispatchActivateEvent();  return PR_TRUE;}