Re: [PATCH]: menu doesn't appear on right info panel



Hello,

On Thu, 28 Oct 2004, Leonard den Ottolander wrote:

> Hello Pavel,
>
> On Tue, 2004-10-26 at 10:25, Pavel Tsekov wrote:
> > Attached is a patch to address this issue:
> > http://mail.gnome.org/archives/mc-devel/2004-January/msg00007.html
>
> Patch indeed seems to fix the issue. I don't see any obvious regression.

Please, test this update patch. It is a result of a discussion with
Pavel Shirshov.

ChangeLog:

2004-11-02  Pavel Tsekov  <ptsekov gmx net>

	* dialog.c (do_select_widget): Walk the whole widgets list looking
	for a widget accepting the focus.
Index: dialog.c
===================================================================
RCS file: /cvsroot/mc/mc/src/dialog.c,v
retrieving revision 1.26
diff -u -p -r1.26 dialog.c
--- dialog.c	24 Sep 2004 22:22:35 -0000	1.26
+++ dialog.c	2 Nov 2004 10:58:50 -0000
@@ -427,7 +427,7 @@ do_select_widget (Dlg_head *h, Widget *w
 	return;
 
     h->current = w;
-    while (h->current != w0) {
+    do {
 	if (dlg_focus (h))
 	    break;
 
@@ -443,7 +443,7 @@ do_select_widget (Dlg_head *h, Widget *w
 	    dlg_focus (h);
 	    return;
 	}
-    }
+    } while (h->current != w);
 
     if (dlg_overlap (w0, h->current)) {
 	send_message (h->current, WIDGET_DRAW, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]