diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2010-05-20 11:32:43 +0200 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2010-05-20 11:37:13 +0200 |
commit | 5b213054823f64c8125effe56f0288c54aefa625 (patch) | |
tree | 3721173cb0adee55b4d5cf61afd3e4964798ce90 | |
parent | df11a77d4b08e170b63da4c4b67ea9730634268c (diff) | |
download | nautilus-5b213054823f64c8125effe56f0288c54aefa625.tar.gz |
Use the new NautilusFile API in the list model.
-rw-r--r-- | src/file-manager/fm-list-model.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/file-manager/fm-list-model.c b/src/file-manager/fm-list-model.c index 7cc8bad89..aad068e55 100644 --- a/src/file-manager/fm-list-model.c +++ b/src/file-manager/fm-list-model.c @@ -248,24 +248,6 @@ fm_list_model_get_path (GtkTreeModel *tree_model, GtkTreeIter *iter) return path; } -static gint -compare_files (gconstpointer a, - gconstpointer b) -{ - GFile *loc_a, *loc_b; - gboolean res; - - loc_a = nautilus_file_get_location (NAUTILUS_FILE (a)); - loc_b = nautilus_file_get_location (NAUTILUS_FILE (b)); - - res = !g_file_equal (loc_a, loc_b); - - g_object_unref (loc_a); - g_object_unref (loc_b); - - return (gint) res; -} - static void fm_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int column, GValue *value) { @@ -340,7 +322,7 @@ fm_list_model_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, int column if (model->details->highlight_files != NULL && g_list_find_custom (model->details->highlight_files, - file, compare_files)) + file, (GCompareFunc) nautilus_file_compare_location)) { rendered_icon = eel_gdk_pixbuf_render (icon, 1, 255, 255, 0, 0); |