ModestHeaderViewFilter filter;
#ifdef MODEST_TOOLKIT_HILDON2
GtkWidget *live_search;
+ guint live_search_timeout;
#endif
gint sort_colid[2][TNY_FOLDER_TYPE_NUM];
#ifdef MODEST_TOOLKIT_HILDON2
static gboolean
-on_live_search_refilter (HildonLiveSearch *livesearch,
- ModestHeaderView *self)
+on_live_search_timeout (ModestHeaderView *self)
{
const gchar *needle;
+ ModestHeaderViewPrivate *priv;
+
+ priv = MODEST_HEADER_VIEW_GET_PRIVATE (self);
- needle = hildon_live_search_get_text (livesearch);
+ needle = hildon_live_search_get_text ((HildonLiveSearch *) priv->live_search);
if (needle && needle[0] != '\0') {
modest_header_view_set_filter_string (MODEST_HEADER_VIEW (self), needle);
} else {
account = modest_account_mgr_get_default_account (modest_runtime_get_account_mgr ());
msg = tny_camel_msg_new ();
- tny_camel_msg_parse (TNY_CAMEL_MSG (msg), file_stream);
+ tny_camel_msg_parse (msg, file_stream);
if (priv->top_msg)
top_msg = g_object_ref (priv->top_msg);