X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-header-view.h;h=be9b88c2350074d96964a371131b3dfb147a4e2e;hb=c4c7c252c246777b850efa995641031e0c2e8a22;hp=f0d7bfc8a67418f7a14c4ff909a38dbe60d5be55;hpb=fbc6db8166bbc8c0859ce662875ebcf9252456d7;p=modest diff --git a/src/widgets/modest-header-view.h b/src/widgets/modest-header-view.h index f0d7bfc..be9b88c 100644 --- a/src/widgets/modest-header-view.h +++ b/src/widgets/modest-header-view.h @@ -36,6 +36,7 @@ #include #include #include +#include "modest-window.h" #include "modest-mail-operation.h" #include "modest-header-view-observer.h" @@ -450,6 +451,22 @@ void modest_header_view_remove_observer( ModestHeaderView *header_view, ModestHeaderViewObserver *observer); +/** + * modest_header_view_get_header_at_pos: + * @header_view: a #ModestHeaderView + * @initial_x: the x coordinate + * @initial_y: the y coordinate + * + * Return the #TnyHeader stored in the row at (x,y) coordinates + * relatives to the widget. It returns a new reference so you must + * unref it once you're done with it. + * + * Returns: a #TnyHeader if found, else NULL + **/ +TnyHeader* modest_header_view_get_header_at_pos (ModestHeaderView *header_view, + gint initial_x, + gint initial_y); + G_END_DECLS