On Feb 27, 2009, at 10:09 AM, Krzysztof KosiƄski wrote:

My solution involves creating a class for each verb/action (derived from

Gtk::Action) and adding a statically initialized "entry object" that, upon

construction, will put the action's static constructor (e.g. a static

function that returns a new action) on the list of actions to initialize.

This would automagically build lists of global actions and per-document

actions to create.


In general that sounds good, however they should not derive from Gtk::Action.

For most, a specific subclass that provides Gtk::Action would be good, but basing on Gtk::Action directly will cause MI problems among other things.