search-view: reset states when performs the search

Also, reset search when starting a new search from window.
This commit is contained in:
Georges Basile Stavracas Neto
2015-01-09 09:16:42 -05:00
committed by Erick Pérez Castellanos
parent 469999cd96
commit 8933b1485a
2 changed files with 4 additions and 4 deletions
+3
View File
@@ -792,6 +792,9 @@ gcal_search_view_search (GcalSearchView *view,
priv->query = g_strdup (query);
priv->field = g_strdup (field);
gtk_widget_show (priv->scrolled_window);
gtk_widget_hide (priv->no_results_grid);
/* Only perform search on valid non-empty strings */
if (query && g_utf8_strlen (query, -1) > 0)
{