Re: menus mysteriously popping down...



Owen Taylor <otaylor redhat com> writes:

wmperry aventail com (William M. Perry) writes:

In XEmacs/GTK if a timer fires while the user has a menu up, the menu pops
down (but the menu item it is attached to stays selected).  The timeouts
are added using gtk_timeout_add()...

I could not find any logic in gtk/gtkmenu.c that would cause this - does
anybody know why this would be happening, and possibly a way around it?

There is no logic in gtkmenu.c that would cause this to happen - one
piece of code has no way of finding out about timeouts that another piece
added, still less doing something about it.

There must be something else going on...

Thats what I was afraid of.  Would the menu pop down if other GTK
primitives got called?  These timers tend to echo something in the
minibuffer, which causes a redisplay, which ends up calling a GDK
primitives to repaint the bottom of the frame.

I couldn't see anything obvious, but it has been a while since I read all
the GDK source. :)

-Bill P.




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