gget r97 - trunk/gget
- From: johans svn gnome org
- To: svn-commits-list gnome org
- Subject: gget r97 - trunk/gget
- Date: Tue, 19 Aug 2008 19:14:37 +0000 (UTC)
Author: johans
Date: Tue Aug 19 19:14:37 2008
New Revision: 97
URL: http://svn.gnome.org/viewvc/gget?rev=97&view=rev
Log:
Connect to download signals later to avoid setting label text before getting the widget.
Modified:
trunk/gget/DetailsDialog.py
Modified: trunk/gget/DetailsDialog.py
==============================================================================
--- trunk/gget/DetailsDialog.py (original)
+++ trunk/gget/DetailsDialog.py Tue Aug 19 19:14:37 2008
@@ -30,8 +30,6 @@
class DetailsDialog:
def __init__(self, download):
self.download = download
- download.connect("update", self.__download_update)
- download.connect("status-changed", self.__download_status_changed)
self.__get_widgets()
self.__connect_widgets()
@@ -55,6 +53,9 @@
self.date_started_label.set_text(download.get_date_str("started"))
self.date_completed_label.set_text(download.get_date_str("completed"))
+ download.connect("update", self.__download_update)
+ download.connect("status-changed", self.__download_status_changed)
+
self.dialog.show()
def __get_widgets(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]