Yotam Medini wrote:

>
> I am now struggling with another related problem
> of how to initialize the status of this toggle/check menu item.
> More generally, after calling:
>    GnomeApp.create_menus(self, menuinfo)
> (with a well defined menuinfo tree)
> How can one access the menu items??

AFAICT there is no way to access the menu items short of walking the
widget list and locating the widgets. This is the same problem that I
referred to in an earlier message that prevents install_menu_hints() from
working.
I have some patches for gnomeuimodule.c that save the widget info in the
UIINFO lists so that install_menu_hints() works and you can access the
menu widgets. The same patch also works for toolbars created using UIINFO.
If you can use this patch let me know and I'll send it to you.
Unfortunately, the patch also contains a number of other changes that: fix
a problem when using popup_menu_new() and allow the use of in-line XPM
data. You'd have to extract the fixes that you want.

John

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to