diff options
author | Mike Engber <engber@src.gnome.org> | 2000-10-25 18:41:38 +0000 |
---|---|---|
committer | Mike Engber <engber@src.gnome.org> | 2000-10-25 18:41:38 +0000 |
commit | 96effa48c8cf748e002e2e45ac7405990eb813cf (patch) | |
tree | bcef36b5d955d1a943d516d6981ba19d2ca97745 /libnautilus-extensions | |
parent | cea75db1b48ea126d9f7bb95c59c332eb8eb4363 (diff) | |
download | nautilus-96effa48c8cf748e002e2e45ac7405990eb813cf.tar.gz |
nautilus_list_set_selection used to pass a bogus NautilusCListRow* to
* libnautilus-extensions/nautilus-list.c:
(nautilus_list_set_selection):
nautilus_list_set_selection used to pass a bogus NautilusCListRow*
to row_set_selected
* src/file-manager/fm-directory-view.c:
(fm_directory_view_new_folder):
whitespace change
* src/file-manager/fm-list-view.c:
comment corrected
Diffstat (limited to 'libnautilus-extensions')
-rw-r--r-- | libnautilus-extensions/nautilus-list.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libnautilus-extensions/nautilus-list.c b/libnautilus-extensions/nautilus-list.c index 812afa3dc..64e1993b4 100644 --- a/libnautilus-extensions/nautilus-list.c +++ b/libnautilus-extensions/nautilus-list.c @@ -3313,7 +3313,6 @@ nautilus_list_set_selection (NautilusList *list, GList *selection) GList *p; int i; NautilusCListRow *row; - gpointer row_data; g_return_if_fail (NAUTILUS_IS_LIST (list)); @@ -3323,14 +3322,12 @@ nautilus_list_set_selection (NautilusList *list, GList *selection) for (p = selection; p != NULL; p = p->next) { g_hash_table_insert (hash, p->data, p->data); } + for (p = NAUTILUS_CLIST (list)->row_list, i = 0; p != NULL; p = p->next, i++) { row = p->data; - row_data = row->data; - - selection_changed |= row_set_selected - (list, i, row_data, - g_hash_table_lookup (hash, row_data) != NULL); + selection_changed |= row_set_selected (list, i, row, g_hash_table_lookup (hash, row->data) != NULL); } + g_hash_table_destroy (hash); if (selection_changed) { |