1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00
No description
Find a file
Mike Gelfand 32531fe5ef
Use Gio::List{Model,Store} for torrents (#4430)
* Use `Gio::List{Model,Store}` for torrents

Switch from `Gtk::{TreeModel,ListStore}` in preparation for cell
renderers deprecation in GTK 4.10. That will require switching to the
new view classes (`Gtk::{Column,List}View`) which only work with `Gio`
models. Implement an adapter to support GTK+ 3 where the old view class
(`Gtk::TreeView`) only works with `Gtk` models; it is effective enough
but requires a signal connection per item to notify on row changes.

Refactor filtering and sorting (which now happen over the new model) to
use compatible `Gtk::Filter` and `Gtk::Sorter` classes. Although these
classes are only present in GTK 4, the abstraction is suitable for GTK+
3 as well so make our subclasses work for both versions.

Since items (of `Torrent` class) of the new model provide only a very
limited (by design) layer of compatibility with GTK+ 3 way of doing
things, refactor selection handling to do it the new way. Move selection
helpers into `MainWindow` to abstract them away since new view classes
handle it differently.

* Improve session load performance based on profiling results
2022-12-21 21:26:25 +00:00
.github build: fix utils tests on win32 (#4422) 2022-12-20 12:27:02 -06:00
.tx Sync translations (#3968) 2022-10-15 21:21:13 +03:00
cli Use C++ (not C) warning flags for GTK client (#4395) 2022-12-18 01:02:03 +00:00
cmake Remove Xcode project in favor of CMake (#4147) 2022-11-12 20:01:57 +00:00
daemon Addressed various warnings (#4414) 2022-12-21 14:21:16 -06:00
dist/msi Don't include MSVC redist MSM in Windows MSI package (#4339) 2022-12-09 12:30:43 +00:00
docs docs: add Qt dependencies for Windows build instructions and minor fixes (#4363) 2022-12-16 16:36:46 -06:00
extras fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
gtk Use Gio::List{Model,Store} for torrents (#4430) 2022-12-21 21:26:25 +00:00
libtransmission perf: cache the peer, atom count instead of always recomputing it (#4431) 2022-12-21 12:07:40 -06:00
licenses refactor: aggregate arc4 into libtransmission (#3684) 2022-08-20 13:41:40 -05:00
macosx Addressed various warnings (#4414) 2022-12-21 14:21:16 -06:00
news docs: add 4.0.0-beta.2 notes (#4252) 2022-12-01 17:48:39 -06:00
po Sync translations (#4247) 2022-11-26 16:32:26 +00:00
qt Use C++ (not C) warning flags for GTK client (#4395) 2022-12-18 01:02:03 +00:00
release/windows Add Windows configuration to GHA sanity builds (#4200) 2022-11-26 16:14:37 +00:00
tests refactor: tr_rand_buffer(), tr_rand_int() again (#4415) 2022-12-21 09:58:32 -06:00
third-party Move jsonsl and wildmat to third-party (#4402) 2022-12-18 19:19:07 +00:00
Transmission.xcodeproj Addressed various warnings (#4414) 2022-12-21 14:21:16 -06:00
utils Use C++ (not C) warning flags for GTK client (#4395) 2022-12-18 01:02:03 +00:00
web build(deps): bump loader-utils from 2.0.3 to 2.0.4 in /web (#4212) 2022-11-18 22:32:38 -06:00
.clang-format Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
.clang-format-ignore Move jsonsl and wildmat to third-party (#4402) 2022-12-18 19:19:07 +00:00
.clang-format-include Adopting .clang-format-include and .clang-format-ignore (#3047) 2022-05-13 18:48:33 -05:00
.gitignore ignoring /tests/**/*.out (#4324) 2022-12-07 20:16:09 -06:00
.gitmodules refactor: aggregate arc4 into libtransmission (#3684) 2022-08-20 13:41:40 -05:00
appveyor.yml Only run AppVeyor builds on main and versioned branches/tags (#4150) 2022-11-12 20:27:15 +00:00
AUTHORS fix: some typos (#3904) 2022-10-13 09:35:10 -05:00
CMakeLists.txt Move jsonsl and wildmat to third-party (#4402) 2022-12-18 19:19:07 +00:00
code_style.sh refactor, ci: switch clang-format to LLVM 15 (#4297) 2022-12-02 09:57:50 -06:00
CONTRIBUTING.md docs: fix various typos and misspellings (#2955) 2022-04-21 09:28:38 -05:00
COPYING Update Copyright Year to 2022. (#3352) 2022-06-28 09:07:12 -05:00
icon.png Adding icon.png for Sourcetree (#3250) 2022-06-10 12:34:46 -05:00
README.md Adopt localizedStringWithFormat for displayed quantities (#4109) 2022-11-14 18:30:03 +00:00
update-version-h.sh build: support semver versioning (#3867) 2022-10-05 16:53:10 -05:00

About

Transmission is a fast, easy, and free BitTorrent client. It comes in several flavors:

  • A native macOS GUI application
  • GTK+ and Qt GUI applications for Linux, BSD, etc.
  • A Qt-based Windows-compatible GUI application
  • A headless daemon for servers and routers
  • A web UI for remote controlling any of the above

Visit https://transmissionbt.com/ for more information.

Documentation

Transmission's documentation is currently out-of-date, but the team has recently begun a new project to update it and is looking for volunteers. If you're interested, please feel free to submit pull requests!

Command line interface notes

Transmission is fully supported in transmission-remote, the preferred cli client.

Three standalone tools to examine, create, and edit .torrent files exist: transmission-show, transmission-create, and transmission-edit, respectively.

Prior to development of transmission-remote, the standalone client transmission-cli was created. Limited to a single torrent at a time, transmission-cli is deprecated and exists primarily to support older hardware dependent upon it. In almost all instances, transmission-remote should be used instead.

Different distributions may choose to package any or all of these tools in one or more separate packages.

Building

Transmission has an Xcode project file (Transmission.xcodeproj) for building in Xcode.

For a more detailed description, and dependencies, visit How to Build Transmission in docs

Building a Transmission release from the command line

$ tar xf transmission-3.00.tar.xz
$ cd transmission-3.00
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Building Transmission from the nightly builds

Download a tarball from https://build.transmissionbt.com/job/trunk-linux/ and follow the steps from the previous section.

If you're new to building programs from source code, this is typically easier than building from Git.

Building Transmission from Git (first time)

$ git clone https://github.com/transmission/transmission Transmission
$ cd Transmission
$ git submodule update --init --recursive
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Building Transmission from Git (updating)

$ cd Transmission/build
$ make clean
$ git submodule foreach --recursive git clean -xfd
$ git pull --rebase --prune
$ git submodule update --recursive
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Contributing

Code Style

You would want to setup your editor to make use of the .clang-format file located in the root of this repository and the eslint/prettier rules in web/package.json.

If for some reason you are unwilling or unable to do so, there is a shell script which you can use: ./code_style.sh

Translations

See language translations.

Sponsors

[MacStadium] macOS CI builds are running on a M1 Mac Mini provided by MacStadium
[SignPath] Free code signing on Windows provided by SignPath.io, certificate by SignPath Foundation