Re: [Gtk-osx-users] menu synchronisation



2010/4/5 John Ralls <jralls ceridwen fremont ca us>:

> Interesting, that's different from your earlier list, where you had pointers on every line, but no text in either my_label or the passed-in menuitem. It sure looks like the GtkMenuItems aren't fully initialized yet.
>
> I think best results are obtained if you delay calling ige_mac_menu_set_menu_bar at the last possible point before returning control to the user, and then calling ige_mac_menu_sync at the end of functions that change the menu structure, again just before returning control to the user.

that doesn't seem to make a difference. Still the plugins don't show
up. But because of all the debugging output I noticed again something
weird. These are the very first lines of output:

found label 0x182d010 for 'File' ('_File')
found label 0x182d010 for 'File' ('_File')
carbon_menu_item_create:   -> creating new File
found label 0x182d010 for 'File' ('_File')
found label 0x182d010 for 'File' ('_File')
found label 0x182d010 for 'File' ('_File')
found label 0x182d010 for 'File' ('_File')
found label 0x0 for '(null)' ('')
found label 0x182d0b0 for 'New' ('(null)')
found label 0x182d0b0 for 'New' ('(null)')
carbon_menu_item_create:   -> creating new New
found label 0x182d0b0 for 'New' ('(null)')
found label 0x182d0b0 for 'New' ('(null)')
found label 0x182d0b0 for 'New' ('(null)')

this code seems to be not very efficient.

Olivier




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