bgo#608537 - Make the file chooser's sort arrows consistent with the HIG

... Although I think the HIG gets things backwards anyway.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
Federico Mena Quintero 2010-06-08 12:09:48 -05:00
parent 070afc587c
commit 4acbc2fdb0

View File

@ -6123,7 +6123,7 @@ size_sort_func (GtkTreeModel *model,
size_a = g_value_get_int64 (_gtk_file_system_model_get_value (fs_model, a, MODEL_COL_SIZE));
size_b = g_value_get_int64 (_gtk_file_system_model_get_value (fs_model, b, MODEL_COL_SIZE));
return size_a > size_b ? -1 : (size_a == size_b ? 0 : 1);
return size_a < size_b ? -1 : (size_a == size_b ? 0 : 1);
}
}
@ -6142,7 +6142,7 @@ mtime_sort_func (GtkTreeModel *model,
ta = g_value_get_long (_gtk_file_system_model_get_value (fs_model, a, MODEL_COL_MTIME));
tb = g_value_get_long (_gtk_file_system_model_get_value (fs_model, b, MODEL_COL_MTIME));
return ta > tb ? -1 : (ta == tb ? 0 : 1);
return ta < tb ? -1 : (ta == tb ? 0 : 1);
}
}