Re: gnome-recent in libegg



On Wed, 2002-07-03 at 16:28, James Willcox wrote:
> On Wed, 2002-07-03 at 15:45, Alex Graveley wrote:
> > Hi,
> > 
> > On Wed, 2002-07-03 at 14:43, James Willcox wrote:
> > > >     * Should programs that edit the same file types have the same recent
> > > >       lists? (ie. is it the 4 last documents edited with GEdit, or the 4
> > > >       last text/plain documents edited?)
> > > 
> > > This seems like something the usability guys should decide upon, though
> > > gnome-recent would generally work well in either case (the current API
> > > calls for "appname", but that could simply be changed to "mime type").
> > > One problem would be if an app supported multiple mime types.  There
> > > wouldn't be any easy way to do that with the current code.
> > 
> > It could pass the application key as used in gnome-mime-data, and
> > gnome-recent could lookup the mime-types it supports automagically.
> > 
> 
> Yeah, that part of it sounds ok.  However, I was more concerned with how
> to aggregate all the lists (since you essentially have a list for each
> mime type), and still maintain any sort of order.  Of course, you could
> time stamp each URI when it is inserted, etc, but it gets messy.
> 

Oops, I just thought of an easy way to do it.....store only one list,
and filter out all the ones that the app doesn't support.  It's easier
than I thought :)

James





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