davemds pushed a commit to branch master.

http://git.enlightenment.org/enlightenment/modules/edgar.git/commit/?id=c856c024eb1931ee38125f700692280def84efa5

commit c856c024eb1931ee38125f700692280def84efa5
Author: davemds <[email protected]>
Date:   Sun Sep 7 14:22:42 2014 +0200

    Audio: correctly remove the sliders from our lists on popup_destroyed
---
 GADGETS/audio/__init__.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/GADGETS/audio/__init__.py b/GADGETS/audio/__init__.py
index 17510b3..25a873c 100644
--- a/GADGETS/audio/__init__.py
+++ b/GADGETS/audio/__init__.py
@@ -104,6 +104,21 @@ class Gadget(e.Gadget):
             for player, objs in self.player_objs.items():
                 while obj in objs: objs.remove(obj)
 
+            # delete the player layout
+            obj.delete()
+
+        while True:
+            # pop an item from the players box
+            obj = popup.part_box_remove_at('volumes.box', 0)
+            if obj is None: break
+
+            # remove the obj from our lists
+            for channel, objs in self.channel_objs.items():
+                while obj in objs: objs.remove(obj)
+
+            # delete the slider
+            obj.delete()
+
     def popup_player_add(self, popup, player):
         # create the edje obj for this player from 'e/gadgets/audio/player'
         o = Layout(popup)

-- 


Reply via email to