diff --git a/ChangeLog b/ChangeLog index 993e3946c75f74e9eaa9858bf826131203f4ee2d..e90e88ff5404fe2754c9e64b8b70ddd069443148 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-10 Benedikt Meurer <benny@xfce.org> + + * thunar/thunar-list-model.c(thunar_list_model_cmp): Remove the safety + checks here, showing up too high in the profiler stats, and invalid + arguments to this function will be detected earlier (for debug + builds). + 2006-02-10 Benedikt Meurer <benny@xfce.org> * docs/reference/thunar-vfs/: Update thunar-vfs API docs. diff --git a/thunar/thunar-list-model.c b/thunar/thunar-list-model.c index 549f4bc5b38d4d6794dc4b935884e3429753f672..fe11ea44f9c5efaf2cf435fb68fe9b7017f31555 100644 --- a/thunar/thunar-list-model.c +++ b/thunar/thunar-list-model.c @@ -975,10 +975,6 @@ thunar_list_model_cmp (ThunarListModel *store, gboolean isdir_a; gboolean isdir_b; - g_return_val_if_fail (THUNAR_IS_LIST_MODEL (store), -1); - g_return_val_if_fail (THUNAR_IS_FILE (a), -1); - g_return_val_if_fail (THUNAR_IS_FILE (b), -1); - if (G_LIKELY (store->sort_folders_first)) { isdir_a = thunar_file_is_directory (a); @@ -990,7 +986,7 @@ thunar_list_model_cmp (ThunarListModel *store, return 1; } - return store->sort_func (a, b) * store->sort_sign; + return (*store->sort_func) (a, b) * store->sort_sign; }