X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fplaylist.rb;h=d1fe2ff8bafbdcf8c13e96db1221627b829f7870;hb=99062e9e19c33dc97601a86e0b23c9a10a5d05fd;hp=e695e972d36571777cf4e7e662e621bc7e819616;hpb=37dca508bab3a170cac31ba5dd74896b76040e20;p=euphoria.git diff --git a/lib/playlist.rb b/lib/playlist.rb index e695e97..d1fe2ff 100644 --- a/lib/playlist.rb +++ b/lib/playlist.rb @@ -33,13 +33,13 @@ class Playlist < Array @xmms.broadcast_playlist_changed.notifier do |res| case res.value[:type] - when Xmms::Result::PLAYLIST_CHANGED_ADD + when Xmms::Playlist::ADD self << res.value[:id] - when Xmms::Result::PLAYLIST_CHANGED_REMOVE + when Xmms::Playlist::REMOVE # the daemon sends the position of the song, not the # unique mlib id delete(self[res.value[:position]]) - when Xmms::Result::PLAYLIST_CHANGED_CLEAR + when Xmms::Playlist::CLEAR clear end end @@ -159,6 +159,7 @@ class Playlist < Array @ee = Ecore::Evas::SoftwareX11.new @ee.title = "Euphoria Playlist" @ee.borderless = true + @ee.evas.font_hinting = Evas::Evas::AUTO @ee.on_pre_render { Edje::thaw } @ee.on_post_render { Edje::freeze }