The easy way would be to have sp_verb_get_action() create SPActions on a per-SPView basis (currently only one SPAction is created for each verb, globally).
An SPView * can be stored in each SPAction, so the SPAction::perform() callback will "know" which SPView * (i.e. SPDesktop *) it applies to.
Voila. No more need for using SP_ACTIVE_DESKTOP in verbs.
sp_verb_get_action() is only used in a very few places, so the change should be very non-intrusive, but it will (among other things) finally let us implement per-desktop tool states correctly.
Sounds good. Please add this to the roadmap :)
Here's a quick question. I want to display the warnings on the statusbar (instead of g_warning) in sp_text_insert in sp-text.c. What I have at this point is just an SPText object. How do I go from it to SPView? I see no members in _SPText that I could usefully -> to.
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=dept/features&pgmarket=en-ca&RU=http%3a%2f...