Re: road to gtkmm 2.10

On 7/11/06, Matthias Clasen <matthias clasen gmail com> wrote:
On 7/11/06, Murray Cumming <murrayc murrayc com> wrote:
> Jonathon Jongsma 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]
> 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 by using the patch that is attached to 338843; or by
including the GtkRecentAction that is defined in it in your own code
(after renaming it, of course...).

This sounds like a rather nasty workaround and not particularly
appropriate for a simple tutorial example.  As far as I know,
GtkRecentAction is scheduled to be added for 2.12, so I'm not planning
to include an example of Recent files with UIManager right now.  We'll
add it in the next cycle.  Is that OK?

I have committed a preliminary chapter to the tutorial for recent
files, but I think the example needs quite a bit of work (for one
thing, It doesn't even seem to show the recent files dialog when you
click the menu item).  I'm thinking about overhauling that example to
simply use a Gtk::RecentChooserWidget packed into a window (maybe as a
sidebar).  Right now there seems to be too much menu / toolbar code
that distracts from the goal of the example: using the recent items
stuff.  Is it OK if I make some changes to this example?


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