|
楼主 |
发表于 2006-8-11 17:44:21
|
显示全部楼层
584 /* Get the shell object. */
585 if (message == NULL) {
586 shell = bonobo_activation_activate_from_id (SHELL_IID, 0, NULL, NULL);
587 if (!CORBA_Object_is_nil (shell, &ev)) {
588 break;
589 }
590
591 /* If we couldn't find ourselves it's a bad problem so
592 * we better stop looping.
593 */
594 if (result == Bonobo_ACTIVATION_REG_SUCCESS) {
595 break;
596 /* FIXME bugzilla.gnome.org 42538: When can this happen? */
597 /*message = _("A____Nautilus can't be used now, due to an unexpected error.");
598 detailed_message = _("Nautilus can't be used now, due to an unexpected error "
599 "from Bonobo when attempting to locate the factory."
600 "Killing bonobo-activation-server and restarting Nautilus may help fix the problem.");*/
601 } else {
602 num_failures++;
603 if (num_failures > 20) {
604 message = _("Nautilus can't be used now, due to an unexpected error.");
605 detailed_message = _("Nautilus can't be used now, due to an unexpected error "
606 "from Bonobo when attempting to locate the shell object. "
607 "Killing bonobo-activation-server and restarting Nautilus may h elp fix the problem.");
608
609 }
610 }
就是这段代码出的问题, 我把result==Bonobo_ACTIVATION_REG_SUCCESS的那个消息注释了, 然后直接break, 现在就没有问题了. |
|