blob: 90a7d315e5d11ae3f6027f884636adf663fc410a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
--- glade/preferences_dialog.glade.orig 2008-01-30 13:03:26.000000000 -0600
+++ glade/preferences_dialog.glade 2008-01-30 13:04:06.000000000 -0600
@@ -2673,7 +2673,7 @@
</child>
<child>
<widget class="GtkFrame" id="frame4">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="label_xalign">0</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
--- src/interface.py.orig 2008-01-30 13:03:33.000000000 -0600
+++ src/interface.py 2008-01-30 13:04:38.000000000 -0600
@@ -1037,8 +1037,6 @@
# Load plugins after we showed main window (if not started in tray)
self.load_plugins()
self.load_tabs_order()
- if self.config.get("new_releases"):
- self.new_release_check()
try:
gobject.threads_init()
@@ -1048,38 +1046,6 @@
except KeyboardInterrupt:
self.manager.quit()
- def new_release_check(self):
- import socket
- import urllib
- timeout = 5
- socket.setdefaulttimeout(timeout)
- try:
- gtk.gdk.threads_enter()
- except:
- pass
- try:
- new_release = urllib.urlopen("http://download.deluge-torrent.org/version").read().strip()
- except IOError:
- print "Network error while trying to check for a newer version of \
-Deluge"
- try:
- gtk.gdk.threads_leave()
- except:
- pass
- return
-
- if new_release > common.PROGRAM_VERSION:
- result = dialogs.show_popup_question(None, _("There is a newer version \
-of Deluge. Would you like to be taken to our download site?"))
- if result:
- common.open_url_in_browser('http://download.deluge-torrent.org/')
- else:
- pass
- try:
- gtk.gdk.threads_leave()
- except:
- pass
-
def load_plugins(self):
enable_plugins = self.config.get('enabled_plugins').split(':')
for plugin in enable_plugins:
|