gtk_list_store_clear (store);
+
+ if ( this->priv->recent_info_bar )
+ {
+ gtk_container_remove (GTK_CONTAINER (this->priv->recent_info_vbox),
+ this->priv->recent_info_bar);
+ this->priv->recent_info_bar = NULL;
+ }
+
if (list)
{
gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
gtk_tree_selection_select_iter (selection, &iter);
- if ( this->priv->recent_info_bar )
- {
- gtk_container_remove (GTK_CONTAINER (this->priv->recent_info_vbox),
- this->priv->recent_info_bar);
- this->priv->recent_info_bar = NULL;
- }
}
else
{
gtk_list_store_clear (store);
+ if ( this->priv->search_all_info_bar )
+ {
+ gtk_container_remove (GTK_CONTAINER (this->priv->search_all_info_vbox),
+ this->priv->search_all_info_bar);
+ this->priv->search_all_info_bar = NULL;
+ }
+
if (list)
{
gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
gtk_tree_selection_select_iter (selection, &iter);
- if ( this->priv->search_all_info_bar )
- {
- gtk_container_remove (GTK_CONTAINER (this->priv->search_all_info_vbox),
- this->priv->search_all_info_bar);
- this->priv->search_all_info_bar = NULL;
- }
}
else
{