[file-roller/gnome-2-28] 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/gnome-2-28] clear the store only when a view update is requested
- Date: Sat, 31 Oct 2009 18:52:09 +0000 (UTC)
commit c6e7b487d731799831754f12af4e1bcfa8c4f72b
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 168bec0..1e052f8 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1533,6 +1533,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);
@@ -1886,9 +1888,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]