Mercurial > hg > xemacs-beta
comparison lwlib/lwlib-Xaw.c @ 3958:7bc12bb1a2cf
[xemacs-hg @ 2007-05-17 15:06:04 by stephent]
Fix crash with wm delete of dialog. <87sl9v8ot1.fsf@uwakimon.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Thu, 17 May 2007 15:06:04 +0000 |
parents | 174eb4da74fb |
children | 383ab474a241 |
comparison
equal
deleted
inserted
replaced
3957:61088a67e55b | 3958:7bc12bb1a2cf |
---|---|
597 Arg al [1]; | 597 Arg al [1]; |
598 if (! XtIsSubclass (shell, shellWidgetClass)) | 598 if (! XtIsSubclass (shell, shellWidgetClass)) |
599 abort (); | 599 abort (); |
600 XtSetArg (al [0], XtNchildren, &kids); | 600 XtSetArg (al [0], XtNchildren, &kids); |
601 XtGetValues (shell, al, 1); | 601 XtGetValues (shell, al, 1); |
602 if (!kids || !*kids) | 602 if (!kids || !*kids) abort (); |
603 abort (); | 603 |
604 widget = kids [0]; | 604 for (widget = *kids; |
605 if (! XtIsSubclass (widget, dialogWidgetClass)) | 605 widget && ! XtIsSubclass (widget, dialogWidgetClass); |
606 abort (); | 606 widget = *++kids) |
607 ; | |
608 if (!widget) abort (); | |
609 | |
607 id = lw_get_widget_id (widget); | 610 id = lw_get_widget_id (widget); |
608 if (! id) abort (); | 611 if (! id) abort (); |
609 | 612 |
610 { | 613 { |
611 widget_info *info = lw_get_widget_info (id); | 614 widget_info *info = lw_get_widget_info (id); |