[sugar] [PATCH 2/2] return 0, not None, if we can't get the mixer volume
Martin Dengler
martin at martindengler.com
Tue Jun 10 04:09:04 EDT 2008
Thanks -- pushed both patches.
On Tue, Jun 10, 2008 at 09:25:43AM +0200, Tomeu Vizoso wrote:
> r+ Thanks!
>
> On Wed, Jun 4, 2008 at 5:25 AM, Martin Dengler <martin at martindengler.com> wrote:
> > ---
> > src/hardware/hardwaremanager.py | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/src/hardware/hardwaremanager.py b/src/hardware/hardwaremanager.py
> > index 29f5fba..2f92537 100644
> > --- a/src/hardware/hardwaremanager.py
> > +++ b/src/hardware/hardwaremanager.py
> > @@ -60,7 +60,7 @@ class HardwareManager(object):
> > def get_volume(self):
> > if not self._mixer or not self._master:
> > logging.error('Cannot get the volume')
> > - return None
> > + return 0
> >
> > max_volume = self._master.max_volume
> > min_volume = self._master.min_volume
> > --
> > 1.5.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080610/7321b460/attachment.pgp
More information about the Sugar
mailing list