I'm having difficulty in specifying the position of a popup GtkMenu
in pygtk-1.99.10.  If I have:

menu = gtk.Menu()
[snip]
menu.popup( None, None, None, 0, 0)

Then I have no problem, the menu pops up at the current mouse position.

However, If I want to specify the position of the menu with:

def pos_func():
    return 20, 20

menu.popup( None, None, pos_func, 0, 0)

Then I get a segfault. I'm not entirely if I need to pass any parameters
to the pos_func().

In fact, I think that there may be a bug in pygtk. In the generated
pygtk C code, at line 20235 of gtk.c, the function pygtk_menu_position()
has four variables passed to it, however, the GTK+ API says that the
GtkMenuPositionFunc() should have five variables.

Any help would be appreciated.

Edgar.



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to