Re: [Gtk-osx-users] API extension



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

> But on reflection, does this really make sense? To use it you'll have to maintain a list of menu items to synchronize and iterate over it at every context switch. I'm not sure that you'll save much over using ige_menu_sync.

I do already have the menu items when I set them sensitive or set
their state. I have a lot of code like this:
		setup_toggle_item_from_widget(bfwin->menubar, "/View/Main Toolbar", visible);
		setup_toggle_item_from_widget(bfwin->menubar, "/View/Statusbar", visible);
and:
        menuitem_set_sensitive(bfwin->menubar, "/Edit/Undo", undo);
	menuitem_set_sensitive(bfwin->menubar, "/Edit/Undo All", undo);

I  these functions I retrieve the gtkmenuitem, so I can call a
sync_active() or sync_sensitive() there too.

Olivier




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