Re: Patch: TnyGtkHeaderListModel showing only latest headers



Really great work Dape.

Please commit.

Br

José Dapena Paz escribiu:
> 	Hi,
> 
> 	This patch adds to the TnyGtkHeaderListModel a method that limits the
> number of messages loaded as treeview elements.
> 
> 	It assumes the messages are stored in summary more or less by date
> (latest ones in summary would be more recent elements). But in case it
> finds other messages more recent than the ones in this "latest" set,
> then it will also show them. (in other words, it shows N latest and any
> message newer than those N latest).
> 
> 	This should at least limit performance and user experience problems
> showing and sorting in a treeview a folder with huge number of messages.
> 
> 	Changelog entries:
> 
>     New API for making TnyGtkHeaderListModel only show the latest messages,
>     and allow from UI to fetch incrementally more messages. This
>     implementation only avoids exposing the old headers as members of the
>     GtkListStore.
>     
>     * libtinymailui-gtk/tny-gtk-header-list-iterator-priv.h,
>       libtinymailui-gtk/tny-gtk-header-list-model.c,
>       libtinymailui-gtk/tny-gtk-header-list-model.h: new methods
>       (get|set)_show_latest for limitting the number of items shown in list
>       store.
> 
> 
>     Ignore "show latest" in header list model, on adding elements newer than
>     latest element visible.
>     
>         * libtinymailui-gtk/tny-gtk-header-list-model.c,
>         libtinymailui-gtk/tny-gtk-header-list-iterator-priv.h:
>         only filter using "show latest" if the message is older than other
>         messages already retrieved.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> tinymail-devel-list mailing list
> tinymail-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/tinymail-devel-list



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