X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-header-window.c;h=222ad74d1e01127d25948865a75b98f087ff56cd;hb=60c8cfed505ba0adf9d6e54a12c1a6a32d0605b9;hp=d163a769df78aefc7272317bba1b2329d96e3d89;hpb=a2458d86cadc466e1b41c6df91aa325f60884cfa;p=modest diff --git a/src/widgets/modest-header-window.c b/src/widgets/modest-header-window.c index d163a76..222ad74 100644 --- a/src/widgets/modest-header-window.c +++ b/src/widgets/modest-header-window.c @@ -765,7 +765,10 @@ modest_header_window_new (TnyFolder *folder, const gchar *account_name, const gc ModestServerAccountSettings *store_settings = NULL; GtkWidget *alignment; gchar *account_display_name = NULL; - +#ifdef MODEST_TOOLKIT_HILDON2 + GtkWidget *live_search; +#endif + self = MODEST_HEADER_WINDOW(g_object_new(MODEST_TYPE_HEADER_WINDOW, NULL)); priv = MODEST_HEADER_WINDOW_GET_PRIVATE(self); @@ -785,6 +788,10 @@ modest_header_window_new (TnyFolder *folder, const gchar *account_name, const gc self); priv->header_view = create_header_view (MODEST_WINDOW (self), folder); +#ifdef MODEST_TOOLKIT_HILDON2 + live_search = modest_header_view_setup_live_search (MODEST_HEADER_VIEW (priv->header_view)); + hildon_live_search_widget_hook (HILDON_LIVE_SEARCH (live_search), GTK_WIDGET (self), priv->header_view); +#endif priv->empty_view = create_empty_view (MODEST_WINDOW (self)); /* Transform the floating reference in a "hard" reference. We @@ -819,6 +826,9 @@ modest_header_window_new (TnyFolder *folder, const gchar *account_name, const gc priv->top_vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (alignment), priv->contents_view); +#ifdef MODEST_TOOLKIT_HILDON2 + gtk_box_pack_end (GTK_BOX (priv->top_vbox), live_search, FALSE, FALSE, 0); +#endif gtk_box_pack_end (GTK_BOX (priv->top_vbox), alignment, TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (self), priv->top_vbox);