From d09344b32908ed8e42f6e1bb990ab72e52afa0e1 Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Sun, 22 Mar 2009 18:39:44 -0400 Subject: [PATCH] Update docstrings. --- wicd/wicd-client.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wicd/wicd-client.py b/wicd/wicd-client.py index 715de5a..dc363f5 100755 --- a/wicd/wicd-client.py +++ b/wicd/wicd-client.py @@ -465,11 +465,9 @@ class TrayIcon(object): def on_net_menu_activate(self, item): """ Trigger a background scan to populate the network menu. - Called when the network submenu is moused over. We - sleep briefly, clear pending gtk events, and if - we're still being moused over we trigger a scan. - This is to prevent scans when the user is just - mousing past the menu to select another menu item. + Clear the network menu, and schedule a method to be + called in .8 seconds to trigger a scan if the menu + is still being moused over. """ if self._is_scanning: @@ -480,6 +478,7 @@ class TrayIcon(object): @catchdbus def _trigger_scan_if_needed(self, item): + """ Trigger a scan if the network menu is being hovered over. """ while gtk.events_pending(): gtk.main_iteration() if item.state != gtk.STATE_PRELIGHT: