103 Commits

Author SHA1 Message Date
Pedro Algarvio
f87ed6d5a6 Moved the MainWindow to GtkBuilder.
This probably broke some behaviour because converting and splitting from libglade to GtkBuilder is not as perfect as it should be. What I noticed was fixed.
Also, GtkBuilder only allow calling `connect_signals()` once. Some code had to change to handle this and a "handlers proxy class" was created to keep the behaviour we had, ie, connect signals from where it was needed. Then I monkey patch the main windows GtkBuilder to not allow anyone to connect signals through it since it would break behaviour. Connecting signals to the main window builder instance is now done like `component.get("MainWindow").connect_signals()`. The best solution will probably break the main window ui into the needed parts in order to not have to monkey patch main windows builder.
Plugin's trying to get the main windows `main_glade` are now broken, on purpose, ie, the code they have needs to change since the calls to the builder are not the same as the calls to libglade. The plugins we ship with deluge will be fix as soon as possible.
2011-07-07 20:48:02 +01:00
Pedro Algarvio
90fb40b741 Moved the menubar to GtkBuilder. 2011-07-06 19:29:27 +01:00
Calum Lind
f75ec9d484 Fix translation of KiB/s 2011-07-04 21:39:08 +01:00
Calum Lind
34c95a08a3 Fix translations texts in glade and python files 2011-06-05 17:02:33 +01:00
Pedro Algarvio
df3214168c Cleaner fix for #1874, code clean up and reusability.
Translations are now setup on `deluge.common`. Where they used to be setup, a call to `setup_translations(setup_pygtk=False)` is now made.
Every call to `pkg_resources.resource_filename()` is now made through `deluge.common.resource_filename` to make sure that we're loading data from the right deluge install.
2011-06-04 18:06:45 +01:00
Andrew Resch
6d55c44983 Fix menubar component stopping properly 2011-06-02 11:54:53 -07:00
Calum Lind
445f3c0123 Fix menu bug caused by Change Owner menuitem code
The right-click torrent menu would move/jump around when the option submenu was opened with the mouse, possibly due to a conflict between glade file and append menuitem code in menubar.py. Solution was to create a menuitem entry for Change Owner in glade file and update code to add submenu to this new entry.
2011-05-21 16:23:36 +01:00
Pedro Algarvio
74618d5a65 GTK UI move storage fixed. Was still not allowing moves. 2011-05-10 20:13:26 +01:00
Pedro Algarvio
3b8ebf68a6 GTK UI menubar accounts retrieval.
Only ask for known accounts if we have the required level for it.
2011-05-08 21:36:10 +01:00
Pedro Algarvio
138b8ae314 Sorry for the noise. Email change. 2011-05-02 05:02:46 +01:00
Pedro Algarvio
39978d5ade Fix #1278 by keeping references. 2011-04-28 10:37:35 +01:00
Pedro Algarvio
fa20e49a93 Fixed 2 bugs regarding torrent ownership change.
On the core, the code was not adapted to the new AuthManager. On The GtkUI, nothing was being shown to the user when errors occurred while changing ownership.
2011-04-26 08:37:20 +01:00
Pedro Algarvio
43e3fe2a1a Account Management Implemented.
Account management is now implemented for the GTK UI. Some changes to the core were required since the clients need to know which authentication levels exist, and, to expose account creation, update, and removal to the clients. The best effort is done to try not to compromise the auth file.
2011-04-24 17:38:35 +01:00
Pedro Algarvio
e63c33c496 Allow changing ownership of torrents. In order to achieve this, added deluge.core.set_torrents_owner(), deluge.core.get_known_accounts(), deluge.core.authmanager.get_known_accounts() and deluge.core.torrent.set_owner()`. So far only the GtkUi has this fully implemented. 2011-04-22 11:25:33 +01:00
Andrew Resch
499a58f50d Revert 67ea05921cb904cb2ddf5811cd96534321bfeefa which changed how event handlers worked.
Unfortunately this will not work with plugins as they do not have the events defined and
the creation of the event object fails.
2011-02-23 10:47:16 -08:00
Pedro Algarvio
2fa8ca6753 Merge branch 'master' into improved-logging
Conflicts:
	ChangeLog
	deluge/plugins/autoadd/autoadd/gtkui.py
	deluge/ui/client.py
2010-12-13 12:31:20 +00:00
Pedro Algarvio
67ea05921c Implemented passing a copy of an event instead of it's arguments to event handlers. Necessary changes to the event handlers on deluge's code were made, plugins still need to be ported to this new style. 2010-12-11 05:11:18 +00:00
Pedro Algarvio
3b00a7de59 Swhiched the old style logging, ie, a single logger for all logging output to several loggers. This brings the ability to tweak the logging levels for each of the loggers, ie, we can have the "deluge" logger be at the ERROR level while having "deluge.core" at the DEBUG level, meaning we will only see log message for all of the deluge loggers above the ERROR level while still having all messages above the DEBUG level for the "deluge.core" logger and it's children. This kind of tweak can be achieved by adding a file named "logging.conf" to deluge's config dir and this is explained on the deluge.log.tweak_logging_levels function.
Passing `-r` to the cli's while also passing `-l` will make the logfile rotate when reaching 5Mb in size. Three backups will be kept at all times.
All deluge's code is now using this new style logging along with the git hosted plugins. For other plugins not hosted by deluge, which still imports `LOG` as the logger, a deprecation warning will be shown explaining the required changes needed to use the new style logging. New plugins created by the `create_plugin` script will use the new logging facilities.
2010-12-06 11:20:22 +00:00
John Garland
e5760ee341 Fix uncaught exception when quitting 2010-10-23 01:12:21 +11:00
Andrew Resch
de79bba540 Fix #1302 an uncaught exception in an state_changed event handler in SessionProxy was preventing the
TorrentManager's stop method from properly saving all the resume data.
2010-06-22 18:24:27 -07:00
Andrew Resch
da9af84dc1 Add new component SessionProxy
Use SessionProxy in place of core.get_torrent_status calls
2010-03-28 12:43:23 -07:00
Andrew Resch
2334fff388 Add support for the deluge-gtk start script 2009-07-31 00:57:04 +00:00
Andrew Resch
983e37d4ab Make sure the 'quit and shutdown daemon' menuitem is shown when switching daemons 2009-07-31 00:46:42 +00:00
Andrew Resch
2089fd1823 Add gtkui.common.get_deluge_icon() and use it 2009-07-31 00:18:35 +00:00
Damien Churchill
b8b292c7fb convert the other icons that i could see to the icon theme 2009-07-30 23:46:03 +00:00
Andrew Resch
974b9a5f3c Fix showing some menuitems when disabling classic mode due to an already running daemon 2009-07-30 23:38:14 +00:00
Andrew Resch
d67477f6e2 Add OpenSSL exception to all GPL headers 2009-05-18 21:51:49 +00:00
Andrew Resch
5a71e82875 Fix #902 cannot remove torrents 2009-04-26 18:27:46 +00:00
Andrew Resch
dbf685f178 Fix uncaught exception when the remove torrent button is pressed when no torrents are selected 2009-04-23 22:55:52 +00:00
Andrew Resch
d9f2daa778 Fix classic mode 2009-02-26 05:24:36 +00:00
Andrew Resch
7e7944a085 Fix "quit and shutdown daemon" option 2009-02-21 14:03:28 +00:00
Andrew Resch
7cfc54728f Fix queue manipulation 2009-02-06 09:00:20 +00:00
Andrew Resch
a24738a9ff Implement Events (formerly Signals) which are emitted from the daemon to interested clients. 2009-02-03 04:13:41 +00:00
Andrew Resch
42588656fd Implement new DelugeRPC method to replace XMLRPC.
This commit breaks _a lot_ of things including the web and console UIs, please do not expect 
anything to work.
2009-01-27 08:03:39 +00:00
Andrew Resch
04d14df8c7 Re-org Core and start using RPCServer 2008-12-20 04:27:59 +00:00
Andrew Resch
34cd3c1e35 Make filtertreeview view options more immediate 2008-12-09 08:27:43 +00:00
Andrew Resch
0954c3f112 Re-do the 'set maximum' dialogs.. They are now decorated. 2008-11-27 04:24:30 +00:00
Andrew Resch
c6422b53df Rework the Remove Torrent Dialog and change client.remove_torrent() to
only having the option of removing data, not torrent file.  Deleting the 
torrent file was deleting the torrent file in the Copy Torrentfile 
folder and this is not desirable.
2008-11-26 09:11:18 +00:00
Andrew Resch
c6ddaeaac7 Remove OpenSSL exception from license headers 2008-11-23 04:58:01 +00:00
Andrew Resch
a8d132452a Fix open folder 2008-10-19 10:10:09 +00:00
Marcos Pinto
9113744c40 add 'add peer' and create gtkui common 2008-10-18 01:53:13 +00:00
Martijn Voncken
7b52f7fa97 rename hide_zero* to show_zero* because double negatives are not intuitive 2008-10-11 08:56:13 +00:00
Martijn Voncken
9a8f8ce2f9 sidebar-gtk:show/hide zero_hits+trackers 2008-10-11 08:44:45 +00:00
Marcos Pinto
fb0f1b9319 force local only 2008-09-13 23:01:53 +00:00
Marcos Pinto
b9d1367564 allow network mounts in right-click->move torrent 2008-09-13 03:10:52 +00:00
Marcos Pinto
6fa31d1dc0 change copyright notices to gpl3 2008-08-08 05:59:07 +00:00
Andrew Resch
a22f2117bc Fix move storage dialog when connected to a remote daemon 2008-08-05 01:17:56 +00:00
Martijn Voncken
7cd83f8d05 remove default-sidebar, make plug-in-able 2008-07-28 18:22:44 +00:00
Andrew Resch
327de6f5cd Fix view options to be persistent between sessions 2008-07-26 08:12:34 +00:00
Andrew Resch
62fdd4b03e Start of create torrent dialog. This does not work yet. 2008-07-22 00:38:55 +00:00