[file-roller] clear the store only when a view update is requested
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [file-roller] clear the store only when a view update is requested
- Date: Sat, 31 Oct 2009 18:51:58 +0000 (UTC)
commit bd250d53648f6d10f5cbb17140fc213dea89553c
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Oct 31 19:49:39 2009 +0100
clear the store only when a view update is requested
[bug #580624]
src/fr-window.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index ba56c21..32e8528 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1534,6 +1534,8 @@ fr_window_populate_file_list (FrWindow *window,
{
int i;
+ gtk_list_store_clear (window->priv->list_store);
+
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (window->priv->list_store),
GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID,
GTK_SORT_ASCENDING);
@@ -1887,9 +1889,10 @@ fr_window_update_file_list (FrWindow *window,
if (GTK_WIDGET_REALIZED (window->priv->list_view))
gtk_tree_view_scroll_to_point (GTK_TREE_VIEW (window->priv->list_view), 0, 0);
- gtk_list_store_clear (window->priv->list_store);
-
if (! window->priv->archive_present || window->priv->archive_new) {
+ if (update_view)
+ gtk_list_store_clear (window->priv->list_store);
+
window->priv->current_view_length = 0;
if (window->priv->archive_new) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]