From 0c6dd4e9543946d3ddd7149c07e70e78585f9edf Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 13 Oct 2008 20:39:29 +0000 Subject: Fix conflict between variable and module name --- diff --git a/extensions/deviceicon/volume.py b/extensions/deviceicon/volume.py index 7ee19f2..7db84ad 100644 --- a/extensions/deviceicon/volume.py +++ b/extensions/deviceicon/volume.py @@ -100,13 +100,12 @@ def _volume_added_cb(volumes_manager, vol, tray): def _volume_removed_cb(volumes_manager, vol, tray): _remove_device(vol, tray) -def _add_device(volume, tray): - icon = DeviceView(volume) - _icons[volume] = icon +def _add_device(vol, tray): + icon = DeviceView(vol) + _icons[vol] = icon tray.add_device(icon) -def _remove_device(volume, tray): - icon = _icons[volume] +def _remove_device(vol, tray): + icon = _icons[vol] tray.remove_device(icon) - del _icons[volume] - + del _icons[vol] -- cgit v0.9.1