mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
Switch to list view for torrents list (GTK 4) (#5858)
* Add compat operator* for RefPtr * Rename `*_tree_view_*` button handling helpers to `*_item_view_*` * Move torrent item colors to CSS * Switch to list view for torrents list (GTK 4) * Bump Fedora image to 39 (current rawhide) for GTK 4.11 Enable deprecations as there're lots of them in 4.11 and I'm not keen on fixing them all right now. Disable warnings as errors due to -Warray-bounds issue somewhere in libfmt.
This commit is contained in:
@@ -541,7 +541,7 @@ Session::Impl::Impl(Session& core, tr_session* session)
|
||||
, session_{ session }
|
||||
{
|
||||
raw_model_ = Gio::ListStore<Torrent>::create();
|
||||
signal_torrents_changed_.connect(sigc::hide<0>(sigc::mem_fun(*sorter_.get(), &TorrentSorter::update)));
|
||||
signal_torrents_changed_.connect(sigc::hide<0>(sigc::mem_fun(*sorter_, &TorrentSorter::update)));
|
||||
sorted_model_ = SortListModel<Torrent>::create(gtr_ptr_static_cast<Gio::ListModel>(raw_model_), sorter_);
|
||||
|
||||
/* init from prefs & listen to pref changes */
|
||||
|
||||
Reference in New Issue
Block a user