Re: road to gtkmm 2.10



On Tue, 2006-07-11 at 09:37 +0100, Emmanuele Bassi wrote:
> > > On 7/5/06, Murray Cumming <murrayc murrayc com> wrote:
> > >> People usually create menus with UIManager, so we need a way to specify
> > >> that one of the sub-menus will be created by the recent-files system.
> > >
> > > I looked into this a little bit, but as far as I can tell, there's
> > > currently no way to do this yet.  Bug 338843 [1] seems to address
> > > this, but as far as I can tell, it hasn't been committed to CVS yet.
> > >
> > > [1] http://bugzilla.gnome.org/show_bug.cgi?id=338843
> > 
> > CCing gtk-devel-list, because Matthias Clasen seemed sure at GUADEC that
> > this was possible with the 2.10 API, at least with a sub-menu if not as
> > inline menu items.
> 
> It is possible to do, as I wrote here on the gtk-devel mailing list[1]
> and in my tutorial at GUADEC[2].

So, that requires that the application implements it's own GtkAction
class in order to add a submenu to a UIManager menu. I'm not happy about
offering that as the only way to use the API to achieve the only think
they are likely to want to achieve it.

I understand that you intend to add that you plan to add this action or
something similar to GTK+ 2.12, and I understand that the other recent
files stuff in GTK+ 2.10 is useful for Nautilus and the panel and maybe
some other applications.

But I'm thinking of (asking the release team) about removing the recent
files stuff form gtkmm 2.9/2.10 for now because it doesn't seem to be
anything that most people will be able to use. And if an API (our C++
wrapping) isn't being used then it's probably broken.

Does this make sense to you?

> No inlined list, though: that is a pain to implement using UIManager,
> unless you walk down the road of EggRecentViewUIManager[3], which I
> would strongly advise not to, because madness and unmaintainability lie
> down that very road.
> 
> +++
> 
> [1] http://mail.gnome.org/archives/gtk-devel-list/2006-June/msg00087.html
> [2] http://o-hand.com/~ebassi/2006-guadec-recent-files/recent-files.pdf
> [3] http://cvs.gnome.org/viewcvs/libegg/libegg/recent-files/egg-recent-view-uimanager.c
> 
> Ciao,
>  Emmanuele.
> 
-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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