On 5/3/06, Hans Breuer <[EMAIL PROTECTED]> wrote:
On 03.05.2006 21:22, Robert Staudinger wrote:
[...]
> + dia to depend on PyGTK or This does not sound like an option. By definition the core must not depend on a plug-in (though there is one plug-in not optional : libstandard)
Oh, that wouldn't necessarily have to be the case. Just like now plugins written in python depend on the generic python plugin, new plugins that need to manipulate the UI could depend on a yet to create "pythonui" plugin which leverages pygtk.
> + the implementation of a custom API. > Something like that seems to be done for The Gimp's plug-ins. The plug-in action identifiers can be added into ui files. But if there isn't already a matching action I think it is created automatically.
Plain gtk ui definitions only specify the way actions are arranged in menus, toolbars and popup menus. The actions itself (stock items, labels, tooltips, callbacks) are defined in the source code. If The Gimp folks have implemented something worth reusing that would be good to know.
> PyGTK is of course a pretty big dependency, but for exporting internal > GObject-based API and gtk widgets it can save lots of coding effort. At the moment I think you are overestimating the coding effort but underestimate the effect of screwed by design ;)
Oh, sure, when talking about exporting only actions to plugins pygtk would be overkill. OTOH if python plugins should implement custom property pages one day it might make life easier.
> What do you think about that, which way would you consider appropriate? > As noted above there seems to be a solution to this exact problem in The Gimp, part of it here http://cvs.gnome.org/viewcvs/gimp/app/widgets/gimppluginaction.c?view=markup So IMO the way to go would be to change the filter_register_callback() to something more appropriate to action based menus and change some few plug-ins. One of the problems action based menus are supposed to fix cleanly is http://bugzilla.gnome.org/show_bug.cgi?id=171397 Having a proxy action seems to be a small price to pay ...
Ok, i will look into that. Best, Rob _______________________________________________ Dia-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://www.gnome.org/projects/dia/faq.html Main page at http://www.gnome.org/projects/dia
