mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
Fix blocklist status icon not opening proper preferences page.
Show blocklist's file date using the locale's date / time representation.
This commit is contained in:
parent
14eb3b8b33
commit
7ebe07db15
3 changed files with 9 additions and 4 deletions
|
@ -8,6 +8,10 @@
|
||||||
==== Windows ====
|
==== Windows ====
|
||||||
* Fix displaying folders in the add torrent dialog
|
* Fix displaying folders in the add torrent dialog
|
||||||
|
|
||||||
|
==== Blocklist ====
|
||||||
|
* Fix blocklist status icon not opening the blocklist preference
|
||||||
|
page in certain locales
|
||||||
|
|
||||||
=== Deluge 1.2.0_rc5 (17 December 2009) ===
|
=== Deluge 1.2.0_rc5 (17 December 2009) ===
|
||||||
==== Web ====
|
==== Web ====
|
||||||
* Swap order of buttons in Remove window (Closes #1083)
|
* Swap order of buttons in Remove window (Closes #1083)
|
||||||
|
|
|
@ -174,7 +174,7 @@ class Core(CorePluginBase):
|
||||||
status["file_progress"] = self.file_progress
|
status["file_progress"] = self.file_progress
|
||||||
status["file_url"] = self.config["url"]
|
status["file_url"] = self.config["url"]
|
||||||
status["file_size"] = self.config["list_size"]
|
status["file_size"] = self.config["list_size"]
|
||||||
status["file_date"] = datetime.fromtimestamp(self.config["last_update"]).strftime("%a, %d %b %Y %H:%M:%S") if self.config["last_update"] else ""
|
status["file_date"] = self.config["last_update"]
|
||||||
status["file_type"] = self.config["list_type"]
|
status["file_type"] = self.config["list_type"]
|
||||||
if self.config["list_compression"]:
|
if self.config["list_compression"]:
|
||||||
status["file_type"] += " (%s)" % self.config["list_compression"]
|
status["file_type"] += " (%s)" % self.config["list_compression"]
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
import gtk
|
import gtk
|
||||||
|
|
||||||
from deluge.log import LOG as log
|
from deluge.log import LOG as log
|
||||||
|
@ -115,7 +116,7 @@ class GtkUI(GtkPluginBase):
|
||||||
self.glade.get_widget("label_filesize").set_text(
|
self.glade.get_widget("label_filesize").set_text(
|
||||||
deluge.common.fsize(status["file_size"]))
|
deluge.common.fsize(status["file_size"]))
|
||||||
self.glade.get_widget("label_modified").set_text(
|
self.glade.get_widget("label_modified").set_text(
|
||||||
str(status["file_date"]))
|
datetime.fromtimestamp(status["file_date"]).strftime("%c"))
|
||||||
self.glade.get_widget("label_type").set_text(status["file_type"])
|
self.glade.get_widget("label_type").set_text(status["file_type"])
|
||||||
self.glade.get_widget("label_url").set_text(
|
self.glade.get_widget("label_url").set_text(
|
||||||
status["file_url"])
|
status["file_url"])
|
||||||
|
@ -151,7 +152,7 @@ class GtkUI(GtkPluginBase):
|
||||||
client.blocklist.check_import(force=True)
|
client.blocklist.check_import(force=True)
|
||||||
|
|
||||||
def _on_status_item_clicked(self, widget, event):
|
def _on_status_item_clicked(self, widget, event):
|
||||||
component.get("Preferences").show("Blocklist")
|
component.get("Preferences").show(_("Blocklist"))
|
||||||
|
|
||||||
def load_preferences_page(self):
|
def load_preferences_page(self):
|
||||||
"""Initializes the preferences page and adds it to the preferences dialog"""
|
"""Initializes the preferences page and adds it to the preferences dialog"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue