From e3ce7179f5f3c7abbb2cc9d8aef73837e95ded5a Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Sat, 13 Oct 2012 18:29:10 +0300 Subject: [PATCH] typo fix --- app/solaar.py | 7 +++++-- app/watcher.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/solaar.py b/app/solaar.py index c2aeef2e..a9c2cb4c 100644 --- a/app/solaar.py +++ b/app/solaar.py @@ -7,6 +7,9 @@ __version__ = '0.4' # import logging + +# from gi import pygtkcompat +# pygtkcompat.enable_gtk() from gi.repository import (Gtk, GObject) from logitech.devices import constants as C @@ -61,9 +64,9 @@ if __name__ == '__main__': arg_parser.add_argument('-v', '--verbose', action='count', default=0, help='increase the logger verbosity (may be repeated)') arg_parser.add_argument('-S', '--no-systray', action='store_false', dest='systray', - help='embed the application into the systray') + help='don\'t embed the application window into the systray') arg_parser.add_argument('-N', '--no-notifications', action='store_false', dest='notifications', - help='disable desktop notifications (if systray is enabled)') + help='disable desktop notifications (shown only when in systray)') arg_parser.add_argument('-V', '--version', action='version', version='%(prog)s ' + __version__) args = arg_parser.parse_args() diff --git a/app/watcher.py b/app/watcher.py index 3a0f8eb6..054f66dd 100644 --- a/app/watcher.py +++ b/app/watcher.py @@ -74,7 +74,7 @@ class Watcher(Thread): self.listener.request(base.request, 0xFF, b'\x80\x02', b'\x02') # give it some time to get the devices - time.sleep(5) + time.sleep(3) elif not self.listener: self.listener = None self.devices.clear() @@ -88,7 +88,7 @@ class Watcher(Thread): self.no_receiver.wait() self.no_receiver.clear() else: - self._device_status_changed(self.rstatus, C.STATUS.OFFLINE, _NO_RECEIVER) + self._device_status_changed(self.rstatus, C.STATUS.UNAVAILABLE, _NO_RECEIVER) time.sleep(5) if self.listener: