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
+1 -4
View File
@@ -529,10 +529,6 @@ search_view_closed (GtkPopover *popover,
priv = gcal_window_get_instance_private (GCAL_WINDOW (user_data));
/* XXX: this is the destruction process */
if (!gtk_widget_get_visible (priv->views_stack))
return;
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->header_bar), priv->views_switcher);
}
@@ -1044,6 +1040,7 @@ search_toggled (GObject *object,
/* update header_bar widget */
gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->header_bar), NULL);
gcal_search_view_search (GCAL_SEARCH_VIEW (priv->views[GCAL_WINDOW_VIEW_SEARCH]), NULL, NULL);
}
else
{