summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/gtkui.py
Commit message (Collapse)AuthorAge
* [GtkUI] Reword preferences to prefer dark themeHEADdevelopCalum Lind2024-02-19
| | | | | | The GTK option for dark theme only provides a preference to use the dark theme, there is not a similar option for light theme so the settings should only refer to 'prefer dark theme' and whether it's on or off.
* [GtkUI] Add a way to change themesDjLegolas2024-02-19
| | | | | | | | Currently, the only way to change the themes is by manually set a value in the command line or set it as env variable. Closes: https://dev.deluge-torrent.org/ticket/3536 Closes: https://github.com/deluge-torrent/deluge/pull/392
* [GTKUI] Enable appindicator support by defaultUnit 1932023-04-23
| | | | | | | | | | | | | On GNOME, I don't believe any tray icon or indicator support is enabled by default, but one can easily install an extension for indicators whereas I'm not sure about tray icons, but the 'top icons' extension I believe has had a flaky history. I'm not entirely sure how KDE handles things, but out of the box it too has indicator support and I believe that is preferred with the move to Wayland. In Xfce, the tray icon area is called "Status tray" and has support for both tray icons and indicators. Closes: https://github.com/deluge-torrent/deluge/pull/318
* [Tests] Remove reference to Twisted TrialCalum Lind2022-03-02
| | | | | With the move to pytest remove remainings documentation or comments that refer to Trial.
* [Lint] Update linter version and fix issuesCalum Lind2022-02-13
| | | | | | | | | | | Notable changes: * Prettier >=2.3 with more consistent js assignments * Black now formats docstrings * Added isort to list of autoformaters * Update flake8 config for v4 Ref: https://prettier.io/blog/2021/05/09/2.3.0.html
* Upgrade codebase with pyupgrade (>=py3.6)DjLegolas2021-12-29
| | | | | | | | Added pyupgrade utility with manual stage to pre-commit and run on all files. Ref: https://github.com/asottile/pyupgrade Closes: deluge-torrent/deluge#326
* Remove all Python 2 supportdeluge-2.1.0.dev0DjLegolas2021-12-28
| | | | | | | | | * Removed all __future__ imports from code * Removed all six dependencies * Removed all future_builtins imports * Removed all Python 2 related code Closes: deluge-torrent/deluge#325
* [GTKUI] Added detection of torrent URL on GTK UI focusMatias Wilkman2021-10-03
| | | | | | | In case deluge GTK gets focus with a new torrent URL on the clipboard, the "Add Torrent from URL" dialog will pop up automatically Closes: deluge-torrent/deluge#306
* [Lint] Fix spelling mistakesCalum Lind2021-09-21
| | | | | | | A quick fix of some of the mistakes caught by codespell. Updated readme with new IRC server Useful to add it as part of linting checks.
* [GTKUI] Fix torrentdetails tab bar position not savingCalum Lind2021-02-20
| | | | | | | | | The GTKUI tests were failing and the saved config for the tab bar position was not being restored. Fixed by moving the setting of notebook.tabs_pos to TorrentDetail init. Replaced more deprecated methods that were showing up in tests.
* [#3441|GTKUI] Add a torrentdetails tabs position menuCalum Lind2021-02-20
| | | | | | | The tabs placement for the torrentdetails notebook might not be to everyone's liking so add a menu item to configure it. Default the position back to top.
* [Lint] Update pre-commit hook and isort versionsCalum Lind2021-01-24
| | | | | | | | | | | | | * Fixed black hook requiring Py3.6 to installed locally. Will now assume Py3.6+ in installed. * Added isort traceback in pre-commit flake8 hook fails * Updated versions of Black, Prettier and isort * Keep Flake8 at 3.7.9 due to E402 issue: https://gitlab.com/pycqa/flake8/-/issues/638 * New pyproject config for isort v5 with fixes for Python 2 imports. * Fixed travis config to run Python 3.6 for lint run. Replaced the virtualenv with_system_site_packages config with Travis specific Python config value so lint run doesn't attempt to append with_system_site_packages to Python 3.6 command.
* [GTK] Fix showing correct error on libtorrent import errorbendikro2020-04-23
| | | | | | | | | | The exception string "No module named libtorrent" was changed to "No module named 'libtorrent'" in python 3.3, which results in a "unknown Import Error" message being displayed instead of the message meant for libtorrent import error. Change to raising LibtorrentImportError in _libtorrent.py and catch this error to display libtorrent specific import errors.
* [GTK] Improve detecting X11 display serverCalum Lind2019-06-12
| | | | | GdkX11 still imports on Wayland so check display server is X11 before importing.
* [macOS] Fix GTK windowing issuesCalum Lind2019-05-23
| | | | | | | | | On macOS the Quartz windowing is used instead of X11 so make ensure that the X11 window calls are optional. Also if gtkosx_application is not available then don't create osxapp. It would be useful to find out how to pass window timestamps on Quartz.
* [Core] Refactor the base argparser and translation code.Calum Lind2019-05-11
| | | | | | | | | | | | | | - Move baseargparser out of deluge/ui since it is also used by the Daemon and could cause packaging issues if UI code is not available. - Renamed baseargparser to argparserbase to follow existing Deluge naming. - Renamed get_version to distinguish from deluge.common.get_version. - Translation code is usable by more than just the UIs so also move it to Deluge namespace and re-use i18n directory and make it a package. - Renamed setup_translations to singular as it felt more correct. - Renamed set_dummy_trans to be more descriptive. Closes: #3081
* [GTK] Remove running reactor in Gdk threadCalum Lind2019-03-29
| | | | | | | | | | | | The Gdk threading code is causing issue on Windows and this method of moving the main loop to a thread has been deprecated and advised against so removing without adding replacement as it currently only creates one main thread and should still be fine. If a blocking operation occures and needs solving, see the pygobject guide for recommened way to use threads in Gtk: https://pygobject.readthedocs.io/en/latest/guide/threading.html
* [GTK] Fix showing sidebar and tabsbarCalum Lind2018-11-07
| | | | | | | | | | | - Fixed the sidebar position not being restored by applying the config value in main_window first_show and updating config in position callback. - Renamed the main_window vpaned and hpaned widgets to aid identifying purpose. - Fixed filtertreeview KeyError when not conneted and hiding tabsbar. - Fixed the tabsbar notebook not being hidden on restart by adding a new config value.
* [GTK] Remove old builtin notification config valuesCalum Lind2018-11-06
|
* [GTK3] Fix gettext translation codeCalum Lind2018-11-02
| | | | | | | | | Add translation setup for Gtk.Builder ui files. Refactor and cleanup up the translations_util: - Remove old gtk.glade code. - Add macos libintl support. - Remove unneeded setup_translations parameters.
* [GTK3] Fix ImportError has no attribute messagehugosenari2018-11-02
| | | | | Python 3 exception objects now use `msg` but casting with `str()` is better.
* [GTK3] Fix import and attribute warningshugosenari2018-11-02
| | | | | | | | Fixes: - warning import GConf - Gtk is not defined - 'ResponseType' has no attribute 'Yes' - selection.data should be selection.get_data
* [GTK3][OSX] Restore windowing lookup for quartzhugosenari2018-11-02
|
* [GTK3] Change module structure from ui/gtkui to ui/gtk3Calum Lind2018-11-02
This moves the directory structure so that there is no conflict with the old gtk2 UI. Also changes the conf and state files being loaded.