Re: GMenuModel has landed



On Fri, 09 Dec 2011 09:14:31 -0500
Ryan Lortie <desrt desrt ca> wrote:

> Back to the extendablity question: I've played with this before and
> come up with a semi-reasonable system to support it.  There would be a
> type='' attribute added to menuitems.  If this attribute was present
> on the item then Gtk would attempt to open a dynamic module of a
> given name from a particular directory.  type='foo' might
> hit /usr/lib/gtk-3.0/modules/libgmenu-foo.so for example.
> 
> That would be a module/extension-point/etc that implements a factory
> interface for creating menuitems of your required type.
> 
> So that's the good news -- if you're a desktop environment.
> 
> The bad news is this: I don't expect this to be supported on a
> per-application basis or to be possible to use at all from the
> menubars of an application.  We need to make sure menus will continue
> to work on all platforms (including the mac and unity -- which will
> both display your menus in a different place, not even using Gtk in
> the case of the mac).

I guess this is unrelated but I have a question regarding extensions as
well. Will there be functionality similar to GtkUIManager-based merging
with placeholders in the GTK part of GMenu? 

We use this heavily in Thunar to allow plugins to specify items for
file/folder context menus (and also for the window's "File" menu).

  - Jannis


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