Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/lib


Modified Files:
        playlist.rb playlist_item.rb 


Log Message:
api cleanup
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- playlist.rb 8 May 2005 14:43:18 -0000       1.17
+++ playlist.rb 8 May 2005 14:44:35 -0000       1.18
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.17 2005/05/08 14:43:18 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.18 2005/05/08 14:44:35 tsauerbeck Exp $
 
 require "euphoria/playlist_item"
 
@@ -106,7 +106,7 @@
                        end
                end
 
-               each { |i| i.show(eet, @container) }
+               each { |i| i.show(eet) }
 
                current_item && current_item.hilight
        end
@@ -120,7 +120,7 @@
                        item = PlaylistItem.new(id, @xmms, self)
                        super(item)
 
-                       item.show(@eet, @container) unless @container.nil?
+                       item.show(@eet) unless @container.nil?
                end
 
                self
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- playlist_item.rb    8 May 2005 14:43:18 -0000       1.7
+++ playlist_item.rb    8 May 2005 14:44:35 -0000       1.8
@@ -1,4 +1,4 @@
-# $Id: playlist_item.rb,v 1.7 2005/05/08 14:43:18 tsauerbeck Exp $
+# $Id: playlist_item.rb,v 1.8 2005/05/08 14:44:35 tsauerbeck Exp $
 
 class PlaylistItem
        attr_reader :id, :edje
@@ -28,8 +28,8 @@
                @props[:duration].to_i / 1000
        end
 
-       def show(eet, container)
-               @edje = Edje::Edje.new(container.evas)
+       def show(eet)
+               @edje = Edje::Edje.new(@playlist.container.evas)
                @edje.load(eet, "playlist_item")
                w, @height = @edje.get_size_min
 
@@ -38,7 +38,7 @@
                w, h = @edje.get_size_min
                @edje.resize(w, h)
 
-               container.append_element(@edje)
+               @playlist.container.append_element(@edje)
 
                # if a playlist item gets hilighted, un-hilight all other items
                @edje.on_signal("playlist_item.selected") do
@@ -57,11 +57,11 @@
 
 =begin
                @edje.on_signal("PLAYLIST_SCROLL_UP", "") do
-                       @container.scroll(@height * 3)
+                       @playlist.container.scroll(@height * 3)
                end
 
                @edje.on_signal("PLAYLIST_SCROLL_DOWN", "") do
-                       @container.scroll(@height * -3)
+                       @playlist.container.scroll(@height * -3)
                end
 =end
        end




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to