Author: s0undt3ch

Revision: 6090

Log:
        Make sure that the port test status image is always reset between 
tests. Added a "loading" image when the test is in course.

Diff:
Added: trunk/deluge/data/pixmaps/loading.gif
===================================================================
(Binary files differ)


Property changes on: trunk/deluge/data/pixmaps/loading.gif
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/deluge/ui/gtkui/preferences.py
===================================================================
--- trunk/deluge/ui/gtkui/preferences.py        2010-01-10 23:21:52 UTC (rev 
6089)
+++ trunk/deluge/ui/gtkui/preferences.py        2010-01-12 03:15:50 UTC (rev 
6090)
@@ -17,9 +17,9 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with deluge.    If not, write to:
-#      The Free Software Foundation, Inc.,
-#      51 Franklin Street, Fifth Floor
-#      Boston, MA  02110-1301, USA.
+#     The Free Software Foundation, Inc.,
+#     51 Franklin Street, Fifth Floor
+#     Boston, MA  02110-1301, USA.
 #
 #    In addition, as a special exception, the copyright holders give
 #    permission to link the code of portions of this program with the OpenSSL
@@ -72,8 +72,8 @@
         self.treeview.append_column(column)
         # Add the default categories
         i = 0
-        for category in [_("Downloads"), _("Network"), _("Bandwidth"), 
_("Interface"),
-            _("Other"), _("Daemon"), _("Queue"), _("Proxy"),
+        for category in [_("Downloads"), _("Network"), _("Bandwidth"),
+            _("Interface"), _("Other"), _("Daemon"), _("Queue"), _("Proxy"),
             _("Cache"), _("Plugins")]:
             self.liststore.append([i, category])
             i += 1
@@ -174,7 +174,8 @@
             self.liststore.remove(self.iter_to_remove)
 
     def show(self, page=None):
-        """Page should be the string in the left list.. ie, 'Network' or 
'Bandwidth'"""
+        """Page should be the string in the left list.. ie, 'Network' or
+        'Bandwidth'"""
         if page != None:
             for (index, string) in self.liststore:
                 if page == string:
@@ -734,6 +735,7 @@
             self.show()
 
     def hide(self):
+        self.glade.get_widget("port_img").hide()
         self.pref_dialog.hide()
 
     def __update_cache_status(self):
@@ -833,6 +835,10 @@
                 
self.glade.get_widget("port_img").set_from_stock(gtk.STOCK_DIALOG_WARNING, 4)
                 self.glade.get_widget("port_img").show()
         client.core.test_listen_port().addCallback(on_get_test)
+        self.glade.get_widget("port_img").set_from_file(
+            deluge.common.get_pixmap('loading.gif')
+        )
+        self.glade.get_widget("port_img").show()
         client.force_call()
 
     def on_plugin_toggled(self, renderer, path):


-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.


Reply via email to