From vamsee.krishna@gmail.com Sat Apr 1 18:41:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0ACF63B008B for ; Sat, 1 Apr 2006 18:41:33 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03585-04 for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 579443B007D for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3129274nzf for ; Sat, 01 Apr 2006 15:41:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fmHZaKDxRWKbqRg8MAssoa1KNvuFSXGH11TSmtyDBr+yTNWHDAdQjVTITQRuo9zdYD0ETotRkngvo7mSQuECj1OszqMW8HgOxursXlJNjv4AUdiFPVKl0vbvfavE1ZAi2sfZ1PNSKQBFGpKj0t/4voBKFdh9rl2pjzSBuMaPR4s= Received: by 10.35.99.5 with SMTP id b5mr1439412pym; Sat, 01 Apr 2006 15:41:30 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 15:41:30 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:11:30 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Smart Playlist plugin In-Reply-To: <1143655553.7081.12.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2612_30251453.1143934890438" References: <1143655553.7081.12.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.235 tagged_above=-999 required=2 tests=[AWL=0.990, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.235 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 23:41:33 -0000 ------=_Part_2612_30251453.1143934890438 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt wrote: > > Lukas' e-mail reminded me I should let you all know that I'm working on > a smart playlist plugin. I would say it's about 60% done - you can make > a new playlist and define the query it uses and it will run it, but it > doesn't handle the track database changing yet (scanning new/changed > tracks). If anybody wants to try it out or help me develop it, let me > know. Sounds interesting. I've recently shifted from Rhythmbox to Banshee and thi= s is one feature I'd love to see in Banshee. Please let me know the location where I can get your plugin. Would love to test it out. GVK ------=_Part_2612_30251453.1143934890438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt <gabriel.burt@gmail.com> wrote:
Lukas' e-mail reminded me I should let you all know that I'm working on
= a smart playlist plugin.  I would say it's about 60% done - you c= an make
a new playlist and define the query it uses and it will run it, = but it
doesn't handle the track database changing yet (scanning new/changedtracks).  If anybody wants to try it out or help me develop it, = let me
know.

Sounds interesting. I've recently shif= ted from Rhythmbox to Banshee and this is one feature I'd love to see in Ba= nshee.  Please let me know the location where I can get your plugin. W= ould love to test it out.

GVK

------=_Part_2612_30251453.1143934890438-- From vamsee.krishna@gmail.com Sat Apr 1 19:16:36 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6B0D3B00EA for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05543-01 for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id B77033B007D for ; Sat, 1 Apr 2006 19:16:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3152433nzf for ; Sat, 01 Apr 2006 16:16:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LtG2XeAF/It9i7ZRN5WrRp4XVhWrTjOSdpC3/GJDvGvD8RVGXRPXPYUaIjU2Bt4mz0YltT+LSGjHzmm5hcN2A4jPU2BseHBgPMfvsWF+KiLX6qybt0WU7cFjbkI9d2mP/8Rw64619oW0YElfHRXZ5v0PzKisV5bDmDmoi6Lvcfw= Received: by 10.35.36.13 with SMTP id o13mr477120pyj; Sat, 01 Apr 2006 16:16:35 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 16:16:35 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:46:35 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2868_14676714.1143936995115" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.985 tagged_above=-999 required=2 tests=[AWL=0.186, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_SV=0.077] X-Spam-Score: -0.985 X-Spam-Level: Subject: [Banshee-List] Smart-playlists-plugin: Select songs by rating X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 00:16:36 -0000 ------=_Part_2868_14676714.1143936995115 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I've checked out the smart-playlists-plugin from svn and after loading it, I'm trying to create a _smart playlist of songs with rating greater than 3_= . Here's the message printed to the terminal: Name =3D Smart Playlist, Cond =3D Rating < '3' , OrderAndLimit =3D Adding smart playlist Smart Playlist, id 6 Refreshing smart playlist Smart Playlist with condition Rating < '3' I don't think this is the correct behaviour. This can be changed to behave correctly by interchanging the '>' and '<' symbols on lines 162 and 164 of QueryBuilderModel.cs. Sorry for the crude report. Can someone patch it up? GVK ------=_Part_2868_14676714.1143936995115 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,
I've checked out the smart-playlists-plugin from svn and after lo= ading it, I'm trying to create a _smart playlist of songs with rating great= er than 3_. Here's the message printed to the terminal:

Name =3D Sma= rt Playlist, Cond =3D  Rating < '3' , OrderAndLimit =3D
Adding smart playlist Smart Playlist, id 6
Refreshing smart playlist= Smart Playlist with condition  Rating < '3'

I don't think t= his is the correct behaviour. This can be changed to behave correctly by in= terchanging the '>' and '<' symbols on lines 162 and 164 of=20 QueryBuilderModel.cs.

Sorry for the crude report. Can someone patch = it up?

GVK


------=_Part_2868_14676714.1143936995115-- From abockover@novell.com Sun Apr 2 18:15:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 035D13B15E9 for ; Sun, 2 Apr 2006 18:15:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13902-05 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by menubar.gnome.org (Postfix) with ESMTP id 39D4E3B14D1 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from [192.168.0.105] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-02-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k32MFha9021588 for ; Sun, 2 Apr 2006 18:15:43 -0400 (EDT) From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Sun, 02 Apr 2006 18:13:02 -0400 Message-Id: <1144015982.30733.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=-0.116, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_SV=0.077] X-Spam-Score: -2.438 X-Spam-Level: Subject: [Banshee-List] Banshee Subversion X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 22:15:50 -0000 If you have an SSH account on svn.banshee-project.org, you may get a "host name changed" message from SSH. I rebuild my linode on which I host the Banshee SVN repo. No need to be alarmed, just remove the old host entry from your ~/.ssh/known_hosts. Also, please verify that you can actually connect/check out over svn +ssh. Everything should be okay though. Thanks, --Aaron From bertrand.lorentz@free.fr Mon Apr 3 12:12:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 563C23B1882 for ; Mon, 3 Apr 2006 12:12:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08632-06 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id 6495E3B1B96 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp1-g19.free.fr (Postfix) with ESMTP id 632149AE05 for ; Mon, 3 Apr 2006 18:12:21 +0200 (CEST) From: Bertrand Lorentz To: banshee-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BKPtsZ2EQVIvrBBRMYpg" Date: Mon, 03 Apr 2006 18:12:18 +0200 Message-Id: <1144080739.22083.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Nomad Jukebox and Banshee X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 16:12:24 -0000 --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everybody, I'm a happy owner of a Creative Nomad Jukebox 1 (Product ID 0x0222), and I've been having some trouble to get it working with banshee. When I connect my NJB to my PC, it shows up in banshee, but no tracks are shown. The following exception is thrown : System.ApplicationException: Frame data is not uint16 in <0x00051> Njb.SongFrame:get_DataShort () in <0x00025> Njb.Song:GetFrameShort (System.String label) in <0x00010> Njb.Song:get_IsProtected () in <0x0028a> Banshee.Dap.Njb.NjbDapTrackInfo:LoadFromNjbSong (Banshee.Dap.DapDevice dap) in <0x0001f> Banshee.Dap.Njb.NjbDapTrackInfo:.ctor (Njb.Song song, Banshee.Dap.DapDevice dap) in <0x0008c> Banshee.Dap.Njb.NjbDap:ReloadDatabase () in <0x00598> Banshee.Dap.Njb.NjbDap:Initialize (Hal.Device halDevice) in <0x0004c> Banshee.Dap.DapCore:AddDevice (Hal.Device device, System.Type type) After some investigations, here's what I found : In njb-sharp, the frames containing the "Year" and the "PlayOnly" data are supposed to be UInt16 frames. After playing around with the njb-test program, I found out that on my NJB these frames are String frames. I don't know if that's the case with all NJB 1, or if my library is messed up. I'm not quite sure how to fix this, without being too permissive on the frame types or breaking anything... Thanks for any input or suggestion... --=20 Bertrand Lorentz --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMUlib1pl4loRymARAkBqAKDK3cXxoN9xQy7qKIbEUtaKWGOmzACfUxTX gFeGYW88W0DKCyCzng5Axxg= =WFvF -----END PGP SIGNATURE----- --=-BKPtsZ2EQVIvrBBRMYpg-- From doktorn@sub.nu Mon Apr 3 14:54:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDA3C3B1CFB for ; Mon, 3 Apr 2006 14:54:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19828-01 for ; Mon, 3 Apr 2006 14:54:35 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id F35BC3B1CBB for ; Mon, 3 Apr 2006 14:54:34 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k33IsYVA000488 for ; Mon, 3 Apr 2006 20:54:35 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id B1CE0AB13B for ; Mon, 3 Apr 2006 20:54:32 +0200 (CEST) Message-ID: <44316F67.6080408@sub.nu> Date: Mon, 03 Apr 2006 20:54:31 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: [Banshee-List] How to update/re-scan library X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 18:54:37 -0000 Hello, I've added some music to my library, but it doesn't show up in the list. Is there some way to force a re-scan of the library or how am I suppose to handle this? Best regards Rickard Borgmäster From sjoeboo@sjoeboo.com Mon Apr 3 15:41:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 53A613B1CBC for ; Mon, 3 Apr 2006 15:41:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22778-05 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 356803B1CB5 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 4E43110B2B for ; Mon, 3 Apr 2006 15:41:13 -0400 (EDT) MIME-Version: 1.0 Date: Mon, 3 Apr 2006 15:41:13 -0400 From: Matthew Nicholson To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library Organization: sjoeboo.com In-Reply-To: <44316F67.6080408@sub.nu> References: <44316F67.6080408@sub.nu> Message-ID: <8b843aef824487e1799668c668f45a51@localhost> X-Sender: sjoeboo@sjoeboo.com User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.411 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046] X-Spam-Score: -0.411 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:41:48 -0000 i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? > > Best regards > Rickard Borgmäster > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list -- Matthew Nicholson sjoeboo@sjoeboo.com sjoeboo.com From ken@vandine.org Mon Apr 3 15:46:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 241C53B1CE5 for ; Mon, 3 Apr 2006 15:46:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23196-06 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id 79DE13B1CF9 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from foobar.rdu.rpath.com (rdu-nat.rpath.com [24.172.59.42]) by ms-smtp-03-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k33JkWgA006659; Mon, 3 Apr 2006 15:46:32 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Ken VanDine To: banshee-list@gnome.org, sjoeboo@sjoeboo.com In-Reply-To: <8b843aef824487e1799668c668f45a51@localhost> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Apr 2006 15:46:37 -0400 Message-Id: <1144093597.1033.9.camel@foobar> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, TW_TM=0.077] X-Spam-Score: -2.561 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:46:38 -0000 Using 0.10.9, inotify has been working fine adding music to my library. I don't use rhytmbox at all, so can't compare. --Ken On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > > Hello, > > > > I've added some music to my library, but it doesn't show up in the list. > > Is there some way to force a re-scan of the library or how am I > > suppose to handle this? > > > > Best regards > > Rickard Borgmäster > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list From zachtib@gmail.com Mon Apr 3 16:02:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7EBC3B1D37 for ; Mon, 3 Apr 2006 16:02:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24218-10 for ; Mon, 3 Apr 2006 16:02:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id F3DDB3B2634 for ; Mon, 3 Apr 2006 16:02:01 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so112378nzf for ; Mon, 03 Apr 2006 13:02:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XlyV3q1Gv7rLNcbpv5K2GJIsPLf3XrffI6Qh8Gd2waMYQpx09AbsIzD7Lmgk7jr//3HzKzG9t6SPSgxvjVblnXOkFHo2sicEJQkxD1ihH8s0SBNgtrkaPi3HAu6sp7BCYJDXsdm4jmk9UW9b+Wc67t9c+uzxCKH8YELvBU9l4XU= Received: by 10.35.121.2 with SMTP id y2mr1372988pym; Mon, 03 Apr 2006 13:01:59 -0700 (PDT) Received: by 10.35.34.12 with HTTP; Mon, 3 Apr 2006 13:01:59 -0700 (PDT) Message-ID: <5f2bbff20604031301y4493ebfamf43cfd925dcc5974@mail.gmail.com> Date: Mon, 3 Apr 2006 16:01:59 -0400 From: "Zach Tibbitts" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18649_27581749.1144094519786" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.71 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.71 X-Spam-Level: Subject: [Banshee-List] New build problems X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 20:02:07 -0000 ------=_Part_18649_27581749.1144094519786 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this error: ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert from `Banshee.Base.ArtistInfo' to `string' Compilation failed: 2 error(s), 0 warnings make[3]: *** [Banshee.Base.dll] Error 1 make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/zach/banshee/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zach/banshee' make: *** [all] Error 2 this is using oscars normalized patch ------=_Part_18649_27581749.1144094519786 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this er= ror:

./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot c= onvert from `Banshee.Base.ArtistInfo' to `string'
Compilation failed: 2 = error(s), 0 warnings
make[3]: *** [Banshee.Base.dll] Error 1
make[3]: Leaving directory `= /home/zach/banshee/src/Banshee.Base'
make[2]: *** [all-recursive] Error = 1
make[2]: Leaving directory `/home/zach/banshee/src'
make[1]: *** [a= ll-recursive] Error 1
make[1]: Leaving directory `/home/zach/banshee'
make: *** [all] Erro= r 2

this is using oscars normalized patch
------=_Part_18649_27581749.1144094519786-- From oivind.hoel@gmail.com Mon Apr 3 22:35:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36E8D3B06A1 for ; Mon, 3 Apr 2006 22:35:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14269-04 for ; Mon, 3 Apr 2006 22:35:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 03F323B06EF for ; Mon, 3 Apr 2006 22:35:37 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 14so1860799nzn for ; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tI8UHDcQIlWrgZkTjH5De8gDrjF0wJLqJf35+x96upcbKxaBtDskcgNLazcpefe4VIC/NaaipuiDmmkRNZRaFte1fyozdUGevKvUIeUP6qLHJNNMjPsvpDiSFsqBAuAmPipdUrbwQ+zST1Ky0DCk15v7yy9yV6Ovo16EUlJ63Yc= Received: by 10.64.143.11 with SMTP id q11mr40421qbd; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) Received: by 10.65.183.2 with HTTP; Mon, 3 Apr 2006 19:35:37 -0700 (PDT) Message-ID: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Date: Tue, 4 Apr 2006 04:35:37 +0200 From: "=?ISO-8859-1?Q?=D8ivind_Hoel?=" To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library In-Reply-To: <44316F67.6080408@sub.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44316F67.6080408@sub.nu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 02:35:41 -0000 On 4/3/06, Rickard Borgm=E4ster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? Have you enabled the filesystem watcher plugin? From oforero@novell.com Tue Apr 4 03:24:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941423B2784 for ; Tue, 4 Apr 2006 03:24:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28026-07 for ; Tue, 4 Apr 2006 03:24:23 -0400 (EDT) Received: from emea1-mh.id2.novell.com (public.id2-vpn.continvity.gns.novell.com [195.33.99.129]) by menubar.gnome.org (Postfix) with ESMTP id 91CA93B0A7F for ; Tue, 4 Apr 2006 03:24:22 -0400 (EDT) Received: from EMEA1-MTA by emea1-mh.id2.novell.com with Novell_GroupWise; Tue, 04 Apr 2006 08:24:17 +0200 Message-Id: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Beta Date: Tue, 04 Apr 2006 09:23:58 +0200 From: "Oscar Forero" To: Subject: Re: [Banshee-List] New build problems References: <44318D640200007400007602@emea1-mh.id2.novell.com> <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> In-Reply-To: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 07:24:25 -0000 Hi, I insist the patch is not apply it properly, that is one of the changes that has to be make, go to that line and change the reference to ti.Artist to ti.Artist.Name; also please check the PlaylistModel.cs because i think the variable call sort is set to be a TreeModelSort and that is the root of all evil. regards, Oscar. On Mon, 2006-04-03 at 20:02 +0000, zachtib@gmail.com wrote: > This is the first time ive tried to build 10.9 on Dapper, and i get > this error: > > ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert > from `Banshee.Base.ArtistInfo' to `string' > Compilation failed: 2 error(s), 0 warnings > make[3]: *** [Banshee.Base.dll] Error 1 > make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/zach/banshee/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/zach/banshee' > make: *** [all] Error 2 > > this is using oscars normalized patch From sjoeboo@sjoeboo.com Tue Apr 4 13:28:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 454F03B2941 for ; Tue, 4 Apr 2006 13:28:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02273-10 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 5E53A3B2062 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from vader (vader.sjoeboo.com [192.168.1.104]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 9799410B2A; Tue, 4 Apr 2006 13:28:09 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Matthew Nicholson To: Ken VanDine In-Reply-To: <1144093597.1033.9.camel@foobar> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> <1144093597.1033.9.camel@foobar> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BoiBoCnNSIxMDyMHygYH" Organization: sjoeboo.com Date: Tue, 04 Apr 2006 13:28:42 -0400 Message-Id: <1144171723.14660.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.373 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046, TW_TM=0.077] X-Spam-Score: -0.373 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 17:28:45 -0000 --=-BoiBoCnNSIxMDyMHygYH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable acctually, its working fine. i must have been mistaken, for i just moved some files, and both application, running at the same time, picked them up. excelent. On Mon, 2006-04-03 at 15:46 -0400, Ken VanDine wrote: > Using 0.10.9, inotify has been working fine adding music to my library. > I don't use rhytmbox at all, so can't compare. =20 >=20 > --Ken >=20 > On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > > i have had issues like this as well. inotify IS working, because new mu= sic will show up in rhythmbox. banshee does not pick up the changes. shutdo= wn/re-open banshee, and it still doesn't see the new files. this happens wi= th rythmbox open, and closed, so its not conflicts on both of them watching= the same place. so far, with banshee, i still have to add new things manua= lly..... > >=20 > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgm=C3=A4ster wrote: > > > Hello, > > >=20 > > > I've added some music to my library, but it doesn't show up in the li= st. > > > Is there some way to force a re-scan of the library or how am I > > > suppose to handle this? > > >=20 > > > Best regards > > > Rickard Borgm=C3=A4ster > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list --=-BoiBoCnNSIxMDyMHygYH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMqzKs9/XCuaG1WkRAjfiAKCAAjL7PHUKiGfr4w9TVk1XXeAOKACeMfp5 v2m9AByCd+7dN2EeUptCWkE= =atus -----END PGP SIGNATURE----- --=-BoiBoCnNSIxMDyMHygYH-- From doktorn@sub.nu Tue Apr 4 21:31:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58B9D3B083D for ; Tue, 4 Apr 2006 21:31:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26571-01 for ; Tue, 4 Apr 2006 21:31:21 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id 7628E3B07FA for ; Tue, 4 Apr 2006 21:31:20 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k351VIoU011859 for ; Wed, 5 Apr 2006 03:31:19 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id E9443AE297 for ; Wed, 5 Apr 2006 03:31:17 +0200 (CEST) Message-ID: <44331DE5.8090701@sub.nu> Date: Wed, 05 Apr 2006 03:31:17 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library References: <44316F67.6080408@sub.nu> <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> In-Reply-To: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 01:31:41 -0000 Øivind Hoel wrote: > On 4/3/06, Rickard Borgmäster wrote: >> Hello, >> >> I've added some music to my library, but it doesn't show up in the list. >> Is there some way to force a re-scan of the library or how am I >> suppose to handle this? > > Have you enabled the filesystem watcher plugin? Yes, but it hasn't detected the new music. Best regards Rickard Borgmäster From ncjeffgus@zimage.com Wed Apr 5 04:19:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADBB63B2AF9 for ; Wed, 5 Apr 2006 04:19:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13405-07 for ; Wed, 5 Apr 2006 04:19:27 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id DF0E53B2AEC for ; Wed, 5 Apr 2006 04:19:26 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id 866ED1C2AC4 for ; Wed, 5 Apr 2006 01:19:25 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00568-03 for ; Wed, 5 Apr 2006 01:19:08 -0700 (PDT) Received: from polly.zimage.com (polly.zimage.com [216.86.199.26]) by alpha.zimage.com (Postfix) with ESMTP id CEF061C2A7D for ; Wed, 5 Apr 2006 01:19:02 -0700 (PDT) From: Jeff Gustafson To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 05 Apr 2006 01:18:48 -0700 Message-Id: <1144225128.7088.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: [Banshee-List] banshee and iTunes X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 08:19:29 -0000 Is it just me or did the new plug-in stop working? Sharpmusique isn't working either. 404 not found error. ...Jeff From lukas@pmad.net Wed Apr 5 06:31:53 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CABAB3B0CB0 for ; Wed, 5 Apr 2006 06:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20860-01 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 321813B0C73 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: (qmail 27414 invoked by uid 503); 5 Apr 2006 10:28:54 -0000 Received: (QMFILT: 1.0); 05 Apr 2006 10:28:54 -0000 Received: from b7.ovh.net (HELO mail1.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 5 Apr 2006 10:28:54 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:28:27 -0000 Received: from mail145.ha.ovh.net (HELO mail1.ha.ovh.net) (10.0.50.145) by mail145.ha.ovh.net with SMTP; 5 Apr 2006 10:28:23 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Received: from adsl-d200.87-197-131.telecom.sk (HELO ?192.168.0.23?) (87.197.131.200) by ns0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Subject: Re: [Banshee-List] banshee and iTunes From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:25:33 +0200 Message-Id: <1144232733.5059.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.131.200 (adsl-d200.87-197-131.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.741 tagged_above=-999 required=2 tests=[AWL=-0.700, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.741 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:31:54 -0000 Hi, On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. The plugin hasn't been touched in ages, and yes, IMS have changed something yet again. Lukas From fredrik.hedberg@avafan.com Wed Apr 5 06:55:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7CFEE3B2A7E for ; Wed, 5 Apr 2006 06:55:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21953-07 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by menubar.gnome.org (Postfix) with ESMTP id 237243B2A56 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from [172.14.11.116] (217.210.3.62) by pne-smtpout1-sn2.hy.skanova.net (7.2.070) id 44311E3A000923BE for banshee-list@gnome.org; Wed, 5 Apr 2006 12:55:10 +0200 Subject: Re: [Banshee-List] banshee and iTunes From: Fredrik Hedberg To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:55:09 +0200 Message-Id: <1144234509.5656.7.camel@lovemachine.hedbergs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:55:15 -0000 Hi, Purchasing music from Banshee works great here. There is however, a small issue. If you ever used iTunes 6 to purchase music with you account, your account gets flagged. This will essentially block you from using the store with either the Banshee plugin or with Sharpmusique (and any older version of iTunes i presume). I'm sure either Aaron or Jon can elaborate more on this issue. Fredrik On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. > > ...Jeff > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From mattisking@gmail.com Wed Apr 5 10:55:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D153B2C5C for ; Wed, 5 Apr 2006 10:55:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05591-10 for ; Wed, 5 Apr 2006 10:55:00 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 35CED3B0D50 for ; Wed, 5 Apr 2006 10:54:59 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n29so306884nzf for ; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qMILgVPiuTEcDqYKv8eABZfFlZ4W6w3grKMH/Tp9eENz/LGhceFIEj/30bEHCXmE1SQtmtJgIwLtFxG+A8pDs+ZEDWcxEEYAU7WVg0QWC9Z1ZPvH5DMCAvdzZLFHqcKDq44clq/t/bb3751NiwjBroRmN/xW/KK+ngYKmk5egcU= Received: by 10.35.37.18 with SMTP id p18mr789032pyj; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Wed, 5 Apr 2006 07:54:58 -0700 (PDT) Message-ID: <39efb3860604050754o7c914de6jb7a630061243bdfb@mail.gmail.com> Date: Wed, 5 Apr 2006 10:54:58 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] banshee and iTunes In-Reply-To: <1144234509.5656.7.camel@lovemachine.hedbergs.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30503_17740251.1144248898549" References: <1144225128.7088.2.camel@localhost.localdomain> <1144234509.5656.7.camel@lovemachine.hedbergs.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.014 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.014 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 14:55:13 -0000 ------=_Part_30503_17740251.1144248898549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never use it against iTunes 6. I've finally admitted to myself that the Fairkey thing resulting in applications like iOpener and Jhymn just isn't getting updated any time soon. :( Personally, I've moved to using allofmp3.com All the same music (more or less) for a fraction of the cost, and at this point at least, still legal. Matt Philmon On 4/5/06, Fredrik Hedberg wrote: > > Hi, > > Purchasing music from Banshee works great here. There is however, a > small issue. > > If you ever used iTunes 6 to purchase music with you account, your > account gets flagged. This will essentially block you from using the > store with either the Banshee plugin or with Sharpmusique (and any older > version of iTunes i presume). > > I'm sure either Aaron or Jon can elaborate more on this issue. > > Fredrik > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique > isn't > > working either. 404 not found error. > > > > ...Jeff > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_30503_17740251.1144248898549 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never= use it against iTunes 6. I've finally admitted to myself that the Fairkey = thing resulting in applications like iOpener and Jhymn just isn't getting u= pdated any time soon. :(

Personally, I've moved to using all= ofmp3.com All the same music (more or less) for a fraction of the cost,= and at this point at least, still legal.

Matt Philmon

On 4/5/06, Fredri= k Hedberg <fredrik.hed= berg@avafan.com> wrote:
Hi,

Purchasing music from Banshee works great here. There is however= , a
small issue.

If you ever used iTunes 6 to purchase music with= you account, your
account gets flagged. This will essentially block you= from using the
store with either the Banshee plugin or with Sharpmusique (and any olde= r
version of iTunes i presume).

I'm sure either Aaron or Jon can = elaborate more on this issue.

      &n= bsp; Fredrik

On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson = wrote:
>       Is it just me or did the new p= lug-in stop working?  Sharpmusique isn't
> working either.&= nbsp; 404 not found error.
>
>    &nbs= p;            &= nbsp;     ...Jeff
>
> _____________________= __________________________
> Banshee-list mailing list
> Banshee-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/ba= nshee-list

_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_30503_17740251.1144248898549-- From abockover@novell.com Wed Apr 5 11:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B1923B2CBA for ; Wed, 5 Apr 2006 11:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09160-08 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 77F583B2CB8 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: (qmail 32543 invoked from network); 5 Apr 2006 15:45:34 -0000 Received: from outbound.ximian.com (HELO 164-99-120-28.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 5 Apr 2006 15:45:34 -0000 From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Wed, 05 Apr 2006 11:42:23 -0400 Message-Id: <1144251743.8729.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.399 X-Spam-Level: Subject: [Banshee-List] Bug Help Requested X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 15:45:38 -0000 I am noticing that there are currently at least 114 new bug comments on Banshee in Gnome Bugzilla, and I am not going to have the time to look at many of them for a maybe another week. Right now my priority is fixing our internal set of bugs, which will without a doubt knock out many in Gnome Bugzilla. However, just glancing at the bug summaries many look like dupes or ones easy to resolve or at least start commenting on. If anyone is willing, I would appreciate some help in whittling these down a bit until I can give them more attention. I know Ruben has been doing his best when he has time, but it'd be lovely to get some more hands in the stew :) Also, I am going to create a banshee-devel-list. I'll post a message when it is up. Thanks! Cheers, Aaron From ncjeffgus@zimage.com Wed Apr 5 14:49:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7732F3B0C3E for ; Wed, 5 Apr 2006 14:49:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20105-07 for ; Wed, 5 Apr 2006 14:49:55 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id 0655C3B0A2E for ; Wed, 5 Apr 2006 14:49:53 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id D74F11C2567 for ; Wed, 5 Apr 2006 11:49:47 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05050-08 for ; Wed, 5 Apr 2006 11:49:33 -0700 (PDT) Received: from polly.idc.local (mail.idc-global.com [66.92.217.130]) by alpha.zimage.com (Postfix) with ESMTP id DFF241C255B for ; Wed, 5 Apr 2006 11:49:31 -0700 (PDT) Subject: Re: [Banshee-List] banshee and iTunes From: Jeff Gustafson To: banshee-list@gnome.org In-Reply-To: <1144232733.5059.0.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> <1144232733.5059.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 11:49:28 -0700 Message-Id: <1144262969.3260.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.466 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.466 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 18:49:56 -0000 On Wed, 2006-04-05 at 12:25 +0200, Lukas Lipka wrote: > Hi, > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique isn't > > working either. 404 not found error. > > The plugin hasn't been touched in ages, and yes, IMS have changed > something yet again. They must be changing stuff. :) I've installed iTunes 6 on the Windows side, but never purchased anything with it. Just used it to install some Audible books. On Monday I tried the plugin and purchased a couple of songs. On Tuesday I got the 404 Not Found message. Today I get: Unhandled Exception: System.Net.WebException: The remote server returned an error: (502) Bad Gateway. in <0x003de> System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult result) in <0x00216> System.Net.HttpWebRequest:SetResponseData (System.Net.WebConnectionData data) Bummer. ...Jeff From silwenae@gmail.com Wed Apr 5 21:42:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F04933B0A4B for ; Wed, 5 Apr 2006 21:42:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07128-06 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 70E863B07F8 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so35227nzf for ; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=n0h2ms6nv7ixk3+OmrawjQdW6acM3O78XHRSOJa7so+G2D1w4Pk4nNYF8Mh7oBEaqCbrYK8QkkB/YhRFveEYKWK2kQXNVeAa+sMp0uZr6URmaOXZks8aqWMLx3NX1UgMQbcgtcf/v18NKWvn1pFhqali+GO0hB7mJWOfPf2S6sA= Received: by 10.36.39.6 with SMTP id m6mr341671nzm; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) Received: by 10.36.129.16 with HTTP; Wed, 5 Apr 2006 18:42:01 -0700 (PDT) Message-ID: <4c4ad4df0604051842t1b82a719sa1d44bfb376aa0fa@mail.gmail.com> Date: Wed, 5 Apr 2006 20:42:01 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8408_8905771.1144287721697" References: <1144251743.8729.6.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 01:42:04 -0000 ------=_Part_8408_8905771.1144287721697 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or could not duplicate some of the bugs. There are a ton of bugs that are feature enhancements. Some are labeled a= s such, but a number are labeled under Normal or such. Any recommendations o= n what to do with feature enhancements? Add a comment to post on the wiki, leave them be, or something else, especially ones marked as normal? Paul On 4/5/06, Aaron Bockover wrote: > > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. > > Thanks! > > Cheers, > Aaron > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_8408_8905771.1144287721697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or= could not duplicate some of the bugs.

There are a ton of bugs that = are feature enhancements.   Some are labeled as such, but a numbe= r are labeled under Normal or such.  Any recommendations on what to do= with feature enhancements?  Add a comment to post on the wiki, leave = them be, or something else, especially ones marked as normal?

Paul

On 4/5/06, Aaron Bockover <abockover@novell.com> wrote:
I am noticing that there are currently at least 114 new bug comments on
= Banshee in Gnome Bugzilla, and I am not going to have the time to look
a= t many of them for a maybe another week. Right now my priority is
fixing= our internal set of bugs, which will without a doubt knock out
many in Gnome Bugzilla.

However, just glancing at the bug summar= ies many look like dupes or ones
easy to resolve or at least start comme= nting on.

If anyone is willing, I would appreciate some help in whit= tling these
down a bit until I can give them more attention.

I know Ruben ha= s been doing his best when he has time, but it'd be
lovely to get some m= ore hands in the stew :)

Also, I am going to create a banshee-devel-= list. I'll post a message
when it is up.

Thanks!

Cheers,
Aaron


______= _________________________________________
Banshee-list mailing list
<= a href=3D"mailto:Banshee-list@gnome.org">Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_8408_8905771.1144287721697-- From gpoo@ubiobio.cl Wed Apr 5 23:00:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7E53B0AC4 for ; Wed, 5 Apr 2006 23:00:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10137-07 for ; Wed, 5 Apr 2006 23:00:53 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 986603B0C17 for ; Wed, 5 Apr 2006 23:00:52 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id ABFAF400127 for ; Wed, 5 Apr 2006 23:00:03 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 00800-81 for ; Wed, 5 Apr 2006 23:00:02 -0400 (CLT) Received: from mimos.local (pc-158-109-120-200.cm.vtr.net [200.120.109.158]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 985D628002A1 for ; Wed, 5 Apr 2006 23:00:44 -0400 (CLT) Subject: Re: [Banshee-List] Bug Help Requested From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 05 Apr 2006 23:00:38 -0400 Message-Id: <1144292438.8258.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.374 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.374 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 03:00:57 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. I also been triaging, reviewing some patches and commented on bugs in a minimal proportion anyway. But, at the end, you must to checked them. I would like to suggest to you to check the bugs that has patches included. There are only 14 of those bugs (6 reviewed, 8 with no comments at all). http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=commented-on http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=none Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From ruben@Lambda1.be Thu Apr 6 03:23:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41BB23B13A0 for ; Thu, 6 Apr 2006 03:23:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20801-02 for ; Thu, 6 Apr 2006 03:23:56 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 70C6C3B1118 for ; Thu, 6 Apr 2006 03:23:55 -0400 (EDT) Received: from ([62.235.112.218]) by oola.is.scarlet.be with ESMTP id k367NrA17167 for ; Thu, 6 Apr 2006 09:23:53 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 5DD46460202; Thu, 6 Apr 2006 09:23:51 +0200 (CEST) Subject: Re: [Banshee-List] Bug Help Requested From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Apr 2006 09:23:50 +0200 Message-Id: <1144308230.5325.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.598 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 07:23:59 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) And I plan to keep on doing that. I'd really love to be able to write big new features on banshee but currently time does not permit it. That's why I've chosen to concentrate on bug bitching, mainly getting as much bugs as possible ready for merging into CVS (there's quite a lot of those already, which just require a "curl | patch -p0"). What bugs me mostly are those "long term maybe"-feature requests, they're bringing us awefully close to the buggiest top-15 without a direct way to close them ;-). > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. Wonderful! I'm thinking of organising some collective-triage sessions to tackle longstanding bugs, but it's still an early idea and we need people interested in them. Cheers, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From cpfiles@gmail.com Thu Apr 6 10:01:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D0723B15A6 for ; Thu, 6 Apr 2006 10:01:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14756-07 for ; Thu, 6 Apr 2006 10:01:39 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id A48F03B2FED for ; Thu, 6 Apr 2006 10:01:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so170807nzf for ; Thu, 06 Apr 2006 07:01:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Y5JVfjRhhUPOKMWVguVMF/lV3Pk0vJXilfYjnTdoEUqzsd/UVDS15qRJT4jFUTk2pdIAjuSvIGXmUndpYM8pHqSqmlJrfoFdg6Kl4L0HetXmk60dg9xCrDWAP6MVEi2S86ZRaSjBGkqId+iTEancpjqPrVIn//rV0p6agMj9VWE= Received: by 10.36.80.5 with SMTP id d5mr1079002nzb; Thu, 06 Apr 2006 07:01:37 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 07:01:37 -0700 (PDT) Message-ID: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Date: Thu, 6 Apr 2006 09:01:37 -0500 From: "Chad Files" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Poor Playback X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:01:42 -0000 I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad From benjfitz@yahoo.com Thu Apr 6 10:48:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9FC53B3019 for ; Thu, 6 Apr 2006 10:48:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17687-07 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: from web37904.mail.mud.yahoo.com (web37904.mail.mud.yahoo.com [209.191.124.99]) by menubar.gnome.org (Postfix) with SMTP id 6B9C03B3005 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: (qmail 88407 invoked by uid 60001); 6 Apr 2006 14:48:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qb8GW+o5aBy6xF1S1fV7Tp0Zh6F/mSfwtLT+H0PNkmSPvkFeOaaJf+QBoaGkU5wtsFIyQ2HU6BbdT1MXwFDBl7u2tgoiNMN9ql0QfLdseMW7vCMIq1cEjOTzarpL0CN9+/BqTFMIyH951/EUmz5gw1nCOzC8J9e7/0ybr8R6QcI= ; Message-ID: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> Received: from [140.110.206.107] by web37904.mail.mud.yahoo.com via HTTP; Thu, 06 Apr 2006 07:48:23 PDT Date: Thu, 6 Apr 2006 07:48:23 -0700 (PDT) From: Benj FitzPatrick Subject: Re: [Banshee-List] Poor Playback To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-121702021-1144334903=:87901" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.981 tagged_above=-999 required=2 tests=[AWL=-1.381, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_10_20=1.351, HTML_MESSAGE=0.001] X-Spam-Score: -0.981 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:48:26 -0000 --0-121702021-1144334903=:87901 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it. I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom). I added the below commands: alsasink period-size=1024 buffer-size=4096 That seemed to clean up playback for me. Benj Chad Files wrote: I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad _______________________________________________ Banshee-list mailing list Banshee-list@gnome.org http://mail.gnome.org/mailman/listinfo/banshee-list --0-121702021-1144334903=:87901 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it.  I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom).  I added the below commands:

alsasink period-size=1024 buffer-size=4096

That seemed to clean up playback for me.
Benj

Chad Files <cpfiles@gmail.com> wrote:
I am running banshee 0.10.9 on gentoo with all the latest and greatest
gstreamer packages. Everything looks and functions great except for
the playback. I get a lot of popping when the tracks are played.

I have played the same tracks it totem (also uses gstreamer) and there
is no popping. I have tried several other things but all to no avail.
This issue also bleeds over into CD burning. I burned a CD with
banshee and the popping was transfered onto the CD.

I am almost certain that this is an issue with the gstreamer bindings
in banshee. Has anybody else had this issue? Does anybody have a
solution?

Thanks

-- Chad
_______________________________________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

--0-121702021-1144334903=:87901-- From database1@qualitycareforchildren.org Thu Apr 6 11:01:09 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19A943B225A for ; Thu, 6 Apr 2006 11:01:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18884-05 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from www.qualitycareforchildren.org (qualitycareforchildren.org [168.215.70.173]) by menubar.gnome.org (Postfix) with ESMTP id 396B23B2FC0 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from [10.10.10.111] ([66.162.21.62]) by www.qualitycareforchildren.org (8.10.2/8.10.2) with ESMTP id k36F14C27036 for ; Thu, 6 Apr 2006 11:01:04 -0400 From: John Moore To: banshee-list@gnome.org Content-Type: multipart/alternative; boundary="=-9HUXicvlPFj1cQqn3+7I" Message-Id: <1141747243.25631.6.camel@linux.site> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.075 tagged_above=-999 required=2 tests=[AWL=-0.871, BAYES_00=-2.599, DATE_IN_PAST_96_XX=2.02, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: -1.075 X-Spam-Level: Subject: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 06 Apr 2006 15:01:09 -0000 X-Original-Date: Tue, 07 Mar 2006 11:00:43 -0500 X-List-Received-Date: Thu, 06 Apr 2006 15:01:09 -0000 --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/plain Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below): A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine. I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error: E: Couldn't find package gstreamer0.8-plugins-multiverse Any suggestions? Thanks. --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.


--=-9HUXicvlPFj1cQqn3+7I-- From mattisking@gmail.com Thu Apr 6 11:11:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 662B73B2236 for ; Thu, 6 Apr 2006 11:11:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19375-07 for ; Thu, 6 Apr 2006 11:11:46 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id E3D1E3B14A2 for ; Thu, 6 Apr 2006 11:11:45 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id i49so213796pye for ; Thu, 06 Apr 2006 08:11:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Na9O+B/1nNLaL57gPxKYaw2K978E/mlbPcqwURGk6FXym7hZEeY0KWEsuvwzOqcixBhxlDEkTO0HWEruaDMxxd8/jIyLNXjyBp9zHEV6kFhwalXL4xsbO9xo/cXetixqJ4EnFPz0PrYHUJjpbJK5AUMglodq5IQ+zpK0DLWkzd8= Received: by 10.35.49.4 with SMTP id b4mr529764pyk; Thu, 06 Apr 2006 08:11:44 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Thu, 6 Apr 2006 08:11:43 -0700 (PDT) Message-ID: <39efb3860604060811k183530e3w2fd1f9d9fbabb8fe@mail.gmail.com> Date: Thu, 6 Apr 2006 11:11:43 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse In-Reply-To: <1141747243.25631.6.camel@linux.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4236_23280367.1144336303978" References: <1141747243.25631.6.camel@linux.site> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.067 tagged_above=-999 required=2 tests=[AWL=0.158, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.067 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:11:52 -0000 ------=_Part_4236_23280367.1144336303978 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you'll want to enable it along with universe. Do enable multiverse just add it to the end of the lines that contain universe. Then use synaptic to search for gstreamer0.8. You'll find TONS of packages. Just install most or all of them. Matt On 3/7/06, John Moore wrote: > > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the > mp3 problem in the Banshee FAQ (see the site response below): > > *A:* This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends *sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg* and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I got > the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_4236_23280367.1144336303978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you= 'll want to enable it along with universe. Do enable multiverse just add it= to the end of the lines that contain universe.

Then use synaptic to= search for=20 gstreamer0.8. You'll find TONS of packages. Just install most or all of the= m.

Matt

On 3/7/06, John Moore < database1@qualitycareforchildren.org> wrote:
=20 =20 I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted th= e mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstre= amer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-pl= ugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'l= l be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  Ho= wever, when attempting to install gstreamer0.8-plugins-multiverse I got the= following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.



_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



------=_Part_4236_23280367.1144336303978-- From gpoo@ubiobio.cl Thu Apr 6 11:15:11 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ACEB73B303C for ; Thu, 6 Apr 2006 11:15:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19757-01 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 6CCBE3B3023 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id D772D4003E4 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 31704-12 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from dhcp-120.dci.ubiobio.cl (dhcp-120.dci.ubiobio.cl [146.83.195.120]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 2AA6628002AB for ; Thu, 6 Apr 2006 11:15:06 -0400 (CLT) Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1141747243.25631.6.camel@linux.site> References: <1141747243.25631.6.camel@linux.site> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 06 Apr 2006 11:15:01 -0400 Message-Id: <1144336501.9888.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.42 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.42 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:15:11 -0000 On Tue, 2006-03-07 at 11:00 -0500, John Moore wrote: > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted > the mp3 problem in the Banshee FAQ (see the site response below): > > A: This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I > got the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. This is an Ubuntu question more than an specific about banshee. You should read the documentation about how to solve this issues at https://wiki.ubuntu.com/RestrictedFormats In particular, the section related to MP3: https://wiki.ubuntu.com/RestrictedFormats#head-a57167a3ce442dc52d9b05e46a14503330d4e970 Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From cpfiles@gmail.com Thu Apr 6 12:22:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB3473B0889 for ; Thu, 6 Apr 2006 12:22:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24395-02 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 87BEC3B0586 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so228587nzf for ; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ia0WzG/128nvQPkwWZ1znnDwDlgOVURb5gexnobdUZ7eIe+gRSayLHpRrZu5B+olpXWclx2vt/UEaG5MQ/sp3i6c+8o9Hmpc1OhL3sVRPRCBPe1e8YfYGbIDbVFLhaQGlZ+64bB9VnweOX25elhzkfCPss0ixTj/6TKWMteY0Mo= Received: by 10.37.12.23 with SMTP id p23mr1338483nzi; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 09:22:04 -0700 (PDT) Message-ID: <9735eb9b0604060922n686a5b7bm3cc2f3130582a230@mail.gmail.com> Date: Thu, 6 Apr 2006 11:22:04 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 16:22:06 -0000 On 4/6/06, Benj FitzPatrick wrote: > I also ran into this on gentoo, and the devs were nice enough to help me > through it. I made a custom output sink for gstreamer using > gstreamer-properties (go to alsasink and then to custom). I added the be= low > commands: > > alsasink period-size=3D1024 buffer-size=3D4096 Thanks, but no dice. I still get the popping during playback. -- Chad From abockover@novell.com Thu Apr 6 15:31:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A2743B226E for ; Thu, 6 Apr 2006 15:31:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03375-08 for ; Thu, 6 Apr 2006 15:31:18 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 064BE3B3023 for ; Thu, 6 Apr 2006 15:31:17 -0400 (EDT) Received: (qmail 9151 invoked from network); 6 Apr 2006 19:31:17 -0000 Received: from outbound.ximian.com (HELO 164-99-120-99.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 6 Apr 2006 19:31:17 -0000 Subject: Re: [Banshee-List] Poor Playback From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Content-Type: text/plain Date: Thu, 06 Apr 2006 15:27:59 -0400 Message-Id: <1144351679.21194.8.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.485 tagged_above=-999 required=2 tests=[AWL=-0.086, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.485 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 19:31:19 -0000 On Thu, 2006-04-06 at 09:01 -0500, Chad Files wrote: > I am running banshee 0.10.9 on gentoo with all the latest and greatest > gstreamer packages. Everything looks and functions great except for > the playback. I get a lot of popping when the tracks are played. What happens in Rhythmbox? > I have played the same tracks it totem (also uses gstreamer) and there > is no popping. I have tried several other things but all to no avail. > This issue also bleeds over into CD burning. I burned a CD with > banshee and the popping was transfered onto the CD. > > I am almost certain that this is an issue with the gstreamer bindings > in banshee. Has anybody else had this issue? Does anybody have a > solution? No, the problem would not be in bindings. The GStreamer stuff in Banshee is all in C, and a binding wouldn't make your audio pop. There may be something missing from the pipeline, or it could easily be hardware or output sink related. Cheers, Aaron > Thanks > > -- Chad > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From silwenae@gmail.com Thu Apr 6 20:02:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B80583B0096 for ; Thu, 6 Apr 2006 20:02:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17730-02 for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id A29353B00AC for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so338083nzf for ; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fKFqrEMSalWHa6l88i17Y0KVGLs5oOoIlaqAO+8tsPHvQnbzQEikcSK7bIUetSHU3gFAQz4vS1Z3lFTe/ktB93hrQFlPySIqR2Yq7jFAOj1OCgGMdtjT0//4IWbdqt2vUvoapHRmo5r01ydFfE6DZnHbccFyxUOIRrMkWFYpdOE= Received: by 10.37.13.16 with SMTP id q16mr547499nzi; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Thu, 6 Apr 2006 17:02:38 -0700 (PDT) Message-ID: <4c4ad4df0604061702j2d05fee6w6ab5a2d3eb23c495@mail.gmail.com> Date: Thu, 6 Apr 2006 19:02:38 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144308230.5325.11.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2950_7040387.1144368158030" References: <1144251743.8729.6.camel@sledipus.rex> <1144308230.5325.11.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.344 tagged_above=-999 required=2 tests=[AWL=-0.119, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.344 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 00:02:42 -0000 ------=_Part_2950_7040387.1144368158030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/6/06, Ruben Vermeersch wrote: What bugs me mostly are those "long term maybe"-feature requests, > they're bringing us awefully close to the buggiest top-15 without a > direct way to close them ;-). > > > Cheers, > Ruben Is there any reason we can't mark feature requests filed as bugs as closed if we add them to the wiki? Or is that just not the way things are done? If the person commenting on the bug (or closing it) marks the date and time added to the wiki, and maybe we add a * after the request as noted on the wiki, or even add a section on the Features Request page as a section "Feature Requests from Bugzilla", it would go a long way to reducing the overall bug list. Currently 45 out of 121 total bugs are marked as feature enhancement. Paul ------=_Part_2950_7040387.1144368158030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 4/6/06, Ruben Vermeersch <ruben@l= ambda1.be> wrote:

<snip>

What bugs me mostly are those "long term maybe"-feature requests,=
they're bringing us awefully close to the buggiest top-15 without a
= direct way to close them ;-).


Cheers,
   Ruben

Is there any reason we can't mark feature requests filed as bugs a= s closed if we add them to the wiki?  Or is that just not the way thin= gs are done?  If the person commenting on the bug (or closing it) mark= s the date and time added to the wiki, and maybe we add a * after the reque= st as noted on the wiki, or even add a section on the Features Request page= as a section "Feature Requests from Bugzilla", it would go a lon= g way to reducing the overall bug list.

Currently 45 out of 121 total bugs are marked as feature enhancemen= t.

Paul


------=_Part_2950_7040387.1144368158030-- From trick@vanstaveren.us Fri Apr 7 04:07:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 60F363B0252 for ; Fri, 7 Apr 2006 04:07:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06528-09 for ; Fri, 7 Apr 2006 04:07:18 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 039DD3B0230 for ; Fri, 7 Apr 2006 04:07:16 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FRlzv-0003yV-Ur for banshee-list@gnome.org; Fri, 07 Apr 2006 01:07:15 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 07 Apr 2006 04:07:15 -0400 Message-ID: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Date: Fri, 07 Apr 2006 04:07:15 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Plugin in the works: Alarm Clock X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 08:07:24 -0000 Hey folks, I've been starting to work on a new plugin for Banshee - an Alarm Clock plugin. Has anyone worked on this? If so, LMK, so we're not duplicating efforts :) Features I'm working on: Sleep timer: * ability to set a timer that when it's up, will pause playback. Great for when you're loving your tunes but don't want to hear them ALL night. Alarm timer: * will start playback at the given time. * "recur" option - if enabled, will set the timer again for the next day at that same time. * volume setting - will change the volume to a certain level before playing. This way you don't have to set it before you go to sleep. Future ideas: * sleep timer - make it so it fades out the song, or stops at the end of the song rather than just pausing in the middle of it. * alarm timer - volume change will be gradual. will set the volume when the alarm first goes off, and will gradually increase it to another value over a span of seconds or minutes. All three values will be settable. Anyone have any other ideas/suggestions for me? Like I said, this plugin is more in the concept stage (I have more pencil sketches than actual code)...so I'm open to ideas :) Thanks all! Patrick (irc as trick) -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From thijsvermeir@telenet.be Fri Apr 7 08:43:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED8A23B03A5 for ; Fri, 7 Apr 2006 08:43:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23842-08 for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from assei2bl6.telenet-ops.be (assei2bl6.telenet-ops.be [195.130.133.69]) by menubar.gnome.org (Postfix) with ESMTP id 651233B036B for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by assei2bl6.telenet-ops.be (Postfix) with SMTP id E7352F00A2 for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Received: from [192.168.1.4] (d51A40E46.access.telenet.be [81.164.14.70]) by assei2bl6.telenet-ops.be (Postfix) with ESMTP id D8032F007D for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> Content-Transfer-Encoding: 7bit From: Thijs Vermeir Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock Date: Fri, 7 Apr 2006 14:39:11 +0200 To: banshee-list@gnome.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:43:20 -0000 On 7-apr-06, at 10:07, Trick van Staveren wrote: > Hey folks, Hey, > > I've been starting to work on a new plugin for Banshee - an Alarm > Clock plugin. Has > anyone worked on this? If so, LMK, so we're not duplicating > efforts :) > > ... > > Anyone have any other ideas/suggestions for me? Like I said, this > plugin is more in > the concept stage (I have more pencil sketches than actual > code)...so I'm open to > ideas :) Looks nice, Need suggestions? ;-) I like to see integrated support for shutdown/wakeup the PC. > Thanks all! > > Patrick > > (irc as trick) > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From cpfiles@gmail.com Fri Apr 7 08:49:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F23263B03E9 for ; Fri, 7 Apr 2006 08:49:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24722-01 for ; Fri, 7 Apr 2006 08:49:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 083363B32C0 for ; Fri, 7 Apr 2006 08:48:53 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so431851nzf for ; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WsU8SLPgB7IEnIIbBWXyFeT6UL0krV8RBh+sxXfOiTNl+ClzE/rvuEjK6BelLdxgmZiksLBxCTiCSphQ7sbCbN+TcIj5LDLcEQ+5nwFQnjbjgDjZw1n6IfRU/0vq8cl+6LwnhcQu4JLmNbVlOwdMubbl5SSZDydSMFjJCf3UUxY= Received: by 10.36.250.48 with SMTP id x48mr2049921nzh; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Fri, 7 Apr 2006 05:48:53 -0700 (PDT) Message-ID: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> Date: Fri, 7 Apr 2006 07:48:53 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <1144351679.21194.8.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:49:07 -0000 On 4/6/06, Aaron Bockover wrote: > What happens in Rhythmbox? Everything plays fine. > No, the problem would not be in bindings. The GStreamer stuff in Banshee > is all in C, and a binding wouldn't make your audio pop. There may be > something missing from the pipeline, or it could easily be hardware or > output sink related. After reading the above I wondered if it had anything to do with the media format, and it does. The popping only happens when playing ogg files, mp3 and CD playback work fine. Is there something that need to change in the way ogg is read and played? By the way, before it is asked, I have been using the same ogg file in all of the other applications during my troubleshooting. Banshee is the only one that I can hear the popping with. -- Chad From thijsvermeir@telenet.be Fri Apr 7 09:04:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D2453B0394 for ; Fri, 7 Apr 2006 09:04:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25898-03 for ; Fri, 7 Apr 2006 09:04:53 -0400 (EDT) Received: from hoefnix.telenet-ops.be (hoefnix.telenet-ops.be [195.130.132.54]) by menubar.gnome.org (Postfix) with ESMTP id 978D83B3292 for ; Fri, 7 Apr 2006 09:04:52 -0400 (EDT) Received: from nocme1bl6.telenet-ops.be (nocme1bl6.telenet-ops.be [195.130.136.37]) by hoefnix.telenet-ops.be (Postfix) with ESMTP id 04F1CA03AA for ; Fri, 7 Apr 2006 15:04:16 +0200 (CEST) Received: from nocme1bl6.telenet-ops.be (localhost.localdomain [127.0.0.1]) by nocme1bl6.telenet-ops.be (Postfix) with ESMTP id E2E6B388052 for ; Fri, 7 Apr 2006 15:04:15 +0200 (CEST) From: "thijsvermeir@pandora.be" To: banshee-list@gnome.org Importance: Normal Sensitivity: Normal Message-ID: X-Originating-IP: [81.164.14.70] X-Forwarded-For: [(null)] Date: Fri, 07 Apr 2006 13:04:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Error while compiling cvs (Mono.Unix) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 13:04:56 -0000 Hello, I get this error when I try to compile Banshee from source. --- ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous reference between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' --- I'm using mono 1.1.13 from the Ubuntu Breezy archive. How can I fix this? Thanks, Thijs From wpoland@gmail.com Fri Apr 7 11:18:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 320383B0474 for ; Fri, 7 Apr 2006 11:18:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03468-09 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by menubar.gnome.org (Postfix) with ESMTP id 7F2353B0473 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id t4so319004wxc for ; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cDSyTYYBau30SPmJl9fe839LULir1wczTl6RLadjRdvB6OhWBVYYcw5zHO7DCinc9aStQ6fiiWmkZcT1EB6yWs3JCPPHqML7siM5jVzbf7hcX2sog0j349m712sJWA4Q67RyVBn8xMWDqjz/lv/xTBYj3SSUY6fXI0C0ddzWPdw= Received: by 10.70.27.6 with SMTP id a6mr2854231wxa; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 08:18:33 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 08:18:33 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.579 tagged_above=-999 required=2 tests=[AWL=0.021, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.579 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 15:18:37 -0000 On 4/7/06, Thijs Vermeir wrote: > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > Hey folks, > Hey, > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > Clock plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating > > efforts :) > > > > ... > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > plugin is more in > > the concept stage (I have more pencil sketches than actual > > code)...so I'm open to > > ideas :) > > Looks nice, > Need suggestions? ;-) > I like to see integrated support for shutdown/wakeup the PC. > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > This is great, I've been looking forward to a feature like this for a while. I've been using a bash script and banshee's command line options of "--play" and "--pause" to accomplish this lately. Nothing like waking to "Here Comes the Sun" every morning. ;) Best of luck. From josiah.ritchie@gmail.com Fri Apr 7 13:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E36A3B182C for ; Fri, 7 Apr 2006 13:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11539-08 for ; Fri, 7 Apr 2006 13:13:13 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 152B93B33C7 for ; Fri, 7 Apr 2006 13:13:10 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so484612nzf for ; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TcT2qzrO9xWB6tfR0qLlvGaVRe0u2NICrSvHIroIpNQR2YMMK39hAGFXEGTGXnXMoVcISIoouKwGh3x6hbMqJQ8N+SXuDE3+foAWcIkGkj6J9fjNvWIxnHsdPYhzS1VL4037Me9A9wiBl3SxoG4H7NHmkB5HTLi+8Z9I8paJiY4= Received: by 10.36.33.4 with SMTP id g4mr2134703nzg; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Fri, 7 Apr 2006 10:13:09 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 13:13:09 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.474 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.474 X-Spam-Level: Subject: [Banshee-List] How's the podcast plugin coming? X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:13:18 -0000 How is the podcast plugin coming? Mostly I'm asking to make sure I didn't miss an announcement. :-) JSR/ -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From mattisking@gmail.com Fri Apr 7 13:54:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 52F7E3B09E1 for ; Fri, 7 Apr 2006 13:54:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14464-01 for ; Fri, 7 Apr 2006 13:54:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id A62A13B0617 for ; Fri, 7 Apr 2006 13:54:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so514528pyu for ; Fri, 07 Apr 2006 10:54:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iw45thcdgy7nuLGDiN/kP02ylrQIIC2912Q3PU5Vu+mTMSoRhvgQ0ImDvhRL1tJcoRVQrqKisZ3SYbnma8OMhkOO5TmH2e3kb6fNrfl5PKbg1gRpXWkG1nz+PnA2lZaP9Necp8V/A14X9wBzfzrq9pnij/ihz9lfly+hJREcqPc= Received: by 10.35.60.15 with SMTP id n15mr2383799pyk; Fri, 07 Apr 2006 10:54:29 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Fri, 7 Apr 2006 10:54:29 -0700 (PDT) Message-ID: <39efb3860604071054l74153655lee7cbf726d87ff92@mail.gmail.com> Date: Fri, 7 Apr 2006 13:54:29 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27780_12765770.1144432469951" References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.098 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.098 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:54:34 -0000 ------=_Part_27780_12765770.1144432469951 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have. Matt Philmon On 4/7/06, Byron Poland wrote: > > On 4/7/06, Thijs Vermeir wrote: > > > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > > > Hey folks, > > Hey, > > > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > > Clock plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating > > > efforts :) > > > > > > ... > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > > plugin is more in > > > the concept stage (I have more pencil sketches than actual > > > code)...so I'm open to > > > ideas :) > > > > Looks nice, > > Need suggestions? ;-) > > I like to see integrated support for shutdown/wakeup the PC. > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > > > > > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > This is great, I've been looking forward to a feature like this for a > while. I've been using a bash script and banshee's command line > options of "--play" and "--pause" to accomplish this lately. Nothing > like waking to "Here Comes the Sun" every morning. ;) > > Best of luck. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_27780_12765770.1144432469951 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my = nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have.

Matt Philmon

On 4/7/= 06,=20 Byron Poland <wpoland@gmail.com> wrote:
On 4/7/06, Thijs Vermeir <thi= jsvermeir@telenet.be> wrote:
>
> On 7-apr-06, at 10:07, = Trick van Staveren wrote:
>
> > Hey folks,
> Hey,
>
> >
> > I've been starting to work on a new plugin f= or Banshee - an Alarm
> > Clock plugin.  Has
> >= ; anyone worked on this?  If so, LMK, so we're not duplicating> > efforts :)
> >
> > ...
> >
> > Anyone have any ot= her ideas/suggestions for me?  Like I said, this
> > plu= gin is more in
> > the concept stage (I have more pencil sketches = than actual
> > code)...so I'm open to
> > ideas :)
>
> = Looks nice,
> Need suggestions? ;-)
> I like to see integrated = support for shutdown/wakeup the PC.
>
> > Thanks all!
> >
> > Patrick
> >
> > (irc as trick)
= > >
> > --
> > Patrick "Trick" van Staver= en
> > Western Michigan University
> > AIM: goofyassmoose
> > Cell: 269.267.6008
> > http://www.trick.vanstaveren.us/
> >
> &= gt;
> >
> >
> > ________________________________= _______________
> > Banshee-list mailing list
> > Banshee-list@gnome.org
> > http://mail.gnome.org/mail= man/listinfo/banshee-list
> >


This is great, I've been looking forward to a = feature like this for a
while.  I've been using a bash script = and banshee's command line
options of "--play" and "--pau= se" to accomplish this lately.  Nothing
like waking to "Here Comes the Sun" every morning. ;)

= Best of luck.
_______________________________________________
Banshee= -list mailing list
Banshee-lis= t@gnome.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list
=
------=_Part_27780_12765770.1144432469951-- From silwenae@gmail.com Fri Apr 7 14:31:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 877493B33E5 for ; Fri, 7 Apr 2006 14:31:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17225-10 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 3297C3B07F0 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so500194nzf for ; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq009RPMtpj+5D6fTnxkonZJo+vN5cwzrNJRXp7MQeq6/0HIV1tpZGakDFbawhRhnLWCUaGMluPsaRRM7cYpmDs+WUn35pED6KntMeIeuQ/WRU8oYt9bQO25nNk3rh+OeKZgs6FvURYSUJKmaV8N3W2mGrPy/kZnvSX24Anyx/o= Received: by 10.36.247.73 with SMTP id u73mr1736898nzh; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Fri, 7 Apr 2006 11:31:39 -0700 (PDT) Message-ID: <4c4ad4df0604071131v3ea4823br1020552e5e6c4018@mail.gmail.com> Date: Fri, 7 Apr 2006 13:31:39 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Error while compiling cvs (Mono.Unix) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12908_3660691.1144434699567" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.236 tagged_above=-999 required=2 tests=[AWL=-0.133, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.236 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 18:31:42 -0000 ------=_Part_12908_3660691.1144434699567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to need an updated Mono (among other things) on Breezy if you don't want to update to Dapper. See the Ubuntu page on the wiki: http://www.banshee-project.org/Distributions/Ubuntu Paul On 4/7/06, thijsvermeir@pandora.be wrote: > > Hello, > > I get this error when I try to compile Banshee from source. > --- > ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referenc= e > between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' > --- > I'm using mono 1.1.13 from the Ubuntu Breezy archive. > > How can I fix this? > > Thanks, > Thijs > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_12908_3660691.1144434699567 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to = need an updated Mono (among other things) on Breezy if you don't want to up= date to Dapper.

See the Ubuntu page on the wiki:

http://www.banshee-project.org/Distributions/Ubuntu

Paul

=
On 4/7/06, <= a href=3D"mailto:thijsvermeir@pandora.be">thijsvermeir@pandora.be &= lt; thijsvermeir@telenet.be> = wrote:
Hell= o,

I get this error when I try to compile Banshee from source.
---<= br>./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referen= ce between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat'
---
I'm using= mono=20 1.1.13 from the Ubuntu Breezy archive.

How can I fix this?

Th= anks,
Thijs



_____________________________________________= __
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_12908_3660691.1144434699567-- From bertrand.lorentz@free.fr Fri Apr 7 15:47:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12AE93B0C23 for ; Fri, 7 Apr 2006 15:47:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22282-01 for ; Fri, 7 Apr 2006 15:46:55 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 1B32C3B088C for ; Fri, 7 Apr 2006 15:46:48 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 90E3C6D231 for ; Fri, 7 Apr 2006 21:46:46 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nZ0gXIa8jpype9b/iPe6" Date: Fri, 07 Apr 2006 21:46:44 +0200 Message-Id: <1144439204.517.58.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 19:47:02 -0000 --=-nZ0gXIa8jpype9b/iPe6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > Hey folks, >=20 > I've been starting to work on a new plugin for Banshee - an Alarm Clock p= lugin. Has > anyone worked on this? If so, LMK, so we're not duplicating efforts :) Hi, I've been working on something similar. I'm trying to replicate the features from the xmms-alarm plugin for XMMS and beep media player. I've got some working code, but it still needs some work. I'm still waking up with beep media player... > Features I'm working on: >=20 > Sleep timer: > * ability to set a timer that when it's up, will pause playback. Great = for when > you're loving your tunes but don't want to hear them ALL night. >=20 > Alarm timer: > * will start playback at the given time. > * "recur" option - if enabled, will set the timer again for the next day= at that same > time. > * volume setting - will change the volume to a certain level before play= ing. This way > you don't have to set it before you go to sleep. >=20 > Future ideas: > * sleep timer - make it so it fades out the song, or stops at the end of= the song > rather than just pausing in the middle of it. > * alarm timer - volume change will be gradual. will set the volume when= the alarm > first goes off, and will gradually increase it to another value over a sp= an of seconds > or minutes. All three values will be settable. >=20 > Anyone have any other ideas/suggestions for me? Like I said, this plugin= is more in > the concept stage (I have more pencil sketches than actual code)...so I'm= open to > ideas :) What is working in my code : - Start playback at a given time - Set the volume before playing What is implemented but doesn't work - Gradually change the volume while playing over a period of time. The volume just gets stuck at the first value. The configuration options need some UI love. For now it's just a bunch of SpinButtons. Things I'd like to have : - Set different alarm times for each day of the week. I don't want to be waken up at 7am on a Sunday morning because I left banshee running... The sleep timer is a good idea, and should be easy to do once the alarm stuff is done. I planned to put the code out when I have a working plugin, but I'd be happy to share the code now. I just need to find a place to host it. (Looking towards the banshee subversion repository. If the admin is reading this... ;) > Thanks all! >=20 > Patrick >=20 > (irc as trick) >=20 > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ >=20 --=20 Bertrand Lorentz --=-nZ0gXIa8jpype9b/iPe6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE +THmUT47WTYvpwVUSC5JFA0= =ZY2f -----END PGP SIGNATURE----- --=-nZ0gXIa8jpype9b/iPe6-- From pcolijn@gmail.com Fri Apr 7 18:02:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01ED33B0266 for ; Fri, 7 Apr 2006 18:02:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28937-09 for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.228]) by menubar.gnome.org (Postfix) with ESMTP id 32FFF3B106F for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so505799wra for ; Fri, 07 Apr 2006 15:02:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tvl3ZtWt8Y5PWoBRJimlhbzyxFyuk3bRwuc6gKA3kFySGlECzVCU5PhsuEYKiehhjIdiIyD59NT2j/Yz31OcknejPCyzV4yv60VeS+NRjBXBe1YQLZ/mJ33ag93XneFXnMJraiV4GI3jLnSYrx5pBHk2XaoFp82bwW41knCFO+c= Received: by 10.54.100.3 with SMTP id x3mr307724wrb; Fri, 07 Apr 2006 15:02:21 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Fri, 7 Apr 2006 15:02:21 -0700 (PDT) Message-ID: <7c35b00e0604071502r454ac03yed32876ee1cd2139@mail.gmail.com> Date: Fri, 7 Apr 2006 18:02:21 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.363 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.363 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:02:25 -0000 SGksCgpPbiA0LzcvMDYsIENoYWQgRmlsZXMgPGNwZmlsZXNAZ21haWwuY29tPiB3cm90ZToKPiBB ZnRlciByZWFkaW5nIHRoZSBhYm92ZSBJIHdvbmRlcmVkIGlmIGl0IGhhZCBhbnl0aGluZyB0byBk byB3aXRoIHRoZQo+IG1lZGlhIGZvcm1hdCwgYW5kIGl0IGRvZXMuIFRoZSBwb3BwaW5nIG9ubHkg aGFwcGVucyB3aGVuIHBsYXlpbmcgb2dnCj4gZmlsZXMsIG1wMyBhbmQgQ0QgcGxheWJhY2sgd29y ayBmaW5lLiBJcyB0aGVyZSBzb21ldGhpbmcgdGhhdCBuZWVkIHRvCj4gY2hhbmdlIGluIHRoZSB3 YXkgb2dnIGlzIHJlYWQgYW5kIHBsYXllZD8KCkkga25vdyAibWUgdG9vIiByZXBsaWVzIGFyZSBu b3QgdGhhdCB1c2VmdWwsIGJ1dCBJIGhhdmUgZXhwZXJpZW5jZSBhCnNpbWlsYXIgKGJ1dCBub3Qg ZXhhY3RseSB0aGUgc2FtZSkgcHJvYmxlbS4gWWVzdGVyZGF5IEkgY29waWVkIHNvbWUKb2dncyB0 byBteSBpcG9kIHVzaW5nIEJhbnNoZWUsIGFuZCB0aGV5IHNvdW5kIGFsbCBwb3BweSBvbiB0aGUg aXBvZC4KV2hhdCdzIGludGVyZXN0aW5nIGFib3V0IHRoYXQgaXMgdGhhdCBJIGFzc3VtZSB0aGUg dHJhbnNjb2RlciBoYXMKbm90aGluZyB0byBkbyB3aXRoIHRoZSBhdWRpbyBoYXJkd2FyZSBvciBB TFNBIGNvbmZpZ3VyYXRpb24sIHNvIHRob3NlCmNhbiBwcm9iYWJseSBiZSBydWxlZCBvdXQuCgpI YXZlIGZ1biwKClBldGVyCg== From wpoland@gmail.com Fri Apr 7 18:10:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB043B0A42 for ; Fri, 7 Apr 2006 18:10:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29555-07 for ; Fri, 7 Apr 2006 18:10:23 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by menubar.gnome.org (Postfix) with ESMTP id 58D233B05DC for ; Fri, 7 Apr 2006 18:10:22 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so461766wxd for ; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UfOyLWKYIUQunrMKQD3b53u5vEZ4RKnRDx2780mnViKqF+wHyRVNnICwoBfC6KnDNN+4avh0m6HKciY8saBpvU9sasE9viPP4mfEYoUnmkmKxz+0iSXQZnivY4T0nxLCWJ7Giq2WbUjc90QeFYhArZPuLM30Os8IjS2OvgwcKJU= Received: by 10.70.73.6 with SMTP id v6mr2321606wxa; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 15:10:20 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 15:10:20 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.587 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.587 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:10:26 -0000 On 4/7/06, Bertrand Lorentz wrote: > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > Hey folks, > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clock= plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > > > Features I'm working on: > > > > Sleep timer: > > * ability to set a timer that when it's up, will pause playback. Grea= t for when > > you're loving your tunes but don't want to hear them ALL night. > > > > Alarm timer: > > * will start playback at the given time. > > * "recur" option - if enabled, will set the timer again for the next d= ay at that same > > time. > > * volume setting - will change the volume to a certain level before pl= aying. This way > > you don't have to set it before you go to sleep. > > > > Future ideas: > > * sleep timer - make it so it fades out the song, or stops at the end = of the song > > rather than just pausing in the middle of it. > > * alarm timer - volume change will be gradual. will set the volume wh= en the alarm > > first goes off, and will gradually increase it to another value over a = span of seconds > > or minutes. All three values will be settable. > > > > Anyone have any other ideas/suggestions for me? Like I said, this plug= in is more in > > the concept stage (I have more pencil sketches than actual code)...so I= 'm open to > > ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > -- > Bertrand Lorentz > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE > +THmUT47WTYvpwVUSC5JFA0=3D > =3DZY2f > -----END PGP SIGNATURE----- > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > How about a UI element that gives you a countdown clock for either the sleep timer or the time until the alarm goes off? From bertrand.lorentz@free.fr Sat Apr 8 04:08:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22A743B0467 for ; Sat, 8 Apr 2006 04:08:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20914-10 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 7B7D03B0447 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 661C273184 for ; Sat, 8 Apr 2006 10:08:09 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FnO6LSDuTF7Rtiurrljp" Date: Sat, 08 Apr 2006 10:08:08 +0200 Message-Id: <1144483688.517.69.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 08:08:14 -0000 --=-FnO6LSDuTF7Rtiurrljp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 15:10 -0700, Byron Poland wrote: > On 4/7/06, Bertrand Lorentz wrote: > > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > > Hey folks, > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clo= ck plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating efforts = :) > > > > Hi, > > > > I've been working on something similar. I'm trying to replicate the > > features from the xmms-alarm plugin for XMMS and beep media player. > > I've got some working code, but it still needs some work. > > I'm still waking up with beep media player... > > > > > Features I'm working on: > > > > > > Sleep timer: > > > * ability to set a timer that when it's up, will pause playback. Gr= eat for when > > > you're loving your tunes but don't want to hear them ALL night. > > > > > > Alarm timer: > > > * will start playback at the given time. > > > * "recur" option - if enabled, will set the timer again for the next= day at that same > > > time. > > > * volume setting - will change the volume to a certain level before = playing. This way > > > you don't have to set it before you go to sleep. > > > > > > Future ideas: > > > * sleep timer - make it so it fades out the song, or stops at the en= d of the song > > > rather than just pausing in the middle of it. > > > * alarm timer - volume change will be gradual. will set the volume = when the alarm > > > first goes off, and will gradually increase it to another value over = a span of seconds > > > or minutes. All three values will be settable. > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this pl= ugin is more in > > > the concept stage (I have more pencil sketches than actual code)...so= I'm open to > > > ideas :) > > > > What is working in my code : > > - Start playback at a given time > > - Set the volume before playing > > > > What is implemented but doesn't work > > - Gradually change the volume while playing over a period of time. > > The volume just gets stuck at the first value. > > > > The configuration options need some UI love. For now it's just a bunch > > of SpinButtons. > > > > Things I'd like to have : > > - Set different alarm times for each day of the week. I don't want to b= e > > waken up at 7am on a Sunday morning because I left banshee running... > > > > The sleep timer is a good idea, and should be easy to do once the alarm > > stuff is done. > > > > I planned to put the code out when I have a working plugin, but I'd be > > happy to share the code now. > > I just need to find a place to host it. (Looking towards the banshee > > subversion repository. If the admin is reading this... ;) > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > -- > > Bertrand Lorentz > > >=20 > How about a UI element that gives you a countdown clock for either the > sleep timer or the time until the alarm goes off? Good idea, I think knowing that I only have 5 hours of sleep left might help me to go to bed earlier... I think it would be better to have that UI element integrated in the banshee main window. I wonder how we can do that from a plugin... Has any plugin already done something similiar ? --=20 Bertrand Lorentz --=-FnO6LSDuTF7Rtiurrljp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEN29ob1pl4loRymARAtiCAJ45r7mnpYCxpkEzDi+ENe+moYUogwCcC4Ad wQ3UPPt1GLcwAxVNENdSiCU= =hBqc -----END PGP SIGNATURE----- --=-FnO6LSDuTF7Rtiurrljp-- From trick@vanstaveren.us Sat Apr 8 05:26:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA7E63B03D6 for ; Sat, 8 Apr 2006 05:26:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25286-08 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id BCD3C3B02A4 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FS9iM-0006r1-Br; Sat, 08 Apr 2006 02:26:43 -0700 Received: from d107097.dynamic.cmich.edu (d107097.dynamic.cmich.edu [141.209.107.97]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 08 Apr 2006 05:26:40 -0400 Message-ID: <20060408052640.s91dhph69ns4skgo@www.vanstaveren.us> Date: Sat, 08 Apr 2006 05:26:40 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Bertrand Lorentz Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.209.107.97 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 09:26:47 -0000 Bertrand, Glad to hear you've been working on this as well :) Could you maybe post the code here on banshee-list? It can't be too big...just post the main .cs file that you're using. I'll focus on getting the sleep timer to work, and if you want to post your code, we can wrap them together into a single plugin. I left Aaron a message and he can probably get us SVN access here soon. As for adding a UI element, I'm sure it's possible thru a plugin...look at what minimode has done thru a plugin - totally reshaped the UI. We'll keep this one in mind :) Great work! From the sound of it, you've already got the basics of a plugin ready...good work! If you're ever around irc, bug me (trick). Thanks for the suggestions everyone...i'm tired of my sleep timer'd bash scripts, I'm sure we'll have this plugin put together in no time :) If anyone has any more feature requests for this plugin, do post them! Cheers Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from bertrand.lorentz@free.fr --------- Date: Fri, 07 Apr 2006 21:46:44 +0200 From: Bertrand Lorentz Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock To: banshee-list@gnome.org > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: >> Hey folks, >> >> I've been starting to work on a new plugin for Banshee - an Alarm >> Clock plugin. Has >> anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > >> Features I'm working on: >> >> Sleep timer: >> * ability to set a timer that when it's up, will pause playback. >> Great for when >> you're loving your tunes but don't want to hear them ALL night. >> >> Alarm timer: >> * will start playback at the given time. >> * "recur" option - if enabled, will set the timer again for the >> next day at that same >> time. >> * volume setting - will change the volume to a certain level before >> playing. This way >> you don't have to set it before you go to sleep. >> >> Future ideas: >> * sleep timer - make it so it fades out the song, or stops at the >> end of the song >> rather than just pausing in the middle of it. >> * alarm timer - volume change will be gradual. will set the volume >> when the alarm >> first goes off, and will gradually increase it to another value over >> a span of seconds >> or minutes. All three values will be settable. >> >> Anyone have any other ideas/suggestions for me? Like I said, this >> plugin is more in >> the concept stage (I have more pencil sketches than actual >> code)...so I'm open to >> ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > >> Thanks all! >> >> Patrick >> >> (irc as trick) >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> > > > -- > Bertrand Lorentz > ----- End message from bertrand.lorentz@free.fr ----- From abockover@novell.com Sat Apr 8 23:59:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C165B3B0871 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10247-09 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from abock.org (aaronbock.net [67.18.92.43]) by menubar.gnome.org (Postfix) with ESMTP id 035F43B0879 for ; Sat, 8 Apr 2006 23:59:38 -0400 (EDT) Received: from [192.168.1.129] aaron [66.30.115.152] by abock.org with NetMail SMTP Agent $Revision: 1.7 $; Sat, 08 Apr 2006 23:59:38 -0400 Subject: Re: [Banshee-List] How's the podcast plugin coming? From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 07 Apr 2006 21:43:00 -0400 Message-Id: <1144460581.4437.20.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.384 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.384 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 03:59:39 -0000 I have been trying to get hold of Mike since the deadline he set for this past Monday. No announcements missed, and you're not alone in wondering what's going on ;) Cheers, Aaron On Fri, 2006-04-07 at 13:13 -0400, Josiah Ritchie wrote: > How is the podcast plugin coming? Mostly I'm asking to make sure I > didn't miss an announcement. :-) > > JSR/ > > -- > Our Mission > Technology and Hospitality for God's Workmen > http://missions.ritchietribe.net > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Sun Apr 9 07:50:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 869673B1C6C for ; Sun, 9 Apr 2006 07:50:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12857-10 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 79AAD3B1CA0 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so701841wra for ; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=GiQth52y+BSxy0cAWd35+7LObJofI2VpYKOnQq7/5rwCMO3cspbct93mnmMMM4HeTBiw+UJrskLN5fPUdmtaDeEXD/Z7BS3FUDrXKrCo7Odt6CuTU8dbE4FdQWIqI7OvbFWl01z3e4c7Uah2TMYjcUj5m4025kCbUrY3mQQch5k= Received: by 10.54.67.11 with SMTP id p11mr2420146wra; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 04:50:17 -0700 (PDT) Message-ID: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Date: Sun, 9 Apr 2006 12:50:17 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_476_30259549.1144583417871" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] [Patch] DAP UI Initialisation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 11:50:21 -0000 ------=_Part_476_30259549.1144583417871 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch fixes the issue with starting banshee with a mass storage dap plugged in. Rather than loading the track database during Initialisation of the dap class it is now delayed until the UI has been initialised, allowing the reading of the database to use the UI. Cheers, James. ------=_Part_476_30259549.1144583417871 Content-Type: plain/text; name=dap-ui-init.diff Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eltb0vif Content-Disposition: attachment; filename="dap-ui-init.diff" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.14 diff -u -r1.14 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 10 Mar 2006 17:25:12 -0000 1.14 +++ src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 11:34:18 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.12 diff -u -r1.12 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 13 Feb 2006 22:18:10 -0000 1.12 +++ src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 11:34:18 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.5 diff -u -r1.5 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Mar 2006 07:52:42 -0000 1.5 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 11:34:19 -0000 @@ -95,8 +95,6 @@ base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; @@ -110,7 +108,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 9 Apr 2006 11:34:19 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); ------=_Part_476_30259549.1144583417871-- From ruben@Lambda1.be Sun Apr 9 08:56:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4639F3B1D53 for ; Sun, 9 Apr 2006 08:56:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17300-10 for ; Sun, 9 Apr 2006 08:56:19 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 04FD33B1D3C for ; Sun, 9 Apr 2006 08:56:18 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k39CuGc07339 for ; Sun, 9 Apr 2006 14:56:16 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id E77EE4608DA; Sun, 9 Apr 2006 14:56:15 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 14:56:15 +0200 Message-Id: <1144587375.9734.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 12:56:26 -0000 On Sun, 2006-04-09 at 12:50 +0100, James Stembridge wrote: > Hi, > > Attached patch fixes the issue with starting banshee with a mass > storage dap plugged in. > > Rather than loading the track database during Initialisation of the > dap class it is now delayed until the UI has been initialised, > allowing the reading of the database to use the UI. Haven't tested it, but patch looks good at first sight. Don't forget to post it to the bugzilla, else it might get lost in the process. Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Sun Apr 9 09:01:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4C5F3B1D56 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17740-07 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.238]) by menubar.gnome.org (Postfix) with ESMTP id BC3863B1D53 for ; Sun, 9 Apr 2006 09:01:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so706599wra for ; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JqAtr2QRhcDuj5tSXTYg+XkTGr3BqO0PY9dowRSSsZDbG49B+loWQTfIp27FNE2WqMGyEYhhtIFf5Pv0itAehAD9pwv3NgvtOnIATFumbmd/b6CH8yTy0TrXadQjZaBsIS13XVdmZ07/rsZjVeTc7dFqRCUzB6Q+0HNn49/qobE= Received: by 10.54.140.6 with SMTP id n6mr2386636wrd; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 06:01:32 -0700 (PDT) Message-ID: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Date: Sun, 9 Apr 2006 14:01:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation In-Reply-To: <1144587375.9734.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:01:34 -0000 On 4/9/06, Ruben Vermeersch wrote: > Haven't tested it, but patch looks good at first sight. Don't forget to > post it to the bugzilla, else it might get lost in the process. Sure will do. What's the preference for posting patches? Mailing list, bugzilla or both? James. From ruben@Lambda1.be Sun Apr 9 09:17:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1A543B1D5F for ; Sun, 9 Apr 2006 09:17:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18512-07 for ; Sun, 9 Apr 2006 09:17:03 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id EAA603B1D68 for ; Sun, 9 Apr 2006 09:17:02 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k39DH0A32760 for ; Sun, 9 Apr 2006 15:17:01 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 681584608DA; Sun, 9 Apr 2006 15:16:58 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 15:16:58 +0200 Message-Id: <1144588618.11205.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.591 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:17:05 -0000 On Sun, 2006-04-09 at 14:01 +0100, James Stembridge wrote: > On 4/9/06, Ruben Vermeersch wrote: > > Haven't tested it, but patch looks good at first sight. Don't forget to > > post it to the bugzilla, else it might get lost in the process. > > Sure will do. What's the preference for posting patches? Mailing list, > bugzilla or both? There's no strict rules on that, but I'd like to give the advice of posting every patch to bugzilla, they can't get lost there. If your patch needs review / you'd like to get feedback, post them to the list too. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From trick@vanstaveren.us Mon Apr 10 05:29:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888E73B07B1 for ; Mon, 10 Apr 2006 05:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13794-04 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 2EBA53B09A6 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FSsiG-0002jh-0z for banshee-list@gnome.org; Mon, 10 Apr 2006 02:29:36 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Mon, 10 Apr 2006 05:29:35 -0400 Message-ID: <20060410052935.ugeratbs2mv4wosg@www.vanstaveren.us> Date: Mon, 10 Apr 2006 05:29:35 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.554 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_SV=0.077] X-Spam-Score: -2.554 X-Spam-Level: Subject: [Banshee-List] Alarm Plugin is in SVN X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 09:29:40 -0000 Howdy folks, I took Bertrand's working code for the alarm timer, and combined it with my sleep timer code and some scraps that I had written, and put it together in a single plugin. It's available on the banshee svn now...just run: svn co svn://svn.banshee-project.org/trunk/banshee-alarm-plugin. Please read the TODO and BUGS files - this plugin is far from complete, but it's a start :) Feel free to send suggestions for the TODO file ;) Please note - if you were using Bertrand's plugin previously, make sure to delete banshee-alarm.dll from your plugins directory. The new plugin renames the dll and I don't want you to find plugin loading failures b/c of duplicate class names... Please also note - if you have somewhere to be in the morning and you rely on this plugin to wake you up, and it fails to do so - don't blame us, just remember it's beta :) Many thanks to Bertrand for his original code! (Bertrand - if you want SVN access to make commits, all you have to do is ask Aaron :)) Cheers, Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From jstembridge@gmail.com Mon Apr 10 15:59:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2001A3B105D for ; Mon, 10 Apr 2006 15:59:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26219-07 for ; Mon, 10 Apr 2006 15:59:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 2FC9C3B11B4 for ; Mon, 10 Apr 2006 15:59:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so935140wra for ; Mon, 10 Apr 2006 12:59:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=s0DNfst2vdk+d7Z3d0Ek/C1x33uxQNOyGpIHMtDfgb+fh/4AEPH8Wxtw0phP/YM/aUW/R//V804HBKTiu7pD2mchoDv19u3bfSgkJAU9+jegCL7laCXJVSQ8VN6gJ7v0JbFfoX5no4Eul6pe1ESxql59OQlTRSMhK3XxnyNaxvE= Received: by 10.54.107.17 with SMTP id f17mr4274692wrc; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Message-ID: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> Date: Mon, 10 Apr 2006 20:59:29 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8480_21443799.1144699169761" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Mass storage status X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 19:59:41 -0000 ------=_Part_8480_21443799.1144699169761 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Just a heads up to anyone who's interested in mass storage dap support. Current cvs along with the following patches: http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 Is working very well for me here with a W800 walkman phone like I have here (fdi file is attached). If anyone else would like to give it a try I'd be interested to here how they got on. Cheers, James. ------=_Part_8480_21443799.1144699169761 Content-Type: application/octet-stream; name=10-sony-erricsson.fdi Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elv89uzs Content-Disposition: attachment; filename="10-sony-erricsson.fdi" portable_audio_player portable_audio_player generic storage MP3/%Artist/%Album/%Track MP3/ audio/mpeg audio/aac ------=_Part_8480_21443799.1144699169761-- From jstembridge@gmail.com Mon Apr 10 16:06:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1CE83B12A0 for ; Mon, 10 Apr 2006 16:06:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26899-07 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id ABA103B1291 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so936592wra for ; Mon, 10 Apr 2006 13:06:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SK+q7qEi1sk9WYCnqRVzfRFoQMAZRG9WMdSa1JIsCEBoYMkTuPCdgbBLDNUDIGnnZMlqWU3Mdq16Yw9xJixI13Hv9fFYm2EuP5V8LkapVhDI3pxLsCifeVoRgH33OPpFOHJ6WwbuY2jToK+TMG14GZY3ZZ2bk5W5qd3TuumakSk= Received: by 10.54.93.7 with SMTP id q7mr161599wrb; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Message-ID: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Date: Mon, 10 Apr 2006 21:06:35 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Last.fm plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:06:39 -0000 Hi, Second heads up for the evening. I thought I'd have a look at writing a Last.fm plugin, as mentioned on thethe feature request page. Is anyone else out there in internet land working on this? Cheers, James. From ruben@Lambda1.be Mon Apr 10 16:10:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5520E3B2608 for ; Mon, 10 Apr 2006 16:10:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27126-06 for ; Mon, 10 Apr 2006 16:10:57 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 794A73B1DA3 for ; Mon, 10 Apr 2006 16:10:56 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3AKAsA27572 for ; Mon, 10 Apr 2006 22:10:54 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 0EF2A4601E7; Mon, 10 Apr 2006 22:10:51 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Apr 2006 22:10:51 +0200 Message-Id: <1144699851.20263.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:11:00 -0000 On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > Hi, > > Second heads up for the evening. I thought I'd have a look at writing > a Last.fm plugin, as mentioned on thethe feature request page. Is > anyone else out there in internet land working on this? You might want to look into combining this with the internet radio plugin Sven is (was?) writing. Sven, if you're reading this, drop us a line. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From ml@cybernotic.org Mon Apr 10 16:59:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F7A13B28A0 for ; Mon, 10 Apr 2006 16:59:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31164-03 for ; Mon, 10 Apr 2006 16:59:56 -0400 (EDT) Received: from dd1622.kasserver.com (dd1622.kasserver.com [81.209.148.229]) by menubar.gnome.org (Postfix) with ESMTP id EDD483B28A4 for ; Mon, 10 Apr 2006 16:59:55 -0400 (EDT) Received: from [10.14.1.100] (port-212-202-36-218.dynamic.qsc.de [212.202.36.218]) by dd1622.kasserver.com (Postfix) with ESMTP id 689A9B6C41 for ; Mon, 10 Apr 2006 22:59:54 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Alexander Bubeck To: banshee-list@gnome.org In-Reply-To: <1144699851.20263.0.camel@localhost.localdomain> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 10 Apr 2006 22:59:53 +0200 Message-Id: <1144702793.5424.24.camel@matari> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:59:59 -0000 Hi, I started writing a internet radio plugin and got some running code already. After getting the tagging stuff to work I will post my code on the list. I didn't know somebody else was working on this, so I'm also interested in Sven's status. The last.fm radio stuff would also be good in the banshee-recommendation-plugin, where last.fm is used anyway. Cheers, Alex Am Montag, den 10.04.2006, 22:10 +0200 schrieb Ruben Vermeersch: > On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > > Hi, > > > > Second heads up for the evening. I thought I'd have a look at writing > > a Last.fm plugin, as mentioned on thethe feature request page. Is > > anyone else out there in internet land working on this? > > You might want to look into combining this with the internet radio > plugin Sven is (was?) writing. > > Sven, if you're reading this, drop us a line. > > Kind regards, > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From jasl8r@gmail.com Mon Apr 10 17:48:22 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41CB13B133B for ; Mon, 10 Apr 2006 17:48:22 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01333-02 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.236]) by menubar.gnome.org (Postfix) with ESMTP id 398133B1350 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so955949wra for ; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ittiZJO2GwhxY6dVhSMXnJ/x11UZcdh8+44UoW/IVFpWoEFTn5J084VylKePOz0kEjIV7fYBo75cNz4Fe5EQgWA6fUZ85b6XfwmEgZ8trAOJDKCCKlx90owILMNoU7xQQRSl9lwa3T3TY4CPDsEIy1CBlkx7KUnc5f4/3NFAJyo= Received: by 10.54.118.8 with SMTP id q8mr3440634wrc; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Received: by 10.54.125.12 with HTTP; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Message-ID: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> Date: Mon, 10 Apr 2006 17:48:19 -0400 From: "Jeremy Slater" To: "Banshee List" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_948_5761833.1144705699537" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.866 tagged_above=-999 required=2 tests=[AWL=-0.062, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.866 X-Spam-Level: Subject: [Banshee-List] Daap Startup Crash X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 21:48:22 -0000 ------=_Part_948_5761833.1144705699537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an accessible daap share on my network. If I stop the avahi service, then banshee starts just fine. I am running 10.9 and I noticed that this was supposedly a fixed issue in 10.7. I was wondering if anyone else is having this problem or if there is an available patch. Jeremy ------=_Part_948_5761833.1144705699537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy ------=_Part_948_5761833.1144705699537-- From mattvermeulen@gmail.com Mon Apr 10 18:13:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 92C9E3B127C for ; Mon, 10 Apr 2006 18:13:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03202-01 for ; Mon, 10 Apr 2006 18:13:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id DBD8A3B12F4 for ; Mon, 10 Apr 2006 18:13:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1132104pyu for ; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g8KkZ+Yv2U8Yie3YRgyVertpcIzH/wVU9izkrhGj6IDHPwZqxljmIAdLTMG8UPmB8Wjk0iOseUYOKd8Hx6ZEwUlPP3AsAgTWluuo6UEbZe2UsV/HPxaZMBvwn3xjeL9N9Y3aU5dYD9pG93X8VJa4IO57ZL+WWO6WqI3zdoFGjX4= Received: by 10.35.22.17 with SMTP id z17mr1610827pyi; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Message-ID: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> Date: Tue, 11 Apr 2006 06:13:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13667_22538061.1144707223075" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.225 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.225 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 22:13:48 -0000 ------=_Part_13667_22538061.1144707223075 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Lexar Jumpdrive Sport, which is just a generic sort of usb memory stick, an= d I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi to detect the drive as a music device, which it does. However, as best as I ca= n tell, MassStorageDap fails when it gets to if (volume =3D=3D null) and dr= ops out. As of date, I have not been able to get the device showing up in banshee... On 4/11/06, James Stembridge wrote: > > Hi, > > Just a heads up to anyone who's interested in mass storage dap > support. Current cvs along with the following patches: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 > > Is working very well for me here with a W800 walkman phone like I have > here (fdi file is attached). If anyone else would like to give it a > try I'd be interested to here how they got on. > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_13667_22538061.1144707223075 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Le= xar Jumpdrive Sport, which is just a generic sort of usb memory stick, and = I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freed= esktop/10- usb-music-players.fdi to detect the drive as a music device, which it does.= However, as best as I can tell, MassStorageDap fails when it gets to =   if (volume =3D=3D null) and drops out. As of date, I have not been a= ble to get the device showing up in banshee...

On 4/11/06, James Stembridge <j= stembridge@gmail.com> wrote:
Hi,

Just a heads up to anyone who's interested in mass storage dapsupport. Current cvs along with the following patches:

http://bugzilla.gnome.o= rg/show_bug.cgi?id=3D337829
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337808
http://bugzilla.gnome.org/show_bu= g.cgi?id=3D337807
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337800

Is working very w= ell for me here with a W800 walkman phone like I have
here (fdi file is = attached). If anyone else would like to give it a
try I'd be interested to here how they got on.

Cheers,
James.=


_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_13667_22538061.1144707223075-- From kmf@fischer.org.za Tue Apr 11 05:45:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 024E93B2A6B for ; Tue, 11 Apr 2006 05:45:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04886-10 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from water.securenet-server.net (water.securenet-server.net [65.254.38.146]) by menubar.gnome.org (Postfix) with ESMTP id 315ED3B29F7 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from [196.25.70.97] (helo=[10.50.130.37]) by water.securenet-server.net with esmtp (Exim 4.52) id 1FTFRE-00018F-DQ for banshee-list@gnome.org; Tue, 11 Apr 2006 05:45:36 -0400 From: Karl Fischer To: banshee-list@gnome.org Content-Type: text/plain Date: Tue, 11 Apr 2006 11:44:53 +0200 Message-Id: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - water.securenet-server.net X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - fischer.org.za X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.181 tagged_above=-999 required=2 tests=[AWL=0.418, BAYES_00=-2.599] X-Spam-Score: -2.181 X-Spam-Level: Subject: [Banshee-List] Bounties Page X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, kmf@fischer.org.za List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 09:45:40 -0000 Hi There, Perhaps we should have a Bounties Page for Plugins and Features ? Karl -- ----------------------------------------- Karl Fischer Drone, Human and Gnome User I support 10x10. Email : kmf@fischer.org.za Jabber : kmf@jabber.org Personal Site : http://fischer.org.za ----------------------------------------- From pascalhos@gmail.com Tue Apr 11 06:53:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C7543B152E for ; Tue, 11 Apr 2006 06:53:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08835-05 for ; Tue, 11 Apr 2006 06:53:19 -0400 (EDT) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id DC9C93B151D for ; Tue, 11 Apr 2006 06:53:18 -0400 (EDT) Received: by uproxy.gmail.com with SMTP id y2so706681uge for ; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kxFIlGJhMicRvYReZBHwGSaC4Tjb3u2XW7WqlIog4S0SX3Jt5Ml4+7ZX6bx9kl9w1eGmM/z+W9iJ9IRwQEP1UF1IfHP1w/7jhQbh7hD6D3CubgjLPm2eMuE2l/XEJ5JNXaoODOTt33KcSFgvWJlOCIlPeJsR+oOIFNmB+FHqC00= Received: by 10.78.31.18 with SMTP id e18mr85801hue; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Received: by 10.78.27.3 with HTTP; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Message-ID: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> Date: Tue, 11 Apr 2006 12:53:11 +0200 From: "Pascal Hos" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3279_10417146.1144752791716" References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.907 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.907 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 10:53:20 -0000 ------=_Part_3279_10417146.1144752791716 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy, I'm experiencing the same problem running up-to-date ubuntu Dapper. This bu= g has been reported: http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 Pascal On 4/10/06, Jeremy Slater wrote: > > Hi, Banshee crashes for me whenever I start with daap enabled and have an > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is > having this problem or if there is an available patch. > > Jeremy > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_3279_10417146.1144752791716 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy,

I'm experiencing the same problem running up-to-date ubun= tu Dapper. This bug has been reported:

http://bugzilla.gnome.org/show_bug.cgi?id= =3D334174
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D334980

Pascal

On 4/10/06, Jer= emy Slater <jasl8r@gmail.com> wrote= :
Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy

_______________________________________________
Banshee= -list mailing list
Banshee-list@gnome.org http://mail= .gnome.org/mailman/listinfo/banshee-list


=
------=_Part_3279_10417146.1144752791716-- From sjoeboo@sjoeboo.com Tue Apr 11 08:33:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40B0D3B2AF7 for ; Tue, 11 Apr 2006 08:33:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14652-08 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 807533B2AD8 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: by skywalker.sjoeboo.com (Postfix, from userid 1000) id CD2A110DB3; Tue, 11 Apr 2006 08:32:57 -0400 (EDT) Date: Tue, 11 Apr 2006 08:32:57 -0400 To: banshee-list@gnome.org, kmf@fischer.org.za Subject: Re: [Banshee-List] Bounties Page Message-ID: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1144748693.8278.8.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i From: sjoeboo@sjoeboo.com (matt nicholson) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.432 tagged_above=-999 required=2 tests=[AWL=1.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.432 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 12:33:42 -0000 I second this. even if its not $$ based. I really liked what aaron did before with the mini-mode etc, to help people learn and get some new features in there. as soon as school calm down i would love to get involved like this. matt nicholson On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > Hi There, > > Perhaps we should have a Bounties Page > for Plugins and Features ? > > Karl > -- > ----------------------------------------- > Karl Fischer > Drone, Human and Gnome User > I support 10x10. > Email : kmf@fischer.org.za > Jabber : kmf@jabber.org > Personal Site : http://fischer.org.za > ----------------------------------------- > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From josiah.ritchie@gmail.com Tue Apr 11 09:32:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 99B413B20A2 for ; Tue, 11 Apr 2006 09:32:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18795-07 for ; Tue, 11 Apr 2006 09:32:56 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 0A76B3B1CE2 for ; Tue, 11 Apr 2006 09:32:55 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so1780985nzf for ; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rt142c9kVFVPmZiQJNR/Z08Qm9aKXzvPSznKGTfNBKDYUI9RaVO8i6t3JV7vcO4VxYq8JiD7pPsUh+2nVaoKM6/1nGol5gp3QgHuwBWFAZZIowSxu3QjIJkrKlQ3tIMK6CJviL78uT+qiCjrKIaO9Wg0Un7M53uAXbadhkmozLE= Received: by 10.37.18.76 with SMTP id v76mr5394264nzi; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Tue, 11 Apr 2006 06:32:54 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 09:32:54 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.111, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.489 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:32:57 -0000 I've also duplicated these problem on a Dapper machine. JSR/ On 4/11/06, Pascal Hos wrote: > Hi Jeremy, > > I'm experiencing the same problem running up-to-date ubuntu Dapper. This = bug > has been reported: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 > http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 > > Pascal > > > On 4/10/06, Jeremy Slater wrote: > > > > Hi, Banshee crashes for me whenever I start with daap enabled and have a= n > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is havi= ng > this problem or if there is an available patch. > > Jeremy > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From ruben@Lambda1.be Tue Apr 11 09:36:43 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB303B2B56 for ; Tue, 11 Apr 2006 09:36:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19069-02 for ; Tue, 11 Apr 2006 09:36:39 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 0967B3B1CE2 for ; Tue, 11 Apr 2006 09:36:38 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3BDaXA04673; Tue, 11 Apr 2006 15:36:33 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 697BA674002; Tue, 11 Apr 2006 15:36:32 +0200 (CEST) Subject: Re: [Banshee-List] Bounties Page From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> <20060411123257.GA1092@sjoeboo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Apr 2006 15:36:31 +0200 Message-Id: <1144762592.9646.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: oola 2020; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:36:43 -0000 For those interested: I'm working on getting a task list up, a place where can be tracked who does what and where new tasks can be found, implementation ideas etc. So, there's being worked on something, no worries :-). On Tue, 2006-04-11 at 08:32 -0400, matt nicholson wrote: > I second this. even if its not $$ based. I really liked what aaron did > before with the mini-mode etc, to help people learn and get some new > features in there. as soon as school calm down i would love to get > involved like this. > > matt nicholson > > On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > > Hi There, > > > > Perhaps we should have a Bounties Page > > for Plugins and Features ? > > > > Karl > > -- > > ----------------------------------------- > > Karl Fischer > > Drone, Human and Gnome User > > I support 10x10. > > Email : kmf@fischer.org.za > > Jabber : kmf@jabber.org > > Personal Site : http://fischer.org.za > > ----------------------------------------- > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Tue Apr 11 13:30:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A496D3B11D0 for ; Tue, 11 Apr 2006 13:30:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03796-03 for ; Tue, 11 Apr 2006 13:30:48 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.231]) by menubar.gnome.org (Postfix) with ESMTP id E31EE3B1379 for ; Tue, 11 Apr 2006 13:30:47 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i13so1011076wra for ; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l8YbnCfFIb8XQhC+8J8a8tSu7hhWQiRn9SVV3b4cow/NdkUcf+790wlSIEynNcYVTv8tz02dhSlCtmCX2axhRSmVw5odCvsRKMo5ARUwjziQxDf9FRwJbumvgBBUKbe/vccVV4K3JJhoiOMgyEdSf5qInxuNmoz4DTEadaftm/0= Received: by 10.54.72.15 with SMTP id u15mr583413wra; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Message-ID: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> Date: Tue, 11 Apr 2006 18:30:46 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 17:30:56 -0000 Hi Matt, On 4/10/06, Matthew Vermeulen wrote: > I modified > /usr/share/hal/fdi/information/10freedesktop/10- > usb-music-players.fdi to detect the drive as a music device, which it doe= s. > However, as best as I can tell, MassStorageDap fails when it gets to if > (volume =3D=3D null) and drops out. Could you send me the output of "hal-device"? Cheers, James. From lukas@pmad.net Tue Apr 11 16:04:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CEA33B16F3 for ; Tue, 11 Apr 2006 16:04:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13163-03 for ; Tue, 11 Apr 2006 16:04:02 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 15E943B157C for ; Tue, 11 Apr 2006 16:04:00 -0400 (EDT) Received: (qmail 23753 invoked by uid 503); 11 Apr 2006 20:04:07 -0000 Received: (QMFILT: 1.0); 11 Apr 2006 20:04:07 -0000 Received: from b7.ovh.net (HELO mail142.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 11 Apr 2006 20:04:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:04:00 -0000 Received: from mail142.ha.ovh.net (10.0.50.142) by mail142.ha.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from adsl-d43.87-197-139.telecom.sk (HELO ?192.168.0.23?) (87.197.139.43) by ns0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-IVjwuGPDymRq+8gE2l0b" Date: Tue, 11 Apr 2006 22:03:47 +0200 Message-Id: <1144785828.5055.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.139.43 (adsl-d43.87-197-139.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.705 tagged_above=-999 required=2 tests=[AWL=-0.664, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.705 X-Spam-Level: Subject: [Banshee-List] Child sources patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 20:04:14 -0000 --=-IVjwuGPDymRq+8gE2l0b Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, Attached is a patch which adds support for child sources in Banshee. This means that all your playlists should now appear as children of the library source. This is our first small step to full DAP playlist support. Please test the code thoroughly, but I wasn't able to trigger any issues. Have fun! Lukas --=-IVjwuGPDymRq+8gE2l0b Content-Disposition: attachment; filename=banshee-childsource-0.2.patch Content-Type: text/x-patch; name=banshee-childsource-0.2.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlayerInterface.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 11 Apr 2006 20:02:17 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 11 Apr 2006 20:02:26 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 11 Apr 2006 20:02:30 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 11 Apr 2006 20:02:30 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 11 Apr 2006 20:02:36 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 11 Apr 2006 20:02:36 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 11 Apr 2006 20:02:36 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 11 Apr 2006 20:02:42 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-IVjwuGPDymRq+8gE2l0b-- From mattvermeulen@gmail.com Tue Apr 11 17:57:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54AB3B2F29 for ; Tue, 11 Apr 2006 17:57:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20312-01 for ; Tue, 11 Apr 2006 17:57:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id A7A043B2F15 for ; Tue, 11 Apr 2006 17:57:31 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1424418pyu for ; Tue, 11 Apr 2006 14:57:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VR01K87bXnURQrrO+NiDPLkx/hcTfWNtLzBWQz6CPALF9vig5ZwSf0ixstGZ1lAXbJRS0exGILJofWuLDMJFRQgY/ijdJLpewgM9/0vVFuQsym7mw/6TCJxyfP1jLK2aYXGEokybqVTPcdDlaWNJJ5ZU0AgJ3c6wuQv3UlwSJog= Received: by 10.35.36.13 with SMTP id o13mr669714pyj; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Message-ID: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> Date: Wed, 12 Apr 2006 05:57:30 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15061_30686339.1144792650909" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.412 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 21:57:47 -0000 ------=_Part_15061_30686339.1144792650909 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James... Thanks for the reply... Below is the output of hal-device hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdrive: udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' volume.unmount.valid_options =3D { 'lazy' } (string list) volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'iocharset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list= ) org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject' } (string list) org.freedesktop.Hal.Device.Volume.method_signatures =3D { 'ssas', 'as', '= as' } (string list) org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'Unmount', 'Eject' } (string list) info.interfaces =3D { 'org.freedesktop.Hal.Device.Volume' } (string list) volume.ignore =3D false (bool) volume.policy.desired_mount_point =3D 'MATTHEW' (string) volume.policy.mount_filesystem =3D 'vfat' (string) volume.policy.should_mount =3D true (bool) volume.policy.mount_option.quiet =3D true (bool) volume.policy.mount_option.iocharset=3Dutf8 =3D true (bool) info.udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' (string= ) volume.partition.msdos_part_table_type =3D 4 (0x4) (int) info.product =3D 'MATTHEW' (string) volume.size =3D 259506176 (0xf77c000) (uint64) volume.num_blocks =3D 506848 (0x7bbe0) (int) volume.block_size =3D 512 (0x200) (int) volume.partition.number =3D 1 (0x1) (int) info.capabilities =3D { 'volume', 'block' } (string list) info.category =3D 'volume' (string) volume.is_partition =3D true (bool) volume.is_disc =3D false (bool) volume.is_mounted =3D true (bool) volume.mount_point =3D '/media/MATTHEW' (string) volume.label =3D 'MATTHEW' (string) volume.uuid =3D '' (string) volume.fsversion =3D 'FAT16' (string) volume.fsusage =3D 'filesystem' (string) volume.fstype =3D 'vfat' (string) storage.model =3D '' (string) block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) block.is_volume =3D true (bool) block.minor =3D 1 (0x1) (int) block.major =3D 8 (0x8) (int) block.device =3D '/dev/sda1' (string) linux.hotplug_type =3D 3 (0x3) (int) info.parent =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) linux.sysfs_path_device =3D '/sys/block/sda/sda1' (string) linux.sysfs_path =3D '/sys/block/sda/sda1' (string) Thanks a lot Matt On 4/12/06, James Stembridge wrote: > > Hi Matt, > > On 4/10/06, Matthew Vermeulen wrote: > > I modified > > /usr/share/hal/fdi/information/10freedesktop/10- > > usb-music-players.fdi to detect the drive as a music device, which it > does. > > However, as best as I can tell, MassStorageDap fails when it gets to > if > > (volume =3D=3D null) and drops out. > > Could you send me the output of "hal-device"? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_15061_30686339.1144792650909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James...

Thanks for the reply... Below is the output of hal-devic= e hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdri= ve:

udi =3D '/org/freedesktop/Hal/= devices/volume_label_MATTHEW'
  volume.unmount.valid_options =3D { 'lazy' } (string list)
&nb= sp; volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'n= odiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'ioch= arset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-sy= stem-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-ejec= t' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signa= tures =3D { 'ssas', 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'U= nmount', 'Eject' } (string list)
  info.interfaces =3D { 'org.freed= esktop.Hal.Device.Volume' } (string list)
  volume.ignore =3D false=   (bool)
  volume.policy.desired_mount_point =3D 'MATTHEW'  (string)
  volume.policy.mount_filesystem =3D = 'vfat'  (string)
  volume.policy.should_mount =3D true  (= bool)
  volume.policy.mount_option.quiet =3D true  (bool)
&= nbsp; volume.policy.mount_option.iocharset=3Dutf8 =3D true  (bool)
  info.udi =3D '/org/freedesktop/Hal/devices= /volume_label_MATTHEW'  (string)
  volume.partition.msdos_part= _table_type =3D 4  (0x4)  (int)
  info.product =3D 'MATTH= EW'  (string)
  volume.size =3D 259506176  (0xf77c000)&nb= sp; (uint64)
  volume.num_blocks =3D 506848  (0x7bbe0)  (int)
&nbs= p; volume.block_size =3D 512  (0x200)  (int)
  volume.par= tition.number =3D 1  (0x1)  (int)
  info.capabilities =3D= { 'volume', 'block' } (string list)
  info.category =3D 'volume'  (string)
  volume.is_partition =3D true  (= bool)
  volume.is_disc =3D false  (bool)
  volume.is_m= ounted =3D true  (bool)
  volume.mount_point =3D '/media/MATTH= EW'  (string)
  volume.label =3D 'MATTHEW'  (string)
  volume.uuid =3D ''  (string)
  volume.fsversion =3D= 'FAT16'  (string)
  volume.fsusage =3D 'filesystem'  (st= ring)
  volume.fstype =3D 'vfat'  (string)
  storage.m= odel =3D ''  (string)
  block.storage_device =3D '/org/freedes= ktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702165336021204'=   (string)
  block.is_volume =3D true  (bool)
  block.minor =3D = 1  (0x1)  (int)
  block.major =3D 8  (0x8)  (in= t)
  block.device =3D '/dev/sda1'  (string)
  linux.ho= tplug_type =3D 3  (0x3)  (int)
  info.parent =3D '/org/fr= eedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E970216533602= 1204'  (string)
  linux.sysfs_path_device =3D '/sys/block/sda/sda1'  (string)=
  linux.sysfs_path =3D '/sys/block/sda/sda1'  (string)
Thanks a lot

Matt

On = 4/12/06, James Stembridge <jstembrid= ge@gmail.com> wrote:
Hi Matt,

On 4/10/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> I modified=
> /usr/share/hal/fdi/information/10freedesktop/10-
> usb-music= -players.fdi to detect the drive as a music device, which it does.
> However, as = best as I can tell, MassStorageDap fails when it gets to   if
= > (volume =3D=3D null) and drops out.

Could you send me the outpu= t of "hal-device"?

Cheers,
James.
______________________________________________= _
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_15061_30686339.1144792650909-- From jstembridge@gmail.com Wed Apr 12 06:06:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 104C93B0213 for ; Wed, 12 Apr 2006 06:06:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24581-02 for ; Wed, 12 Apr 2006 06:06:45 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id E2B9B3B0296 for ; Wed, 12 Apr 2006 06:06:42 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1126777wri for ; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e3ur1RGd1Sp4hQglWV7vzQjPDyupukbQppYPjpE/RXgiGHvH8LcIhZCAOOT+/SesuWaACWQTryBmOvm4utytcGz/w9tQ6aQfpLa8pihGzRZdSnUTXM5GbL+jhcgrEhqeX6iPyuuyJYEE9/5ntKoZLVM7NscWpwVz26/OckxLprY= Received: by 10.54.127.4 with SMTP id z4mr3057212wrc; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Message-ID: <18bc366d0604120306x65e49490y9a199c653b778089@mail.gmail.com> Date: Wed, 12 Apr 2006 11:06:42 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 10:06:52 -0000 Hi Matthew, On 4/11/06, Matthew Vermeulen wrote: > Thanks for the reply... Below is the output of hal-device hal-device > /org/freedesktop/Hal/devices/volume_label_MATTHEW , my > Jumpdrive: ... Could you send me the complete output (off-list if necessary), there should be several entries for the device and I can't see where you've added the portable audio player entries. Cheers, James. From jstembridge@gmail.com Wed Apr 12 09:25:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8943B3B01DE for ; Wed, 12 Apr 2006 09:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03287-05 for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 235113B010B for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1158581wri for ; Wed, 12 Apr 2006 06:25:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XmmxOQn1meWr/qjgsGauJ2zH4ml9fvo/asp04NJvH3WDjPt/qIdgegpfXUv9m02N8sUKuOf2N/YQXP869N+BufIMU9OCklnXSsyQ8RQQyJS7RaAL1vmbJO5KKT4y9uPz4Dn4mGklGwj6oulUCaDpOmRV+IcVdASPxdAvSa5ISD0= Received: by 10.54.144.17 with SMTP id r17mr4731297wrd; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Message-ID: <18bc366d0604120625u4e185342v459fd41f6408a329@mail.gmail.com> Date: Wed, 12 Apr 2006 14:25:55 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Last.fm plugin In-Reply-To: <1144702793.5424.24.camel@matari> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> <1144702793.5424.24.camel@matari> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 13:25:57 -0000 Hi Alex, On 4/10/06, Alexander Bubeck wrote: > I started writing a internet radio plugin and got some running code > already. After getting the tagging stuff to work I will post my code on > the list. I didn't know somebody else was working on this, so I'm also > interested in Sven's status. I appreciate it's not finished but I'd be interested to see your code anyway, there are some issues, particularly on the interface side of things, that I'd like to see your take on. Cheers, James. From gabriel.burt@gmail.com Wed Apr 12 13:27:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 093373B056C for ; Wed, 12 Apr 2006 13:27:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19072-02 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 4B31A3B0446 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1650379pyu for ; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XlDQEtKFQfZEVxerDwX5wsNV8W/w4LckM9PTtVArA1Q9ysl4A6TwDrTrXW71WoXbFxrHf8Vjv0+OMu/kReYihmudkDDRc46CTdF077Oq4q7gvfiUwmANXZU2xaDehW6/wxT3sCGLtELcKPXidwpWlnVJx9aCwgaoc5mQKdg1eSY= Received: by 10.35.121.2 with SMTP id y2mr263685pym; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Message-ID: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Date: Wed, 12 Apr 2006 12:27:32 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.074 tagged_above=-999 required=2 tests=[AWL=0.302, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.074 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:27:35 -0000 T24gNC8xMC8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBKdXN0IGEgaGVhZHMgdXAgdG8gYW55b25lIHdobydzIGludGVyZXN0ZWQgaW4gbWFzcyBz dG9yYWdlIGRhcAo+IHN1cHBvcnQuIEN1cnJlbnQgY3ZzIGFsb25nIHdpdGggdGhlIGZvbGxvd2lu ZyBwYXRjaGVzOgo+Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9 MzM3ODI5Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA4 Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA3Cj4gaHR0 cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODAwCj4KPiBJcyB3b3Jr aW5nIHZlcnkgd2VsbCBmb3IgbWUgaGVyZSB3aXRoIGEgVzgwMCB3YWxrbWFuIHBob25lIGxpa2Ug SSBoYXZlCj4gaGVyZSAoZmRpIGZpbGUgaXMgYXR0YWNoZWQpLiBJZiBhbnlvbmUgZWxzZSB3b3Vs ZCBsaWtlIHRvIGdpdmUgaXQgYQo+IHRyeSBJJ2QgYmUgaW50ZXJlc3RlZCB0byBoZXJlIGhvdyB0 aGV5IGdvdCBvbi4KCkhpIEphbWVzLAoKVGhhbmtzIGZvciBhbGwgdGhlIHBhdGNoZXMsIHRoZXkg bG9vayBncmVhdC4gIEkgaGF2ZSBhIGZhaXJseSBsYXJnZQpwYXRjaCB0aGF0IHJlcXVpcmVzIHNv bWUgYmFuc2hlZSBjb3JlIGNoYW5nZXMgc28gQWFyb24ncyBob2xkaW5nIG9mZgpvbiBpdC4gIEds YWQgdG8ga25vdyB0aGUgY29kZSBpdCBiZWluZyB1c2VkLiAgSSdsbCB0cnkgdG8gcmVjb25jaWxl CnlvdXIgcGF0Y2hlcyBhbmQgbWluZSBhbmQgZ2V0IHRoZW0gaW4gc29vbi4KCkdhYnJpZWwK From ruben@Lambda1.be Wed Apr 12 13:48:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1DD63B034C for ; Wed, 12 Apr 2006 13:48:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20051-08 for ; Wed, 12 Apr 2006 13:48:43 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 752DB3B0528 for ; Wed, 12 Apr 2006 13:48:42 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k3CHmdc29742 for ; Wed, 12 Apr 2006 19:48:39 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 79029460327; Wed, 12 Apr 2006 19:48:39 +0200 (CEST) Subject: Re: [Banshee-List] Mass storage status From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Apr 2006 19:48:38 +0200 Message-Id: <1144864119.19810.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:48:45 -0000 On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > On 4/10/06, James Stembridge wrote: > > Just a heads up to anyone who's interested in mass storage dap > > support. Current cvs along with the following patches: > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > Is working very well for me here with a W800 walkman phone like I have > > here (fdi file is attached). If anyone else would like to give it a > > try I'd be interested to here how they got on. > > Hi James, > > Thanks for all the patches, they look great. I have a fairly large > patch that requires some banshee core changes so Aaron's holding off > on it. Glad to know the code it being used. I'll try to reconcile > your patches and mine and get them in soon. If I might be curious for a second: which patch? :-) Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From abockover@novell.com Wed Apr 12 14:05:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57E4D3B056C for ; Wed, 12 Apr 2006 14:05:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20984-07 for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 3E3FB3B051E for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: (qmail 5748 invoked from network); 12 Apr 2006 18:05:54 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 12 Apr 2006 18:05:54 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144864119.19810.0.camel@localhost.localdomain> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 12 Apr 2006 14:02:15 -0400 Message-Id: <1144864935.5048.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 18:05:56 -0000 Gabreil, Would you gather all the necessary patches for the Mass Storage DAP stuff, make sure they're A-OK, and generate a single patch against HEAD? The core stuff can go in now, pending review, since I have branched for stable. Cheers, Aaron On Wed, 2006-04-12 at 19:48 +0200, Ruben Vermeersch wrote: > On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > > On 4/10/06, James Stembridge wrote: > > > Just a heads up to anyone who's interested in mass storage dap > > > support. Current cvs along with the following patches: > > > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > > > Is working very well for me here with a W800 walkman phone like I have > > > here (fdi file is attached). If anyone else would like to give it a > > > try I'd be interested to here how they got on. > > > > Hi James, > > > > Thanks for all the patches, they look great. I have a fairly large > > patch that requires some banshee core changes so Aaron's holding off > > on it. Glad to know the code it being used. I'll try to reconcile > > your patches and mine and get them in soon. > > > If I might be curious for a second: which patch? :-) > > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gabriel.burt@gmail.com Wed Apr 12 17:59:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3814E3B0E31 for ; Wed, 12 Apr 2006 17:59:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01817-01 for ; Wed, 12 Apr 2006 17:59:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 537023B0EFB for ; Wed, 12 Apr 2006 17:59:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1707002pyu for ; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YCsW8yAO/2spjRUQxqwvRyuLr1rm74Jde6NEpl8xWljqYOIgRVim8RjaBbWeX64LuYd/SjeTvBSoRxp86J8ad4Z6iFFq8qoJRrxQB5wBgxpttHKilIumjP5OsW70hJYa+8XX2lZnJJDTI5kccsr/3UNTWYwccVSgFE4qSXdCAQc= Received: by 10.35.119.11 with SMTP id w11mr587857pym; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Message-ID: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Date: Wed, 12 Apr 2006 16:59:11 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <1144864935.5048.1.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.1 tagged_above=-999 required=2 tests=[AWL=0.276, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.1 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 21:59:16 -0000 T24gNC8xMi8wNiwgQWFyb24gQm9ja292ZXIgPGFib2Nrb3ZlckBub3ZlbGwuY29tPiB3cm90ZToK PiBXb3VsZCB5b3UgZ2F0aGVyIGFsbCB0aGUgbmVjZXNzYXJ5IHBhdGNoZXMgZm9yIHRoZSBNYXNz IFN0b3JhZ2UgREFQCj4gc3R1ZmYsIG1ha2Ugc3VyZSB0aGV5J3JlIEEtT0ssIGFuZCBnZW5lcmF0 ZSBhIHNpbmdsZSBwYXRjaCBhZ2FpbnN0IEhFQUQ/Cj4gVGhlIGNvcmUgc3R1ZmYgY2FuIGdvIGlu IG5vdywgcGVuZGluZyByZXZpZXcsIHNpbmNlIEkgaGF2ZSBicmFuY2hlZCBmb3IKPiBzdGFibGUu CgpDZXJ0YWlubHkuICBJIHdvbid0IGJlIGFibGUgdG8gZ2V0IHRvIGl0IHVudGlsIEZyaWRheSB0 aG91Z2ggYmVjYXVzZQpvZiBhIG1pc3VuZGVyc3RhbmRpbmcgd2l0aCBHcmV5aG91bmQgdGhhdCBy ZXN1bHRlZCBpbiBteSBwb3dlciBjb3JkCmZvciBteSBsYXB0b3AgYmVpbmcgYSBmZXcgaHVuZHJl ZCBtaWxlcyBhd2F5LgoKR2FicmllbAo= From jstembridge@gmail.com Thu Apr 13 08:43:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E9E93B163B for ; Thu, 13 Apr 2006 08:43:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10921-05 for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.239]) by menubar.gnome.org (Postfix) with ESMTP id 4B1D33B15AB for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so83079wra for ; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kEQ0bn1jx1ewzLZLtWurxOx2MkTYtwK1SdYK0wKwBoU45j8EQUbOWX9h4qkxU7qWFkM3ddW3SzYX5lMdCUBWF4PH8kAAkVbhaW5XN8E2GVNQvo7soI+M7ltPb6gBCJHoCWhBgybhoxSb7/iinFKIcw2gO92fRsAmOz76ELFG0W8= Received: by 10.54.152.15 with SMTP id z15mr400592wrd; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Message-ID: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Date: Thu, 13 Apr 2006 13:43:39 +0100 From: "James Stembridge" To: banshee-list@gnome.org In-Reply-To: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10521_10354496.1144932219681" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Mass Storage Support X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 12:43:41 -0000 ------=_Part_10521_10354496.1144932219681 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Matthew, On 4/12/06, Matthew Vermeulen wrote: > I've attached the complete output of hal-device.. Thanks, it looks roughly equivalent to what I have here. Bit of a long shot, but could you try the attached patch? Cheers, James. ------=_Part_10521_10354496.1144932219681 Content-Type: text/x-patch; name=mass_storage_device.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elz32c4q Content-Disposition: attachment; filename="mass_storage_device.patch" Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 12:38:55 -0000 @@ -79,7 +79,7 @@ return InitializeResult.WaitForPropertyChange; - string block_device = volume_device ["block_device"]; + string block_device = volume_device ["block.device"]; foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { if (vol.DevicePath == block_device) { this.volume = vol; ------=_Part_10521_10354496.1144932219681-- From mattvermeulen@gmail.com Thu Apr 13 09:11:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D73F3B352E for ; Thu, 13 Apr 2006 09:11:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-10 for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 454BD3B182A for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1854022pyu for ; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BbMQ484Nstn6cGrBJFxa6THi870R5d3gI871EFbSqHil+3i39MIAk/cB9Kx8sKJ1Zgt0RkXHmj9uQOvIqDkFTghNANFz+49L87l5/+ckNG2GO0qyBs71SneFnIIsLnsr1M5rKNOmA9t+yEJNBzWgJuLRhWZI7+sEqxNTxTNGDX0= Received: by 10.35.37.18 with SMTP id p18mr889569pyj; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Message-ID: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> Date: Thu, 13 Apr 2006 21:11:18 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22855_6803105.1144933878646" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.257 tagged_above=-999 required=2 tests=[AWL=-0.154, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.257 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:11:21 -0000 ------=_Part_22855_6803105.1144933878646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens... If I start banshee (latest cvs with only your patch applied) with my drive plugged in banshee segfaults... If I start without the drive, starts normally, and nothing changes when I plug in the drive Btw, thankyou so much for the help, even if i cant fix it Matthew On 4/13/06, James Stembridge wrote: > > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_22855_6803105.1144933878646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens...

If I start banshee (lat= est cvs with only your patch applied) with my drive plugged in banshee segf= aults...
If I start without the drive, starts normally, and nothing chan= ges when I plug in the drive

Btw, thankyou so much for the help, even if i cant fix it

Ma= tthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:
Hi Matthew,

On 4/12/06, Matthew Vermeulen = < mattvermeulen@gmail.com> = wrote:
> I've attached the complete output of hal-device..

Tha= nks, it looks roughly equivalent to what I have here.

Bit of a long = shot, but could you try the attached patch?

Cheers,
James.


______________________________________= _________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_22855_6803105.1144933878646-- From jstembridge@gmail.com Thu Apr 13 09:48:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 20B9B3B3588 for ; Thu, 13 Apr 2006 09:48:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14705-02 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 4ED463B3581 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so93816wra for ; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pbDL/M9pL9bVHUUJTrNhkfkudE4UKmIMulkdB4ibPA/tLYFUDhEoXEyyCCG0BNhhc2ZhIiR6es4zgEDKSPRVQSVevU46N2k5z+svyOc7xvufJ6+tWXuEHCoBYpnpnbTsviC93+EH//O1lSgNUYVQUaOKTw2GnGRZ8n6PvNOZSTg= Received: by 10.54.152.15 with SMTP id z15mr469213wrd; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Message-ID: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> Date: Thu, 13 Apr 2006 14:48:12 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:48:16 -0000 On 4/13/06, Matthew Vermeulen wrote: > If I start banshee (latest cvs with only your patch applied) with my driv= e > plugged in banshee segfaults... If you don't have the other patches applied then that's to be expected. > If I start without the drive, starts normally, and nothing changes when I > plug in the drive Hmmm, is the device auto mounting when inserted? James. From mattvermeulen@gmail.com Thu Apr 13 09:57:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BEB83B141D for ; Thu, 13 Apr 2006 09:57:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-06 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 63AC43B0644 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1865071pyu for ; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hZ6VAig5DY9HhrUYMUTjbdDUdwjyqvjrJ68aH7oNv8SH08fDAJJgSsxrB8HpAJ2L9AURKmV8VLjhxyLkn2//rQ7/2HNYNPFNjFOb93dY08iCBni8PdGsjzezvXX12oP5ifrSYvlU8u0fnnjxIDzPDeIAGjtiFoCfZ4kpQvcupYs= Received: by 10.35.81.10 with SMTP id i10mr51526pyl; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Message-ID: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> Date: Thu, 13 Apr 2006 21:57:49 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23721_2581288.1144936669427" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.206 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.206 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:57:52 -0000 ------=_Part_23721_2581288.1144936669427 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > If I start banshee (latest cvs with only your patch applied) with my > drive > > plugged in banshee segfaults... > > If you don't have the other patches applied then that's to be expected. Thanks... I knew that, but it at least shows that some acknowledgement is made of the device's existence... > If I start without the drive, starts normally, and nothing changes when I > > plug in the drive > > Hmmm, is the device auto mounting when inserted? Yes, as it always had. The device functions perfectly, it just isn't displayed by banshee... James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > Thanks a lot Matthew -- matt ------=_Part_23721_2581288.1144936669427 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
=
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> If I start banshee (latest= cvs with only your patch applied) with my drive
> plugged in banshee= segfaults...

If you don't have the other patches applied then that's to be expec= ted.

Thanks... I knew that, but it at least shows that= some acknowledgement is made of the device's existence...

> If I start w= ithout the drive, starts normally, and nothing changes when I
> plug = in the drive

Hmmm, is the device auto mounting when inserted?
<= br>Yes, as it always had. The device functions perfectly, it just isn't dis= played by banshee...

James.
_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome= .org
http://mail.gnome.org/mailman/listinfo/banshee-list

Thanks a lot

Matthew

--
matt ------=_Part_23721_2581288.1144936669427-- From jstembridge@gmail.com Thu Apr 13 10:03:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AFEE3B17E7 for ; Thu, 13 Apr 2006 10:03:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15837-10 for ; Thu, 13 Apr 2006 10:03:06 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id D1E973B17B3 for ; Thu, 13 Apr 2006 10:03:05 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so96672wra for ; Thu, 13 Apr 2006 07:03:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c1YRsk/99C+rBjzTURvulPQCpO5Y+ORNTfWGnvP/5yvlE4+HRncnl+9PW6ovIqqcvNW0Eootb56BogNZEdtM9D/YqBzEFeH0RsUu4IkJpOt/ze4MaficHo4+lAjzqZKtKIfAyedvuAR4De6aCQbo+/sKQS3w8fHaUdRvXYJxLrI= Received: by 10.54.120.19 with SMTP id s19mr485941wrc; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Message-ID: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> Date: Thu, 13 Apr 2006 15:03:04 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:03:07 -0000 On 4/13/06, Matthew Vermeulen wrote: > Thanks... I knew that, but it at least shows that some acknowledgement is > made of the device's existence... Indeed. In fact thinking about it the crash would indicate that a scan of the device is being started. Could you try dap_ui_init.patch in combination with mass_storage_device.patch? From mattvermeulen@gmail.com Thu Apr 13 10:18:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B315A3B1849 for ; Thu, 13 Apr 2006 10:18:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16664-02 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 472893B1845 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1870316pyu for ; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hDRwaqmyRmcmWZ9KQENVtIlcktgNBIyERTuehbDsUtAu4ZWeCNO5kIk0yh6knKPhOi1SfjONhLJEn67EzYnDr8jsdkPryb9AUIOzOrgl/yPWbw52WYFJA0grsIJfHV8wwoKvrvVn/bAcFb+aDg96PheUwIIXLRCtPXLdr/V0uNk= Received: by 10.35.15.11 with SMTP id s11mr868222pyi; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Message-ID: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> Date: Thu, 13 Apr 2006 22:18:31 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24093_8968161.1144937911374" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.241 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.241 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:18:34 -0000 ------=_Part_24093_8968161.1144937911374 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!! It now works, if the device is plugged in when banshee is started... Thank you so much :) Now I just need to get it to work if i plug it in after starting banshee. Maybe applying other patches?? Thanks so much Matthew On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Thanks... I knew that, but it at least shows that some acknowledgement > is > > made of the device's existence... > > Indeed. In fact thinking about it the crash would indicate that a scan > of the device is being started. Could you try dap_ui_init.patch in > combination with mass_storage_device.patch? > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24093_8968161.1144937911374 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!!

It now works, if the device is plugged in when banshee is s= tarted... Thank you so much :)

Now I just need to get it to work if = i plug it in after starting banshee. Maybe applying other patches??

Thanks so much

Matthew

On 4/= 13/06, James Stembridge <jstembridge@gmail.com> wrote: On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Thanks... I knew that, but= it at least shows that some acknowledgement is
> made of the device'= s existence...

Indeed. In fact thinking about it the crash would indicate that a s= can
of the device is being started. Could you try dap_ui_init.patch incombination with mass_storage_device.patch?
__________________________= _____________________
Banshee-list mailing list
= Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>



--
matt ------=_Part_24093_8968161.1144937911374-- From mattvermeulen@gmail.com Thu Apr 13 10:21:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 250803B1808 for ; Thu, 13 Apr 2006 10:21:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16793-03 for ; Thu, 13 Apr 2006 10:21:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id CBC223B10A5 for ; Thu, 13 Apr 2006 10:21:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1871308pyu for ; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FI1zsJtt/jvyjmgbFOS6tyW+fPq8WKnZhR1p9DJPXHkYyqApahUMKxWpVRpHecZIPBYBXbT0WMaUTq8z1lJm3/s7jEteA3QqnR/u9g/tXlIO1zYNYtX6leYHFFzi9e2JgMn+g/mHg3Jadm6n7WmL2WjhouFns0bmoSob4FtavWA= Received: by 10.35.100.6 with SMTP id c6mr295372pym; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Message-ID: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> Date: Thu, 13 Apr 2006 22:21:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24137_7961626.1144938103015" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.358 tagged_above=-999 required=2 tests=[AWL=0.107, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.358 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:21:48 -0000 ------=_Part_24137_7961626.1144938103015 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up... Can I get transcoding to work on my device??? No synchronize button is shown, and banshee crashes on eject... although it does eject and copy the music over. Reason I ask is cause most of my music is ogg, while my player only supports mp3+wma.... Thanks Matthew On 4/13/06, Matthew Vermeulen wrote: > > Yahoo!!! > > It now works, if the device is plugged in when banshee is started... Than= k > you so much :) > > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? > > Thanks so much > > Matthew > > On 4/13/06, James Stembridge wrote: > > > On 4/13/06, Matthew Vermeulen wrote: > > > Thanks... I knew that, but it at least shows that some acknowledgemen= t > > is > > > made of the device's existence... > > > > Indeed. In fact thinking about it the crash would indicate that a scan > > of the device is being started. Could you try dap_ui_init.patch in > > combination with mass_storage_device.patch? > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > -- > matt > -- matt ------=_Part_24137_7961626.1144938103015 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up...

Can I get transcoding to work on my device??? No= synchronize button is shown, and banshee crashes on eject... although it d= oes eject and copy the music over. Reason I ask is cause most of my music i= s ogg, while my player only supports mp3+wma....

Thanks

Matthew

On 4/= 13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
Yahoo!!!

It now works, if the device = is plugged in when banshee is started... Thank you so much :)

Now I = just need to get it to work if i plug it in after starting banshee. Maybe a= pplying other patches??

Thanks so much

Matthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:



-- matt



--
matt ------=_Part_24137_7961626.1144938103015-- From abockover@novell.com Thu Apr 13 10:25:49 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BADC63B1823 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16841-09 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 668663B035D for ; Thu, 13 Apr 2006 10:25:48 -0400 (EDT) Received: (qmail 6336 invoked from network); 13 Apr 2006 14:25:47 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:25:47 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Content-Type: text/plain Date: Wed, 12 Apr 2006 19:14:11 -0400 Message-Id: <1144883651.3613.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.831 tagged_above=-999 required=2 tests=[AWL=-0.679, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -1.831 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:25:49 -0000 Ouch! No rush :) --Aaron On Wed, 2006-04-12 at 16:59 -0500, Gabriel Burt wrote: > On 4/12/06, Aaron Bockover wrote: > > Would you gather all the necessary patches for the Mass Storage DAP > > stuff, make sure they're A-OK, and generate a single patch against HEAD? > > The core stuff can go in now, pending review, since I have branched for > > stable. > > Certainly. I won't be able to get to it until Friday though because > of a misunderstanding with Greyhound that resulted in my power cord > for my laptop being a few hundred miles away. > > Gabriel > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From abockover@novell.com Thu Apr 13 10:26:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C0513B188F for ; Thu, 13 Apr 2006 10:26:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17258-01 for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 5A4053B185F for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: (qmail 6339 invoked from network); 13 Apr 2006 14:26:13 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:26:13 -0000 Subject: Re: [Banshee-List] Re: Mass Storage Support From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Content-Type: text/plain Date: Thu, 13 Apr 2006 09:43:07 -0400 Message-Id: <1144935787.18440.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.336 tagged_above=-999 required=2 tests=[AWL=0.063, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.336 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:26:16 -0000 I am guessing block_device was a typo (Gabriel?). The proper HAL property is in fact block.device. Whether this fixes the problem or not, this change needs to be made. --Aaron On Thu, 2006-04-13 at 13:43 +0100, James Stembridge wrote: > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 10:34:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A79DC3B1844 for ; Thu, 13 Apr 2006 10:34:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17461-03 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.229]) by menubar.gnome.org (Postfix) with ESMTP id 978063B17C8 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so102830wra for ; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R3JgCwX0z0JMq1UG0yWtoN6A6VjZLTTFU8/OiGtLQO1OIvwGGWjqHQ58cli4MP4czrk7ZcC+NUGKkpMPchefS4CsLqLFDluzfyrqxfijN1AeO/DORsw/aS1nKMZ4q4iuByn3uo2aX2pGoizrK79wEOE0KLabM3dRdgfukpFb1mw= Received: by 10.54.102.7 with SMTP id z7mr450290wrb; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:34:26 -0700 (PDT) Message-ID: <18bc366d0604130734l7af5f4f8y273f1cf2961f6782@mail.gmail.com> Date: Thu, 13 Apr 2006 15:34:26 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <1144935787.18440.0.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <1144935787.18440.0.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:34:28 -0000 On 4/13/06, Aaron Bockover wrote: > I am guessing block_device was a typo (Gabriel?). The proper HAL > property is in fact block.device. Whether this fixes the problem or not, > this change needs to be made. Agreed. I'll put it in bugzilla. From jstembridge@gmail.com Thu Apr 13 10:43:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C459B3B1861 for ; Thu, 13 Apr 2006 10:43:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18199-08 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 35E003B15D5 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so104574wra for ; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtSf7EdlVMkim2UnB8OA7ibepzYB/jfSE3RtVhFqcYx+LQ6PS292rtEA7eJj9PneIkCFQRAb5gIfCC5J5gQqZLH91X5TdHOFyY3x57FC/snxXl1zBhNUwP42xztTAbOjWP4m6gTWeZMZIQNv1d4Ba2g5LRxBMm8UyI+xcmcNmqE= Received: by 10.54.70.18 with SMTP id s18mr522143wra; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Message-ID: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> Date: Thu, 13 Apr 2006 15:43:16 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:43:18 -0000 On 4/13/06, Matthew Vermeulen wrote: > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? Don't think any of the other patches would make any difference here. I'd noticed that the devices passed to the dap classes is different if the dap is plugged in before rather than while banshee is running. On 4/13/06, Matthew Vermeulen wrote: > Can I get transcoding to work on my device??? No synchronize button is > shown, and banshee crashes on eject... although it does eject and copy th= e > music over. Reason I ask is cause most of my music is ogg, while my playe= r > only supports mp3+wma.... Yes I'd think so, I'll have a look at how the Ipod transcoding is done. I'll also have a look at the eject crash. James. From mattvermeulen@gmail.com Thu Apr 13 10:45:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3BF053B18B4 for ; Thu, 13 Apr 2006 10:45:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18360-05 for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 168323B18AB for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1877939pyu for ; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Bd929FUpt5WxZR4t3ly5kO8dj13Jwx6ofpxD++KdJ3NAlU08prv9asAGAby3zzHWOs2Ps2bTJyHSIHM2n4HZjJiVNoUnOx54+NoZ5/LKYXyNBzPspBUE7JEU1SCdSWkOqorw6BnFQDn7IeG+tLex45XIE54bvHNjHXuhUuMVEw0= Received: by 10.35.78.9 with SMTP id f9mr194887pyl; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Message-ID: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> Date: Thu, 13 Apr 2006 22:45:37 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24681_32328398.1144939537332" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.767 tagged_above=-999 required=2 tests=[AWL=-0.519, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.767 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:45:39 -0000 ------=_Part_24681_32328398.1144939537332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James, Thanks so much for all the help and assistence. I hope you can sort the res= t of the problems out :) Thanks Matt PS the eject crash was a segfault: (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion `GTK_IS_IMAGE (image)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed closing Segmentation fault On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Now I just need to get it to work if i plug it in after starting > banshee. > > Maybe applying other patches?? > > Don't think any of the other patches would make any difference here. > I'd noticed that the devices passed to the dap classes is different if > the dap is plugged in before rather than while banshee is running. > > On 4/13/06, Matthew Vermeulen wrote: > > Can I get transcoding to work on my device??? No synchronize button is > > shown, and banshee crashes on eject... although it does eject and copy > the > > music over. Reason I ask is cause most of my music is ogg, while my > player > > only supports mp3+wma.... > > Yes I'd think so, I'll have a look at how the Ipod transcoding is > done. I'll also have a look at the eject crash. > > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24681_32328398.1144939537332 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James,

Thanks so much for all the help and assistence. I hope you ca= n sort the rest of the problems out :)

Thanks

Matt

PS = the eject crash was a segfault:

(Banshee:32577): Gtk-CRITICAL **: gt= k_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOOSER (chooser)' fa= iled

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: asse= rtion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gtk-CR= ITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion = `GTK_IS_IMAGE (image)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk= _file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed
closing
Segmentation fault

O= n 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Now I just need to get it = to work if i plug it in after starting banshee.
> Maybe applying othe= r patches??

Don't think any of the other patches would make any difference here= .
I'd noticed that the devices passed to the dap classes is different if=
the dap is plugged in before rather than while banshee is running.

On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Can I get transcoding = to work on my device??? No synchronize button is
> shown, and banshee= crashes on eject... although it does eject and copy the
> music over. Reason I ask is cause most of my music is ogg, while m= y player
> only supports mp3+wma....

Yes I'd think so, I'll ha= ve a look at how the Ipod transcoding is
done. I'll also have a look at = the eject crash.

James.
_______________________________________________
Banshe= e-list mailing list
Banshee-li= st@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_24681_32328398.1144939537332-- From lukas@pmad.net Thu Apr 13 12:03:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 213BA3B18F4 for ; Thu, 13 Apr 2006 12:03:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22737-06 for ; Thu, 13 Apr 2006 12:03:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 59F3F3B1906 for ; Thu, 13 Apr 2006 12:00:59 -0400 (EDT) Received: (qmail 27049 invoked by uid 503); 13 Apr 2006 16:01:07 -0000 Received: (QMFILT: 1.0); 13 Apr 2006 16:01:07 -0000 Received: from b7.ovh.net (HELO mail147.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 13 Apr 2006 16:01:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:34 -0000 Received: from mail147.ha.ovh.net (10.0.50.147) by mail147.ha.ovh.net with SMTP; 13 Apr 2006 16:00:27 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 Received: from adsl-d91.87-197-143.telecom.sk (HELO ?192.168.0.23?) (87.197.143.91) by ns0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-9E0sff6pbaqTSqqCs08K" Date: Thu, 13 Apr 2006 18:00:30 +0200 Message-Id: <1144944031.5000.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.143.91 (adsl-d91.87-197-143.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.439 tagged_above=-999 required=2 tests=[AWL=0.160, BAYES_00=-2.599] X-Spam-Score: -2.439 X-Spam-Level: Subject: [Banshee-List] Child source v0.3 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:03:29 -0000 --=-9E0sff6pbaqTSqqCs08K Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Attached is an updated version of the patch that adds child source support to Banshee. This patch fixes some small issues that I found today. Best, Lukas --=-9E0sff6pbaqTSqqCs08K Content-Disposition: attachment; filename=banshee-childsource-0.3.patch Content-Type: text/x-patch; name=banshee-childsource-0.3.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlaylistView.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 13 Apr 2006 15:58:04 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 13 Apr 2006 15:58:04 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 13 Apr 2006 15:58:04 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 13 Apr 2006 15:58:07 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 13 Apr 2006 15:58:07 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 13 Apr 2006 15:58:14 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 13 Apr 2006 15:58:14 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 13 Apr 2006 15:58:22 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 13 Apr 2006 15:58:22 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-9E0sff6pbaqTSqqCs08K-- From abockover@novell.com Thu Apr 13 12:33:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF7113B1908 for ; Thu, 13 Apr 2006 12:33:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25177-08 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 6925A3B0676 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: (qmail 7065 invoked from network); 13 Apr 2006 16:33:48 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 16:33:48 -0000 Subject: Re: [Banshee-List] Child source v0.3 From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144944031.5000.1.camel@localhost.localdomain> References: <1144944031.5000.1.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 13 Apr 2006 12:30:30 -0400 Message-Id: <1144945831.17382.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.461 tagged_above=-999 required=2 tests=[AWL=0.138, BAYES_00=-2.599] X-Spam-Score: -2.461 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:33:51 -0000 Hi Lukas, I tested the previous version a few days ago and found some issues. Maybe you resolved them already with this version. I'll test this version tonight. In any regard, here is what I found with the previous version: a) Way too much empty space left of the source icon when a node doesn't have children b) Plugging in iPod with Banshee already running does not show the new source c) If library has no playlist children, adding a new playlist is confusing (the "New playlist" node becomes a child of library, which is not expanded and thus not visible) d) Can easily crash by dragging tracks to create a new playlist when there are no other playlists Cheers, Aaron On Thu, 2006-04-13 at 18:00 +0200, Lukas Lipka wrote: > Hey, > > Attached is an updated version of the patch that adds child source > support to Banshee. This patch fixes some small issues that I found > today. > > Best, > Lukas > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 12:50:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30C533B1936 for ; Thu, 13 Apr 2006 12:50:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26483-07 for ; Thu, 13 Apr 2006 12:50:34 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id D298E3B040E for ; Thu, 13 Apr 2006 12:50:33 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so128367wra for ; Thu, 13 Apr 2006 09:50:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rx/cTfFMVRvdCxwa0SWfBnUc/BcNlKSwhNeKKTGm8CYzMxTh8JwYDoGzFe3jgumv1S0yphmo/fNPn4mSNa79Lv7uBr/lDOR4CVuH+bKcPLZG2hAJMb+opttzgajnqinLBUA7XiaEOdRrttNF2J0cn2dpsskG/Rq+VXdjU39w/xs= Received: by 10.54.122.11 with SMTP id u11mr659618wrc; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Message-ID: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> Date: Thu, 13 Apr 2006 17:50:31 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13410_9419575.1144947031390" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.821 tagged_above=-999 required=2 tests=[AWL=-0.779, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.821 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:50:35 -0000 ------=_Part_13410_9419575.1144947031390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Matt: Give the attached patch a go against clean CVS. Eject is still broken (apparently in native code) but everything else should probably be OK. Gabriel: Is this a suitable format for you to incorporate or do you want functionally separated patches? Cheers, James. ------=_Part_13410_9419575.1144947031390 Content-Type: text/x-patch; name=mass_storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elzbtidm Content-Disposition: attachment; filename="mass_storage.patch" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 13 Apr 2006 16:39:52 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -192,7 +205,7 @@ { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.13 diff -u -r1.13 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 21:30:26 -0000 1.13 +++ src/Banshee.Dap/Ipod/IpodDap.cs 13 Apr 2006 16:39:53 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 16:39:53 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -77,31 +77,34 @@ if(!volume_device.PropertyExists ("volume.is_mounted") || !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } public override void Dispose() { @@ -110,7 +113,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); @@ -145,7 +148,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -170,6 +174,14 @@ return track; string new_path = GetTrackPath (track); + if(File.Exists(new_path)) { + if(File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) { + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + } else { + return null; + } + } + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); File.Copy (track.Uri.LocalPath, new_path); @@ -213,19 +225,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string escaped_artist = FileNamePattern.Escape(track.Artist); + string escaped_album = FileNamePattern.Escape(track.Album); + string escaped_track = FileNamePattern.Escape(track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", escaped_artist); + file_path = file_path.Replace ("%Album", escaped_album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, escaped_track); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", escaped_track); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (escaped_artist, escaped_album); + file_path = System.IO.Path.Combine (file_path, escaped_track); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -242,7 +259,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + (volume_device["volume.label"].Length > 0)) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 13 Apr 2006 16:39:53 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); Index: src/Banshee.Dap/Njb/NjbDapTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDapTrackInfo.cs,v retrieving revision 1.2 diff -u -r1.2 NjbDapTrackInfo.cs --- src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Feb 2006 22:18:11 -0000 1.2 +++ src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Apr 2006 16:39:53 -0000 @@ -74,7 +74,7 @@ private void LoadFromNjbSong(DapDevice dap) { - uri = new Uri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); + uri = new SafeUri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); album = song.Album == String.Empty ? null : song.Album; artist = song.Artist == String.Empty ? null : song.Artist; title = song.Title == String.Empty ? null : song.Title; ------=_Part_13410_9419575.1144947031390-- From mattvermeulen@gmail.com Thu Apr 13 19:38:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ECA0D3B085C for ; Thu, 13 Apr 2006 19:38:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16331-03 for ; Thu, 13 Apr 2006 19:38:07 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.180]) by menubar.gnome.org (Postfix) with ESMTP id 9D64A3B138C for ; Thu, 13 Apr 2006 19:38:06 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1981367pyu for ; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hPQ+roydDUZmvvz02u0W0zJBm86F57nDY+tf4T82Iul9uM4yqOAybAYhRNlOeQKrKPwtYJXCRwdXAweB1EVPiyRJUwvwaJoAPN5k1f4wyUTApXqAVJHWgNlQ6pZwzQVNKHvUx+/RWe1+wMiVvuwaKMT4I4X2PCCZyNt5Kk4VPa8= Received: by 10.35.82.15 with SMTP id j15mr695510pyl; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Message-ID: <950c7d180604131638u4f9277e8q3f7f486ba881ccc0@mail.gmail.com> Date: Fri, 14 Apr 2006 07:38:05 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3721_16673855.1144971485684" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.12 tagged_above=-999 required=2 tests=[AWL=-0.017, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.12 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 23:38:13 -0000 ------=_Part_3721_16673855.1144971485684 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James, Mass storage now works if the device is plugged in while banshee is running :) However, still no transcoding or synchronize, which i suppose wasn't in the patch... :) Thanks Matthew On 4/14/06, James Stembridge wrote: > > Matt: Give the attached patch a go against clean CVS. Eject is still > broken (apparently in native code) but everything else should probably > be OK. > > Gabriel: Is this a suitable format for you to incorporate or do you > want functionally separated patches? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_3721_16673855.1144971485684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James,

Mass storage now works if the device is plugged in whi= le banshee is running :) However, still no transcoding or synchronize, whic= h i suppose wasn't in the patch... :)

Thanks

Matthew

On 4/14/06, = James Stembridge <jstembrid= ge@gmail.com> wrote:
Matt: Give the attached patch a go against clean CVS. Eject is still
bro= ken (apparently in native code) but everything else should probably
be O= K.

Gabriel: Is this a suitable format for you to incorporate or do y= ou
want functionally separated patches?

Cheers,
James.

_______________________________________________
Banshee-list mailing l= ist
Banshee-list@gnome.org
http://= mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_3721_16673855.1144971485684-- From gabriel.burt@gmail.com Thu Apr 13 22:16:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9EE0A3B06CD for ; Thu, 13 Apr 2006 22:16:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22073-03 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id 5F2383B0669 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2003750pyu for ; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QeEPp3lwdwS2nyZiZ4U2jqGzZnlUd+TZtXWv/cQGxRAkUYzr70RAJLChHMrnq1lagXuIkmxPBeGTE+bwfe1PWMO3t8a7CRWxTWBAaEGRBZf4kizrjX9UQNzjFeJT46cs1cpJDNBOa7orORmKMWsqqMjchn7ci86gb1VUnVHPAQw= Received: by 10.35.105.18 with SMTP id h18mr383825pym; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Message-ID: <24348e0604131916y4e1413a2ref2f4dbacbce795d@mail.gmail.com> Date: Thu, 13 Apr 2006 21:16:39 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=0.254, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.122 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 02:16:41 -0000 T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpU aGUgd2F5IHlvdSBzZW50IGl0IGlzIGZpbmUuICBUaGFua3MhICBIb3BlZnVsbHkgZ2V0IHRoaXMg aW50byBIRUFEIHNvb24uCgpHYWJyaWVsCg== From lukas@pmad.net Fri Apr 14 08:06:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05FD53B0BBB for ; Fri, 14 Apr 2006 08:06:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19602-09 for ; Fri, 14 Apr 2006 08:06:20 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 0AC583B0F97 for ; Fri, 14 Apr 2006 08:06:18 -0400 (EDT) Received: (qmail 372 invoked by uid 503); 14 Apr 2006 12:06:27 -0000 Received: (QMFILT: 1.0); 14 Apr 2006 12:06:27 -0000 Received: from b7.ovh.net (HELO mail148.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 14 Apr 2006 12:06:27 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 12:05:54 -0000 Received: from mail148.ha.ovh.net (10.0.50.148) by mail148.ha.ovh.net with SMTP; 14 Apr 2006 12:05:46 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Received: from adsl-d56.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.56) by ns0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144945831.17382.2.camel@sledipus.rex> References: <1144944031.5000.1.camel@localhost.localdomain> <1144945831.17382.2.camel@sledipus.rex> Content-Type: multipart/mixed; boundary="=-LDBsFwPm/TmMwGQcPAgc" Date: Fri, 14 Apr 2006 12:47:47 +0200 Message-Id: <1145011668.10366.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.129.56 (adsl-d56.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=0.150, BAYES_00=-2.599] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 12:06:27 -0000 --=-LDBsFwPm/TmMwGQcPAgc Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > a) Way too much empty space left of the source icon when a node doesn't > have children I will have a look at this later but I'm afraid there is no way of fixing this, since this is what a TreeView always does. Any ideas? > b) Plugging in iPod with Banshee already running does not show the new > source You're right, I'm also seeing this. But what is much more interesting is that this doesn't work with a clean checkout of Banshee either. Therefor I don't think this is affected by the patch. > c) If library has no playlist children, adding a new playlist is > confusing (the "New playlist" node becomes a child of library, which is > not expanded and thus not visible) Fixed. > d) Can easily crash by dragging tracks to create a new playlist when > there are no other playlists I'm not able to reproduce this. Can you send me a stacktrace if you are still able to trigger it? Best, Lukas --=-LDBsFwPm/TmMwGQcPAgc Content-Disposition: attachment; filename=banshee-childsource-0.4.patch Content-Type: text/x-patch; name=banshee-childsource-0.4.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 14 Apr 2006 10:43:59 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 14 Apr 2006 10:43:59 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,51 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +241,19 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); } TreePath path; @@ -267,7 +319,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +343,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +539,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 14 Apr 2006 10:43:59 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 14 Apr 2006 10:44:00 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 14 Apr 2006 10:44:00 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 14 Apr 2006 10:44:04 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 14 Apr 2006 10:44:04 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 14 Apr 2006 10:44:04 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 14 Apr 2006 10:44:09 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-LDBsFwPm/TmMwGQcPAgc-- From doclivingston@gmail.com Fri Apr 14 22:13:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 251CE3B1FAC for ; Fri, 14 Apr 2006 22:13:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31050-09 for ; Fri, 14 Apr 2006 22:13:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id D217F3B0ABD for ; Fri, 14 Apr 2006 22:13:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so200870pyu for ; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=SJpTfP5wGT7M/QhAxE1wZQN4W6Zbxty17+u/qx1/UTFdJt4oWRBDpGfQJBQQUha3DEdqoY6SqU4nhdllOmYgw1o7hfpMgS32WCnQ6AD0HhI+7clF6fZUXemRIMHVbK0MQv8p8XL97H9Zxae8Lph2W8FicdIpd4c7loiKiHH9Tkc= Received: by 10.35.107.20 with SMTP id j20mr278118pym; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Received: from alyrion.local ( [144.139.79.240]) by mx.gmail.com with ESMTP id t5sm295032pyc.2006.04.14.19.13.09; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: "James \"Doc\" Livingston" To: banshee-list@gnome.org Content-Type: text/plain Date: Sat, 15 Apr 2006 12:13:07 +1000 Message-Id: <1145067187.5692.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.303 tagged_above=-999 required=2 tests=[AWL=0.297, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.303 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, doclivingston@gmail.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 02:13:15 -0000 On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > a) Way too much empty space left of the source icon when a node doesn't > > have children > > I will have a look at this later but I'm afraid there is no way of > fixing this, since this is what a TreeView always does. Any ideas? You need to create an empty column in the tree view, and make it invisible. Whenever a source is added/removed, determine if there are any sources with children; if so, set the tree view's expander-column to be the first column, if not set it to be the invisible column. Cheers, James "Doc" Livingston -- You wouldn't know a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing 'Subtle Plans Are Here Again' -- Lord Blackadder From gcgmb-banshee-list@m.gmane.org Sat Apr 15 03:35:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7A943B0A99 for ; Sat, 15 Apr 2006 03:35:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11279-03 for ; Sat, 15 Apr 2006 03:35:06 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 1861A3B0AB3 for ; Sat, 15 Apr 2006 03:35:05 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FUfJ8-0001gx-2U for banshee-list@gnome.org; Sat, 15 Apr 2006 09:35:02 +0200 Received: from 69-12-172-225.dsl.static.sonic.net ([69.12.172.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 Received: from eric.moret by 69-12-172-225.dsl.static.sonic.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: "Eric Moret" Date: Sat, 15 Apr 2006 00:24:11 -0700 Lines: 12 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 69-12-172-225.dsl.static.sonic.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.742 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.742 X-Spam-Level: Subject: [Banshee-List] hal-sharp documentation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 07:35:07 -0000 Hello all, I am looking for hal-sharp documentation and so far was not able to find much. Looking at banshee's source code, I see a mix of managed/unmanaged code to detect cd insertion. Is there any reason for using unmanaged code? Would it be possible to do it with 100% managed code instead? Best, __ Eric From lukas@pmad.net Sat Apr 15 07:06:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4FA203B20D3 for ; Sat, 15 Apr 2006 07:06:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22122-05 for ; Sat, 15 Apr 2006 07:06:04 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 647553B20C8 for ; Sat, 15 Apr 2006 07:06:03 -0400 (EDT) Received: (qmail 19881 invoked by uid 503); 15 Apr 2006 11:06:11 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 11:06:11 -0000 Received: from b7.ovh.net (HELO mail152.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 11:06:11 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:29 -0000 Received: from mail152.ha.ovh.net (10.0.50.152) by mail152.ha.ovh.net with SMTP; 15 Apr 2006 11:03:26 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Received: from adsl-d136.87-197-205.telecom.sk (HELO ?192.168.0.23?) (87.197.205.136) by ns0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145067187.5692.13.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-Cb7k/pk1SSJXB0ikDmxI" Date: Sat, 15 Apr 2006 13:03:19 +0200 Message-Id: <1145098999.8073.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.205.136 (adsl-d136.87-197-205.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.457 tagged_above=-999 required=2 tests=[AWL=0.142, BAYES_00=-2.599] X-Spam-Score: -2.457 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 11:06:15 -0000 --=-Cb7k/pk1SSJXB0ikDmxI Content-Type: text/plain Content-Transfer-Encoding: 7bit Thanks! That took care of it. I'm reposting an updated patch which should make everyone happy! Best, Lukas On Sat, 2006-04-15 at 12:13 +1000, James "Doc" Livingston wrote: > On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > > a) Way too much empty space left of the source icon when a node doesn't > > > have children > > > > I will have a look at this later but I'm afraid there is no way of > > fixing this, since this is what a TreeView always does. Any ideas? > > You need to create an empty column in the tree view, and make it > invisible. Whenever a source is added/removed, determine if there are > any sources with children; if so, set the tree view's expander-column to > be the first column, if not set it to be the invisible column. > > > Cheers, > > James "Doc" Livingston --=-Cb7k/pk1SSJXB0ikDmxI Content-Disposition: attachment; filename=banshee-childsource-0.5.patch Content-Type: text/x-patch; name=banshee-childsource-0.5.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 11:00:27 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 11:00:27 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool CheckChildren () + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + + CheckChildren (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + CheckChildren (); + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +270,20 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); + CheckChildren (); } TreePath path; @@ -230,6 +312,7 @@ if(newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + CheckChildren (); } } @@ -243,7 +326,7 @@ string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -267,7 +350,8 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); + CheckChildren (); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +375,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +571,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 11:00:27 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 11:00:31 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 11:00:31 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 11:00:39 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 11:00:39 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 11:00:48 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 11:00:48 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-Cb7k/pk1SSJXB0ikDmxI-- From lukas@pmad.net Sat Apr 15 11:19:23 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6158F3B108F for ; Sat, 15 Apr 2006 11:19:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02535-07 for ; Sat, 15 Apr 2006 11:19:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 01FD33B1066 for ; Sat, 15 Apr 2006 11:19:20 -0400 (EDT) Received: (qmail 21730 invoked by uid 503); 15 Apr 2006 15:19:29 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 15:19:29 -0000 Received: from b6.ovh.net (HELO mail55.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 15:19:29 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from mail55.ha.ovh.net (10.0.50.55) by mail55.ha.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145098999.8073.1.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> Content-Type: text/plain Date: Sat, 15 Apr 2006 17:18:38 +0200 Message-Id: <1145114318.14136.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.50001 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:19:23 -0000 Hi, So I found a bug in 0.5 today when you try to create playlist by dragging. The problem pops up when you try to drop the selection into the "New Playlist" row and there is another source below the music library. Something like: * Music Library + Other playlist + New playlist <= HERE * Music Store * Lukas' iPod What happens is that OnDragMotion the "New Playlist" row is created. After that, when you drop the selection onto it, OnDragLeave gets called at first! This is totally fucking absurdal[1], because in there we destroy the "New Playlist" row. After we have done all of this OnDragDataReceived is finally called. Here we try to get the row under the cursor, but since the "New Playlist" row is long gone, we just get the next row after it (that would be Music Store in the example above). So much for the miracles in GTK-Wonderland! I just thought I would share my fun with you. :-) Best, Lukas [1] MDK's words: http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > Thanks! That took care of it. I'm reposting an updated patch which > should make everyone happy! > > Best, > Lukas From abockover@novell.com Sat Apr 15 11:51:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348883B06FB for ; Sat, 15 Apr 2006 11:51:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04277-08 for ; Sat, 15 Apr 2006 11:51:24 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id EB8753B09A1 for ; Sat, 15 Apr 2006 11:51:23 -0400 (EDT) Received: from [192.168.0.100] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3FFpMU6016954 for ; Sat, 15 Apr 2006 11:51:22 -0400 (EDT) Subject: Re: [Banshee-List] hal-sharp documentation From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Sat, 15 Apr 2006 11:48:25 -0400 Message-Id: <1145116106.6921.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.575 tagged_above=-999 required=2 tests=[AWL=0.024, BAYES_00=-2.599] X-Spam-Score: -2.575 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:51:27 -0000 On Sat, 2006-04-15 at 00:24 -0700, Eric Moret wrote: > Hello all, > > I am looking for hal-sharp documentation and so far was not able to find > much. Looking at banshee's source code, I see a mix of managed/unmanaged > code to detect cd insertion. Is there any reason for using unmanaged code? > Would it be possible to do it with 100% managed code instead? http://banshee-project.org/files/documentation/banshee/Hal This is monodoc-generated documentation and it has not been filled in with details, but the API should be fairly straight forward. As for CD detection, yes, you can do this in managed. The detection in Banshee is fully managed. The only unmanaged code is GStreamer related, and a P/Invoke into an ioctl call to eject the disk. I need to add HAL method call support to hal-sharp, and when I do, you could even do ejecting in managed, however, it requires HAL 0.5.6 or better. --Aaron > Best, > __ > Eric > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From ruben@Lambda1.be Sat Apr 15 12:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50BF93B1085 for ; Sat, 15 Apr 2006 12:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06716-06 for ; Sat, 15 Apr 2006 12:42:23 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 9E78D3B0B1A for ; Sat, 15 Apr 2006 12:42:22 -0400 (EDT) Received: from ([62.235.114.77]) by guri.is.scarlet.be with ESMTP id k3FGgJc03233 for ; Sat, 15 Apr 2006 18:42:19 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id B7F02460118; Sat, 15 Apr 2006 18:42:18 +0200 (CEST) Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145114318.14136.10.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 15 Apr 2006 18:42:16 +0200 Message-Id: <1145119337.20262.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 16:42:29 -0000 It also seems to break the minimode plugin. Not sure which one would need fixing though. Ruben On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > Hi, > > So I found a bug in 0.5 today when you try to create playlist by > dragging. The problem pops up when you try to drop the selection into > the "New Playlist" row and there is another source below the music > library. > > Something like: > > * Music Library > + Other playlist > + New playlist <= HERE > * Music Store > * Lukas' iPod > > What happens is that OnDragMotion the "New Playlist" row is created. > After that, when you drop the selection onto it, OnDragLeave gets called > at first! This is totally fucking absurdal[1], because in there we > destroy the "New Playlist" row. After we have done all of this > OnDragDataReceived is finally called. Here we try to get the row under > the cursor, but since the "New Playlist" row is long gone, we just get > the next row after it (that would be Music Store in the example above). > > So much for the miracles in GTK-Wonderland! I just thought I would share > my fun with you. :-) > > Best, > Lukas > > > [1] MDK's words: > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > Thanks! That took care of it. I'm reposting an updated patch which > > should make everyone happy! > > > > Best, > > Lukas > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Sat Apr 15 13:08:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF663B0D50 for ; Sat, 15 Apr 2006 13:08:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08397-05 for ; Sat, 15 Apr 2006 13:07:56 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 3CD4F3B0724 for ; Sat, 15 Apr 2006 13:07:55 -0400 (EDT) Received: (qmail 15254 invoked by uid 503); 15 Apr 2006 17:08:03 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 17:08:03 -0000 Received: from b7.ovh.net (HELO mail138.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 17:08:03 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:22 -0000 Received: from mail138.ha.ovh.net (10.0.50.138) by mail138.ha.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145119337.20262.0.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> <1145119337.20262.0.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-eRYPIfpR9ZLXY0Xwz0jD" Date: Sat, 15 Apr 2006 19:07:27 +0200 Message-Id: <1145120847.5158.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.47 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599] X-Spam-Score: -2.47 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 17:08:02 -0000 --=-eRYPIfpR9ZLXY0Xwz0jD Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached is a patch which fixes this. It should be alright to check it in now, since it doesn't depend on the child source patch. Lukas On Sat, 2006-04-15 at 18:42 +0200, Ruben Vermeersch wrote: > It also seems to break the minimode plugin. Not sure which one would > need fixing though. > > Ruben > > On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > > Hi, > > > > So I found a bug in 0.5 today when you try to create playlist by > > dragging. The problem pops up when you try to drop the selection into > > the "New Playlist" row and there is another source below the music > > library. > > > > Something like: > > > > * Music Library > > + Other playlist > > + New playlist <= HERE > > * Music Store > > * Lukas' iPod > > > > What happens is that OnDragMotion the "New Playlist" row is created. > > After that, when you drop the selection onto it, OnDragLeave gets called > > at first! This is totally fucking absurdal[1], because in there we > > destroy the "New Playlist" row. After we have done all of this > > OnDragDataReceived is finally called. Here we try to get the row under > > the cursor, but since the "New Playlist" row is long gone, we just get > > the next row after it (that would be Music Store in the example above). > > > > So much for the miracles in GTK-Wonderland! I just thought I would share > > my fun with you. :-) > > > > Best, > > Lukas > > > > > > [1] MDK's words: > > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > > Thanks! That took care of it. I'm reposting an updated patch which > > > should make everyone happy! > > > > > > Best, > > > Lukas > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-eRYPIfpR9ZLXY0Xwz0jD Content-Disposition: inline; filename=banshee-minimode.patch Content-Type: text/x-patch; name=banshee-minimode.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -101,10 +101,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-eRYPIfpR9ZLXY0Xwz0jD-- From lukas@pmad.net Sat Apr 15 15:29:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D05F3B22A8 for ; Sat, 15 Apr 2006 15:29:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15335-01 for ; Sat, 15 Apr 2006 15:29:03 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C5BDB3B22AC for ; Sat, 15 Apr 2006 15:29:01 -0400 (EDT) Received: (qmail 31567 invoked by uid 503); 15 Apr 2006 19:29:10 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 19:29:10 -0000 Received: from b6.ovh.net (HELO mail54.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 19:29:10 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:32 -0000 Received: from mail54.ha.ovh.net (10.0.50.54) by mail54.ha.ovh.net with SMTP; 15 Apr 2006 19:28:29 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-1VydZuHNf7DrKSjSE6UG" Date: Sat, 15 Apr 2006 21:28:36 +0200 Message-Id: <1145129316.18680.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=0.123, BAYES_00=-2.599] X-Spam-Score: -2.476 X-Spam-Level: Subject: [Banshee-List] Child source final (v0.6) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 19:29:15 -0000 --=-1VydZuHNf7DrKSjSE6UG Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, The "gtk d&d is crack" version patch of child source support for Banshee is out! All the issues everyone pointed out should be fixed now. For the awesome minimode plugin users - a patch which makes minimode work with this has been sent to the list. Good luck & Have fun! Lukas --=-1VydZuHNf7DrKSjSE6UG Content-Disposition: attachment; filename=banshee-childsource-0.6.patch Content-Type: text/x-patch; name=banshee-childsource-0.6.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 19:22:36 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 19:22:36 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; - } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + // FIXME: We need to handle this nicer + //if(!((SourceManager.ActiveSource is LibrarySource) + //|| ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + // return true; + //} + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 19:22:37 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 19:22:37 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 19:22:37 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 19:22:40 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 19:22:40 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 19:22:42 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 19:22:42 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-1VydZuHNf7DrKSjSE6UG-- From teuf@gnome.org Sat Apr 15 19:10:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62DF63B0D16 for ; Sat, 15 Apr 2006 19:10:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25429-09 for ; Sat, 15 Apr 2006 19:10:42 -0400 (EDT) Received: from smTp.neuf.fr (sp604003mt.neufgp.fr [84.96.92.56]) by menubar.gnome.org (Postfix) with ESMTP id 0F6223B0885 for ; Sat, 15 Apr 2006 19:10:39 -0400 (EDT) Received: from [192.168.0.2] ([86.69.170.130]) by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IXS00AK4DPP9G92@sp604003mt.gpm.neuf.ld> for banshee-list@gnome.org; Sun, 16 Apr 2006 01:10:37 +0200 (CEST) Date: Sun, 16 Apr 2006 01:10:37 +0200 From: Christophe Fergeau To: banshee-list@gnome.org Message-id: <1145142637.6269.15.camel@localhost> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bZrh/Wa52c1Dvjr47M+j" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.409 tagged_above=-999 required=2 tests=[AWL=0.055, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.409 X-Spam-Level: Subject: [Banshee-List] libipoddevice patches X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 23:10:45 -0000 --=-bZrh/Wa52c1Dvjr47M+j Content-Type: multipart/mixed; boundary="=-EkK9V63M14Bw9vauXkCw" --=-EkK9V63M14Bw9vauXkCw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Here are two patches to fix 2 issues in libipoddevice: * endianess.diff should hopefully make it possible to parse the DeviceInfo file on big endian machines * list.diff fixes a warning from gcc about the return value of g_list_remove being ignored. I removed some seemingly useless code at the same time (g_list_length(l) is 0 if and only if l is NULL if I read glib code properly) (both patches are only compile tested, so there might be some obvious mistakes in them) Christophe --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=list.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=list.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS1ldmVudC1saXN0ZW5lci5jDQo9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg ZmlsZTogL2N2cy9nbm9tZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS1ldmVudC1saXN0 ZW5lci5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44DQpkaWZmIC11IC1yMS44IGlwb2QtZGV2 aWNlLWV2ZW50LWxpc3RlbmVyLmMNCi0tLSBzcmMvaXBvZC1kZXZpY2UtZXZlbnQtbGlzdGVuZXIu Ywk4IE5vdiAyMDA1IDIyOjA0OjUzIC0wMDAwCTEuOA0KKysrIHNyYy9pcG9kLWRldmljZS1ldmVu dC1saXN0ZW5lci5jCTE1IEFwciAyMDA2IDIzOjAzOjQyIC0wMDAwDQpAQCAtMTk5LDExICsxOTks NyBAQA0KICAgICANCiAgICAgZ19saXN0X2ZyZWUobGlzdGVuZXItPnByaXYtPmlwb2RVZGlzKTsN CiAgICAgDQotICAgIGdfbGlzdF9yZW1vdmUoaW5zdGFuY2VzLCBsaXN0ZW5lcik7DQotICAgIGlm KGdfbGlzdF9sZW5ndGgoaW5zdGFuY2VzKSA9PSAwKSB7DQotICAgICAgICBnX2xpc3RfZnJlZShp bnN0YW5jZXMpOw0KLSAgICAgICAgaW5zdGFuY2VzID0gTlVMTDsNCi0gICAgfQ0KKyAgICBpbnN0 YW5jZXMgPSBnX2xpc3RfcmVtb3ZlKGluc3RhbmNlcywgbGlzdGVuZXIpOw0KIH0NCiANCiBzdGF0 aWMgdm9pZCANCg== --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=endianess.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=endianess.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9nbm9t ZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS42MA0KZGlmZiAtdSAtcjEuNjAgaXBvZC1kZXZpY2UuYw0KLS0tIHNyYy9pcG9kLWRldmljZS5j CTEzIEFwciAyMDA2IDIzOjM4OjEzIC0wMDAwCTEuNjANCisrKyBzcmMvaXBvZC1kZXZpY2UuYwkx NSBBcHIgMjAwNiAyMzowMzoyMyAtMDAwMA0KQEAgLTgyNCwyMCArODI0LDI1IEBADQogICAgIGdz aG9ydCBsZW5ndGg7DQogICAgIGd1bmljaGFyMiAqdXRmMTY7DQogICAgIGdjaGFyICp1dGY4Ow0K LSAgICANCisgICAgdW5zaWduZWQgaW50IGk7DQorDQogICAgIGlmKGZyZWFkKCZsZW5ndGgsIDEs IHNpemVvZihnc2hvcnQpLCBmZCkgPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAg IH0gZWxzZSBpZihsZW5ndGggPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAgIH0N CiAgICAgDQorICAgIGxlbmd0aCA9IEdJTlQxNl9GUk9NX0xFIChsZW5ndGgpOw0KKw0KICAgICB1 dGYxNiA9IChndW5pY2hhcjIgKilnX21hbGxvYyhsZW5ndGggKiBzaXplb2YoZ3VuaWNoYXIyKSk7 DQogICAgIGlmKHV0ZjE2ID09IE5VTEwpIHsNCiAgICAgICAgIHJldHVybiBOVUxMOw0KICAgICB9 IGVsc2UgaWYoZnJlYWQodXRmMTYsIHNpemVvZihndW5pY2hhcjIpLCBsZW5ndGgsIGZkKSA8PSAw KSB7DQogICAgICAgICByZXR1cm4gTlVMTDsNCiAgICAgfQ0KLSAgICANCisgICAgZm9yIChpID0g MDsgaSA8IGxlbmd0aDsgaSsrKSB7DQorCXV0ZjE2W2ldID0gR0lOVDE2X0ZST01fTEUgKHV0ZjE2 W2ldKTsNCisgICAgfQ0KICAgICB1dGY4ID0gZ191dGYxNl90b191dGY4KHV0ZjE2LCBsZW5ndGgs IE5VTEwsIE5VTEwsIE5VTEwpOw0KICAgICANCiAgICAgZ19mcmVlKHV0ZjE2KTsNCkBAIC04NTAs MTggKzg1NSwyNSBAQA0KIGlwb2RfZGV2aWNlX3dyaXRlX2RldmljZV9pbmZvX3N0cmluZyhnY2hh ciAqc3RyLCBGSUxFICpmZCkNCiB7DQogICAgIGd1bmljaGFyMiAqdW5pc3RyOw0KLSAgICBnc2hv cnQgbGVuZ3RoOw0KKyAgICBnbG9uZyBsZW5ndGg7DQorICAgIGdzaG9ydCBsZW5ndGhfbGU7DQor ICAgIHVuc2lnbmVkIGludCBpOw0KIA0KICAgICBpZihzdHIgPT0gTlVMTCkgew0KICAgICAgICAg cmV0dXJuOw0KICAgICB9DQogICAgIA0KLSAgICBsZW5ndGggPSBzdHJsZW4oc3RyKTsNCi0gICAg dW5pc3RyID0gZ191dGY4X3RvX3V0ZjE2KHN0ciwgbGVuZ3RoLCBOVUxMLCBOVUxMLCBOVUxMKTsN Ci0gICAgDQorICAgIHVuaXN0ciA9IGdfdXRmOF90b191dGYxNihzdHIsIC0xLCBOVUxMLCAmbGVu Z3RoLCBOVUxMKTsNCisgICAgaWYgKHVuaXN0ciA9PSBOVUxMKSB7DQorCXJldHVybjsNCisgICAg fQ0KKyAgICBmb3IgKGkgPSAwOyBpIDwgbGVuZ3RoOyBpKyspIHsNCisJdW5pc3RyW2ldID0gR0lO VDE2X1RPX0xFICh1bmlzdHJbaV0pOw0KKyAgICB9DQorICAgIGxlbmd0aCAqPSBzaXplb2YgKGd1 bmljaGFyMik7DQogICAgIGxlbmd0aCA9IGxlbmd0aCA+IDB4MTk4ID8gMHgxOTggOiBsZW5ndGg7 DQotDQotICAgIGlmKGZ3cml0ZSgmbGVuZ3RoLCAyLCAxLCBmZCkgPD0gMCANCisgICAgbGVuZ3Ro X2xlID0gR0lOVDE2X1RPX0xFIChsZW5ndGgpOw0KKyAgICBpZihmd3JpdGUoJmxlbmd0aF9sZSwg MiwgMSwgZmQpIDw9IDAgDQogICAgICAgICB8fCBmd3JpdGUodW5pc3RyLCAyLCBsZW5ndGgsIGZk KSA8PSAwKSB7DQogICAgICAgICBnX3dhcm5pbmcoIkNvdWxkIG5vdCB3cml0ZSB0byBEZXZpY2VJ bmZvIGZpbGUiKTsNCiAgICAgfQ0K --=-EkK9V63M14Bw9vauXkCw-- --=-bZrh/Wa52c1Dvjr47M+j Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQX1t+13jZzlzSs4RApzBAJ0XvjsgdPcDbyYRytRc3NYGi8cjMwCeMzKL XDiwGXNnj/dKelq1S/QT3N8= =DuVJ -----END PGP SIGNATURE----- --=-bZrh/Wa52c1Dvjr47M+j-- From lukas@pmad.net Sun Apr 16 08:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 291933B15CE for ; Sun, 16 Apr 2006 08:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06694-03 for ; Sun, 16 Apr 2006 08:13:15 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C394F3B1519 for ; Sun, 16 Apr 2006 08:13:13 -0400 (EDT) Received: (qmail 8117 invoked by uid 503); 16 Apr 2006 12:13:21 -0000 Received: (QMFILT: 1.0); 16 Apr 2006 12:13:21 -0000 Received: from b6.ovh.net (HELO mail51.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 16 Apr 2006 12:13:21 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:37 -0000 Received: from mail51.ha.ovh.net (10.0.50.51) by mail51.ha.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from adsl-d74.87-197-130.telecom.sk (HELO ?192.168.0.23?) (87.197.130.74) by ns0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-MIftsI8pDW7HXQVLyMKT" Date: Sun, 16 Apr 2006 14:04:38 +0200 Message-Id: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.130.74 (adsl-d74.87-197-130.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.110, BAYES_00=-2.599] X-Spam-Score: -2.489 X-Spam-Level: Subject: [Banshee-List] Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 12:13:18 -0000 --=-MIftsI8pDW7HXQVLyMKT Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Hopefully the final version of the child source patch. I figured I forgot to commment out some lines in the previous one, so here is the fixed version. Please test it and if you still do find any issues please report them. Thanks, Lukas --=-MIftsI8pDW7HXQVLyMKT Content-Disposition: attachment; filename=banshee-childsource-0.8.patch Content-Type: text/x-patch; name=banshee-childsource-0.8.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 16 Apr 2006 12:01:53 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 16 Apr 2006 12:01:53 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 16 Apr 2006 12:01:56 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 16 Apr 2006 12:01:58 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 16 Apr 2006 12:01:58 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 16 Apr 2006 12:02:03 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 16 Apr 2006 12:02:03 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 16 Apr 2006 12:02:10 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 16 Apr 2006 12:02:10 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-MIftsI8pDW7HXQVLyMKT-- From benjy.grogan@gmail.com Sun Apr 16 17:31:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A8D5D3B1B02 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32719-06 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id E344A3B1A46 for ; Sun, 16 Apr 2006 17:31:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so476908pyu for ; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=C1Tpo2UpOBSSC/TuLLjgmeICDHJqSUulYNco7GxoW6rUOGc+yOBhUW4GYAkzo1/HWBS4MeZNDQ85RFcUZQj/TzhJbGGvAMiINYo5zbW6p8lThbKMfSSsIm6b7GrIIelEZ8ZslsrnSqXYna2BdWC0thb+ZAHzsUjqIc0LJyVGkws= Received: by 10.35.15.11 with SMTP id s11mr1929318pyi; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Received: by 10.35.109.12 with HTTP; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Message-ID: Date: Sun, 16 Apr 2006 17:31:30 -0400 From: "Benjy Grogan" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.604 tagged_above=-999 required=2 tests=[AWL=-0.562, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.604 X-Spam-Level: Subject: [Banshee-List] Banshee Slow to Re-Load Music Library After Clearing Search X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 21:31:31 -0000 Hello I'm using Banshee 0.10.9 on FC5 and enjoying it. Though, now that I've been able to import my entire music collection (over 3000 songs) I find the search box has become a pain. If I do a search for an artist, and then clear that search it will take approximately 20 seconds or so of 100% CPU usage to load up the original list of some 3000 songs. There should be some kind of a cache to take care of loading the Music Library, because clearly this is a problem that will only get worse. I've also got a question. If I'm scrolling through my list of songs, and then the next song plays, the list will slingshot to that song, interrupting my scrolling. Is there a way to disable this? I always found this annoying on Windows Media Player. I'm sure others do too.=20 Could be a good Advanced Preference: the option to disable slingshotting to the next song playing. But liking Banshee so far. Thanks. Benjy From gabriel.burt@gmail.com Mon Apr 17 13:47:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D46293B0566 for ; Mon, 17 Apr 2006 13:47:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28600-09 for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.178]) by menubar.gnome.org (Postfix) with ESMTP id 15C193B272D for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so682825pyu for ; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dbUwY6OGmzHWyfkqP9SyD3IUSi89a7M16y/VF3G6Hx48rUJ2CjF3j9i4k3efT6in3d1MB8Q4YuvKm2QMbzNwpQ4onwxMgYZ6PHZVNh3ccYWk8S6170W3tA7anHtIZzZPv2iNdwYtPvoli16W9eCJUGy5JtiK1mRnIycs2xocBGU= Received: by 10.35.96.11 with SMTP id y11mr1637128pyl; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Message-ID: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> Date: Mon, 17 Apr 2006 12:47:17 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18786_27847866.1145296037209" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.138 tagged_above=-999 required=2 tests=[AWL=0.238, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.138 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:47:32 -0000 ------=_Part_18786_27847866.1145296037209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpP aywgSSdtIGF0dGFjaGluZyB0aGUgY29tYmluZWQgcGF0Y2gsIGEgbGl0dGxlIGxhdGVyIHRoYW4g cHJvbWlzZWQsCnNvcnJ5LiA6KQoKR2FicmllbAo= ------=_Part_18786_27847866.1145296037209 Content-Type: text/x-patch; name=mass-storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em53nzmo Content-Disposition: attachment; filename="mass-storage.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.450 diff -u -r1.450 ChangeLog --- ChangeLog 17 Apr 2006 14:50:37 -0000 1.450 +++ ChangeLog 17 Apr 2006 17:32:34 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: When adding a song to + the device, overwrite it if it is out of date. Don't use the volume + label for the Name if it's blank. If the volume for a new device isn't + yet mounted, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * entagged-sharp/Mp4/Mp4FileReader.cs: Added audio/mp4, audio/m4a mime Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 17 Apr 2006 17:32:35 -0000 @@ -93,6 +93,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:32:35 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,11 +188,11 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -521,6 +521,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 17 Apr 2006 17:32:35 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,37 +78,52 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + + // FIXME should probably reload the tracks.. + } + } + public override void Dispose() { // FIXME anything else to do here? volume = null; base.Dispose(); } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } private void ReloadDatabase() { @@ -145,7 +160,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +179,49 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; + + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + + // If it already is on the device but it's out of date, remove it + if (File.Exists (new_path) && File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + + if (!File.Exists (new_path)) { + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + } - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +261,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +287,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +310,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 17 Apr 2006 17:32:36 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 12:40:38.000000000 -0500 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 11:35:47.000000000 -0500 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_18786_27847866.1145296037209-- From jstembridge@gmail.com Mon Apr 17 15:26:00 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B8C63B0349 for ; Mon, 17 Apr 2006 15:26:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01600-03 for ; Mon, 17 Apr 2006 15:25:53 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id EC0953B27F0 for ; Mon, 17 Apr 2006 15:25:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1323902wri for ; Mon, 17 Apr 2006 12:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ad6kGBc6N2U1lh28qfH5pnidbDGBNTgLskdI7iwZBsXFfUjbc/fokWJ0Xeu/POGlgbDPwgFtgi3Z+Y4doap5+4WDVR7+eRRvNlsJ7+J3O4lo3jYLs/hSCUr+7lh3odS6fZd75vss/pF8thKvbb5zK/4iOXeV6JQceqLMJfyCM+w= Received: by 10.54.122.17 with SMTP id u17mr267737wrc; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Message-ID: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> Date: Mon, 17 Apr 2006 20:25:01 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.54 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.54 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 19:26:00 -0000 Hi Gabriel, On 4/17/06, Gabriel Burt wrote: > Ok, I'm attaching the combined patch, a little later than promised, > sorry. :) Thanks for incorporating my patches, a couple of things: 1) There's now a conflict in Dap.cs against latest CVS. 2) With regard to the "If the volume for a new device isn't yet mounted, wait for it." The problem isn't that the device isn't mounted, as hal is correctly telling us that it is via volume.is_mounted. The actual issue is that at this point the list of mounted volumes coming from the Gnome VFS monitor doesn't contain our device. I don't know why this is, but I guess it would be the case if hal events are fired of synchronously and we get the mount event before gnome vfs does. Cheers, James. From jstembridge@gmail.com Mon Apr 17 18:11:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 310043B0D37 for ; Mon, 17 Apr 2006 18:11:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11728-04 for ; Mon, 17 Apr 2006 18:11:03 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.232]) by menubar.gnome.org (Postfix) with ESMTP id D47883B0BBF for ; Mon, 17 Apr 2006 18:11:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1355067wri for ; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KhssVVMmiKBMNNEhfwCwm90jpBUHvEJQSlqZ8yBRELaiLBD1d60QP6/L8xzc0E607cWQ0F/E939hJgddsKPdzam9/vCEI1Xzls66oBOGz+cfpmg8ZuE0VDBoCf2tB8589cs75FkqhV6BmUOUFlbCGcAkMEVgbEDxZ2jGZikF/mU= Received: by 10.54.66.15 with SMTP id o15mr427567wra; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Message-ID: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> Date: Mon, 17 Apr 2006 23:11:02 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8988_6161796.1145311862126" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.057, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 22:11:14 -0000 ------=_Part_8988_6161796.1145311862126 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/17/06, James Stembridge wrote: > Thanks for incorporating my patches, a couple of things: ... Fixed up patch attached. ------=_Part_8988_6161796.1145311862126 Content-Type: text/x-patch; name="mass-storage2.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mass-storage2.patch" X-Attachment-Id: f_em5d3dxv SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2JhbnNoZWUv Q2hhbmdlTG9nLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQ1MQpkaWZmIC11IC1yMS40NTEgQ2hh bmdlTG9nCi0tLSBDaGFuZ2VMb2cJMTcgQXByIDIwMDYgMTc6NDQ6MDkgLTAwMDAJMS40NTEKKysr IENoYW5nZUxvZwkxNyBBcHIgMjAwNiAxOToxMDoyNSAtMDAwMApAQCAtMSwzICsxLDMxIEBACisy MDA2LTA0LTE3ICBKYW1lcyBTdGVtYnJpZGdlICA8anN0ZW1icmlkZ2VAZ21haWwuY29tPgorCisJ KiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3M6IFdoZW4gYWRk aW5nIGEgc29uZyB0bworCXRoZSBkZXZpY2UsIG92ZXJ3cml0ZSBpdCBpZiBpdCBpcyBvdXQgb2Yg ZGF0ZS4gRG9uJ3QgdXNlIHRoZSB2b2x1bWUKKwlsYWJlbCBmb3IgdGhlIE5hbWUgaWYgaXQncyBi bGFuay4gSWYgbW91bnRlZCB2b2x1bWUgaXNuJ3QgYXZhaWxhYmxlCisJZnJvbSBWRlMgeWV0LCB3 YWl0IGZvciBpdC4KKworMjAwNi0wNC0xNyAgR2FicmllbCBCdXJ0ICA8Z2FicmllbC5idXJ0QGdt YWlsLmNvbT4KKworCSogc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbTogYWRkIFF1ZXVlZE9w ZXJhdGlvbk1hbmFnZXIuY3MuCisKKwkqIHNyYy9CYW5zaGVlLkJhc2UvUXVldWVkT3BlcmF0aW9u TWFuYWdlci5jczogTmV3IGZpbGUsIGFsbG93cyBmb3IgZ2VuZXJpYworCWFzeW5jaHJvbm91cyBl dmVudHMgbGlrZSBjb3B5aW5nIGZpbGVzIHRvIGEgVVNCIERBUCwgZXRjLgorCisJKiBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3M6IEFkZCBFbWl0VHJhY2tBZGRlZCBtZXRob2QgYW5kIGFsbG93 CisJc3ViLWNsYXNzZXMgdG8gb3ZlcnJpZGUgQWRkVHJhY2suCisKKwkqIHNyYy9CYW5zaGVlLkRh cC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jczogRml4IHRoZSBidWcgd2hlcmUgdGhlIERB UAorCWNvdWxkbid0IGJlIHBsdWdnZWQgaW4gd2hlbiBCYW5zaGVlIHN0YXJ0ZWQsIGhhbmRsZSBj b3B5aW5nIGZpbGVzIHRvIHRoZQorCWRldmljZSBhc3luY2hyb25vdXNseSB1c2luZyBhIFF1ZXVl ZE9wZXJhdGlvbk1hbmFnZXIgdGhhdCBwb3BzIHVwIGEKKwlBY3RpdmVVc2VyRXZlbnQgaWYgdGhl IHRyYW5zZmVyIGlzIHNsb3cuICBFc2NhcGUgYXJ0aXN0L2FsYnVtL3RpdGxlIHdoZW4KKwljcmVh dGluZyB0aGUgZGVzdGluYXRpb24gZmlsZW5hbWUuICBDYXRjaCBleGNlcHRpb25zIGluIHRoZSBj b3B5LgorCisJKiBzcmMvQmFuc2hlZS5XaWRldHMvQWN0aXZlVXNlckV2ZW50LmNzOiBBZGQgYW4g b3B0aW9uIGZvciBoYXZpbmcgdGhlIHVzZXIKKwlldmVudCBub3QgcmVnaXN0ZXIgaXRzZWxmIChh bmQgdGhlcmVmb3JlIG5vdCBzaG93IGl0c2VsZikgdW50aWwgYXQgbGVhc3QgYQorCXNlY29uZCBo YXMgcGFzc2VkLCBhdCB3aGljaCB0aW1lIGlmIHRoZSBvcGVyYXRpb24gaXMgbGVzcyB0aGFuIDMz JSBkb25lLAorCWl0IGlzIHJlZ2lzdGVyZWQgYW5kIHNob3duIChhbmQgb3RoZXJ3aXNlIGl0IGlz IG5vdCkuCisKIDIwMDYtMDQtMTcgIEFhcm9uIEJvY2tvdmVyICA8YWFyb25AYWJvY2sub3JnPgog CiAJKiBjb25maWd1cmUuYWM6IFJlcXVpcmUgbmpiLXNoYXJwIDAuMy4wKwpJbmRleDogc3JjL0Jh bnNoZWUuQmFzZS9NYWtlZmlsZS5hbQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2Jh bnNoZWUvc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbSx2CnJldHJpZXZpbmcgcmV2aXNpb24g MS4yOApkaWZmIC11IC1yMS4yOCBNYWtlZmlsZS5hbQotLS0gc3JjL0JhbnNoZWUuQmFzZS9NYWtl ZmlsZS5hbQk5IEFwciAyMDA2IDIxOjMwOjIzIC0wMDAwCTEuMjgKKysrIHNyYy9CYW5zaGVlLkJh c2UvTWFrZWZpbGUuYW0JMTcgQXByIDIwMDYgMTk6MTA6MjYgLTAwMDAKQEAgLTkzLDYgKzkzLDcg QEAKIAkkKHNyY2RpcikvTGlicmFyeVRyYWNrSW5mby5jcyBcCiAJJChzcmNkaXIpL0ZpbGVUcmFj a0luZm8uY3MgXAogCSQoc3JjZGlyKS9EQnVzUmVtb3RlLmNzIFwKKwkkKHNyY2RpcikvUXVldWVk T3BlcmF0aW9uTWFuYWdlci5jcyBcCiAJJChzcmNkaXIpL1F1ZXVlZFNxbGl0ZURhdGFiYXNlLmNz IFwKIAkkKHNyY2RpcikvQXVkaW9DZFJpcHBlci5jcyBcCiAJJChzcmNkaXIpL0lJbXBvcnRTb3Vy Y2UuY3MgXApJbmRleDogc3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNT IGZpbGU6IC9jdnMvZ25vbWUvYmFuc2hlZS9zcmMvQmFuc2hlZS5CYXNlL0RhcC9EYXAuY3Msdgpy ZXRyaWV2aW5nIHJldmlzaW9uIDEuMTYKZGlmZiAtdSAtcjEuMTYgRGFwLmNzCi0tLSBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3MJMTcgQXByIDIwMDYgMTc6NDQ6MTAgLTAwMDAJMS4xNgorKysg c3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBA IC0xMjMsNyArMTIzLDcgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZhdGUgdWludCB1aWQ7CiAg ICAgICAgIHByaXZhdGUgUHJvcGVydHlUYWJsZSBwcm9wZXJ0aWVzID0gbmV3IFByb3BlcnR5VGFi bGUoKTsKLSAgICAgICAgcHJpdmF0ZSBBcnJheUxpc3QgdHJhY2tzID0gbmV3IEFycmF5TGlzdCgp OyAKKyAgICAgICAgcHJvdGVjdGVkIEFycmF5TGlzdCB0cmFja3MgPSBuZXcgQXJyYXlMaXN0KCk7 IAogICAgICAgICBwcml2YXRlIEFjdGl2ZVVzZXJFdmVudCBzYXZlX3JlcG9ydF9ldmVudDsKICAg ICAgICAgcHJpdmF0ZSBib29sIGlzX3N5bmNpbmcgPSBmYWxzZTsKICAgICAgICAgcHJpdmF0ZSBi b29sIGNhbl9jYW5jZWxfc2F2ZSA9IHRydWU7CkBAIC0xODgsNyArMTg4LDcgQEAKICAgICAgICAg ICAgIE9uUHJvcGVydGllc0NoYW5nZWQoKTsKICAgICAgICAgfQogICAgICAgICAKLSAgICAgICAg cHVibGljIHZvaWQgQWRkVHJhY2soVHJhY2tJbmZvIHRyYWNrKQorICAgICAgICBwdWJsaWMgdmly dHVhbCB2b2lkIEFkZFRyYWNrKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAg ICAgVHJhY2tJbmZvIGRhcF90cmFjayA9IE9uVHJhY2tBZGRlZCh0cmFjayk7CiAgICAgICAgICAg ICAKQEAgLTUzNyw2ICs1MzcsMTIgQEAKICAgICAgICAgICAgIAogICAgICAgICAgICAgcmV0dXJu IG5ldyBTYWZlVXJpKGRpciArIFBhdGguRGlyZWN0b3J5U2VwYXJhdG9yQ2hhciAKICAgICAgICAg ICAgICAgICArICIuYmFuc2hlZS1kYXAtIiArIGZpbGUgKyAiLiIgKyBuZXdleHQpOworICAgICAg ICB9CisKKyAgICAgICAgcHJvdGVjdGVkIHZvaWQgRW1pdFRyYWNrQWRkZWQgKFRyYWNrSW5mbyB0 cmFjaykKKyAgICAgICAgeworICAgICAgICAgICAgaWYoVHJhY2tBZGRlZCAhPSBudWxsKQorICAg ICAgICAgICAgICAgIFRyYWNrQWRkZWQodGhpcywgbmV3IERhcFRyYWNrTGlzdFVwZGF0ZWRBcmdz KHRyYWNrKSk7CiAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICBwdWJsaWMgdmlydHVhbCBH ZGsuUGl4YnVmIEdldEljb24oaW50IHNpemUpCkluZGV4OiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0 b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9i YW5zaGVlL3NyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcyx2CnJl dHJpZXZpbmcgcmV2aXNpb24gMS42CmRpZmYgLXUgLXIxLjYgTWFzc1N0b3JhZ2VEYXAuY3MKLS0t IHNyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcwk5IEFwciAyMDA2 IDIxOjMwOjI2IC0wMDAwCTEuNgorKysgc3JjL0JhbnNoZWUuRGFwL01hc3NTdG9yYWdlL01hc3NT dG9yYWdlRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBAIC02Myw3ICs2Myw3IEBA CiAgICAgICAgICAgICAgICAgcGxheWVyX2RldmljZSA9IEhhbC5EZXZpY2UuVWRpc1RvRGV2aWNl cyAodm9sdW1lX2RldmljZS5Db250ZXh0LCBuZXcgc3RyaW5nIFtdIHt2b2x1bWVfZGV2aWNlIFsi aW5mby5wYXJlbnQiXX0pIFswXTsKICAgICAgICAgICAgICAgICB1c2JfZGV2aWNlID0gSGFsLkRl dmljZS5VZGlzVG9EZXZpY2VzIChwbGF5ZXJfZGV2aWNlLkNvbnRleHQsIG5ldyBzdHJpbmcgW10g e3BsYXllcl9kZXZpY2UgWyJzdG9yYWdlLnBoeXNpY2FsX2RldmljZSJdfSkgWzBdOwogICAgICAg ICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKLSAgICAgICAgICAgICAgICAgICAgcmV0dXJu IEluaXRpYWxpemVSZXN1bHQuSW52YWxpZDsKKyAgICAgICAgICAgICAgICByZXR1cm4gSW5pdGlh bGl6ZVJlc3VsdC5JbnZhbGlkOwogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBpZiAoIXBs YXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMgKCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuYWNjZXNz X21ldGhvZCIpIHx8CkBAIC03OCwzNyArNzgsNTIgQEAKICAgICAgICAgICAgICAgICAgICAgIXZv bHVtZV9kZXZpY2UuR2V0UHJvcGVydHlCb29sKCJ2b2x1bWUuaXNfbW91bnRlZCIpKQogICAgICAg ICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LldhaXRGb3JQcm9wZXJ0eUNoYW5nZTsK IAkgICAgCi0KLSAgICAgICAgICAgIHN0cmluZyBibG9ja19kZXZpY2UgPSB2b2x1bWVfZGV2aWNl IFsiYmxvY2tfZGV2aWNlIl07Ci0gICAgICAgICAgICBmb3JlYWNoIChHbm9tZS5WZnMuVm9sdW1l IHZvbCBpbiBtb25pdG9yLk1vdW50ZWRWb2x1bWVzKSB7Ci0gICAgICAgICAgICAgICAgaWYgKHZv bC5EZXZpY2VQYXRoID09IGJsb2NrX2RldmljZSkgewotICAgICAgICAgICAgICAgICAgICB0aGlz LnZvbHVtZSA9IHZvbDsKLSAgICAgICAgICAgICAgICAgICAgYnJlYWs7Ci0gICAgICAgICAgICAg ICAgfQorICAgICAgICAgICAgdm9sdW1lID0gbW9uaXRvci5HZXRWb2x1bWVGb3JQYXRoKE1vdW50 UG9pbnQpOworICAgICAgICAgICAgaWYodm9sdW1lID09IG51bGwpIHsKKyAgICAgICAgICAgICAg ICAvLyBHbm9tZSBWRlMgZG9lc24ndCBrbm93IHZvbHVtZSBpcyBtb3VudGVkIHlldAorICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCArPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdHJ1ZTsKKyAgICAgICAgICAgIH0gZWxzZSB7Cisg ICAgICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdm9sdW1lLklzUmVhZE9ubHk7CiAgICAgICAg ICAgICB9CiAKLSAgICAgICAgICAgIGlmICh2b2x1bWUgPT0gbnVsbCkKLSAgICAgICAgICAgICAg ICByZXR1cm4gSW5pdGlhbGl6ZVJlc3VsdC5JbnZhbGlkOwotCi0gICAgICAgICAgICBpc19yZWFk X29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKLQogICAgICAgICAgICAgYmFzZS5Jbml0aWFsaXpl ICh1c2JfZGV2aWNlKTsKICAKICAgICAgICAgICAgIEluc3RhbGxQcm9wZXJ0eSgiVmVuZG9yIiwg dXNiX2RldmljZVsidXNiLnZlbmRvciJdKTsKIAotICAgICAgICAgICAgUmVsb2FkRGF0YWJhc2Uo KTsKKyAgICAgICAgICAgIGlmKCFHbG9iYWxzLlVJTWFuYWdlci5Jc0luaXRpYWxpemVkKSB7Cisg ICAgICAgICAgICAgICAgR2xvYmFscy5VSU1hbmFnZXIuSW5pdGlhbGl6ZWQgKz0gT25VSU1hbmFn ZXJJbml0aWFsaXplZDsKKyAgICAgICAgICAgIH0gZWxzZSB7CisgICAgICAgICAgICAgICAgUmVs b2FkRGF0YWJhc2UoKTsKKyAgICAgICAgICAgIH0KICAgICAgICAgICAgIAogICAgICAgICAgICAg Ly8gRklYTUUgcHJvYmFibHkgc2hvdWxkIGJlIGFibGUgdG8gY2FuY2VsIGF0IHNvbWUgcG9pbnQg d2hlbiB5b3UgY2FuIGFjdHVhbGx5IHN5bmMKICAgICAgICAgICAgIENhbkNhbmNlbFNhdmUgPSBm YWxzZTsKICAgICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LlZhbGlkOwogICAgICAg ICB9CiAKKyAgICAgICAgcHVibGljIHZvaWQgT25Wb2x1bWVNb3VudGVkKG9iamVjdCBvLCBHbm9t ZS5WZnMuVm9sdW1lTW91bnRlZEFyZ3MgYXJncykgeworICAgICAgICAgICAgaWYoYXJncy5Wb2x1 bWUuRGV2aWNlUGF0aCA9PSB2b2x1bWVfZGV2aWNlWyJibG9jay5kZXZpY2UiXSkgeworICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCAtPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAKKyAgICAgICAgICAgICAgICB2b2x1bWUgPSBhcmdzLlZvbHVtZTsKKyAgICAgICAg ICAgICAgICBpc19yZWFkX29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKKworICAgICAgICAgICAg ICAgIC8vIEZJWE1FIHNob3VsZCBwcm9iYWJseSByZWxvYWQgdGhlIHRyYWNrcy4uCisgICAgICAg ICAgICB9CisgICAgICAgIH0KKwogICAgICAgICBwdWJsaWMgb3ZlcnJpZGUgdm9pZCBEaXNwb3Nl KCkKICAgICAgICAgewogICAgICAgICAgICAgLy8gRklYTUUgYW55dGhpbmcgZWxzZSB0byBkbyBo ZXJlPwogICAgICAgICAgICAgdm9sdW1lID0gbnVsbDsKICAgICAgICAgICAgIGJhc2UuRGlzcG9z ZSgpOwogICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSB2b2lkIE9uVUlNYW5hZ2VySW5pdGlh bGl6ZWQob2JqZWN0IG8sIEV2ZW50QXJncyBhcmdzKQorICAgICAgICB7CisgICAgICAgICAgICBS ZWxvYWREYXRhYmFzZSAoKTsKKyAgICAgICAgfQogIAogICAgICAgICBwcml2YXRlIHZvaWQgUmVs b2FkRGF0YWJhc2UoKQogICAgICAgICB7CkBAIC0xNDUsNyArMTYwLDggQEAKIAogICAgICAgICBw dWJsaWMgb3ZlcnJpZGUgdm9pZCBFamVjdCAoKQogICAgICAgICB7Ci0gICAgICAgICAgICB2b2x1 bWUuVW5tb3VudCAoVW5tb3VudENhbGxiYWNrKTsKKyAgICAgICAgICAgIGlmKHZvbHVtZSAhPSBu dWxsKQorICAgICAgICAgICAgICAgIHZvbHVtZS5Vbm1vdW50IChVbm1vdW50Q2FsbGJhY2spOwog ICAgICAgICB9CiAKICAgICAgICAgcHJpdmF0ZSB2b2lkIFVubW91bnRDYWxsYmFjayAoYm9vbCBz dWNjZWVkZWQsIHN0cmluZyBlcnJvciwgc3RyaW5nIGRldGFpbGVkX2Vycm9yKQpAQCAtMTYzLDE3 ICsxNzksNDkgQEAKICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBDb25zb2xlLldy aXRlTGluZSAoIkZhaWxlZCB0byBlamVjdC4gIHsxfSB7Mn0iLCBlcnJvciwgZGV0YWlsZWRfZXJy b3IpOwogICAgICAgICB9CisKKyAgICAgICAgcHVibGljIG92ZXJyaWRlIHZvaWQgQWRkVHJhY2so VHJhY2tJbmZvIHRyYWNrKQorICAgICAgICB7CisgICAgICAgICAgICBpZiAodHJhY2sgPT0gbnVs bCB8fCBJc1JlYWRPbmx5KQorICAgICAgICAgICAgICAgIHJldHVybjsKKworICAgICAgICAgICAg Ly8gSWYgd2UncmUgImFkZGluZyIgaXQgd2hlbiBpdCdzIGFscmVhZHkgb24gdGhlIGRldmljZSwg dGhlbgorICAgICAgICAgICAgLy8gd2UgZG9uJ3QgbmVlZCB0byBjb3B5IGl0CisgICAgICAgICAg ICBpZiAodHJhY2sgaXMgTWFzc1N0b3JhZ2VUcmFja0luZm8pIHsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKHRyYWNrKTsKKyAgICAgICAgICAgICAgICBFbWl0VHJhY2tBZGRlZCh0cmFjayk7 CisgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgIENvcGllci5FbnF1ZXVlICh0 cmFjayk7CisgICAgICAgICAgICB9CisgICAgICAgIH0KICAgICAgICAgCi0gICAgICAgIHByb3Rl Y3RlZCBvdmVycmlkZSBUcmFja0luZm8gT25UcmFja0FkZGVkKFRyYWNrSW5mbyB0cmFjaykKKyAg ICAgICAgcHJpdmF0ZSB2b2lkIEhhbmRsZUNvcHlSZXF1ZXN0ZWQgKG9iamVjdCBvLCBRdWV1ZWRP cGVyYXRpb25BcmdzIGFyZ3MpCiAgICAgICAgIHsKLSAgICAgICAgICAgIGlmICh0cmFjayBpcyBN YXNzU3RvcmFnZVRyYWNrSW5mbyB8fCBJc1JlYWRPbmx5KQotICAgICAgICAgICAgICAgIHJldHVy biB0cmFjazsKKyAgICAgICAgICAgIFRyYWNrSW5mbyB0cmFjayA9IGFyZ3MuT2JqZWN0IGFzIFRy YWNrSW5mbzsKKworICAgICAgICAgICAgaWYgKHRyYWNrID09IG51bGwpCisgICAgICAgICAgICAg ICAgcmV0dXJuOworICAgICAgICAgICAgCisgICAgICAgICAgICB0cnkgeworICAgICAgICAgICAg ICAgIHN0cmluZyBuZXdfcGF0aCA9IEdldFRyYWNrUGF0aCAodHJhY2spOworCisgICAgICAgICAg ICAgICAgLy8gSWYgaXQgYWxyZWFkeSBpcyBvbiB0aGUgZGV2aWNlIGJ1dCBpdCdzIG91dCBvZiBk YXRlLCByZW1vdmUgaXQKKyAgICAgICAgICAgICAgICBpZiAoRmlsZS5FeGlzdHMgKG5ld19wYXRo KSAmJiBGaWxlLkdldExhc3RXcml0ZVRpbWUodHJhY2suVXJpLkxvY2FsUGF0aCkgPiBGaWxlLkdl dExhc3RXcml0ZVRpbWUobmV3X3BhdGgpKQorICAgICAgICAgICAgICAgICAgICBSZW1vdmVUcmFj ayhuZXcgTWFzc1N0b3JhZ2VUcmFja0luZm8obmV3IFNhZmVVcmkobmV3X3BhdGgpKSk7CisKKyAg ICAgICAgICAgICAgICBpZiAoIUZpbGUuRXhpc3RzIChuZXdfcGF0aCkpIHsKKyAgICAgICAgICAg ICAgICAgICAgICAgIERpcmVjdG9yeS5DcmVhdGVEaXJlY3RvcnkgKFBhdGguR2V0RGlyZWN0b3J5 TmFtZSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICAgICAgICAgIEZpbGUuQ29weSAodHJh Y2suVXJpLkxvY2FsUGF0aCwgbmV3X3BhdGgpOworICAgICAgICAgICAgICAgIH0KIAotICAgICAg ICAgICAgc3RyaW5nIG5ld19wYXRoID0gR2V0VHJhY2tQYXRoICh0cmFjayk7Ci0gICAgICAgICAg ICBEaXJlY3RvcnkuQ3JlYXRlRGlyZWN0b3J5IChQYXRoLkdldERpcmVjdG9yeU5hbWUgKG5ld19w YXRoKSk7Ci0gICAgICAgICAgICBGaWxlLkNvcHkgKHRyYWNrLlVyaS5Mb2NhbFBhdGgsIG5ld19w YXRoKTsKKyAgICAgICAgICAgICAgICBUcmFja0luZm8gbmV3X3RyYWNrID0gbmV3IE1hc3NTdG9y YWdlVHJhY2tJbmZvIChuZXcgU2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKG5ld190cmFjayk7CisgICAgICAgICAgICAgICAgRW1pdFRyYWNrQWRkZWQodHJh Y2spOwogCi0gICAgICAgICAgICByZXR1cm4gbmV3IE1hc3NTdG9yYWdlVHJhY2tJbmZvIChuZXcg U2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICBhcmdzLlJldHVybk1lc3NhZ2Ug PSBTdHJpbmcuRm9ybWF0KCJ7MH0gLSB7MX0iLCB0cmFjay5BcnRpc3QsIHRyYWNrLlRpdGxlKTsK KyAgICAgICAgICAgIH0gY2F0Y2ggKEV4Y2VwdGlvbiBlKSB7CisgICAgICAgICAgICAgICAgYXJn cy5SZXR1cm5NZXNzYWdlID0gU3RyaW5nLkZvcm1hdCgiU2tpcHBpbmcgU29uZyIsIHRyYWNrLkFy dGlzdCwgdHJhY2suVGl0bGUpOworICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgIAog ICAgICAgICBwcm90ZWN0ZWQgb3ZlcnJpZGUgdm9pZCBPblRyYWNrUmVtb3ZlZChUcmFja0luZm8g dHJhY2spCkBAIC0yMTMsMTkgKzI2MSwyNCBAQAogICAgICAgICBwcml2YXRlIHN0cmluZyBHZXRU cmFja1BhdGggKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAgICAgc3RyaW5n IGZpbGVfcGF0aCA9ICIiOworCisgICAgICAgICAgICBzdHJpbmcgYXJ0aXN0ID0gRmlsZU5hbWVQ YXR0ZXJuLkVzY2FwZSAodHJhY2suQXJ0aXN0KTsKKyAgICAgICAgICAgIHN0cmluZyBhbGJ1bSA9 IEZpbGVOYW1lUGF0dGVybi5Fc2NhcGUgKHRyYWNrLkFsYnVtKTsKKyAgICAgICAgICAgIHN0cmlu ZyBudW1iZXJfdGl0bGUgPSBGaWxlTmFtZVBhdHRlcm4uRXNjYXBlICh0cmFjay5UcmFja051bWJl clRpdGxlKTsKKwogICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMg KCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuZmlsZXBhdGhfZm9ybWF0IikpIHsKICAgICAgICAgICAg ICAgICBmaWxlX3BhdGggPSBwbGF5ZXJfZGV2aWNlLkdldFByb3BlcnR5U3RyaW5nICgicG9ydGFi bGVfYXVkaW9fcGxheWVyLmZpbGVwYXRoX2Zvcm1hdCIpOwotICAgICAgICAgICAgICAgIGZpbGVf cGF0aCA9IGZpbGVfcGF0aC5SZXBsYWNlICgiJUFydGlzdCIsIHRyYWNrLkFydGlzdCk7Ci0gICAg ICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2UgKCIlQWxidW0iLCB0cmFj ay5BbGJ1bSk7CisgICAgICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2Ug KCIlQXJ0aXN0IiwgYXJ0aXN0KTsKKyAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3Bh dGguUmVwbGFjZSAoIiVBbGJ1bSIsIGFsYnVtKTsKIAogICAgICAgICAgICAgICAgIGlmIChmaWxl X3BhdGguSW5kZXhPZiAoIiVUcmFjayIpID09IC0xKSB7Ci0gICAgICAgICAgICAgICAgICAgIGZp bGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgdHJhY2suVHJhY2tO dW1iZXJUaXRsZSk7CisgICAgICAgICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5Q YXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgICAgICB9 IGVsc2UgewotICAgICAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFj ZSAoIiVUcmFjayIsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFjZSAoIiVUcmFjayIsIG51bWJlcl90aXRsZSk7 CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lICh0cmFjay5BcnRpc3QsIHRyYWNr LkFsYnVtKTsKLSAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21i aW5lIChmaWxlX3BhdGgsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAg IGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGFydGlzdCwgYWxidW0pOworICAg ICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0 aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgZmlsZV9wYXRo ICs9IFBhdGguR2V0RXh0ZW5zaW9uICh0cmFjay5VcmkuTG9jYWxQYXRoKTsKQEAgLTIzNCw2ICsy ODcsMjEgQEAKICAgICAgICAgICAgIHJldHVybiBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lIChNb3Vu dFBvaW50LCBmaWxlX3BhdGgpOwogICAgICAgICB9CiAKKyAgICAgICAgcHJpdmF0ZSBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyIGNvcGllcjsKKyAgICAgICAgcHVibGljIFF1ZXVlZE9wZXJhdGlvbk1h bmFnZXIgQ29waWVyIHsKKyAgICAgICAgICAgIGdldCB7CisgICAgICAgICAgICAgICAgaWYgKGNv cGllciA9PSBudWxsKSB7CisgICAgICAgICAgICAgICAgICAgIGNvcGllciA9IG5ldyBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyICgpOworICAgICAgICAgICAgICAgICAgICBjb3BpZXIuQWN0aW9uTWVz c2FnZSA9IENhdGFsb2cuR2V0U3RyaW5nICgiQ29weWluZyBTb25ncyIpOworICAgICAgICAgICAg ICAgICAgICBjb3BpZXIuUHJvZ3Jlc3NNZXNzYWdlID0gQ2F0YWxvZy5HZXRTdHJpbmcgKCJDb3B5 aW5nIHswfSBvZiB7MX0iKTsKKyAgICAgICAgICAgICAgICAgICAgY29waWVyLk9wZXJhdGlvblJl cXVlc3RlZCArPSBIYW5kbGVDb3B5UmVxdWVzdGVkOworICAgICAgICAgICAgICAgIH0KKworICAg ICAgICAgICAgICAgIHJldHVybiBjb3BpZXI7CisgICAgICAgICAgICB9CisgICAgICAgICAgICBz ZXQgeyBjb3BpZXIgPSB2YWx1ZTsgfQorICAgICAgICB9CisKICAgICAgICAgcHVibGljIHZpcnR1 YWwgc3RyaW5nIEljb25JZCB7CiAgICAgICAgICAgICBnZXQgewogICAgICAgICAgICAgICAgIHJl dHVybiBudWxsOwpAQCAtMjQyLDcgKzMxMCw4IEBACiAgCiAgICAgICAgIHB1YmxpYyBvdmVycmlk ZSBzdHJpbmcgTmFtZSB7CiAgICAgICAgICAgICBnZXQgewotICAgICAgICAgICAgICAgIGlmICh2 b2x1bWVfZGV2aWNlLlByb3BlcnR5RXhpc3RzKCJ2b2x1bWUubGFiZWwiKSkKKyAgICAgICAgICAg ICAgICBpZiAodm9sdW1lX2RldmljZS5Qcm9wZXJ0eUV4aXN0cygidm9sdW1lLmxhYmVsIikgJiYK KyAgICAgICAgICAgICAgICAgICAgdm9sdW1lX2RldmljZVsidm9sdW1lLmxhYmVsIl0uTGVuZ3Ro ID4gMCkKICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZvbHVtZV9kZXZpY2VbInZvbHVtZS5s YWJlbCJdOwogCiAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlz dHMoImluZm8ucHJvZHVjdCIpKQpJbmRleDogc3JjL0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2Vy RXZlbnQuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9iYW5zaGVlL3NyYy9CYW5z aGVlLldpZGdldHMvQWN0aXZlVXNlckV2ZW50LmNzLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjcK ZGlmZiAtdSAtcjEuNyBBY3RpdmVVc2VyRXZlbnQuY3MKLS0tIHNyYy9CYW5zaGVlLldpZGdldHMv QWN0aXZlVXNlckV2ZW50LmNzCTEzIEZlYiAyMDA2IDIyOjE4OjE0IC0wMDAwCTEuNworKysgc3Jj L0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2VyRXZlbnQuY3MJMTcgQXByIDIwMDYgMTk6MTA6Mjgg LTAwMDAKQEAgLTQ5LDYgKzQ5LDcgQEAKICAgICAgICAgcHJpdmF0ZSBzdHJpbmcgaGVhZGVyOwog ICAgICAgICAKICAgICAgICAgcHJpdmF0ZSB1aW50IHRpbWVvdXRfaWQgPSAwOworICAgICAgICBw cml2YXRlIHVpbnQgc2xvd190aW1lb3V0X2lkID0gMDsKICAgICAgICAgcHJpdmF0ZSBib29sIGRp c3Bvc2VkID0gZmFsc2U7CiAgICAgICAgIAogICAgICAgICBwdWJsaWMgZXZlbnQgRXZlbnRIYW5k bGVyIERpc3Bvc2VkOwpAQCAtNTYsOCArNTcsMTAgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZh dGUgYm9vbCBjYW5jZWxfcmVxdWVzdGVkOwogICAgICAgICBwcml2YXRlIGJvb2wgY2FuX2NhbmNl bDsKLSAgICAgCi0gICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIAor CisgICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIDogdGhpcyAobmFt ZSwgZmFsc2UpIHt9CisKKyAgICAgICAgcHVibGljIEFjdGl2ZVVzZXJFdmVudChzdHJpbmcgbmFt ZSwgYm9vbCBkZWxheV9zaG93KQogICAgICAgICB7CiAgICAgICAgICAgICB0aXBzID0gbmV3IFRv b2x0aXBzKCk7CiAgICAgICAgICAgICAKQEAgLTExNyw3ICsxMjAsMTEgQEAKICAgICAgICAgICAg IAogICAgICAgICAgICAgdGFibGUuU2hvd0FsbCgpOwogICAgICAgICAgICAgCi0gICAgICAgICAg ICBBY3RpdmVVc2VyRXZlbnRzTWFuYWdlci5JbnN0YW5jZS5SZWdpc3Rlcih0aGlzKTsKKyAgICAg ICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGVsYXkgc2hvdyA9IHswfSIsIGRlbGF5X3Nob3cp OworICAgICAgICAgICAgaWYgKGRlbGF5X3Nob3cpCisgICAgICAgICAgICAgICAgc2xvd190aW1l b3V0X2lkID0gR0xpYi5UaW1lb3V0LkFkZCgxMDAwLCBPbkNoZWNrRm9yRGlzcGxheSk7CisgICAg ICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgQWN0aXZlVXNlckV2ZW50c01hbmFnZXIuSW5z dGFuY2UuUmVnaXN0ZXIodGhpcyk7CiAgICAgICAgIH0KICAgICAgICAgCiAgICAgICAgIHB1Ymxp YyB2b2lkIENhbmNlbCgpCkBAIC0xMzgsMTAgKzE0NSwzNCBAQAogICAgICAgICAgICAgICAgIEdM aWIuU291cmNlLlJlbW92ZSh0aW1lb3V0X2lkKTsKICAgICAgICAgICAgICAgICB0aW1lb3V0X2lk ID0gMDsKICAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYoc2xvd190aW1lb3V0X2lkID4g MCkgeworICAgICAgICAgICAgICAgIEdMaWIuU291cmNlLlJlbW92ZShzbG93X3RpbWVvdXRfaWQp OworICAgICAgICAgICAgICAgIHNsb3dfdGltZW91dF9pZCA9IDA7CisgICAgICAgICAgICB9CiAg ICAgICAgICAgICAKICAgICAgICAgICAgIGlmKERpc3Bvc2VkICE9IG51bGwpIHsKICAgICAgICAg ICAgICAgICBEaXNwb3NlZCh0aGlzLCBuZXcgRXZlbnRBcmdzKCkpOwogICAgICAgICAgICAgfQor ICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSBib29sIE9uQ2hlY2tGb3JEaXNwbGF5KCkKKyAg ICAgICAgeworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCJPbkNoZWNrRm9yRGlzcGxh eSBjYWxsZWQuLiIpOworICAgICAgICAgICAgaWYgKGRpc3Bvc2VkKQorICAgICAgICAgICAgICAg IHJldHVybiBmYWxzZTsKKworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCIuLi5hbmQg bm90IGRpc3Bvc2VkLi4iKTsKKworICAgICAgICAgICAgLy8gSWYgdGhlIGV2ZW50IGhhcyBub3Qg bWFkZSBlbm91Z2ggcHJvZ3Jlc3MsIHNob3cgdGhpcyBldmVudAorICAgICAgICAgICAgaWYgKFBy b2dyZXNzIDwgMC4zMykgeworICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGlk bid0IG1ha2UgZW5vdWdoIHByb2dyZXNzLCBzaG93aW5nIGFjdGlvbiBldmVudCIpOworICAgICAg ICAgICAgICAgIEFjdGl2ZVVzZXJFdmVudHNNYW5hZ2VyLkluc3RhbmNlLlJlZ2lzdGVyKHRoaXMp OworICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGlu ZSAoIk1hZGUgZW5vdWdoIHByb2dyZXNzLCBub3Qgc2hvd2luZyBhY3Rpb24gZXZlbnQiKTsKKyAg ICAgICAgICAgIH0KKworICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICB9CiAgICAg ICAgIAogICAgICAgICBwcml2YXRlIGJvb2wgT25UaW1lb3V0KCkK ------=_Part_8988_6161796.1145311862126-- From florin@andrei.myip.org Tue Apr 18 01:35:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C8C23B1449 for ; Tue, 18 Apr 2006 01:35:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29878-04 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.200.83]) by menubar.gnome.org (Postfix) with ESMTP id 7CF603B1480 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from andrei.myip.org ([24.6.189.81]) by comcast.net (sccrmhc13) with ESMTP id <200604180535430130020jk5e>; Tue, 18 Apr 2006 05:35:43 +0000 Received: from localhost (andrei.myip.org [127.0.0.1]) by andrei.myip.org (Postfix) with ESMTP id 1C574E4DA for ; Mon, 17 Apr 2006 22:35:43 -0700 (PDT) Received: from andrei.myip.org ([127.0.0.1]) by localhost (andrei.myip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29548-01 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) Received: from rivendell.home.local (rivendell.home.local [192.168.0.12]) by andrei.myip.org (Postfix) with ESMTP id 33CC9E4D5 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) From: Florin Andrei To: banshee-list@gnome.org Content-Type: text/plain Date: Mon, 17 Apr 2006 22:35:39 -0700 Message-Id: <1145338540.7850.1.camel@rivendell.home.local> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at andrei.myip.org X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.58 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599] X-Spam-Score: -2.58 X-Spam-Level: Subject: [Banshee-List] lame presets X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 05:35:52 -0000 I was pleasantly surprised to discover that Banshee can use lame to encode songs, but there are only options for CBR encoding. Would it be possible to add an option to use the Standard VBR preset? lame --preset standard song.wav song.mp3 -- Florin Andrei http://florin.myip.org/ From jstembridge@gmail.com Tue Apr 18 08:11:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D77503B2A0F for ; Tue, 18 Apr 2006 08:11:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21709-01 for ; Tue, 18 Apr 2006 08:11:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.225]) by menubar.gnome.org (Postfix) with ESMTP id B8BF13B0685 for ; Tue, 18 Apr 2006 08:11:10 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1473829wri for ; Tue, 18 Apr 2006 05:11:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QOCHnaYn1W8HnzTHdBEvWuNLCHN3rMrtKODOxN36O1lnaqjeyvTzWB26uIa0LK1lmU9Zch1vC1/z7UR/GKAj9hMBKDpilYo+KCHI7LvIzwXlhcT0fxy3AKCEhd8hCAdcOZZFNe5sU7o3qjSBNUu3hZ7ziY/AyYr4BM1a7pgcKoI= Received: by 10.54.117.10 with SMTP id p10mr3925935wrc; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Message-ID: <18bc366d0604180511s1db23ce6od6fb909fe238444d@mail.gmail.com> Date: Tue, 18 Apr 2006 13:11:09 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14604_3604805.1145362269787" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.768 tagged_above=-999 required=2 tests=[AWL=-0.726, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.768 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 12:11:28 -0000 ------=_Part_14604_3604805.1145362269787 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another update, duplicate detection done via tags rather than filename as it's more reliable. Cheers, James. ------=_Part_14604_3604805.1145362269787 Content-Type: text/x-patch; name=mass-storage3.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em672y5z Content-Disposition: attachment; filename="mass-storage3.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.452 diff -u -r1.452 ChangeLog --- ChangeLog 18 Apr 2006 03:25:33 -0000 1.452 +++ ChangeLog 18 Apr 2006 12:07:10 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device. Don't use the volumel label for the + Name if it's blank. If the volume for a new device isn't yet available + from VFS, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * banshee.mdp: Updated MonoDevelop project Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 18 Apr 2006 12:07:11 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 18 Apr 2006 12:07:12 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 18 Apr 2006 12:07:12 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,31 +78,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +158,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +177,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +252,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +278,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +301,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 18 Apr 2006 12:07:13 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 18:40:38.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_14604_3604805.1145362269787-- From abockover@novell.com Tue Apr 18 11:32:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5BBF73B2A92 for ; Tue, 18 Apr 2006 11:32:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01121-06 for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 8B2073B18CF for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3IFWn8i024935 for ; Tue, 18 Apr 2006 11:32:50 -0400 (EDT) Subject: Re: [Banshee-List] lame presets From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145338540.7850.1.camel@rivendell.home.local> References: <1145338540.7850.1.camel@rivendell.home.local> Content-Type: text/plain Date: Tue, 18 Apr 2006 11:29:50 -0400 Message-Id: <1145374190.12396.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.077, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.476 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 15:32:52 -0000 Take a look at the lame options exposed by the gstreamer plugin: gst-inspect-0.10 lame Then edit the lame profile for Banshee in gconf: gconf-editor /apps/Banshee and browse to "EncoderProfiles," edit the value for that key and choose the 'lame' entry and edit the string, adding the options you want. --Aaron On Mon, 2006-04-17 at 22:35 -0700, Florin Andrei wrote: > I was pleasantly surprised to discover that Banshee can use lame to > encode songs, but there are only options for CBR encoding. > Would it be possible to add an option to use the Standard VBR preset? > > lame --preset standard song.wav song.mp3 > From c.travis.bradshaw@gmail.com Tue Apr 18 23:00:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 057813B1AF1 for ; Tue, 18 Apr 2006 23:00:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05516-01 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 6E9473B1538 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1099498pyu for ; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cf3W9wli+Ze1cAayQaFS15QAVvaQl1I6TnABaiOOc29iJYns1ZV/fiEy1oCWhPvugDpO9+sKIhkAbw9litcPKHZWndhRfBpBLejtdVKvh6chzma4CRUwZUJrWTF8zSYHLiQZ8F6gdbfkZ4DKstPE9g2GwHH6gbbznqEL+UXEDPU= Received: by 10.35.66.13 with SMTP id t13mr2324489pyk; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2006 22:00:10 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Help Reproducing a Bug - fuzzy searching (#333893) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 03:00:13 -0000 Hey guys and gals, I was wondering if anyone would be interested in helping me test a patch. On bug #333893 "searches should be fuzzy", I've submitted a patch to add fuzzy searching and a NOT operator to the simple search on the main interface. Everything seems to be working great--completely implementing Dave Rodgman's suggestions--and Aaron tested the patch. He found a couple issues with the patch and I'm very eager to get both issues handled for a clean patch. The catch is that I can't seem to reproduce the behavior he describes. If anyone would be willing to help me out and try the patch on bug #333893, I would greatly appreciate it. (And I think you'll like the fuzzy searching as well.) http://bugzilla.gnome.org/show_bug.cgi?id=3D333893 Thanks everyone, Travis Bradshaw From c.travis.bradshaw@gmail.com Wed Apr 19 05:07:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F219F3B115B for ; Wed, 19 Apr 2006 05:07:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24087-01 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id A7E973B09B2 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1167003pyu for ; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BqfIuopjY+7gr3hj8ItswDg3xFprHp3XoRM6TBR/ZSNpiN8ph95ZsBHUQE7BDUsE1ThNSiT1tV4l3/NJadTaNMDYVeZQnmcPzcdlFMFmFRYzII336ff8dCvIJptpvtA9MFf7r6kjFDs8zerNoj+uXlxv/JqZNzp2q1hGHWG+YWQ= Received: by 10.35.98.6 with SMTP id a6mr785072pym; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2006 04:07:35 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Trouble Building after cvs update X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:07:38 -0000 Just today I did a quick cvs update, and now I can't seem to get through an entire build. Everything is going great until I get: make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' make[3]: *** No rule to make target `IO/IOProxy.cs', needed by `Banshee.Base.dll'. Stop. Any idea what I've got wrong? Thanks, Travis Bradshaw travis@tbradshaw.net From jstembridge@gmail.com Wed Apr 19 05:22:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 128113B2EE1 for ; Wed, 19 Apr 2006 05:22:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24849-06 for ; Wed, 19 Apr 2006 05:22:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id B507B3B2EE8 for ; Wed, 19 Apr 2006 05:22:00 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 69so819510wra for ; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxdhQ36+eBF2urpxK5sBDRo0aYykKM76xppuq2CkdekEN7+2W0W9lEAigwcYPkmybezeV0IF1/iDyiFCFBG7iVEnACSR9aE+/M5pmH/4e+TA/HCjx8UGhmlHpYmIysQGjcumJCNL1iQjVWQZBhCBNYTlPVRYxUYNbgaHPshe67k= Received: by 10.54.102.9 with SMTP id z9mr5687243wrb; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Received: by 10.54.99.5 with HTTP; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Message-ID: <18bc366d0604190222u699f43e2wbe56283edaeee0f8@mail.gmail.com> Date: Wed, 19 Apr 2006 10:22:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Trouble Building after cvs update In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.093, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:22:02 -0000 On 4/19/06, Travis Bradshaw wrote: > Just today I did a quick cvs update, and now I can't seem to get > through an entire build. Everything is going great until I get: > > make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' > make[3]: *** No rule to make target `IO/IOProxy.cs', needed by > `Banshee.Base.dll'. Stop. Try "cvs up -d". The "-d" asks cvs to create any directories present in the repository that you don't have locally. James. From pat@thepatsite.com Wed Apr 19 12:57:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C4BB63B00B1 for ; Wed, 19 Apr 2006 12:57:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22600-01 for ; Wed, 19 Apr 2006 12:57:05 -0400 (EDT) Received: from f04n01.cac.psu.edu (f04s01.cac.psu.edu [128.118.141.31]) by menubar.gnome.org (Postfix) with ESMTP id 080A93B000F for ; Wed, 19 Apr 2006 12:57:04 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f04n01.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3JGuxcl155350 for ; Wed, 19 Apr 2006 12:56:59 -0400 From: Pat Rondon To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 19 Apr 2006 12:57:42 -0400 Message-Id: <1145465862.563.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Shuffle playlist plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:57:07 -0000 I've put together a shuffle playlist plugin that works like the dynamic mode in Amarok or (I assume) party shuffle in iTunes - it maintains a playlist of 20 randomly-chosen songs, automatically removing the ones that have been played. It may be a little hackish. Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 - Pat From julien.marbach@gmail.com Fri Apr 21 12:20:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 86AEE3B2011 for ; Fri, 21 Apr 2006 12:20:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20034-02 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id B66433B1F98 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so378302wxd for ; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cqBsk/SZ45xZgITyr5J5lSy5HJVETCTXvuTJiUaLdDOVa6rexVDSvrmNJ/69T2UoCEaFbsGR6FPXf+xX1OvNg0MsL2Ca1AcaGkI5oVd1qX03tHcr4ODWYWGKd0ubcdnjKCu4L+ukfaeF3CaXVXPrg+ol8nmatv4idsenS4RDPGo= Received: by 10.70.94.4 with SMTP id r4mr374257wxb; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Received: by 10.70.97.18 with HTTP; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Message-ID: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Date: Fri, 21 Apr 2006 12:20:54 -0400 From: "Julien Marbach" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25915_12204578.1145636454183" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.315 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.315 X-Spam-Level: Subject: [Banshee-List] iCal 2 iPod plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:20:55 -0000 ------=_Part_25915_12204578.1145636454183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, I've started to use google calendar since a few days and am already addicted. As a iPod user I like to have my calendar synchronised to my iPod= , and as a Banshee user I like to use Banshee to synchronise my iPod... So after writing a quick and dirty C#/mono standalone app to synchronize my google iCal to my iPod I would like to try to write a banshee plugin to do the job. Firstly I would like to be sure that no one else is working on the same idea. And secondly, do you think this is something that can be done as a banshee plugin? I've no idea at the moment of what I can/cannot do in a banshee plugin so I'm asking you... I believe i would need to use the ipod-sharp library but I don't know how t= o use its documentation (in xml format). Do I have to use monodoc or another tool to display it? Thanks, Julien ------=_Part_25915_12204578.1145636454183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there,
I've started to use google calendar since a few days and am al= ready addicted. As a iPod user I like to have my calendar synchronised to m= y iPod, and as a Banshee user I like to use Banshee to synchronise my iPod.= .. So after writing a quick and dirty C#/mono standalone app to synchronize= my google iCal to my iPod I would like to try to write a banshee plugin to= do the job.=20

Firstly I would like to be sure that no one else is working on the = same idea. And secondly, do you think this is something that can be done as= a banshee plugin? I've no idea at the moment of what I can/cannot do in a = banshee plugin so I'm asking you...

I believe i would need to use the ipod-sharp library but I don't kn= ow how to use its documentation (in xml format). Do I have to use monodoc o= r another tool to display it?

Thanks,

Julien
------=_Part_25915_12204578.1145636454183-- From lukasz.halman@gmail.com Fri Apr 21 12:38:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 557C73B2174 for ; Fri, 21 Apr 2006 12:38:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21075-01 for ; Fri, 21 Apr 2006 12:38:18 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8D6A63B10A3 for ; Fri, 21 Apr 2006 12:38:17 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so278931nfc for ; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=JKuSkcKpBhkzQd7Y8ofgJwzYwUT0W/Ur35w5F+5s+Wy5InC9zQB/1E39bsOYk8WoA+70m8YTuvfw/NLjxzVD13Zky53MJOXv0wty/AR5Ho1gEFRu+2MgE/BbYZETYS3D6FhlkH7AZNz6AxhIAelGJI0F29sfeD6a56jqO9h0Vhs= Received: by 10.48.211.17 with SMTP id j17mr1513821nfg; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Received: from lukasz ( [83.25.220.107]) by mx.gmail.com with ESMTP id q28sm41526nfc.2006.04.21.09.38.15; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Lukasz Halman To: banshee-list@gnome.org In-Reply-To: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Content-Type: text/plain Date: Fri, 21 Apr 2006 18:38:26 +0200 Message-Id: <1145637506.21876.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.57 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.57 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:38:19 -0000 Hi I think you should get in touch with evolution team. As far as I know they are working on getting evolution and google calendars syncing to work. If that's done then syncing ipod with evolution is very easy. That way not only it would be easier to do, but it'll provide better system integration. Since evolution-data-server is THE SOURCE of information in gnome, you should sync with it, not with google directly. That's my opinion. I have somewhere on my disk gtk2 application which used to sync evolution contacts/calendar with ipod. Give me a sign if you're interested in those sources. L. From abockover@novell.com Fri Apr 21 13:10:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AF453B15FA for ; Fri, 21 Apr 2006 13:10:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23144-03 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from ms-smtp-04.southeast.rr.com (unknown [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 4AA7F3B1CC5 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3LHAWZ4005019 for ; Fri, 21 Apr 2006 13:10:32 -0400 (EDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145637506.21876.4.camel@localhost.localdomain> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> <1145637506.21876.4.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 21 Apr 2006 13:07:30 -0400 Message-Id: <1145639250.21317.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.538 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.538 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 17:10:50 -0000 If you're looking to do this in C#, then I would use ipod-sharp for getting the device handle and events. If you want to use C, then use libipoddevice (which ipod-sharp uses for device access). While I guess this could be done in Banshee, I second the motion that it's probably better in Evolution. You could probably do it in C# with EDS bindings. It doesn't need to be *in* Evolution, rather Evolution does the calendar syncing, and then using EDS you request those calendars and sync them to the iPod. However, if you're looking for a quick route, I'd probably just write a standalone C# app that uses ipod-sharp and fetch your iCal calendars directly from Google and sync them. As for ipod-sharp docs, they are in the monodoc format. James also has them online at: http://www.snorp.net/docs/ipod-sharp/ ... not sure if they're 100% current, but the API has changed very little in quite a few months. Anyway, let us know your progress :) Cheers, Aaron On Fri, 2006-04-21 at 18:38 +0200, Lukasz Halman wrote: > Hi > > I think you should get in touch with evolution team. As far as I know > they are working on getting evolution and google calendars syncing to > work. If that's done then syncing ipod with evolution is very easy. That > way not only it would be easier to do, but it'll provide better system > integration. Since evolution-data-server is THE SOURCE of information in > gnome, you should sync with it, not with google directly. That's my > opinion. > > I have somewhere on my disk gtk2 application which used to sync > evolution contacts/calendar with ipod. Give me a sign if you're > interested in those sources. > > L. > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gcgmb-banshee-list@m.gmane.org Mon Apr 24 03:04:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B147C3B18DA for ; Mon, 24 Apr 2006 03:04:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24601-02 for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 2CF473B13BF for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FXv7B-0002ae-9a for banshee-list@gnome.org; Mon, 24 Apr 2006 09:04:09 +0200 Received: from 136.red-213-96-98.staticip.rima-tde.net ([213.96.98.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 Received: from knocte by 136.red-213-96-98.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses=22?= Date: Mon, 24 Apr 2006 09:03:53 +0200 Lines: 19 Message-ID: <444C7859.1000407@gmail.com> References: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 136.red-213-96-98.staticip.rima-tde.net User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.799 X-Spam-Level: Subject: [Banshee-List] Re: Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 07:04:20 -0000 Lukas Lipka escribió: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. Hello. I am very interested in this patch, which besides I think is a pre-requisite for the ipod-playlists patch (am I right?), so, any chances for it to be commited? Thanks in advance. Andrew -- From ruben@Lambda1.be Thu Apr 27 08:06:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E93363B2034 for ; Thu, 27 Apr 2006 08:06:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00930-02 for ; Thu, 27 Apr 2006 08:06:44 -0400 (EDT) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by menubar.gnome.org (Postfix) with ESMTP id C45F93B2015 for ; Thu, 27 Apr 2006 08:06:43 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 84BC14D203 for ; Thu, 27 Apr 2006 14:06:42 +0200 (CEST) Received: from smtp03.kuleuven.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id DEE104CF6D for ; Thu, 27 Apr 2006 14:06:41 +0200 (CEST) Received: from localhost.localdomain (10-91-21-117.kotnet.org [10.91.21.117]) by smtp03.kuleuven.be (Postfix) with ESMTP id 014E733278C for ; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id B23C6460149; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Subject: Re: [Banshee-List] Child Source patch v0.8 From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> References: <1145189078.6791.1.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 27 Apr 2006 14:06:40 +0200 Message-Id: <1146139600.4260.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by KULeuven Antivirus Cluster X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 12:06:46 -0000 On Sun, 2006-04-16 at 14:04 +0200, Lukas Lipka wrote: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. I'm not sure if this is known, but doing "Music -> New Playlist" with no other playlists around seems to position them wrongly. I'm not sure if I'm using the latest patch though. Kind Regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Thu Apr 27 14:13:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBEF33B0378 for ; Thu, 27 Apr 2006 14:13:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21923-06 for ; Thu, 27 Apr 2006 14:12:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 8A70C3B21B3 for ; Thu, 27 Apr 2006 14:12:51 -0400 (EDT) Received: (qmail 9173 invoked by uid 503); 27 Apr 2006 18:12:57 -0000 Received: (QMFILT: 1.0); 27 Apr 2006 18:12:57 -0000 Received: from b6.ovh.net (HELO mail46.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 27 Apr 2006 18:12:57 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:35 -0000 Received: from mail46.ha.ovh.net (10.0.50.46) by mail46.ha.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from adsl-d140.87-197-209.telecom.sk (HELO ?192.168.0.23?) (87.197.209.140) by ns0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-aPt7HjTvvfCZ8ZipkXG3" Date: Thu, 27 Apr 2006 20:12:28 +0200 Message-Id: <1146161548.8120.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.209.140 (adsl-d140.87-197-209.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.089, BAYES_00=-2.599] X-Spam-Score: -2.51 X-Spam-Level: Subject: [Banshee-List] Child sources patch v0.10 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:13:02 -0000 --=-aPt7HjTvvfCZ8ZipkXG3 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, attached are patches to get child source support working in Banshee. The minimode patch also fixes the random and shuffle play buttons bug. Lukas --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-childsource-0.10.patch Content-Type: text/x-patch; name=banshee-childsource-0.10.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 27 Apr 2006 18:06:16 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 27 Apr 2006 18:06:17 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource(args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource(args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,96 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + UpdateView (); + }; + + source.ChildSourceRemoved += delegate(SourceEventArgs e) { + RemoveSource(e.Source); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + + private void RefreshList() + { + store.Clear(); + foreach(Source source in SourceManager.Sources) { + AddSource (source); + } + } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,14 +239,6 @@ source.Rename(text); } - private void RefreshList() - { - store.Clear(); - foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); - } - } - private void OnCursorChanged(object o, EventArgs args) { if(currentTimeout < 0) { @@ -188,62 +269,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +350,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -281,24 +379,22 @@ public Source GetSource(TreePath path) { TreeIter iter; - + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +585,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 27 Apr 2006 18:06:17 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 27 Apr 2006 18:06:21 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 27 Apr 2006 18:06:21 -0000 @@ -41,6 +41,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 27 Apr 2006 18:06:29 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 27 Apr 2006 18:06:29 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 27 Apr 2006 18:06:37 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 27 Apr 2006 18:06:37 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-19 11:48:42.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-25 20:26:01.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-minimode-0.1.patch Content-Type: text/x-patch; name=banshee-minimode-0.1.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: src/MiniModeWindow.cs =================================================================== --- src/MiniModeWindow.cs (revision 84) +++ src/MiniModeWindow.cs (working copy) @@ -113,6 +113,7 @@ Globals.ActionManager["ShuffleAction"] as ToggleAction); shuffle_toggle_button.Relief = ReliefStyle.None; shuffle_toggle_button.ShowLabel = false; + shuffle_toggle_button.ActiveStateIndex = (int)Globals.Configuration.Get(GConfKeys.PlaylistRepeat); shuffle_toggle_button.ShowAll(); MultiStateToggleButton repeat_toggle_button = new MultiStateToggleButton(); @@ -124,8 +125,8 @@ Globals.ActionManager["RepeatSingleAction"] as ToggleAction); repeat_toggle_button.Relief = ReliefStyle.None; repeat_toggle_button.ShowLabel = false; + repeat_toggle_button.ActiveStateIndex = (bool)Globals.Configuration.Get(GConfKeys.PlaylistShuffle) ? 1 : 0; repeat_toggle_button.ShowAll(); - LowerButtonsBox.PackEnd(repeat_toggle_button, false, false, 0); LowerButtonsBox.PackEnd(shuffle_toggle_button, false, false, 0); Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -25,6 +25,9 @@ Clear(); foreach(Source source in SourceManager.Sources) { SetSource(Append(), source); + + foreach (ChildSource child in source.Children) + SetSource (Append(), child); } // Be prepared for other sources @@ -101,10 +104,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-aPt7HjTvvfCZ8ZipkXG3-- From trick@vanstaveren.us Thu Apr 27 14:41:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 235B13B022E for ; Thu, 27 Apr 2006 14:41:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25164-03 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id CFD5B3B03A5 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZBQy-0003nJ-ED; Thu, 27 Apr 2006 11:41:48 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Thu, 27 Apr 2006 14:41:48 -0400 Message-ID: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Date: Thu, 27 Apr 2006 14:41:48 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Pat Rondon Subject: Re: [Banshee-List] Shuffle playlist plugin References: <1145465862.563.36.camel@localhost.localdomain> In-Reply-To: <1145465862.563.36.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.588 tagged_above=-999 required=2 tests=[AWL=0.011, BAYES_00=-2.599] X-Spam-Score: -2.588 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:41:55 -0000 Pat, This looks cool - it kinda works for me but it doesn't remove tracks from the playlist after played. It also double-adds when I remove a single track. The code looks good...maybe the PlayerEngineCore has changed in my cvs version and that's why the automatic removal doesn't work. I haven't looked. The code looks good tho (this is how I'd implement it if I were you). I've actually been thinking lately about writing something similar to this. What I'd like to do (and I think other plugins for itunes or amarok probably do this) is set it up so it's not actually pseudo random, but "intelligent random" so that it will pick music that is "similar" to it (eg by maybe picking two or three songs by a single artist and then finding the next by picking songs from the same genre. It could get really advanced and choose tracks based on a service like last.fm or something (but that might be a bit much for now!). Maybe I'll hack at this sometime and see if I can hack up something on the intelligent random stuff I talked about. I'll also see if I can figure out the problem with not removing tracks... Good stuff! LMK if you make any more changes, I'd be curious to see :) -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from pat@thepatsite.com --------- Date: Wed, 19 Apr 2006 12:57:42 -0400 From: Pat Rondon Reply-To: banshee-list@gnome.org Subject: [Banshee-List] Shuffle playlist plugin To: banshee-list@gnome.org > I've put together a shuffle playlist plugin that works like the dynamic > mode in Amarok or (I assume) party shuffle in iTunes - it maintains a > playlist of 20 randomly-chosen songs, automatically removing the ones > that have been played. It may be a little hackish. > > Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 > > - Pat > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from pat@thepatsite.com ----- From trick@vanstaveren.us Fri Apr 28 03:33:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49A103B237A for ; Fri, 28 Apr 2006 03:33:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06229-08 for ; Fri, 28 Apr 2006 03:33:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 553963B2388 for ; Fri, 28 Apr 2006 03:33:00 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZNTH-0004BG-D6 for banshee-list@gnome.org; Fri, 28 Apr 2006 00:32:59 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 03:32:59 -0400 Message-ID: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> Date: Fri, 28 Apr 2006 03:32:59 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 07:33:04 -0000 Howdy folks, Everyone likes screenshots, so I'll start with the screenie: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png I was reading the feature requests page, and I've noticed that as far back as I can remember, someone requested that banshee show artist information from wikipedia. At first I thought it was silly. Banshee is a music player, not a web browser! Well, needless to say, I've found myself such an addict to wikipedia for artist information, that earlier today I thought it'd be a neat idea to implement. Thus, the banshee-wikipedia-plugin was born. It's simple right now (and I plan to keep it as simple as possible). It's a Gecko widget dropped right below the library view. (Gecko == firefoz/mozilla rendering engine). It has a fixed size (for now). It can be hidden/shown from the View menu (CTRL+I as well - is this an logical shortcut mapping?). It automatically queries wikipedia (english) for a page with the same title as the artist that you're playing. Changes with the track you're playing. I'm very tired. This is accurate probably about 80% of the time...you'll usually find a disambiguation page wherever it's lacking. I'm also telling it to use the mediawiki "simple" skin to make it load faster. In the future I'll figure out how to remove the nav bar on the left as it's pretty much useless (if you want to browse, use a web browser). Note the debug output in the console - it shows the actual URL you're looking at. A few hours of hacking, and here you have it: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshee SVN at some point so you can track progress (abock - do you mind me adding this?) MAJOR credit goes out to Fredrik Hedberg - more than half the code was based on the banshee-recommendation-plugin. I'll rewrite some of it in the future to fit my situation, but it provided a GREAT starting point for me as I barely had to think twice about how to create the frame, enable/disable it with a toggle menu item, etc. Thanks Fredrik! Enjoy! Reply to the list or snag me on IRC (nick: trick) Patrick -- Patrick "Trick" van Staveren Western Michigan University http://www.trick.vanstaveren.us/ From pat@thepatsite.com Fri Apr 28 08:40:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98A163B05AE for ; Fri, 28 Apr 2006 08:40:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23505-03 for ; Fri, 28 Apr 2006 08:40:12 -0400 (EDT) Received: from f05n03.cac.psu.edu (f05s03.cac.psu.edu [128.118.141.46]) by menubar.gnome.org (Postfix) with ESMTP id CB88E3B0463 for ; Fri, 28 Apr 2006 08:40:11 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f05n03.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3SCe4Lk059298; Fri, 28 Apr 2006 08:40:08 -0400 Subject: Re: [Banshee-List] Shuffle playlist plugin From: Pat Rondon To: Trick van Staveren In-Reply-To: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> References: <1145465862.563.36.camel@localhost.localdomain> <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Content-Type: text/plain Date: Fri, 28 Apr 2006 08:39:16 -0400 Message-Id: <1146227956.8845.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 12:40:16 -0000 On Thu, 2006-04-27 at 14:41 -0400, Trick van Staveren wrote: > This looks cool - it kinda works for me but it doesn't remove tracks > from the playlist > after played. It also double-adds when I remove a single track. The > code looks > good...maybe the PlayerEngineCore has changed in my cvs version and > that's why the > automatic removal doesn't work. I haven't tested much against CVS, but I had at least the first problem the last time I did. > I've actually been thinking lately about writing something similar to > this. What I'd > like to do (and I think other plugins for itunes or amarok probably do > this) is set it > up so it's not actually pseudo random, but "intelligent random" so that > it will pick > music that is "similar" to it (eg by maybe picking two or three songs > by a single > artist and then finding the next by picking songs from the same genre. Yeah, I think this is what Amarok does. What I really wanted to do, and just didn't get around to yet, was use the random track function that Banshee already uses for shuffle mode. That function is already weighted in favor of songs in the same genre and, in the future, it's possible it could be enhanced in other ways that would make it really convenient to use that function instead of duplicating it (e.g. user preferences about the randomization style, album shuffle, etc.). > Good stuff! LMK if you make any more changes, I'd be curious to see :) Just some code cleanups and other boring stuff so far. I'll probably hack on getting it to work with CVS this weekend now that classes are over. I'm glad you liked it - BTW, the Wikipedia plugin is really neat. - Pat From jstembridge@gmail.com Fri Apr 28 14:35:05 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 922483B1658 for ; Fri, 28 Apr 2006 14:35:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09510-03 for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id 17BED3B06DA for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so186392wra for ; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JvmoRFyztPFDwwlHaG52xEopONqBDaI+/aNPIAaqdDb5s8BRMZ9OAUhzHlidKPVMTKoqHEmlQf1louXlOMeyrvVPTt/V0VmooGkCy9PzMj8Eag09xIG0xuMDVS8McuSHKyRBVj2UYXpuO0WGfqY6EbSQAA5oVajMAOLmq80C7O0= Received: by 10.54.101.18 with SMTP id y18mr1088909wrb; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Message-ID: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> Date: Fri, 28 Apr 2006 19:34:58 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4491_30228987.1146249298310" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.512 tagged_above=-999 required=2 tests=[AWL=0.088, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.512 X-Spam-Level: Subject: [Banshee-List] Updated mass storage patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:35:05 -0000 ------=_Part_4491_30228987.1146249298310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Couple more minor changes. I've added to check to see if Gnome VFS has already been initialized before initializing it, and (more importantly) tried to prevent the mass storage plugin accepting non-generic devices like iPods. Cheers, James. ------=_Part_4491_30228987.1146249298310 Content-Type: text/x-patch; name=mass-storage4.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkv7vv0 Content-Disposition: attachment; filename="mass-storage4.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 18:29:04 -0000 @@ -1,3 +1,33 @@ +2006-04-28 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; check that the device is a generic + audio player and not something with a defined access method such as + an iPod; don't initialize Gnome VFS if it's already been initialized + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 18:29:05 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 18:29:06 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 18:29:06 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize (); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,13 +65,12 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || + player_device ["portable_audio_player.type"] != "generic" || !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } @@ -78,31 +79,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +159,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +178,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +253,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +279,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +302,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 18:29:07 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_4491_30228987.1146249298310-- From ghaefbgtk@gmail.com Fri Apr 28 14:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54E43B20F2 for ; Fri, 28 Apr 2006 14:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09787-05 for ; Fri, 28 Apr 2006 14:42:15 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id B77073B24EB for ; Fri, 28 Apr 2006 14:42:11 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i28so1982972nzi for ; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKNt1RA4UfdLauKLf6SESV9jd9wxjBNRM1GfaLtJR6osLxbMa5rza3BYH8TaadzK8q4gb6Q7/3nQlsiFUfguAVDbr9AVmCgJ+6HU5lkMFBP/OE5Dq0RsOIcARm8T7bsN9upNmiClBP54impKngAFd7qBYyY57b0I2F0EuzkDqZM= Received: by 10.36.43.6 with SMTP id q6mr804831nzq; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Received: by 10.36.135.1 with HTTP; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 20:42:11 +0200 From: "Nil Gradisnik" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:42:29 -0000 Looking good. I'm getting an error when using this plugin on Banshee 0.10.9 The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck Any suggestions ? On 4/28/06, Trick van Staveren wrote: > Howdy folks, > > Everyone likes screenshots, so I'll start with the screenie: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > > I was reading the feature requests page, and I've noticed that as far bac= k as I can > remember, someone requested that banshee show artist information from wik= ipedia. At > first I thought it was silly. Banshee is a music player, not a web brows= er! Well, > needless to say, I've found myself such an addict to wikipedia for artist= information, > that earlier today I thought it'd be a neat idea to implement. > > Thus, the banshee-wikipedia-plugin was born. > It's simple right now (and I plan to keep it as simple as possible). > It's a Gecko widget dropped right below the library view. (Gecko =3D=3D f= irefoz/mozilla > rendering engine). > It has a fixed size (for now). > It can be hidden/shown from the View menu (CTRL+I as well - is this an lo= gical shortcut > mapping?). > It automatically queries wikipedia (english) for a page with the same tit= le as the > artist that you're playing. Changes with the track you're playing. > I'm very tired. > This is accurate probably about 80% of the time...you'll usually find a d= isambiguation > page wherever it's lacking. > I'm also telling it to use the mediawiki "simple" skin to make it load fa= ster. > In the future I'll figure out how to remove the nav bar on the left as it= 's pretty much > useless (if you want to browse, use a web browser). > Note the debug output in the console - it shows the actual URL you're loo= king at. > > A few hours of hacking, and here you have it: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > > Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshe= e SVN at some > point so you can track progress (abock - do you mind me adding this?) > > MAJOR credit goes out to Fredrik Hedberg - more than half the code was ba= sed on the > banshee-recommendation-plugin. I'll rewrite some of it in the future to = fit my > situation, but it provided a GREAT starting point for me as I barely had = to think > twice about how to create the frame, enable/disable it with a toggle menu= item, etc. > Thanks Fredrik! > > Enjoy! Reply to the list or snag me on IRC (nick: trick) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From gabriel.burt@gmail.com Fri Apr 28 14:51:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F4633B18C8 for ; Fri, 28 Apr 2006 14:51:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10234-04 for ; Fri, 28 Apr 2006 14:51:24 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id D7D353B186D for ; Fri, 28 Apr 2006 14:51:23 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2394914pyu for ; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ip5uVHFHFKXlfT9XbGzeQ/F8w1zEb5d6ULSax4AtIptiWWuI8xZl+6Qw3q9iB2wHr1WOJ+/DAikPCFs/blI3Ot6+DQ1FUWcnw2NGeUi4gX8JfX8YuugFQHuB/KKp7jJs2WE8qfGaG3KvaDU5Q7Ot7tyfrhsivpkC7v+q3GrrhXk= Received: by 10.35.14.1 with SMTP id r1mr1960767pyi; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Fri, 28 Apr 2006 11:51:22 -0700 (PDT) Message-ID: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Date: Fri, 28 Apr 2006 13:51:23 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.154 tagged_above=-999 required=2 tests=[AWL=0.222, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.154 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:51:25 -0000 SGkgSmFtZXMsCgpPbiA0LzI4LzA2LCBKYW1lcyBTdGVtYnJpZGdlIDxqc3RlbWJyaWRnZUBnbWFp bC5jb20+IHdyb3RlOgo+IENvdXBsZSBtb3JlIG1pbm9yIGNoYW5nZXMuIEkndmUgYWRkZWQgdG8g Y2hlY2sgdG8gc2VlIGlmIEdub21lIFZGUyBoYXMKPiBhbHJlYWR5IGJlZW4gaW5pdGlhbGl6ZWQg YmVmb3JlIGluaXRpYWxpemluZyBpdCwgYW5kIChtb3JlCgpJJ20gbm90IHN1cmUgaWYgdGhlcmUn cyBhIHBlbmFsdHkgYXQgYWxsLCBidXQgdGhlIGRvY3Mgc2F5IGNhbGxpbmcKSW5pdGlhbGl6ZSBt dWx0aXBsZSB0aW1lcyBkb2Vzbid0IG1hdHRlciAtIGJ1dCB0aGlzIGlzIHRpbnkgcG9pbnQgbm90 CndvcnRoIHRhbGtpbmcgYWJvdXQuIDopCgo+IGltcG9ydGFudGx5KSB0cmllZCB0byBwcmV2ZW50 IHRoZSBtYXNzIHN0b3JhZ2UgcGx1Z2luIGFjY2VwdGluZwo+IG5vbi1nZW5lcmljIGRldmljZXMg bGlrZSBpUG9kcy4KCldlcmUgeW91IGhhdmluZyBhIHByb2JsZW0gd2l0aCBpdCB1c2luZyB0aGUg bWFzcyBzdG9yYWdlIHR5cGUgZm9yCmhhbmRsaW5nIGFuIGlQb2Q/ICBUaGF0IHNob3VsZCBub3Qg aGFwcGVuIGJlY2F1c2UgdGhlIG1hc3Mgc3RvcmFnZQpzdXBwb3J0IGlzIGxpc3RlZCBhcyBhIGdl bmVyaWMgRGFwVHlwZSwgYW5kIGRldmljZXMgYXJlIGNoZWNrZWQKYWdhaW5zdCBub24tZ2VuZXJp YyB0eXBlcyBmaXJzdC4KCkFsc28sIHdoZXJlIGRpZCB5b3UgZ2V0IHRoZSBwb3J0YWJsZV9hdWRp b19wbGF5ZXIudHlwZSBoYWwga2V5IGZyb20/IApJIGRvbid0IHNlZSBpdCBpbiB0aGUgc3BlYyBb MV0uCgpBbnkgd2F5LCB0aGFua3MgZm9yIHJldmlld2luZyB0aGUgY29kZSBhbmQgZm9yIHRoZSBo ZWxwIQoKR2FicmllbAoKWzFdIGh0dHA6Ly93ZWJjdnMuZnJlZWRlc2t0b3Aub3JnLypjaGVja291 dCovaGFsL2hhbC9kb2Mvc3BlYy9oYWwtc3BlYy5odG1sI2RldmljZS1wcm9wZXJ0aWVzLXBvcnRh YmxlX2F1ZGlvX3BsYXllcgo= From jstembridge@gmail.com Fri Apr 28 14:59:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F57B3B1986 for ; Fri, 28 Apr 2006 14:59:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10485-09 for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 2EACA3B222E for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so191504wra for ; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lg2hqVRaE1K092ouZ1RP/49L8tgTuDOPpIVk7vN3uXGfMYTHWq1khg+5cIpH+9v+QNhXSxElRanJx6GnIzWP1UqH4SHHr0/d0dzgwld0j7AEyvGUxKZHSb/N0C/M0mbkAow3DpZFFerC7qiVHvLC1N3dtihOPD3I/vPb9BR0cc0= Received: by 10.54.72.8 with SMTP id u8mr6840888wra; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Message-ID: <18bc366d0604281159u42bc56cdu76e21364fee5e54c@mail.gmail.com> Date: Fri, 28 Apr 2006 19:59:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.083, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:59:04 -0000 Hi Gabriel, On 4/28/06, Gabriel Burt wrote: > I'm not sure if there's a penalty at all, but the docs say calling > Initialize multiple times doesn't matter - but this is tiny point not > worth talking about. :) OK, I spotted it somewhere else in passing and thought it might be a good i= dea. > Were you having a problem with it using the mass storage type for > handling an iPod? That should not happen because the mass storage > support is listed as a generic DapType, and devices are checked > against non-generic types first. Ah OK, I hadn't caught that subtlety. I just noticed the type hal key and thought we should probably check it. > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. Dapper fdi files, e.g. portable_audio_player portable_audio_playe= r storage ipod ... Cheers, James. From trick@vanstaveren.us Fri Apr 28 15:36:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57BA03B09D1 for ; Fri, 28 Apr 2006 15:36:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12212-03 for ; Fri, 28 Apr 2006 15:36:39 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id DB6373B07B9 for ; Fri, 28 Apr 2006 15:36:38 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZYlZ-00085y-VM for banshee-list@gnome.org; Fri, 28 Apr 2006 12:36:37 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 15:36:37 -0400 Message-ID: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> Date: Fri, 28 Apr 2006 15:36:37 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.009, BAYES_00=-2.599] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:36:46 -0000 Interesting. It looks almost like you have the gecko-sharp libraries but not the underlying mozilla libraries (or your gecko-sharp library is pointing to the wrong location). Maybe I need to do something in my package to point to the proper location of a mozilla library. I don't know. I looked on my system for the library, and I found that it's libgtkembedmoz.so: trick@mc /usr/lib $ find | grep gtkembedmoz.so ./mozilla/libgtkembedmoz.so ./gecko-sdk/lib/libgtkembedmoz.so ./mozilla-firefox/libgtkembedmoz.so From the looks of it, your installation of gecko-sharp just doesn't have the library reference set up (properly). Maybe I need to include gecko-sharp.dll.config in the plugin install. trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat gecko-sharp.dll.config If I were you, I'd drop a copy of your gecko-sharp.dll.config into ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) LMK if you make any progress! Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from ghaefbgtk@gmail.com --------- Date: Fri, 28 Apr 2006 20:42:11 +0200 From: Nil Gradisnik Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Looking good. > > I'm getting an error when using this plugin on Banshee 0.10.9 > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck > > Any suggestions ? > > On 4/28/06, Trick van Staveren wrote: >> Howdy folks, >> >> Everyone likes screenshots, so I'll start with the screenie: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> I was reading the feature requests page, and I've noticed that as >> far back as I can >> remember, someone requested that banshee show artist information >> from wikipedia. At >> first I thought it was silly. Banshee is a music player, not a web >> browser! Well, >> needless to say, I've found myself such an addict to wikipedia for >> artist information, >> that earlier today I thought it'd be a neat idea to implement. >> >> Thus, the banshee-wikipedia-plugin was born. >> It's simple right now (and I plan to keep it as simple as possible). >> It's a Gecko widget dropped right below the library view. (Gecko == >> firefoz/mozilla >> rendering engine). >> It has a fixed size (for now). >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> an logical shortcut >> mapping?). >> It automatically queries wikipedia (english) for a page with the >> same title as the >> artist that you're playing. Changes with the track you're playing. >> I'm very tired. >> This is accurate probably about 80% of the time...you'll usually >> find a disambiguation >> page wherever it's lacking. >> I'm also telling it to use the mediawiki "simple" skin to make it >> load faster. >> In the future I'll figure out how to remove the nav bar on the left >> as it's pretty much >> useless (if you want to browse, use a web browser). >> Note the debug output in the console - it shows the actual URL >> you're looking at. >> >> A few hours of hacking, and here you have it: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> Banshee SVN at some >> point so you can track progress (abock - do you mind me adding this?) >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> was based on the >> banshee-recommendation-plugin. I'll rewrite some of it in the >> future to fit my >> situation, but it provided a GREAT starting point for me as I barely >> had to think >> twice about how to create the frame, enable/disable it with a toggle >> menu item, etc. >> Thanks Fredrik! >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> http://www.trick.vanstaveren.us/ >> >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from ghaefbgtk@gmail.com ----- From abockover@novell.com Fri Apr 28 15:42:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCF6D3B16A7 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12409-06 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id DB8733B0920 for ; Fri, 28 Apr 2006 15:42:55 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3SJgsfg010601 for ; Fri, 28 Apr 2006 15:42:54 -0400 (EDT) Subject: Re: [Banshee-List] Updated mass storage patch From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Content-Type: text/plain Date: Fri, 28 Apr 2006 15:39:47 -0400 Message-Id: <1146253187.2629.29.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.475 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.475 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:42:56 -0000 On Fri, 2006-04-28 at 13:51 -0500, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. I think portable_audio_player.type is now portable_audio_player.access_method. Either way, we sort of have an issue here. I guess the Mass Storage DAP should be forward-thinking and work only with the new spec (HEAD). But currently distros are shipping the old spec. NJB and iPod support in Banshee is based off keys from the old spec. These need to be forward-adapted for the new spec. --Aaron > Any way, thanks for reviewing the code and for the help! > > Gabriel > > [1] http://webcvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-spec.html#device-properties-portable_audio_player > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From m.j.hutchinson@gmail.com Fri Apr 28 16:03:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB33B158C for ; Fri, 28 Apr 2006 16:03:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13216-06 for ; Fri, 28 Apr 2006 16:03:43 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id AD23C3B04A8 for ; Fri, 28 Apr 2006 16:03:42 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so215777nfc for ; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bm1zIi0HyHPZNr3FQDVyf8fJWHBpYhLp/RktRZFjXhMtLlllKik6U/jThKxgLi7+MjIgYsghgt2TxRFykK5HB+YjvLNpPGG54tP3cX0vrtb5mPBG8ttJy1sNoA9Y+Aaj3dA/dHp94jZg1VPv4+VgTaFdi6eikbtjvcteg/pC/fQ= Received: by 10.48.12.19 with SMTP id 19mr6209526nfl; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Received: by 10.49.40.1 with HTTP; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 21:03:41 +0100 From: "Michael Hutchinson" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.483 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.483 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:03:44 -0000 On 4/28/06, Trick van Staveren wrote: > Interesting. It looks almost like you have the gecko-sharp libraries > but not the > underlying mozilla libraries (or your gecko-sharp library is pointing > to the wrong > location). Maybe I need to do something in my package to point to the > proper location > of a mozilla library. I don't know. Yes, this is something you have to do in your package (though whether you should have to do it is another question...) The Mozilla libraries are often not in the library loader's path, for example in Debian and Ubuntu. This is because of the way they are versioned. Mono projects that use Gecko# often have a wrapper script that runs something like $LD_LIBRARY_PATH:/usr/lib/mozilla /path/to/actual/program.exe You can see an example of this at http://svn.myrealbox.com/viewcvs/trunk/aspeditor/script.in?view=3Dmarkup Note that it detects the mozilla path in the configure script. MonoDevelop has a more robust (and more complicated) method: http://svn.myrealbox.com/viewcvs/trunk/monodevelop/monodevelop.in?view=3Dma= rkup Michael From jstembridge@gmail.com Fri Apr 28 16:10:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 354A73B158C for ; Fri, 28 Apr 2006 16:10:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13907-05 for ; Fri, 28 Apr 2006 16:10:37 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.235]) by menubar.gnome.org (Postfix) with ESMTP id 5877D3B17E0 for ; Fri, 28 Apr 2006 16:10:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so205719wra for ; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eksCIMim9SOcTZp+kQMRtqJhd5zSSmi9qLAqUSLyKvWwHYm+jpvlBH/XYV5e56uFhIveocwHIKc/RlIZU0Kscl6yegwEf2Ly3EzJYQgfRSZHXr9OhFpTW9X8SkN2geRdVwSEkbawlucv1TYSnzEc2a68QuJzcAKFPuFEQNKh94U= Received: by 10.54.112.16 with SMTP id k16mr2303711wrc; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Message-ID: <18bc366d0604281310w26cd92b9q3283aa223461f0f3@mail.gmail.com> Date: Fri, 28 Apr 2006 21:10:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5479_24399094.1146255032170" References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[AWL=0.079, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.521 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:10:44 -0000 ------=_Part_5479_24399094.1146255032170 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/28/06, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. OK, I've dropped the check as it doesn't seem necessary due to the priority given to non-generic plugins. The attached patch also adds support for players not recognised by hal at all, following the method used by rhythmbox of putting a file .is_audio_player in the root of the device. This change monkeys around with the device loading at startup, so I may well have inadvertently broken iPod/NJB support, but my best guess is that I haven't :-) Cheers, James. ------=_Part_5479_24399094.1146255032170 Content-Type: text/x-patch; name=mass-storage5.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkymw86 Content-Disposition: attachment; filename="mass-storage5.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 20:04:43 -0000 @@ -1,3 +1,37 @@ +2006-04-28 James Stembridge + + * src/Banshee.Base/Dap/DapCore.cs: Include all volumes when performing + initial scan for DAP devices, not just those that are children of + devices tagged by hal with portable_audio_player + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; don't initialize Gnome VFS if it's + already been initialized; accept devices with a file .is_audio_player + in the root + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 20:04:44 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 20:04:45 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Base/Dap/DapCore.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/DapCore.cs,v retrieving revision 1.11 diff -u -r1.11 DapCore.cs --- src/Banshee.Base/Dap/DapCore.cs 3 Mar 2006 07:46:54 -0000 1.11 +++ src/Banshee.Base/Dap/DapCore.cs 28 Apr 2006 20:04:45 -0000 @@ -149,23 +149,17 @@ private static void BuildDeviceTable() { + // All volume devices, should cover all storage based players foreach(Device device in Device.FindByStringMatch(HalCore.Context, + "info.category", "volume")) { + AddDevice(device); + } + + // None storage based players + foreach(Device device in Device.FindByStringMatch(HalCore.Context, "info.category", "portable_audio_player")) { - // Find the actual storage device that is mountable; - // this should probably just be possible by accessing - // portable_audio_player.storage_device, but for me - // as of HAL 0.5.6, this property just points to its own UDI - if(device["portable_audio_player.access_method"] == "storage" && - !device.GetPropertyBool("block.is_volume")) { - foreach(Device storage_device in Hal.Device.FindByStringMatch(device.Context, - "info.parent", device.Udi)) { - if(AddDevice(storage_device)) { - break; - } - } - } else { + if(device["portable_audio_player.access_method"] != "storage") AddDevice(device); - } } } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 20:04:46 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize(); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,46 +65,60 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; - } - - if (!player_device.PropertyExists ("portable_audio_player.access_method") || - player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || - !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } - if(!volume_device.PropertyExists ("volume.is_mounted") || - !volume_device.GetPropertyBool("volume.is_mounted")) + if (!volume_device.PropertyExists("block.device")) + return InitializeResult.Invalid; + + if (!volume_device.PropertyExists ("volume.is_mounted") || + !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } - } - - if (volume == null) + // Detect player via HAL property or presence of .is_audo_player in root + if (player_device["portable_audio_player.access_method"] != "storage" && + !File.Exists(Path.Combine(MountPoint, ".is_audio_player"))) { return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; + } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; + } base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +161,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +180,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +255,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +281,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +304,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 20:04:46 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_5479_24399094.1146255032170-- From trick@vanstaveren.us Sat Apr 29 14:15:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DEA4C3B0187 for ; Sat, 29 Apr 2006 14:15:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07090-06 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 909733B0380 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZtyw-0004Ar-B0; Sat, 29 Apr 2006 11:15:50 -0700 Received: from 24-247-125-4.dhcp.klmz.mi.charter.com (24-247-125-4.dhcp.klmz.mi.charter.com [24.247.125.4]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 29 Apr 2006 14:15:50 -0400 Message-ID: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> Date: Sat, 29 Apr 2006 14:15:50 -0400 From: Trick van Staveren To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> In-Reply-To: <1146319138.6018.4.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 24.247.125.4 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 18:15:56 -0000 Excellent! This is what OSS is all about :) Patches are more than just welcome - they're encouraged. If you've got a better way of doing this, don't hesitate to contribute :) I haven't changed it much since 0.0.1, other than I've been experimenting with using google searches of wikipedia to better find the right pages - for instance, when I play a song by Kansas, I get info about the state. Searching google for 'kansas band' returns only results with both words in it, and I use the auto-redirect to push it to wikipedia. It seems to return better results (about 95% of the time I get the correct page, versus right now probably only 75%). Aside that, patch away my friend! I will be putting this in the banshee SVN or my personal SVN (which I'm setting up this weekend) and we can work together better :) I look forward to it! -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from indecent@picle.org --------- Date: Sat, 29 Apr 2006 15:58:58 +0200 From: indecent Reply-To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin To: trick@vanstaveren.us > Hello, > My Name is David Schneider, I#m a cs student from Germany. > Some time ago i started writing a similar plugin for muine, but for > differtent reasons i never finished it. I had used a x-path based > aproach to parse the wikipedia pages. So if you don't mind i'd love to > contribute to the banshee-wikipedia plugin. > > David > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> Interesting. It looks almost like you have the gecko-sharp libraries >> but not the >> underlying mozilla libraries (or your gecko-sharp library is pointing >> to the wrong >> location). Maybe I need to do something in my package to point to the >> proper location >> of a mozilla library. I don't know. >> I looked on my system for the library, and I found that it's >> libgtkembedmoz.so: >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> ./mozilla/libgtkembedmoz.so >> ./gecko-sdk/lib/libgtkembedmoz.so >> ./mozilla-firefox/libgtkembedmoz.so >> >> From the looks of it, your installation of gecko-sharp just doesn't >> have the library >> reference set up (properly). Maybe I need to include >> gecko-sharp.dll.config in the >> plugin install. >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) >> >> LMK if you make any progress! >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> From: Nil Gradisnik >> Reply-To: banshee-list@gnome.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: banshee-list@gnome.org >> >> >> > Looking good. >> > >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck >> > >> > Any suggestions ? >> > >> > On 4/28/06, Trick van Staveren wrote: >> >> Howdy folks, >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> far back as I can >> >> remember, someone requested that banshee show artist information >> >> from wikipedia. At >> >> first I thought it was silly. Banshee is a music player, not a web >> >> browser! Well, >> >> needless to say, I've found myself such an addict to wikipedia for >> >> artist information, >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> firefoz/mozilla >> >> rendering engine). >> >> It has a fixed size (for now). >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> an logical shortcut >> >> mapping?). >> >> It automatically queries wikipedia (english) for a page with the >> >> same title as the >> >> artist that you're playing. Changes with the track you're playing. >> >> I'm very tired. >> >> This is accurate probably about 80% of the time...you'll usually >> >> find a disambiguation >> >> page wherever it's lacking. >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> load faster. >> >> In the future I'll figure out how to remove the nav bar on the left >> >> as it's pretty much >> >> useless (if you want to browse, use a web browser). >> >> Note the debug output in the console - it shows the actual URL >> >> you're looking at. >> >> >> >> A few hours of hacking, and here you have it: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> Banshee SVN at some >> >> point so you can track progress (abock - do you mind me adding this?) >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> was based on the >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> future to fit my >> >> situation, but it provided a GREAT starting point for me as I barely >> >> had to think >> >> twice about how to create the frame, enable/disable it with a toggle >> >> menu item, etc. >> >> Thanks Fredrik! >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > _______________________________________________ >> > Banshee-list mailing list >> > Banshee-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> > >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > > ----- End message from indecent@picle.org ----- From jasl8r@gmail.com Sat Apr 29 17:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DAAF3B02DF for ; Sat, 29 Apr 2006 17:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15587-06 for ; Sat, 29 Apr 2006 17:45:29 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 10B5D3B0255 for ; Sat, 29 Apr 2006 17:45:28 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so367226wra for ; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DlCKFLg9qkAWjVHgBqB9S48InVj3sHHUNgcdm1AlYDb9lFQ6nnFFfO7EQAka/b0x00NxGc4fFmVGIMfwsFDOTEYXxIZ0nsvguGirn3/qSBy8bxNrPYkTLivU8OBqNV79ovFBpFjud5n/siKOIga+Pk5zh1E+WOFxvXcIQMsFX5k= Received: by 10.54.91.16 with SMTP id o16mr1256135wrb; Sat, 29 Apr 2006 14:43:58 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) Message-ID: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> Date: Sat, 29 Apr 2006 17:45:28 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14006_24167613.1146347128392" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.028 tagged_above=-999 required=2 tests=[AWL=0.197, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.028 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 21:45:38 -0000 ------=_Part_14006_24167613.1146347128392 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to go to the band specific page with the attached "_(band)" in the url which exists when disambiguation is needed. Then if that page "does not have an article" or whatnot you can go to the page without the attached "_(band)" i= n the url. I don't know if that would be more accurate than google or not. Jeremy On 4/29/06, Trick van Staveren wrote: > > Excellent! This is what OSS is all about :) > > Patches are more than just welcome - they're encouraged. If you've got > a better way of > doing this, don't hesitate to contribute :) > > I haven't changed it much since 0.0.1, other than I've been > experimenting with using > google searches of wikipedia to better find the right pages - for > instance, when I > play a song by Kansas, I get info about the state. Searching google > for 'kansas band' > returns only results with both words in it, and I use the auto-redirect > to push it to > wikipedia. It seems to return better results (about 95% of the time I > get the correct > page, versus right now probably only 75%). Aside that, patch away my > friend! > > I will be putting this in the banshee SVN or my personal SVN (which I'm > setting up this > weekend) and we can work together better :) > > I look forward to it! > > -Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from indecent@picle.org --------- > Date: Sat, 29 Apr 2006 15:58:58 +0200 > From: indecent > Reply-To: indecent@picle.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: trick@vanstaveren.us > > > > Hello, > > My Name is David Schneider, I#m a cs student from Germany. > > Some time ago i started writing a similar plugin for muine, but > for > > differtent reasons i never finished it. I had used a x-path based > > aproach to parse the wikipedia pages. So if you don't mind i'd love to > > contribute to the banshee-wikipedia plugin. > > > > David > > > > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> Interesting. It looks almost like you have the gecko-sharp libraries > >> but not the > >> underlying mozilla libraries (or your gecko-sharp library is pointing > >> to the wrong > >> location). Maybe I need to do something in my package to point to the > >> proper location > >> of a mozilla library. I don't know. > >> I looked on my system for the library, and I found that it's > >> libgtkembedmoz.so: > >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> ./mozilla/libgtkembedmoz.so > >> ./gecko-sdk/lib/libgtkembedmoz.so > >> ./mozilla-firefox/libgtkembedmoz.so > >> > >> From the looks of it, your installation of gecko-sharp just doesn't > >> have the library > >> reference set up (properly). Maybe I need to include > >> gecko-sharp.dll.config in the > >> plugin install. > >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat > >> gecko-sharp.dll.config > >> > >> > >> > >> > >> > >> > >> > >> > >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you > :) > >> > >> LMK if you make any progress! > >> > >> Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from ghaefbgtk@gmail.com --------- > >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> From: Nil Gradisnik > >> Reply-To: banshee-list@gnome.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: banshee-list@gnome.org > >> > >> > >> > Looking good. > >> > > >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > found. > >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > luck > >> > > >> > Any suggestions ? > >> > > >> > On 4/28/06, Trick van Staveren wrote: > >> >> Howdy folks, > >> >> > >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> > >> >> I was reading the feature requests page, and I've noticed that as > >> >> far back as I can > >> >> remember, someone requested that banshee show artist information > >> >> from wikipedia. At > >> >> first I thought it was silly. Banshee is a music player, not a web > >> >> browser! Well, > >> >> needless to say, I've found myself such an addict to wikipedia for > >> >> artist information, > >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> > >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> It's simple right now (and I plan to keep it as simple as possible)= . > >> >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D > >> >> firefoz/mozilla > >> >> rendering engine). > >> >> It has a fixed size (for now). > >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this > >> >> an logical shortcut > >> >> mapping?). > >> >> It automatically queries wikipedia (english) for a page with the > >> >> same title as the > >> >> artist that you're playing. Changes with the track you're playing. > >> >> I'm very tired. > >> >> This is accurate probably about 80% of the time...you'll usually > >> >> find a disambiguation > >> >> page wherever it's lacking. > >> >> I'm also telling it to use the mediawiki "simple" skin to make it > >> >> load faster. > >> >> In the future I'll figure out how to remove the nav bar on the left > >> >> as it's pretty much > >> >> useless (if you want to browse, use a web browser). > >> >> Note the debug output in the console - it shows the actual URL > >> >> you're looking at. > >> >> > >> >> A few hours of hacking, and here you have it: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> > >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in > >> >> Banshee SVN at some > >> >> point so you can track progress (abock - do you mind me adding > this?) > >> >> > >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code > >> >> was based on the > >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> future to fit my > >> >> situation, but it provided a GREAT starting point for me as I barel= y > >> >> had to think > >> >> twice about how to create the frame, enable/disable it with a toggl= e > >> >> menu item, etc. > >> >> Thanks Fredrik! > >> >> > >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > _______________________________________________ > >> > Banshee-list mailing list > >> > Banshee-list@gnome.org > >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > >> > >> > >> ----- End message from ghaefbgtk@gmail.com ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > > > ----- End message from indecent@picle.org ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_14006_24167613.1146347128392 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to = go to the band specific page with the attached "_(band)" in the u= rl which exists when disambiguation is needed.  Then if that page &quo= t;does not have an article" or whatnot you can go to the page without = the attached "_(band)" in the url.  I don't know if that wou= ld be more accurate than google or not.

Jeremy

On 4/29/06, Trick van Staveren <trick@vanstaveren.us> wrote:
Excellent!  This is what OSS is all about :)

Patches are m= ore than just welcome - they're encouraged.  If you've got
a b= etter way of
doing this, don't hesitate to contribute :)

I haven'= t changed it much since=20 0.0.1, other than I've been
experimenting with using
google searches = of wikipedia to better find the right pages - for
instance, when I
pl= ay a song by Kansas, I get info about the state.  Searching googl= e
for 'kansas band'
returns only results with both words in it, and I use the auto-redirect=
to push it to
wikipedia.  It seems to return better result= s (about 95% of the time I
get the correct
page, versus right now pro= bably only 75%).  Aside that, patch away my friend!

I will be putting this in the banshee SVN or my personal SVN (which= I'm
setting up this
weekend) and we can work together better :)
<= br>I look forward to it!

-Patrick

--
Patrick "Trick&q= uot; van Staveren
Western Michigan University
AIM: goofyassmoose
Cell: 269.267.6008=
http://www.trick.vanstaver= en.us/


----- Message from indecent@picle.org ---------
    Date: Sat, 29 A= pr 2006 15:58:58 +0200
    From: indecent <indecent@picle.org>
Reply-To: indecent@picle.org
Subject: Re: [Banshee-List] Wikipedia plugin
   &= nbsp;  To: trick@vanstave= ren.us


> Hello,
> My Name is David Schneider, I#m a= cs student from Germany.
>       Some time ago i started writing a = similar plugin for muine, but for
> differtent reasons i never finish= ed it. I had used a x-path based
> aproach to parse the wikipedia pag= es. So if you don't mind i'd love to
> contribute to the banshee-wikipedia plugin.
>
> David<= br>>
>
> Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Tri= ck van Staveren:
>> Interesting.  It looks almost like y= ou have the gecko-sharp libraries
>> but not the
>> underlying mozilla libraries (or your = gecko-sharp library is pointing
>> to the wrong
>> locati= on).  Maybe I need to do something in my package to point to the<= br>>> proper location
>> of a mozilla library.  I don't know.
>> I l= ooked on my system for the library, and I found that it's
>> libgt= kembedmoz.so:
>> trick@mc /usr/lib $ find | grep gtkembedmoz.so>> ./mozilla/libgtkembedmoz.so
>> ./gecko-sdk/lib/libgtkembedmoz.so
>> ./mozilla-firefo= x/libgtkembedmoz.so
>>
>>  From the looks of it= , your installation of gecko-sharp just doesn't
>> have the librar= y
>> reference set up (properly).  Maybe I need to inclu= de
>> gecko-sharp.dll.config in the
>> plugin install.
&= gt;> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ = cat
>> gecko-sharp.dll.config
>> <configuration>
>>   <dllmap dll=3D"libglib-2.0-0.dll" tar= get=3D"libglib-2.0.so.0"/>
>>   <dllmap = dll=3D"libgobject-2.0-0.dll" target=3D"libgobject-2.0.so.0&q= uot;/>
>>   <dllmap dll=3D" libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>
>>= ;   <dllmap dll=3D"libgtk-win32-2.0-0.dll" target=3D= "libgtk-x11-2.0.so.0"/>
>>   <dllmap dll= =3D"gtkembedmoz.dll " target=3D"libgtkembedmoz.so"/>
>> </configu= ration>
>>
>> If I were you, I'd drop a copy of your g= ecko-sharp.dll.config into
>> ~/.gnome2/banshee/plugins and see wh= at happens!  Might fix it for you :)
>>
>> LMK if you make any progress!
>>
>&= gt; Patrick
>>
>> --
>> Patrick "Trick"= ; van Staveren
>> Western Michigan University
>> AIM: goo= fyassmoose
>> Cell: 269.267.6008
>> http://www.trick.vanstaveren.us/
>>
>><= br>>> ----- Message from ghaef= bgtk@gmail.com ---------
>>     Date: Fri, 28 Apr 2006 2= 0:42:11 +0200
>>     From: Nil Gradisnik <<= a href=3D"mailto:ghaefbgtk@gmail.com">ghaefbgtk@gmail.com>
>&g= t; Reply-To: banshee-list@gnome.org
>> Subject: Re: [Banshee-List] Wikipedi= a plugin
>>       To: banshee-list@gnome.org
>>
>&= gt;
>> > Looking good.
>> >
>> > I'm getting an error when using this plu= gin on Banshee 0.10.9
>> > The exception is thrown by Gecko.Web= Control -> gtkembedmoz.so not found.
>> > I linked the mozil= las=20 libgtkembedmoz.so to /usr/lib/ and still no luck
>> >
>&g= t; > Any suggestions ?
>> >
>> > On 4/28/06, Tri= ck van Staveren <trick@vanstaver= en.us > wrote:
>> >> Howdy folks,
>> >>
&= gt;> >> Everyone likes screenshots, so I'll start with the screeni= e:
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png<= /a>
>> >>
>> >> I was reading the feature req= uests page, and I've noticed that as
>> >> far back as I can
>> >> remember, someone requested that banshee show artist = information
>> >> from wikipedia.  At
>> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> browser!  Well,
>> >> needless to say, I've found myself such an addict to = wikipedia for
>> >> artist information,
>> >>= that earlier today I thought it'd be a neat idea to implement.
>>= >>
>> >> Thus, the banshee-wikipedia-plugin was born.
>&= gt; >> It's simple right now (and I plan to keep it as simple as poss= ible).
>> >> It's a Gecko widget dropped right below the lib= rary view. (Gecko =3D=3D
>> >> firefoz/mozilla
>> >> rendering engine= ).
>> >> It has a fixed size (for now).
>> >>= It can be hidden/shown from the View menu (CTRL+I as well - is this
>> >> an logical shortcut
>> >> mapping?).
&g= t;> >> It automatically queries wikipedia (english) for a page wit= h the
>> >> same title as the
>> >> artist th= at you're playing.  Changes with the track you're playing.
>> >> I'm very tired.
>> >> This is accurate= probably about 80% of the time...you'll usually
>> >> find = a disambiguation
>> >> page wherever it's lacking.
>&g= t; >> I'm also telling it to use the mediawiki "simple" ski= n to make it
>> >> load faster.
>> >> In the future I'll = figure out how to remove the nav bar on the left
>> >> as it= 's pretty much
>> >> useless (if you want to browse, use a w= eb browser).
>> >> Note the debug output in the console - it shows the a= ctual URL
>> >> you're looking at.
>> >>
&= gt;> >> A few hours of hacking, and here you have it:
>> = >>
>>
http://www.trick.vanstaveren.us/banshee/banshe= e-wikipedia-plugin-0.0.1.tar.bz2
>> >>
>> >&= gt; Feedback is welcome, appreciated, and encouraged!  I'll drop = it in
>> >> Banshee SVN at some
>> >> point so you= can track progress (abock - do you mind me adding this?)
>> >&= gt;
>> >> MAJOR credit goes out to Fredrik Hedberg - more th= an half the code
>> >> was based on the
>> >> banshee-recomme= ndation-plugin.  I'll rewrite some of it in the
>> >&= gt; future to fit my
>> >> situation, but it provided a GREA= T starting point for me as I barely
>> >> had to think
>> >> twice about how to = create the frame, enable/disable it with a toggle
>> >> menu= item, etc.
>> >> Thanks Fredrik!
>> >>
>> >> Enjoy!  Reply to the list or snag me on IRC (ni= ck: trick)
>> >>
>> >> Patrick
>> &g= t;>
>> >> --
>> >> Patrick "Trick&quo= t; van Staveren
>> >> Western Michigan University
>> >> http://www.trick.vanstaveren.us/
>> >>
>> >>
>> >>
>&g= t; >>
>> >> _______________________________________________
&g= t;> >> Banshee-list mailing list
>> >>
Banshee-list@gnome.org
>> >&g= t;=20 http://mail= .gnome.org/mailman/listinfo/banshee-list
>> >>
>&g= t; > _______________________________________________
>> > Ba= nshee-list mailing list
>> > Banshee-list@gn= ome.org
>> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >
>>
>>
>> ----- End message from ghaefbgtk@gmail.com -----
>&= gt;
>>
>>
>> ___________________________________= ____________
>> Banshee-list mailing list
>> Banshee-list@gnome.org
>> http://mail.gnome.org/mailman= /listinfo/banshee-list
>>
>
>


----- End message from indecent@picle.org -----



= _______________________________________________
Banshee-list mailing lis= t
Banshee-list@gnome.orghttp://mai= l.gnome.org/mailman/listinfo/banshee-list

------=_Part_14006_24167613.1146347128392-- From trick@vanstaveren.us Sun Apr 30 02:37:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 657613B0324 for ; Sun, 30 Apr 2006 02:37:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01852-07 for ; Sun, 30 Apr 2006 02:37:23 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 0B5353B0099 for ; Sun, 30 Apr 2006 02:37:22 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5YY-00083x-0d for banshee-list@gnome.org; Sat, 29 Apr 2006 23:37:22 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:37:21 -0400 Message-ID: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:37:21 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin, v0.0.2 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:37:26 -0000 Hey folks, Been working on it a bit and just wanted to publish :) http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 Changelog: 2006-04-30 Patrick van Staveren * Google search mode - uses the "i'm feeling lucky" feature of Google to direct to the closes match using Google, adding the keyword "band". I know, this isn't the best way, but it is much much more accurate than just searching for the artist keyword. * Experimenting with stuff like a status bar and progress bar for loading. * Progress bar is way too buggy and causes segfaults - commented out :) * Opens to about:blank, not google on init. Faster. * Made default size a bit bigger. Maybe this should be a percentage someday. Someone patch this for me! * Bunch of attempts to create a HPaned between the track listing and this, but I can't find a widget. Big chunk of commented code for now. * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) * Debug info is copied in, so you can easily trace Enjoy, and send feedback :) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From trick@vanstaveren.us Sun Apr 30 02:40:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DAEB3B0401 for ; Sun, 30 Apr 2006 02:40:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02027-02 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 6CAEB3B0409 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5b6-0008B5-OP for banshee-list@gnome.org; Sat, 29 Apr 2006 23:40:00 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:40:00 -0400 Message-ID: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:40:00 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> In-Reply-To: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.592 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599] X-Spam-Score: -2.592 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:40:04 -0000 I'd be totally game for that if I can (easily) detect disambiguation pages somehow. I haven't really tried...but I can't think of any other way than to look right at the source of the page, parse it all up, and hope I'm doing it right and that wikipedia never changes their skin format. Sounds like a lot of work to me :/ I'm using the google search right now which has proven really nice, and I'm going to research some of the external indexes to wikipedia...maybe there's one that indexes music groups only that we could search thru - that'd be superb :) Thanks for the suggestion! LMK if you have any idea how to detect disambiguation/no-result pages (code wise, even if you don't know C#, anything's good!) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from jasl8r@gmail.com --------- Date: Sat, 29 Apr 2006 17:45:28 -0400 From: Jeremy Slater Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Not sure if this is a good suggestion or not, but what if you first try to > go to the band specific page with the attached "_(band)" in the url which > exists when disambiguation is needed. Then if that page "does not have an > article" or whatnot you can go to the page without the attached "_(band)" in > the url. I don't know if that would be more accurate than google or not. > > Jeremy > > On 4/29/06, Trick van Staveren wrote: >> >> Excellent! This is what OSS is all about :) >> >> Patches are more than just welcome - they're encouraged. If you've got >> a better way of >> doing this, don't hesitate to contribute :) >> >> I haven't changed it much since 0.0.1, other than I've been >> experimenting with using >> google searches of wikipedia to better find the right pages - for >> instance, when I >> play a song by Kansas, I get info about the state. Searching google >> for 'kansas band' >> returns only results with both words in it, and I use the auto-redirect >> to push it to >> wikipedia. It seems to return better results (about 95% of the time I >> get the correct >> page, versus right now probably only 75%). Aside that, patch away my >> friend! >> >> I will be putting this in the banshee SVN or my personal SVN (which I'm >> setting up this >> weekend) and we can work together better :) >> >> I look forward to it! >> >> -Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from indecent@picle.org --------- >> Date: Sat, 29 Apr 2006 15:58:58 +0200 >> From: indecent >> Reply-To: indecent@picle.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: trick@vanstaveren.us >> >> >> > Hello, >> > My Name is David Schneider, I#m a cs student from Germany. >> > Some time ago i started writing a similar plugin for muine, but >> for >> > differtent reasons i never finished it. I had used a x-path based >> > aproach to parse the wikipedia pages. So if you don't mind i'd love to >> > contribute to the banshee-wikipedia plugin. >> > >> > David >> > >> > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> >> Interesting. It looks almost like you have the gecko-sharp libraries >> >> but not the >> >> underlying mozilla libraries (or your gecko-sharp library is pointing >> >> to the wrong >> >> location). Maybe I need to do something in my package to point to the >> >> proper location >> >> of a mozilla library. I don't know. >> >> I looked on my system for the library, and I found that it's >> >> libgtkembedmoz.so: >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> >> ./mozilla/libgtkembedmoz.so >> >> ./gecko-sdk/lib/libgtkembedmoz.so >> >> ./mozilla-firefox/libgtkembedmoz.so >> >> >> >> From the looks of it, your installation of gecko-sharp just doesn't >> >> have the library >> >> reference set up (properly). Maybe I need to include >> >> gecko-sharp.dll.config in the >> >> plugin install. >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you >> :) >> >> >> >> LMK if you make any progress! >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> AIM: goofyassmoose >> >> Cell: 269.267.6008 >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> >> From: Nil Gradisnik >> >> Reply-To: banshee-list@gnome.org >> >> Subject: Re: [Banshee-List] Wikipedia plugin >> >> To: banshee-list@gnome.org >> >> >> >> >> >> > Looking good. >> >> > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not >> found. >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no >> luck >> >> > >> >> > Any suggestions ? >> >> > >> >> > On 4/28/06, Trick van Staveren wrote: >> >> >> Howdy folks, >> >> >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> >> far back as I can >> >> >> remember, someone requested that banshee show artist information >> >> >> from wikipedia. At >> >> >> first I thought it was silly. Banshee is a music player, not a web >> >> >> browser! Well, >> >> >> needless to say, I've found myself such an addict to wikipedia for >> >> >> artist information, >> >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> >> firefoz/mozilla >> >> >> rendering engine). >> >> >> It has a fixed size (for now). >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> >> an logical shortcut >> >> >> mapping?). >> >> >> It automatically queries wikipedia (english) for a page with the >> >> >> same title as the >> >> >> artist that you're playing. Changes with the track you're playing. >> >> >> I'm very tired. >> >> >> This is accurate probably about 80% of the time...you'll usually >> >> >> find a disambiguation >> >> >> page wherever it's lacking. >> >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> >> load faster. >> >> >> In the future I'll figure out how to remove the nav bar on the left >> >> >> as it's pretty much >> >> >> useless (if you want to browse, use a web browser). >> >> >> Note the debug output in the console - it shows the actual URL >> >> >> you're looking at. >> >> >> >> >> >> A few hours of hacking, and here you have it: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> >> Banshee SVN at some >> >> >> point so you can track progress (abock - do you mind me adding >> this?) >> >> >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> >> was based on the >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> >> future to fit my >> >> >> situation, but it provided a GREAT starting point for me as I barely >> >> >> had to think >> >> >> twice about how to create the frame, enable/disable it with a toggle >> >> >> menu item, etc. >> >> >> Thanks Fredrik! >> >> >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> >> >> Patrick >> >> >> >> >> >> -- >> >> >> Patrick "Trick" van Staveren >> >> >> Western Michigan University >> >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Banshee-list mailing list >> >> >> Banshee-list@gnome.org >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> >> >> > _______________________________________________ >> >> > Banshee-list mailing list >> >> > Banshee-list@gnome.org >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >> > >> >> >> >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > >> > >> >> >> ----- End message from indecent@picle.org ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > ----- End message from jasl8r@gmail.com ----- From indecent@picle.org Sun Apr 30 11:17:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D9763B0903 for ; Sun, 30 Apr 2006 11:17:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08239-08 for ; Sun, 30 Apr 2006 11:17:32 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id B4F9F3B0908 for ; Sun, 30 Apr 2006 11:17:31 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 23A0920CFB7 for ; Sun, 30 Apr 2006 17:17:29 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Content-Type: multipart/mixed; boundary="=-9FrJ4BBEwohT68RTNwby" Date: Sun, 30 Apr 2006 17:17:26 +0200 Message-Id: <1146410246.6015.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:17:40 -0000 --=-9FrJ4BBEwohT68RTNwby Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, here comes a little patch for the wikipedia plugin, i added a parser for the wikipedia pages to remove information that is not needed, for now the bar left, header and footer. Also I added a class to manage the querys an request the pages using httpwebrequest, this could also help tho find pages that didn't match match the search. I used the httpwebresponse.Host to detect results not from wikipedia. Further i started a cache for the downloaded pages, these are stored in the plungindir/wikipedia David Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > Hey folks, > > Been working on it a bit and just wanted to publish :) > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > Changelog: > 2006-04-30 Patrick van Staveren > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > to the closes match using Google, adding the keyword "band". I know, this isn't the > best way, but it is much much more accurate than just searching for the artist > keyword. > * Experimenting with stuff like a status bar and progress bar for loading. > * Progress bar is way too buggy and causes segfaults - commented out :) > * Opens to about:blank, not google on init. Faster. > * Made default size a bit bigger. Maybe this should be a percentage someday. > Someone patch this for me! > * Bunch of attempts to create a HPaned between the track listing and this, but > I can't find a widget. Big chunk of commented code for now. > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > * Debug info is copied in, so you can easily trace > > Enjoy, and send feedback :) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=banshee_wikipedia.patch Content-Type: text/x-patch; name=banshee_wikipedia.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./WikipediaPane.cs 2006-04-30 08:28:46.000000000 +0200 +++ ../../new/WikipediaPane.cs 2006-04-30 16:42:39.000000000 +0200 @@ -19,13 +19,14 @@ namespace Banshee.Plugins.Wikipedia private VBox main; private HBox bot; private ProgressBar pb; - private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; - + + // set url + web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); @@ -109,15 +110,27 @@ namespace Banshee.Plugins.Wikipedia slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page - */ - web.LoadUrl( - "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+" + - + "%22" + current_artist + "%22" - + "band" + - + "&btnI=asdf" - ); - + */ + string temp; + WikipediaQuery w_query = new WikipediaQuery(current_artist); + WikipediaPage w_page = w_query.PerformLookUp(); + if ( w_page != null ) { + web.OpenStream(w_page.BaseUri,"text/html"); + web.AppendData(w_page.Header); + web.AppendData("

"+current_artist+"

"); + //Console.WriteLine(w_page.Header); + while ( (temp = w_page.ReadBodyLine())!= null ) { + web.AppendData(temp); + //Console.WriteLine(temp); + } + web.AppendData(w_page.Footer); + web.CloseStream(); + web.Show(); + Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); + } else { + Visible = false; + } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. @@ -130,7 +143,7 @@ namespace Banshee.Plugins.Wikipedia ); */ - Console.WriteLine("Wikipedia plugin debug: URL=" + web.Location); + } // --------------------------------------------------------------- // @@ -149,7 +162,7 @@ namespace Banshee.Plugins.Wikipedia Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { - ShowArtist(null, null); + //ShowArtist(null, null); Visible = true; return; } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { //ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaParser.cs Content-Type: text/x-csharp; name=WikipediaParser.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using System.Xml; using System.Xml.XPath; using Mono.Unix; namespace Banshee.Plugins.Wikipedia { public sealed class WikipediaParser { private string title; private MemoryStream body; private Stream target; public MemoryStream Body { get { return body; } } public StreamReader BodyReader { get { if ( this.body == null ) { this.body = new MemoryStream(); } return new StreamReader(this.body,Encoding.UTF8); } } public string Title { get { return this.title; } } public WikipediaParser(Stream s) { this.target = s; } public bool GetWikipediaInfo(string query) { if ( query == "" ) { return false; } else { // Stream response_stream = this.SendRequest(query); // this.Parse(response_stream); // response_stream.Close(); return true; } } public void Parse() { XmlDocument html = new XmlDocument(); StreamReader sr = new StreamReader(target, Encoding.UTF8); sr.ReadLine(); sr.ReadLine(); StringBuilder sb = new StringBuilder(); sb.Insert(0,""); sb.Append(sr.ReadToEnd()); sr.Close(); html.LoadXml(sb.ToString()); XPathNavigator nav = html.CreateNavigator(); try { XPathNodeIterator iter = nav.Select("//div[@id='bodyContent']"); iter.MoveNext(); XmlNode node = ((IHasXmlNode)iter.Current ).GetNode(); if ( node != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); } /*try { XPathNodeIterator iter = nav.Select("//h1[@class='firstHeading']/text()"); iter.MoveNext(); XmlNode node = (iter.Current as IHasXmlNode).GetNode(); if ( node != null ) { this.title = node.Value; } else { this.title = Catalog.GetString("Not found"); } } catch ( Exception e ) { Console.WriteLine("Error retrieving title "+e.Message); this.title = Catalog.GetString("An error ocurred")+" "+e.Message; } // maybe perform some cleanup on the html // get body try { XPathNodeIterator iter2 = nav.Select("//div[@id='bodyContent']"); iter2.MoveNext(); XmlNode node2 = ((IHasXmlNode)iter2.Current ).GetNode(); if ( node2 != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node2.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); }*/ } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaQuery.cs Content-Type: text/x-csharp; name=WikipediaQuery.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using Mono.Posix; using Banshee.Base; namespace Banshee.Plugins.Wikipedia { public class WikipediaQuery { private string query; private const string url = "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+%22{0}%22%20band&btnI=asdf";// private const string wiki_host = "en.wikipedia.org";// private static string CACHE_PATH = System.IO.Path.Combine (Paths.UserPluginDirectory, "wikipedia"); public string QueryUrl { get { Console.WriteLine(string.Format(url,this.query)); return string.Format(url,this.query); } } public string Query { get { return this.query; } set { this.query = value; } } public WikipediaQuery(string query) { this.query = query; if (!Directory.Exists (CACHE_PATH)) Directory.CreateDirectory (CACHE_PATH); } public WikipediaPage LoadInformation() { return PerformLookUp(); } public WikipediaPage PerformLookUp() { string filename = this.GetCachedPath(); HttpWebRequest c_req = GetRequest(); WikipediaPage wp; if (File.Exists (filename)) { // check if we have a cached veriosn DateTime last_updated_time = File.GetLastWriteTime (filename); if (DateTime.Compare(last_updated_time, c_req.IfModifiedSince) < 0) { // the cached verion is ok Console.WriteLine("Opening from cache"); wp = LoadFromCache(); } else { Console.WriteLine("In cache but to old"); wp = DownloadWikipedia(c_req); } } else { Console.WriteLine("Opening from wikipedia"); wp = DownloadWikipedia(c_req); } if ( wp != null ) wp.BaseUri = "http://en.wikipedia.org/wiki/"; return wp; } private HttpWebRequest GetRequest() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.QueryUrl); request.KeepAlive = false; request.AllowAutoRedirect = true; request.UserAgent = "Mozilla (Banshee-wikipedia plugin)"; return request; } private WikipediaPage DownloadWikipedia(HttpWebRequest req) { HttpWebResponse response = (HttpWebResponse) req.GetResponse(); Console.WriteLine(response.ResponseUri); if ( response.ResponseUri.Host.Equals(wiki_host) ) { Stream s = response.GetResponseStream (); WikipediaParser wparser = new WikipediaParser(s); wparser.Parse(); MemoryStream body = wparser.Body; response.Close(); try { SaveToCache(body); } catch(Exception e ) { Console.WriteLine("Could not cache file because: {0}",e.Message); // Console.WriteLine(e.StackTrace); } return new WikipediaPage(body); } else { return null; } } private WikipediaPage LoadFromCache() { string f_name = GetCachedPath(); FileStream fs = File.OpenRead(f_name); return new WikipediaPage(fs); } private void SaveToCache(MemoryStream body) { string f_name = GetCachedPath(); FileStream fs = File.OpenWrite(f_name); BufferedStream buffered_stream = new BufferedStream (fs); //buffered_stream.Write(body.GetBuffer(),0,(int)body.Length); byte [] buffer = new byte [8192]; int read; do { read = body.Read (buffer, 0, buffer.Length); if (read > 0) buffered_stream.Write (buffer, 0, read); } while (read > 0); buffered_stream.Close(); fs.Close(); body.Position = 0; } private string GetCachedPath() { return System.IO.Path.Combine (CACHE_PATH, Math.Abs(this.query.ToLower().GetHashCode()).ToString()); } } } --=-9FrJ4BBEwohT68RTNwby-- From indecent@picle.org Sun Apr 30 11:29:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 985493B094A for ; Sun, 30 Apr 2006 11:29:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08769-07 for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id 11F043B093C for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 76F0620BD1E for ; Sun, 30 Apr 2006 17:29:09 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <1146410246.6015.8.camel@localhost.localdomain> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> <1146410246.6015.8.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-js8RkJd1Mb70m6Kb0B4s" Date: Sun, 30 Apr 2006 17:29:07 +0200 Message-Id: <1146410947.6015.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:29:16 -0000 --=-js8RkJd1Mb70m6Kb0B4s Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, i'm sorry i forgot one file, and i found an error i introduced in wikipediapane.cs Am Sonntag, den 30.04.2006, 17:17 +0200 schrieb indecent: > Hello, > > here comes a little patch for the wikipedia plugin, i added a parser > for the wikipedia pages to remove information that is not needed, for > now the bar left, header and footer. > Also I added a class to manage the querys an request the pages using > httpwebrequest, this could also help tho find pages that didn't match > match the search. I used the httpwebresponse.Host to detect results not > from wikipedia. > Further i started a cache for the downloaded pages, these are stored in > the plungindir/wikipedia > > David > > Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > > Hey folks, > > > > Been working on it a bit and just wanted to publish :) > > > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > > > Changelog: > > 2006-04-30 Patrick van Staveren > > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > > to the closes match using Google, adding the keyword "band". I know, this isn't the > > best way, but it is much much more accurate than just searching for the artist > > keyword. > > * Experimenting with stuff like a status bar and progress bar for loading. > > * Progress bar is way too buggy and causes segfaults - commented out :) > > * Opens to about:blank, not google on init. Faster. > > * Made default size a bit bigger. Maybe this should be a percentage someday. > > Someone patch this for me! > > * Bunch of attempts to create a HPaned between the track listing and this, but > > I can't find a widget. Big chunk of commented code for now. > > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > > * Debug info is copied in, so you can easily trace > > > > Enjoy, and send feedback :) > > > > Patrick > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPage.cs Content-Type: text/x-csharp; name=WikipediaPage.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Text; namespace Banshee.Plugins.Wikipedia { public class WikipediaPage { private static string header = " "+ ""+ ""+ ""+ ""; private static string footer = ""; //public Stream body; private StreamReader body_reader; private string base_url; public string BaseUri { get { return base_url; } set { this.base_url = value; } } public string Header { get { return header; } } public string Footer { get { return footer; } } public WikipediaPage(Stream body) { body_reader = new StreamReader(body,System.Text.Encoding.UTF8); } ~WikipediaPage() { body_reader.Close(); //body.Close(); } public string ReadBodyLine() { return body_reader.ReadLine(); } } } --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-js8RkJd1Mb70m6Kb0B4s-- From jasl8r@gmail.com Sun Apr 30 12:15:17 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE6D53B0967 for ; Sun, 30 Apr 2006 12:15:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11583-01 for ; Sun, 30 Apr 2006 12:15:15 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id BD8453B0971 for ; Sun, 30 Apr 2006 12:15:14 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i34so2171290wra for ; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I+QXPZNF/D7ut55I8HfQr8RcMhBGuF+9tWBeWFahIBv5NVjYhqoNy6HtSsMBFlHiocwgEKFRYkNNyIipS1vUrx62wM4dVMpLnAnGpGFeJX/Rl1bfMR4zdbnJ29Ia/pjv8evooi3Kj8zlOrtAcdcCKBbxbMn4nQKgZHkpFEsXJjE= Received: by 10.54.119.11 with SMTP id r11mr1825205wrc; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Message-ID: <3e5be67b0604300915o415bc9cepa5652f9107f26dd@mail.gmail.com> Date: Sun, 30 Apr 2006 12:15:13 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3133_27860369.1146413713519" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.037 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -2.037 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 16:15:17 -0000 ------=_Part_3133_27860369.1146413713519 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page. The following meta tag comes from the missing page: I imagine this is to prevent google from indexing tons of missing pages. I= t looks like you could fetch a page such as /Kansas_(band) first and check fo= r a robots meta tag. In the case of /Kansas_(band) it won't be there and you will have your requested page. However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you coul= d then load /Collective_Soul which is the real page for this band. I imagine as long as the band exists in wikipedia, one of these pages should exist. Jeremy On 4/30/06, Trick van Staveren wrote: > > I'd be totally game for that if I can (easily) detect disambiguation > pages somehow. I > haven't really tried...but I can't think of any other way than to look > right at the > source of the page, parse it all up, and hope I'm doing it right and > that wikipedia > never changes their skin format. Sounds like a lot of work to me :/ > > I'm using the google search right now which has proven really nice, and > I'm going to > research some of the external indexes to wikipedia...maybe there's one > that indexes > music groups only that we could search thru - that'd be superb :) > > Thanks for the suggestion! LMK if you have any idea how to detect > disambiguation/no-result pages (code wise, even if you don't know C#, > anything's > good!) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from jasl8r@gmail.com --------- > Date: Sat, 29 Apr 2006 17:45:28 -0400 > From: Jeremy Slater > Reply-To: banshee-list@gnome.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: banshee-list@gnome.org > > > > Not sure if this is a good suggestion or not, but what if you first try > to > > go to the band specific page with the attached "_(band)" in the url > which > > exists when disambiguation is needed. Then if that page "does not have > an > > article" or whatnot you can go to the page without the attached > "_(band)" in > > the url. I don't know if that would be more accurate than google or > not. > > > > Jeremy > > > > On 4/29/06, Trick van Staveren wrote: > >> > >> Excellent! This is what OSS is all about :) > >> > >> Patches are more than just welcome - they're encouraged. If you've go= t > >> a better way of > >> doing this, don't hesitate to contribute :) > >> > >> I haven't changed it much since 0.0.1, other than I've been > >> experimenting with using > >> google searches of wikipedia to better find the right pages - for > >> instance, when I > >> play a song by Kansas, I get info about the state. Searching google > >> for 'kansas band' > >> returns only results with both words in it, and I use the auto-redirec= t > >> to push it to > >> wikipedia. It seems to return better results (about 95% of the time I > >> get the correct > >> page, versus right now probably only 75%). Aside that, patch away my > >> friend! > >> > >> I will be putting this in the banshee SVN or my personal SVN (which I'= m > >> setting up this > >> weekend) and we can work together better :) > >> > >> I look forward to it! > >> > >> -Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from indecent@picle.org --------- > >> Date: Sat, 29 Apr 2006 15:58:58 +0200 > >> From: indecent > >> Reply-To: indecent@picle.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: trick@vanstaveren.us > >> > >> > >> > Hello, > >> > My Name is David Schneider, I#m a cs student from Germany. > >> > Some time ago i started writing a similar plugin for muine, bu= t > >> for > >> > differtent reasons i never finished it. I had used a x-path based > >> > aproach to parse the wikipedia pages. So if you don't mind i'd love > to > >> > contribute to the banshee-wikipedia plugin. > >> > > >> > David > >> > > >> > > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> >> Interesting. It looks almost like you have the gecko-sharp > libraries > >> >> but not the > >> >> underlying mozilla libraries (or your gecko-sharp library is > pointing > >> >> to the wrong > >> >> location). Maybe I need to do something in my package to point to > the > >> >> proper location > >> >> of a mozilla library. I don't know. > >> >> I looked on my system for the library, and I found that it's > >> >> libgtkembedmoz.so: > >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> >> ./mozilla/libgtkembedmoz.so > >> >> ./gecko-sdk/lib/libgtkembedmoz.so > >> >> ./mozilla-firefox/libgtkembedmoz.so > >> >> > >> >> From the looks of it, your installation of gecko-sharp just doesn'= t > >> >> have the library > >> >> reference set up (properly). Maybe I need to include > >> >> gecko-sharp.dll.config in the > >> >> plugin install. > >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ > cat > >> >> gecko-sharp.dll.config > >> >> > >> >> > >> >> > >> >> > >> >> "/> > >> >> > >> >> > >> >> > >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for > you > >> :) > >> >> > >> >> LMK if you make any progress! > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> AIM: goofyassmoose > >> >> Cell: 269.267.6008 > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> ----- Message from ghaefbgtk@gmail.com --------- > >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> >> From: Nil Gradisnik > >> >> Reply-To: banshee-list@gnome.org > >> >> Subject: Re: [Banshee-List] Wikipedia plugin > >> >> To: banshee-list@gnome.org > >> >> > >> >> > >> >> > Looking good. > >> >> > > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > >> found. > >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > >> luck > >> >> > > >> >> > Any suggestions ? > >> >> > > >> >> > On 4/28/06, Trick van Staveren wrote: > >> >> >> Howdy folks, > >> >> >> > >> >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> >> > >> >> >> I was reading the feature requests page, and I've noticed that a= s > >> >> >> far back as I can > >> >> >> remember, someone requested that banshee show artist information > >> >> >> from wikipedia. At > >> >> >> first I thought it was silly. Banshee is a music player, not a > web > >> >> >> browser! Well, > >> >> >> needless to say, I've found myself such an addict to wikipedia > for > >> >> >> artist information, > >> >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> >> > >> >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> >> It's simple right now (and I plan to keep it as simple as > possible). > >> >> >> It's a Gecko widget dropped right below the library view. (Gecko > =3D=3D > >> >> >> firefoz/mozilla > >> >> >> rendering engine). > >> >> >> It has a fixed size (for now). > >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is > this > >> >> >> an logical shortcut > >> >> >> mapping?). > >> >> >> It automatically queries wikipedia (english) for a page with the > >> >> >> same title as the > >> >> >> artist that you're playing. Changes with the track you're > playing. > >> >> >> I'm very tired. > >> >> >> This is accurate probably about 80% of the time...you'll usually > >> >> >> find a disambiguation > >> >> >> page wherever it's lacking. > >> >> >> I'm also telling it to use the mediawiki "simple" skin to make i= t > >> >> >> load faster. > >> >> >> In the future I'll figure out how to remove the nav bar on the > left > >> >> >> as it's pretty much > >> >> >> useless (if you want to browse, use a web browser). > >> >> >> Note the debug output in the console - it shows the actual URL > >> >> >> you're looking at. > >> >> >> > >> >> >> A few hours of hacking, and here you have it: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> >> > >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it > in > >> >> >> Banshee SVN at some > >> >> >> point so you can track progress (abock - do you mind me adding > >> this?) > >> >> >> > >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the > code > >> >> >> was based on the > >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> >> future to fit my > >> >> >> situation, but it provided a GREAT starting point for me as I > barely > >> >> >> had to think > >> >> >> twice about how to create the frame, enable/disable it with a > toggle > >> >> >> menu item, etc. > >> >> >> Thanks Fredrik! > >> >> >> > >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> >> > >> >> >> Patrick > >> >> >> > >> >> >> -- > >> >> >> Patrick "Trick" van Staveren > >> >> >> Western Michigan University > >> >> >> http://www.trick.vanstaveren.us/ > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> _______________________________________________ > >> >> >> Banshee-list mailing list > >> >> >> Banshee-list@gnome.org > >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> >> > >> >> > _______________________________________________ > >> >> > Banshee-list mailing list > >> >> > Banshee-list@gnome.org > >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > > >> >> > >> >> > >> >> ----- End message from ghaefbgtk@gmail.com ----- > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > > >> > > >> > >> > >> ----- End message from indecent@picle.org ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > ----- End message from jasl8r@gmail.com ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_3133_27860369.1146413713519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page.  The following meta tag comes from the missing page:
<meta name=3D"robots" content=3D"noinde= x,nofollow" />
I imagine this is to prevent google from indexing tons of missing pages.  It looks like you could fetch a page such as /Kansas_(band) first and check for a robots meta tag.  In the case of /Kansas_(band) it won't be there and you will have your requested page.  However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you could then load /Collective_Soul which is the real page for this band.  I imagine as long as the band exists in wikipedia, one of these pages should exist.

Jeremy

On 4/30/06, Trick van Staveren <tric= k@vanstaveren.us> wrote:
I'd be totally game for that if I can (easily) detect disambiguation
pag= es somehow.  I
haven't really tried...but I can't think of any= other way than to look
right at the
source of the page, parse it all= up, and hope I'm doing it right and
that wikipedia
never changes their skin format.  Sounds li= ke a lot of work to me :/

I'm using the google search right now whic= h has proven really nice, and
I'm going to
research some of the exter= nal indexes to wikipedia...maybe there's one
that indexes
music groups only that we could search thru - that'd be= superb :)

Thanks for the suggestion!  LMK if you have any= idea how to detect
disambiguation/no-result pages (code wise, even if y= ou don't know C#,
anything's
good!)

Patrick

--
Patrick "Trick&qu= ot; van Staveren
Western Michigan University
AIM: goofyassmoose
Ce= ll: 269.267.6008
http://www= .trick.vanstaveren.us/


----- Message from jasl= 8r@gmail.com ---------
    Date: Sat, 29 Apr 200= 6 17:45:28 -0400
    From: Jeremy Slater <jasl8r@gmail.com >
Reply-To: banshee-lis= t@gnome.org
Subject: Re: [Banshee-List] Wikipedia plugin
 &n= bsp;    To: b= anshee-list@gnome.org


> Not sure if this is a good suggestion or not, but what if you firs= t try to
> go to the band specific page with the attached "_(ban= d)" in the url which
> exists when disambiguation is needed.&nbs= p; Then if that page "does not have an
> article" or whatnot you can go to the page without the attach= ed "_(band)" in
> the url.  I don't know if that = would be more accurate than google or not.
>
> Jeremy
>> On 4/29/06, Trick van Staveren < trick@vanstaveren.us> wrote:=
>>
>> Excellent!  This is what OSS is all abou= t :)
>>
>> Patches are more than just welcome - they're e= ncouraged.  If you've got
>> a better way of
>> doing this, don't hesitate to cont= ribute :)
>>
>> I haven't changed it much since 0.0.1, ot= her than I've been
>> experimenting with using
>> google = searches of wikipedia to better find the right pages - for
>> instance, when I
>> play a song by Kansas, I get info= about the state.  Searching google
>> for 'kansas band'=
>> returns only results with both words in it, and I use the auto= -redirect
>> to push it to
>> wikipedia.  It seems to re= turn better results (about 95% of the time I
>> get the correct>> page, versus right now probably only 75%).  Aside that,= patch away my
>> friend!
>>
>> I will be putting this in the bans= hee SVN or my personal SVN (which I'm
>> setting up this
>&g= t; weekend) and we can work together better :)
>>
>> I lo= ok forward to it!
>>
>> -Patrick
>>
>> --
>> Pa= trick "Trick" van Staveren
>> Western Michigan Universit= y
>> AIM: goofyassmoose
>> Cell: 269.267.6008
>>= =20 http://www.trick.vanstaveren.u= s/
>>
>>
>> ----- Message from indecent@picle.org ---------
>> =     Date: Sat, 29 Apr 2006 15:58:58 +0200
>>     From: indecent <indecent@picle.org>
>> Reply-To: indecent@picle.org
>> Subject: = Re: [Banshee-List] Wikipedia plugin
>>       To: trick@vanstaveren.us
>>
>>
>&= gt; > Hello,
>> > My Name is David Schneider, I#m a cs stude= nt from Germany.
>> >       Some = time ago i started writing a similar plugin for muine, but
>> for
>> > differtent reasons i never finished it. I= had used a x-path based
>> > aproach to parse the wikipedia pa= ges. So if you don't mind i'd love to
>> > contribute to the ba= nshee-wikipedia plugin.
>> >
>> > David
>> >
>> ><= br>>> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van = Staveren:
>> >> Interesting.  It looks almost like= you have the gecko-sharp libraries
>> >> but not the
>> >> underlying mozilla l= ibraries (or your gecko-sharp library is pointing
>> >> to t= he wrong
>> >> location).  Maybe I need to do some= thing in my package to point to the
>> >> proper location
>> >> of a mozilla lib= rary.  I don't know.
>> >> I looked on my system f= or the library, and I found that it's
>> >> libgtkembedmoz.s= o:
>> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so
>>= ; >> ./mozilla/libgtkembedmoz.so
>> >> ./gecko-sdk/lib= /libgtkembedmoz.so
>> >> ./mozilla-firefox/libgtkembedmoz.so
>> >>
>> >>  From the looks of it,= your installation of gecko-sharp just doesn't
>> >> have th= e library
>> >> reference set up (properly).  Mayb= e I need to include
>> >> gecko-sharp.dll.config in the
>> >> pl= ugin install.
>> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2= .0.0.0__ccf7d78a55e9f021 $ cat
>> >> gecko-sharp.dll.config
>> >> <configuration>
>> >>  = ; <dllmap dll=3D"libglib-2.0-0.dll" target=3D"libglib-2.0= .so.0"/>
>> >>   <dllmap dll=3D"li= bgobject-2.0-0.dll" target=3D" libgobject-2.0.so.0"/>
>> >>   <dllmap = dll=3D"libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>= ;
>> >>   <dllmap dll=3D"libgtk-win32-2.0-= 0.dll" target=3D" libgtk-x11-2.0.so.0"/>
>> >>   <dllmap = dll=3D"gtkembedmoz.dll" target=3D"libgtkembedmoz.so"/&g= t;
>> >> </configuration>
>> >>
>= > >> If I were you, I'd drop a copy of your=20 gecko-sharp.dll.config into
>> >> ~/.gnome2/banshee/plugins = and see what happens!  Might fix it for you
>> :)
>= ;> >>
>> >> LMK if you make any progress!
>&g= t; >>
>> >> Patrick
>> >>
>> >> --<= br>>> >> Patrick "Trick" van Staveren
>> >= ;> Western Michigan University
>> >> AIM: goofyassmoose
>> >> Cell: 269.267.6008
>> >> http://www.trick.vanstaveren.us/
>= ;> >>
>> >>
>> >> ----- Message from= =20 ghaefbgtk@gmail.com --------->> >>     Date: Fri, 28 Apr 2006 20:42:11 = +0200
>> >>     From: Nil Gradisnik <= ghaefbgtk@gmail.com >
>> >> Reply-To: banshee-list@gnome.org
>> >> Subject: Re: [Banshe= e-List] Wikipedia plugin
>> >>     =   To: banshee-list@gnome.org
>> >>
>> >>
>= ;> >> > Looking good.
>> >> >
>> >= ;> > I'm getting an error when using this plugin on Banshee 0.10.9
>> >> > The exception is thrown by Gecko.WebControl ->= ; gtkembedmoz.so not
>> found.
>> >> > I linked = the mozillas libgtkembedmoz.so to /usr/lib/ and still no
>> luck
>> >> >
>> >> > Any suggestions ?
&= gt;> >> >
>> >> > On 4/28/06, Trick van Stave= ren <trick@vanstaveren.us>= ; wrote:
>> >> >> Howdy folks,
>> >> >>>> >> >> Everyone likes screenshots, so I'll start with= the screenie:
>> >> >>
>> >>
>&g= t;=20 http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugi= n-0.0.1.png
>> >> >>
>> >> >>= I was reading the feature requests page, and I've noticed that as
>> >> >> far back as I can
>> >> >&= gt; remember, someone requested that banshee show artist information
>= ;> >> >> from wikipedia.  At
>> >> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> >> browser!  Well,
>> >&g= t; >> needless to say, I've found myself such an addict to wikipedia = for
>> >> >> artist information,
>> >> = >> that earlier today I thought it'd be a neat idea to implement.
>> >> >>
>> >> >> Thus, the bans= hee-wikipedia-plugin was born.
>> >> >> It's simple ri= ght now (and I plan to keep it as simple as possible).
>> >>= >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D
>> >> >> firefoz/mozilla
>> >> >>= ; rendering engine).
>> >> >> It has a fixed size (for= now).
>> >> >> It can be hidden/shown from the View m= enu (CTRL+I as well - is this
>> >> >> an logical shortcut
>> >> >= ;> mapping?).
>> >> >> It automatically queries wik= ipedia (english) for a page with the
>> >> >> same tit= le as the
>> >> >> artist that you're playing.  Chang= es with the track you're playing.
>> >> >> I'm very ti= red.
>> >> >> This is accurate probably about 80% of t= he time...you'll usually
>> >> >> find a disambiguation
>> >> &= gt;> page wherever it's lacking.
>> >> >> I'm also = telling it to use the mediawiki "simple" skin to make it
>&= gt; >> >> load faster.
>> >> >> In the future I'll figure out how to remove = the nav bar on the left
>> >> >> as it's pretty much>> >> >> useless (if you want to browse, use a web brow= ser).
>> >> >> Note the debug output in the console - it sh= ows the actual URL
>> >> >> you're looking at.
>= > >> >>
>> >> >> A few hours of hacking= , and here you have it:
>> >> >>
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1= .tar.bz2
>> >> >>
>> >> >> Feedback i= s welcome, appreciated, and encouraged!  I'll drop it in
>&= gt; >> >> Banshee SVN at some
>> >> >> poi= nt so you can track progress (abock - do you mind me adding
>> this?)
>> >> >>
>> >> >= > MAJOR credit goes out to Fredrik Hedberg - more than half the code
= >> >> >> was based on the
>> >> >> b= anshee-recommendation-plugin.  I'll rewrite some of it in the
>> >> >> future to fit my
>> >> >&g= t; situation, but it provided a GREAT starting point for me as I barely
= >> >> >> had to think
>> >> >> twice= about how to create the frame, enable/disable it with a toggle
>> >> >> menu item, etc.
>> >> >>= ; Thanks Fredrik!
>> >> >>
>> >> >&g= t; Enjoy!  Reply to the list or snag me on IRC (nick: trick)
&= gt;> >> >>
>> >> >> Patrick
>> >> >>
>= ;> >> >> --
>> >> >> Patrick "Tric= k" van Staveren
>> >> >> Western Michigan Univers= ity
>> >> >> http://www.trick.vanstaveren.us/
>> >> >>
>= > >> >>
>> >> >>
>> >> &= gt;>
>> >> >> ____________________________________________= ___
>> >> >> Banshee-list mailing list
>> >= ;> >> Banshee-list@gnome= .org
>> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list=
>> >> >>
>> >> > ______________= _________________________________
>> >> > Banshee-list mailing list
>> >> &= gt; Banshee-list@gnome.org>> >> > http://mail.gnome.org/mailman/listinfo/banshee-list
>> >>= ; >
>> >>
>> >>
>> >> -----= End message from ghaefbgtk@gmail.co= m -----
>> >>
>> >>
>> >>>> >> _______________________________________________
>= > >> Banshee-list mailing list
>> >> Banshee-list@gnome.org
>> >> http://mail.gnome.org/mailman/listinfo= /banshee-list
>> >>
>> >
>> > >>
>>
>> ----- End message from indecent@picle.org -----
>>
>>
= >>
>> _______________________________________________
>= ;> Banshee-list mailing list
>> Banshee-list@gnome.o= rg
>> http://mail.gnome.org/mailman/listinfo/banshee-list
>>
>


----- End message from jasl8r@gmail.com -----



_____________________________= __________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_3133_27860369.1146413713519-- From pcolijn@gmail.com Sun Apr 30 18:13:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 322D93B0A96 for ; Sun, 30 Apr 2006 18:13:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27714-01 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 509683B0AA1 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i2so891317wra for ; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Iv4YAyFeUcfCspas7ktPQXNpJXe++MVAqFF08CXmGdrmw8LTCdrLB4n+/H26GSpCJDHqnBWHPYPCQPTV+SG0k9KSNl6gI9mXoJ0n2fXJ6s4zYT8/L+D2G3+UPilXz06EAWvz4ibdmG2QkG+4jrV+yJpWTSk2HtmN2qd7xBVJikQ= Received: by 10.54.110.13 with SMTP id i13mr180047wrc; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Message-ID: <7c35b00e0604301513w424a2d63s7d7f57a4531a61cb@mail.gmail.com> Date: Sun, 30 Apr 2006 18:13:03 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin, v0.0.2 In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.59 tagged_above=-999 required=2 tests=[AWL=-0.772, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 22:13:06 -0000 T24gNC8zMC8wNiwgVHJpY2sgdmFuIFN0YXZlcmVuIDx0cmlja0B2YW5zdGF2ZXJlbi51cz4gd3Jv dGU6Cj4gICAgICAgICAqIEdvb2dsZSBzZWFyY2ggbW9kZSAtIHVzZXMgdGhlICJpJ20gZmVlbGlu ZyBsdWNreSIgZmVhdHVyZSBvZiBHb29nbGUgdG8gZGlyZWN0Cj4gdG8gdGhlIGNsb3NlcyBtYXRj aCB1c2luZyBHb29nbGUsIGFkZGluZyB0aGUga2V5d29yZCAiYmFuZCIuICBJIGtub3csIHRoaXMg aXNuJ3QgdGhlCj4gYmVzdCB3YXksIGJ1dCBpdCBpcyBtdWNoIG11Y2ggbW9yZSBhY2N1cmF0ZSB0 aGFuIGp1c3Qgc2VhcmNoaW5nIGZvciB0aGUgYXJ0aXN0Cj4ga2V5d29yZC4KCmhhdmUgeW91IHRo b3VnaHQgYWJvdXQgdXNpbmcgR29vZ2xlIE11c2ljIFNlYXJjaCBmb3IgdGhpcz8gZWcuCmh0dHA6 Ly93d3cuZ29vZ2xlLmNvbS9tdXNpY3NlYXJjaD9xPXUyCgpUaGF0IG1pZ2h0IHdvcmsgYSBiaXQg YmV0dGVyIHRoYW4gZG9pbmcgdGhlICJJJ20gZmVlbGluZyBsdWNreSIgdGhpbmcuCgpIYXZlIGZ1 biwKClBldGVyCg== From vamsee.krishna@gmail.com Sat Apr 1 18:41:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0ACF63B008B for ; Sat, 1 Apr 2006 18:41:33 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03585-04 for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 579443B007D for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3129274nzf for ; Sat, 01 Apr 2006 15:41:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fmHZaKDxRWKbqRg8MAssoa1KNvuFSXGH11TSmtyDBr+yTNWHDAdQjVTITQRuo9zdYD0ETotRkngvo7mSQuECj1OszqMW8HgOxursXlJNjv4AUdiFPVKl0vbvfavE1ZAi2sfZ1PNSKQBFGpKj0t/4voBKFdh9rl2pjzSBuMaPR4s= Received: by 10.35.99.5 with SMTP id b5mr1439412pym; Sat, 01 Apr 2006 15:41:30 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 15:41:30 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:11:30 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Smart Playlist plugin In-Reply-To: <1143655553.7081.12.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2612_30251453.1143934890438" References: <1143655553.7081.12.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.235 tagged_above=-999 required=2 tests=[AWL=0.990, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.235 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 23:41:33 -0000 ------=_Part_2612_30251453.1143934890438 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt wrote: > > Lukas' e-mail reminded me I should let you all know that I'm working on > a smart playlist plugin. I would say it's about 60% done - you can make > a new playlist and define the query it uses and it will run it, but it > doesn't handle the track database changing yet (scanning new/changed > tracks). If anybody wants to try it out or help me develop it, let me > know. Sounds interesting. I've recently shifted from Rhythmbox to Banshee and thi= s is one feature I'd love to see in Banshee. Please let me know the location where I can get your plugin. Would love to test it out. GVK ------=_Part_2612_30251453.1143934890438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt <gabriel.burt@gmail.com> wrote:
Lukas' e-mail reminded me I should let you all know that I'm working on
= a smart playlist plugin.  I would say it's about 60% done - you c= an make
a new playlist and define the query it uses and it will run it, = but it
doesn't handle the track database changing yet (scanning new/changedtracks).  If anybody wants to try it out or help me develop it, = let me
know.

Sounds interesting. I've recently shif= ted from Rhythmbox to Banshee and this is one feature I'd love to see in Ba= nshee.  Please let me know the location where I can get your plugin. W= ould love to test it out.

GVK

------=_Part_2612_30251453.1143934890438-- From vamsee.krishna@gmail.com Sat Apr 1 19:16:36 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6B0D3B00EA for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05543-01 for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id B77033B007D for ; Sat, 1 Apr 2006 19:16:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3152433nzf for ; Sat, 01 Apr 2006 16:16:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LtG2XeAF/It9i7ZRN5WrRp4XVhWrTjOSdpC3/GJDvGvD8RVGXRPXPYUaIjU2Bt4mz0YltT+LSGjHzmm5hcN2A4jPU2BseHBgPMfvsWF+KiLX6qybt0WU7cFjbkI9d2mP/8Rw64619oW0YElfHRXZ5v0PzKisV5bDmDmoi6Lvcfw= Received: by 10.35.36.13 with SMTP id o13mr477120pyj; Sat, 01 Apr 2006 16:16:35 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 16:16:35 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:46:35 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2868_14676714.1143936995115" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.985 tagged_above=-999 required=2 tests=[AWL=0.186, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_SV=0.077] X-Spam-Score: -0.985 X-Spam-Level: Subject: [Banshee-List] Smart-playlists-plugin: Select songs by rating X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 00:16:36 -0000 ------=_Part_2868_14676714.1143936995115 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I've checked out the smart-playlists-plugin from svn and after loading it, I'm trying to create a _smart playlist of songs with rating greater than 3_= . Here's the message printed to the terminal: Name =3D Smart Playlist, Cond =3D Rating < '3' , OrderAndLimit =3D Adding smart playlist Smart Playlist, id 6 Refreshing smart playlist Smart Playlist with condition Rating < '3' I don't think this is the correct behaviour. This can be changed to behave correctly by interchanging the '>' and '<' symbols on lines 162 and 164 of QueryBuilderModel.cs. Sorry for the crude report. Can someone patch it up? GVK ------=_Part_2868_14676714.1143936995115 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,
I've checked out the smart-playlists-plugin from svn and after lo= ading it, I'm trying to create a _smart playlist of songs with rating great= er than 3_. Here's the message printed to the terminal:

Name =3D Sma= rt Playlist, Cond =3D  Rating < '3' , OrderAndLimit =3D
Adding smart playlist Smart Playlist, id 6
Refreshing smart playlist= Smart Playlist with condition  Rating < '3'

I don't think t= his is the correct behaviour. This can be changed to behave correctly by in= terchanging the '>' and '<' symbols on lines 162 and 164 of=20 QueryBuilderModel.cs.

Sorry for the crude report. Can someone patch = it up?

GVK


------=_Part_2868_14676714.1143936995115-- From abockover@novell.com Sun Apr 2 18:15:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 035D13B15E9 for ; Sun, 2 Apr 2006 18:15:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13902-05 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by menubar.gnome.org (Postfix) with ESMTP id 39D4E3B14D1 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from [192.168.0.105] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-02-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k32MFha9021588 for ; Sun, 2 Apr 2006 18:15:43 -0400 (EDT) From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Sun, 02 Apr 2006 18:13:02 -0400 Message-Id: <1144015982.30733.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=-0.116, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_SV=0.077] X-Spam-Score: -2.438 X-Spam-Level: Subject: [Banshee-List] Banshee Subversion X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 22:15:50 -0000 If you have an SSH account on svn.banshee-project.org, you may get a "host name changed" message from SSH. I rebuild my linode on which I host the Banshee SVN repo. No need to be alarmed, just remove the old host entry from your ~/.ssh/known_hosts. Also, please verify that you can actually connect/check out over svn +ssh. Everything should be okay though. Thanks, --Aaron From bertrand.lorentz@free.fr Mon Apr 3 12:12:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 563C23B1882 for ; Mon, 3 Apr 2006 12:12:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08632-06 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id 6495E3B1B96 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp1-g19.free.fr (Postfix) with ESMTP id 632149AE05 for ; Mon, 3 Apr 2006 18:12:21 +0200 (CEST) From: Bertrand Lorentz To: banshee-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BKPtsZ2EQVIvrBBRMYpg" Date: Mon, 03 Apr 2006 18:12:18 +0200 Message-Id: <1144080739.22083.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Nomad Jukebox and Banshee X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 16:12:24 -0000 --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everybody, I'm a happy owner of a Creative Nomad Jukebox 1 (Product ID 0x0222), and I've been having some trouble to get it working with banshee. When I connect my NJB to my PC, it shows up in banshee, but no tracks are shown. The following exception is thrown : System.ApplicationException: Frame data is not uint16 in <0x00051> Njb.SongFrame:get_DataShort () in <0x00025> Njb.Song:GetFrameShort (System.String label) in <0x00010> Njb.Song:get_IsProtected () in <0x0028a> Banshee.Dap.Njb.NjbDapTrackInfo:LoadFromNjbSong (Banshee.Dap.DapDevice dap) in <0x0001f> Banshee.Dap.Njb.NjbDapTrackInfo:.ctor (Njb.Song song, Banshee.Dap.DapDevice dap) in <0x0008c> Banshee.Dap.Njb.NjbDap:ReloadDatabase () in <0x00598> Banshee.Dap.Njb.NjbDap:Initialize (Hal.Device halDevice) in <0x0004c> Banshee.Dap.DapCore:AddDevice (Hal.Device device, System.Type type) After some investigations, here's what I found : In njb-sharp, the frames containing the "Year" and the "PlayOnly" data are supposed to be UInt16 frames. After playing around with the njb-test program, I found out that on my NJB these frames are String frames. I don't know if that's the case with all NJB 1, or if my library is messed up. I'm not quite sure how to fix this, without being too permissive on the frame types or breaking anything... Thanks for any input or suggestion... --=20 Bertrand Lorentz --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMUlib1pl4loRymARAkBqAKDK3cXxoN9xQy7qKIbEUtaKWGOmzACfUxTX gFeGYW88W0DKCyCzng5Axxg= =WFvF -----END PGP SIGNATURE----- --=-BKPtsZ2EQVIvrBBRMYpg-- From doktorn@sub.nu Mon Apr 3 14:54:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDA3C3B1CFB for ; Mon, 3 Apr 2006 14:54:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19828-01 for ; Mon, 3 Apr 2006 14:54:35 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id F35BC3B1CBB for ; Mon, 3 Apr 2006 14:54:34 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k33IsYVA000488 for ; Mon, 3 Apr 2006 20:54:35 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id B1CE0AB13B for ; Mon, 3 Apr 2006 20:54:32 +0200 (CEST) Message-ID: <44316F67.6080408@sub.nu> Date: Mon, 03 Apr 2006 20:54:31 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: [Banshee-List] How to update/re-scan library X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 18:54:37 -0000 Hello, I've added some music to my library, but it doesn't show up in the list. Is there some way to force a re-scan of the library or how am I suppose to handle this? Best regards Rickard Borgmäster From sjoeboo@sjoeboo.com Mon Apr 3 15:41:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 53A613B1CBC for ; Mon, 3 Apr 2006 15:41:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22778-05 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 356803B1CB5 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 4E43110B2B for ; Mon, 3 Apr 2006 15:41:13 -0400 (EDT) MIME-Version: 1.0 Date: Mon, 3 Apr 2006 15:41:13 -0400 From: Matthew Nicholson To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library Organization: sjoeboo.com In-Reply-To: <44316F67.6080408@sub.nu> References: <44316F67.6080408@sub.nu> Message-ID: <8b843aef824487e1799668c668f45a51@localhost> X-Sender: sjoeboo@sjoeboo.com User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.411 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046] X-Spam-Score: -0.411 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:41:48 -0000 i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? > > Best regards > Rickard Borgmäster > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list -- Matthew Nicholson sjoeboo@sjoeboo.com sjoeboo.com From ken@vandine.org Mon Apr 3 15:46:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 241C53B1CE5 for ; Mon, 3 Apr 2006 15:46:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23196-06 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id 79DE13B1CF9 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from foobar.rdu.rpath.com (rdu-nat.rpath.com [24.172.59.42]) by ms-smtp-03-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k33JkWgA006659; Mon, 3 Apr 2006 15:46:32 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Ken VanDine To: banshee-list@gnome.org, sjoeboo@sjoeboo.com In-Reply-To: <8b843aef824487e1799668c668f45a51@localhost> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Apr 2006 15:46:37 -0400 Message-Id: <1144093597.1033.9.camel@foobar> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, TW_TM=0.077] X-Spam-Score: -2.561 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:46:38 -0000 Using 0.10.9, inotify has been working fine adding music to my library. I don't use rhytmbox at all, so can't compare. --Ken On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > > Hello, > > > > I've added some music to my library, but it doesn't show up in the list. > > Is there some way to force a re-scan of the library or how am I > > suppose to handle this? > > > > Best regards > > Rickard Borgmäster > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list From zachtib@gmail.com Mon Apr 3 16:02:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7EBC3B1D37 for ; Mon, 3 Apr 2006 16:02:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24218-10 for ; Mon, 3 Apr 2006 16:02:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id F3DDB3B2634 for ; Mon, 3 Apr 2006 16:02:01 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so112378nzf for ; Mon, 03 Apr 2006 13:02:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XlyV3q1Gv7rLNcbpv5K2GJIsPLf3XrffI6Qh8Gd2waMYQpx09AbsIzD7Lmgk7jr//3HzKzG9t6SPSgxvjVblnXOkFHo2sicEJQkxD1ihH8s0SBNgtrkaPi3HAu6sp7BCYJDXsdm4jmk9UW9b+Wc67t9c+uzxCKH8YELvBU9l4XU= Received: by 10.35.121.2 with SMTP id y2mr1372988pym; Mon, 03 Apr 2006 13:01:59 -0700 (PDT) Received: by 10.35.34.12 with HTTP; Mon, 3 Apr 2006 13:01:59 -0700 (PDT) Message-ID: <5f2bbff20604031301y4493ebfamf43cfd925dcc5974@mail.gmail.com> Date: Mon, 3 Apr 2006 16:01:59 -0400 From: "Zach Tibbitts" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18649_27581749.1144094519786" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.71 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.71 X-Spam-Level: Subject: [Banshee-List] New build problems X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 20:02:07 -0000 ------=_Part_18649_27581749.1144094519786 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this error: ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert from `Banshee.Base.ArtistInfo' to `string' Compilation failed: 2 error(s), 0 warnings make[3]: *** [Banshee.Base.dll] Error 1 make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/zach/banshee/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zach/banshee' make: *** [all] Error 2 this is using oscars normalized patch ------=_Part_18649_27581749.1144094519786 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this er= ror:

./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot c= onvert from `Banshee.Base.ArtistInfo' to `string'
Compilation failed: 2 = error(s), 0 warnings
make[3]: *** [Banshee.Base.dll] Error 1
make[3]: Leaving directory `= /home/zach/banshee/src/Banshee.Base'
make[2]: *** [all-recursive] Error = 1
make[2]: Leaving directory `/home/zach/banshee/src'
make[1]: *** [a= ll-recursive] Error 1
make[1]: Leaving directory `/home/zach/banshee'
make: *** [all] Erro= r 2

this is using oscars normalized patch
------=_Part_18649_27581749.1144094519786-- From oivind.hoel@gmail.com Mon Apr 3 22:35:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36E8D3B06A1 for ; Mon, 3 Apr 2006 22:35:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14269-04 for ; Mon, 3 Apr 2006 22:35:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 03F323B06EF for ; Mon, 3 Apr 2006 22:35:37 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 14so1860799nzn for ; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tI8UHDcQIlWrgZkTjH5De8gDrjF0wJLqJf35+x96upcbKxaBtDskcgNLazcpefe4VIC/NaaipuiDmmkRNZRaFte1fyozdUGevKvUIeUP6qLHJNNMjPsvpDiSFsqBAuAmPipdUrbwQ+zST1Ky0DCk15v7yy9yV6Ovo16EUlJ63Yc= Received: by 10.64.143.11 with SMTP id q11mr40421qbd; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) Received: by 10.65.183.2 with HTTP; Mon, 3 Apr 2006 19:35:37 -0700 (PDT) Message-ID: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Date: Tue, 4 Apr 2006 04:35:37 +0200 From: "=?ISO-8859-1?Q?=D8ivind_Hoel?=" To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library In-Reply-To: <44316F67.6080408@sub.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44316F67.6080408@sub.nu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 02:35:41 -0000 On 4/3/06, Rickard Borgm=E4ster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? Have you enabled the filesystem watcher plugin? From oforero@novell.com Tue Apr 4 03:24:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941423B2784 for ; Tue, 4 Apr 2006 03:24:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28026-07 for ; Tue, 4 Apr 2006 03:24:23 -0400 (EDT) Received: from emea1-mh.id2.novell.com (public.id2-vpn.continvity.gns.novell.com [195.33.99.129]) by menubar.gnome.org (Postfix) with ESMTP id 91CA93B0A7F for ; Tue, 4 Apr 2006 03:24:22 -0400 (EDT) Received: from EMEA1-MTA by emea1-mh.id2.novell.com with Novell_GroupWise; Tue, 04 Apr 2006 08:24:17 +0200 Message-Id: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Beta Date: Tue, 04 Apr 2006 09:23:58 +0200 From: "Oscar Forero" To: Subject: Re: [Banshee-List] New build problems References: <44318D640200007400007602@emea1-mh.id2.novell.com> <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> In-Reply-To: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 07:24:25 -0000 Hi, I insist the patch is not apply it properly, that is one of the changes that has to be make, go to that line and change the reference to ti.Artist to ti.Artist.Name; also please check the PlaylistModel.cs because i think the variable call sort is set to be a TreeModelSort and that is the root of all evil. regards, Oscar. On Mon, 2006-04-03 at 20:02 +0000, zachtib@gmail.com wrote: > This is the first time ive tried to build 10.9 on Dapper, and i get > this error: > > ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert > from `Banshee.Base.ArtistInfo' to `string' > Compilation failed: 2 error(s), 0 warnings > make[3]: *** [Banshee.Base.dll] Error 1 > make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/zach/banshee/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/zach/banshee' > make: *** [all] Error 2 > > this is using oscars normalized patch From sjoeboo@sjoeboo.com Tue Apr 4 13:28:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 454F03B2941 for ; Tue, 4 Apr 2006 13:28:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02273-10 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 5E53A3B2062 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from vader (vader.sjoeboo.com [192.168.1.104]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 9799410B2A; Tue, 4 Apr 2006 13:28:09 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Matthew Nicholson To: Ken VanDine In-Reply-To: <1144093597.1033.9.camel@foobar> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> <1144093597.1033.9.camel@foobar> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BoiBoCnNSIxMDyMHygYH" Organization: sjoeboo.com Date: Tue, 04 Apr 2006 13:28:42 -0400 Message-Id: <1144171723.14660.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.373 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046, TW_TM=0.077] X-Spam-Score: -0.373 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 17:28:45 -0000 --=-BoiBoCnNSIxMDyMHygYH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable acctually, its working fine. i must have been mistaken, for i just moved some files, and both application, running at the same time, picked them up. excelent. On Mon, 2006-04-03 at 15:46 -0400, Ken VanDine wrote: > Using 0.10.9, inotify has been working fine adding music to my library. > I don't use rhytmbox at all, so can't compare. =20 >=20 > --Ken >=20 > On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > > i have had issues like this as well. inotify IS working, because new mu= sic will show up in rhythmbox. banshee does not pick up the changes. shutdo= wn/re-open banshee, and it still doesn't see the new files. this happens wi= th rythmbox open, and closed, so its not conflicts on both of them watching= the same place. so far, with banshee, i still have to add new things manua= lly..... > >=20 > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgm=C3=A4ster wrote: > > > Hello, > > >=20 > > > I've added some music to my library, but it doesn't show up in the li= st. > > > Is there some way to force a re-scan of the library or how am I > > > suppose to handle this? > > >=20 > > > Best regards > > > Rickard Borgm=C3=A4ster > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list --=-BoiBoCnNSIxMDyMHygYH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMqzKs9/XCuaG1WkRAjfiAKCAAjL7PHUKiGfr4w9TVk1XXeAOKACeMfp5 v2m9AByCd+7dN2EeUptCWkE= =atus -----END PGP SIGNATURE----- --=-BoiBoCnNSIxMDyMHygYH-- From doktorn@sub.nu Tue Apr 4 21:31:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58B9D3B083D for ; Tue, 4 Apr 2006 21:31:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26571-01 for ; Tue, 4 Apr 2006 21:31:21 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id 7628E3B07FA for ; Tue, 4 Apr 2006 21:31:20 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k351VIoU011859 for ; Wed, 5 Apr 2006 03:31:19 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id E9443AE297 for ; Wed, 5 Apr 2006 03:31:17 +0200 (CEST) Message-ID: <44331DE5.8090701@sub.nu> Date: Wed, 05 Apr 2006 03:31:17 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library References: <44316F67.6080408@sub.nu> <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> In-Reply-To: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 01:31:41 -0000 Øivind Hoel wrote: > On 4/3/06, Rickard Borgmäster wrote: >> Hello, >> >> I've added some music to my library, but it doesn't show up in the list. >> Is there some way to force a re-scan of the library or how am I >> suppose to handle this? > > Have you enabled the filesystem watcher plugin? Yes, but it hasn't detected the new music. Best regards Rickard Borgmäster From ncjeffgus@zimage.com Wed Apr 5 04:19:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADBB63B2AF9 for ; Wed, 5 Apr 2006 04:19:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13405-07 for ; Wed, 5 Apr 2006 04:19:27 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id DF0E53B2AEC for ; Wed, 5 Apr 2006 04:19:26 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id 866ED1C2AC4 for ; Wed, 5 Apr 2006 01:19:25 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00568-03 for ; Wed, 5 Apr 2006 01:19:08 -0700 (PDT) Received: from polly.zimage.com (polly.zimage.com [216.86.199.26]) by alpha.zimage.com (Postfix) with ESMTP id CEF061C2A7D for ; Wed, 5 Apr 2006 01:19:02 -0700 (PDT) From: Jeff Gustafson To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 05 Apr 2006 01:18:48 -0700 Message-Id: <1144225128.7088.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: [Banshee-List] banshee and iTunes X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 08:19:29 -0000 Is it just me or did the new plug-in stop working? Sharpmusique isn't working either. 404 not found error. ...Jeff From lukas@pmad.net Wed Apr 5 06:31:53 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CABAB3B0CB0 for ; Wed, 5 Apr 2006 06:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20860-01 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 321813B0C73 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: (qmail 27414 invoked by uid 503); 5 Apr 2006 10:28:54 -0000 Received: (QMFILT: 1.0); 05 Apr 2006 10:28:54 -0000 Received: from b7.ovh.net (HELO mail1.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 5 Apr 2006 10:28:54 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:28:27 -0000 Received: from mail145.ha.ovh.net (HELO mail1.ha.ovh.net) (10.0.50.145) by mail145.ha.ovh.net with SMTP; 5 Apr 2006 10:28:23 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Received: from adsl-d200.87-197-131.telecom.sk (HELO ?192.168.0.23?) (87.197.131.200) by ns0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Subject: Re: [Banshee-List] banshee and iTunes From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:25:33 +0200 Message-Id: <1144232733.5059.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.131.200 (adsl-d200.87-197-131.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.741 tagged_above=-999 required=2 tests=[AWL=-0.700, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.741 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:31:54 -0000 Hi, On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. The plugin hasn't been touched in ages, and yes, IMS have changed something yet again. Lukas From fredrik.hedberg@avafan.com Wed Apr 5 06:55:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7CFEE3B2A7E for ; Wed, 5 Apr 2006 06:55:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21953-07 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by menubar.gnome.org (Postfix) with ESMTP id 237243B2A56 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from [172.14.11.116] (217.210.3.62) by pne-smtpout1-sn2.hy.skanova.net (7.2.070) id 44311E3A000923BE for banshee-list@gnome.org; Wed, 5 Apr 2006 12:55:10 +0200 Subject: Re: [Banshee-List] banshee and iTunes From: Fredrik Hedberg To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:55:09 +0200 Message-Id: <1144234509.5656.7.camel@lovemachine.hedbergs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:55:15 -0000 Hi, Purchasing music from Banshee works great here. There is however, a small issue. If you ever used iTunes 6 to purchase music with you account, your account gets flagged. This will essentially block you from using the store with either the Banshee plugin or with Sharpmusique (and any older version of iTunes i presume). I'm sure either Aaron or Jon can elaborate more on this issue. Fredrik On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. > > ...Jeff > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From mattisking@gmail.com Wed Apr 5 10:55:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D153B2C5C for ; Wed, 5 Apr 2006 10:55:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05591-10 for ; Wed, 5 Apr 2006 10:55:00 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 35CED3B0D50 for ; Wed, 5 Apr 2006 10:54:59 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n29so306884nzf for ; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qMILgVPiuTEcDqYKv8eABZfFlZ4W6w3grKMH/Tp9eENz/LGhceFIEj/30bEHCXmE1SQtmtJgIwLtFxG+A8pDs+ZEDWcxEEYAU7WVg0QWC9Z1ZPvH5DMCAvdzZLFHqcKDq44clq/t/bb3751NiwjBroRmN/xW/KK+ngYKmk5egcU= Received: by 10.35.37.18 with SMTP id p18mr789032pyj; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Wed, 5 Apr 2006 07:54:58 -0700 (PDT) Message-ID: <39efb3860604050754o7c914de6jb7a630061243bdfb@mail.gmail.com> Date: Wed, 5 Apr 2006 10:54:58 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] banshee and iTunes In-Reply-To: <1144234509.5656.7.camel@lovemachine.hedbergs.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30503_17740251.1144248898549" References: <1144225128.7088.2.camel@localhost.localdomain> <1144234509.5656.7.camel@lovemachine.hedbergs.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.014 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.014 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 14:55:13 -0000 ------=_Part_30503_17740251.1144248898549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never use it against iTunes 6. I've finally admitted to myself that the Fairkey thing resulting in applications like iOpener and Jhymn just isn't getting updated any time soon. :( Personally, I've moved to using allofmp3.com All the same music (more or less) for a fraction of the cost, and at this point at least, still legal. Matt Philmon On 4/5/06, Fredrik Hedberg wrote: > > Hi, > > Purchasing music from Banshee works great here. There is however, a > small issue. > > If you ever used iTunes 6 to purchase music with you account, your > account gets flagged. This will essentially block you from using the > store with either the Banshee plugin or with Sharpmusique (and any older > version of iTunes i presume). > > I'm sure either Aaron or Jon can elaborate more on this issue. > > Fredrik > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique > isn't > > working either. 404 not found error. > > > > ...Jeff > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_30503_17740251.1144248898549 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never= use it against iTunes 6. I've finally admitted to myself that the Fairkey = thing resulting in applications like iOpener and Jhymn just isn't getting u= pdated any time soon. :(

Personally, I've moved to using all= ofmp3.com All the same music (more or less) for a fraction of the cost,= and at this point at least, still legal.

Matt Philmon

On 4/5/06, Fredri= k Hedberg <fredrik.hed= berg@avafan.com> wrote:
Hi,

Purchasing music from Banshee works great here. There is however= , a
small issue.

If you ever used iTunes 6 to purchase music with= you account, your
account gets flagged. This will essentially block you= from using the
store with either the Banshee plugin or with Sharpmusique (and any olde= r
version of iTunes i presume).

I'm sure either Aaron or Jon can = elaborate more on this issue.

      &n= bsp; Fredrik

On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson = wrote:
>       Is it just me or did the new p= lug-in stop working?  Sharpmusique isn't
> working either.&= nbsp; 404 not found error.
>
>    &nbs= p;            &= nbsp;     ...Jeff
>
> _____________________= __________________________
> Banshee-list mailing list
> Banshee-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/ba= nshee-list

_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_30503_17740251.1144248898549-- From abockover@novell.com Wed Apr 5 11:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B1923B2CBA for ; Wed, 5 Apr 2006 11:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09160-08 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 77F583B2CB8 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: (qmail 32543 invoked from network); 5 Apr 2006 15:45:34 -0000 Received: from outbound.ximian.com (HELO 164-99-120-28.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 5 Apr 2006 15:45:34 -0000 From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Wed, 05 Apr 2006 11:42:23 -0400 Message-Id: <1144251743.8729.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.399 X-Spam-Level: Subject: [Banshee-List] Bug Help Requested X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 15:45:38 -0000 I am noticing that there are currently at least 114 new bug comments on Banshee in Gnome Bugzilla, and I am not going to have the time to look at many of them for a maybe another week. Right now my priority is fixing our internal set of bugs, which will without a doubt knock out many in Gnome Bugzilla. However, just glancing at the bug summaries many look like dupes or ones easy to resolve or at least start commenting on. If anyone is willing, I would appreciate some help in whittling these down a bit until I can give them more attention. I know Ruben has been doing his best when he has time, but it'd be lovely to get some more hands in the stew :) Also, I am going to create a banshee-devel-list. I'll post a message when it is up. Thanks! Cheers, Aaron From ncjeffgus@zimage.com Wed Apr 5 14:49:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7732F3B0C3E for ; Wed, 5 Apr 2006 14:49:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20105-07 for ; Wed, 5 Apr 2006 14:49:55 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id 0655C3B0A2E for ; Wed, 5 Apr 2006 14:49:53 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id D74F11C2567 for ; Wed, 5 Apr 2006 11:49:47 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05050-08 for ; Wed, 5 Apr 2006 11:49:33 -0700 (PDT) Received: from polly.idc.local (mail.idc-global.com [66.92.217.130]) by alpha.zimage.com (Postfix) with ESMTP id DFF241C255B for ; Wed, 5 Apr 2006 11:49:31 -0700 (PDT) Subject: Re: [Banshee-List] banshee and iTunes From: Jeff Gustafson To: banshee-list@gnome.org In-Reply-To: <1144232733.5059.0.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> <1144232733.5059.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 11:49:28 -0700 Message-Id: <1144262969.3260.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.466 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.466 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 18:49:56 -0000 On Wed, 2006-04-05 at 12:25 +0200, Lukas Lipka wrote: > Hi, > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique isn't > > working either. 404 not found error. > > The plugin hasn't been touched in ages, and yes, IMS have changed > something yet again. They must be changing stuff. :) I've installed iTunes 6 on the Windows side, but never purchased anything with it. Just used it to install some Audible books. On Monday I tried the plugin and purchased a couple of songs. On Tuesday I got the 404 Not Found message. Today I get: Unhandled Exception: System.Net.WebException: The remote server returned an error: (502) Bad Gateway. in <0x003de> System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult result) in <0x00216> System.Net.HttpWebRequest:SetResponseData (System.Net.WebConnectionData data) Bummer. ...Jeff From silwenae@gmail.com Wed Apr 5 21:42:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F04933B0A4B for ; Wed, 5 Apr 2006 21:42:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07128-06 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 70E863B07F8 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so35227nzf for ; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=n0h2ms6nv7ixk3+OmrawjQdW6acM3O78XHRSOJa7so+G2D1w4Pk4nNYF8Mh7oBEaqCbrYK8QkkB/YhRFveEYKWK2kQXNVeAa+sMp0uZr6URmaOXZks8aqWMLx3NX1UgMQbcgtcf/v18NKWvn1pFhqali+GO0hB7mJWOfPf2S6sA= Received: by 10.36.39.6 with SMTP id m6mr341671nzm; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) Received: by 10.36.129.16 with HTTP; Wed, 5 Apr 2006 18:42:01 -0700 (PDT) Message-ID: <4c4ad4df0604051842t1b82a719sa1d44bfb376aa0fa@mail.gmail.com> Date: Wed, 5 Apr 2006 20:42:01 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8408_8905771.1144287721697" References: <1144251743.8729.6.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 01:42:04 -0000 ------=_Part_8408_8905771.1144287721697 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or could not duplicate some of the bugs. There are a ton of bugs that are feature enhancements. Some are labeled a= s such, but a number are labeled under Normal or such. Any recommendations o= n what to do with feature enhancements? Add a comment to post on the wiki, leave them be, or something else, especially ones marked as normal? Paul On 4/5/06, Aaron Bockover wrote: > > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. > > Thanks! > > Cheers, > Aaron > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_8408_8905771.1144287721697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or= could not duplicate some of the bugs.

There are a ton of bugs that = are feature enhancements.   Some are labeled as such, but a numbe= r are labeled under Normal or such.  Any recommendations on what to do= with feature enhancements?  Add a comment to post on the wiki, leave = them be, or something else, especially ones marked as normal?

Paul

On 4/5/06, Aaron Bockover <abockover@novell.com> wrote:
I am noticing that there are currently at least 114 new bug comments on
= Banshee in Gnome Bugzilla, and I am not going to have the time to look
a= t many of them for a maybe another week. Right now my priority is
fixing= our internal set of bugs, which will without a doubt knock out
many in Gnome Bugzilla.

However, just glancing at the bug summar= ies many look like dupes or ones
easy to resolve or at least start comme= nting on.

If anyone is willing, I would appreciate some help in whit= tling these
down a bit until I can give them more attention.

I know Ruben ha= s been doing his best when he has time, but it'd be
lovely to get some m= ore hands in the stew :)

Also, I am going to create a banshee-devel-= list. I'll post a message
when it is up.

Thanks!

Cheers,
Aaron


______= _________________________________________
Banshee-list mailing list
<= a href=3D"mailto:Banshee-list@gnome.org">Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_8408_8905771.1144287721697-- From gpoo@ubiobio.cl Wed Apr 5 23:00:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7E53B0AC4 for ; Wed, 5 Apr 2006 23:00:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10137-07 for ; Wed, 5 Apr 2006 23:00:53 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 986603B0C17 for ; Wed, 5 Apr 2006 23:00:52 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id ABFAF400127 for ; Wed, 5 Apr 2006 23:00:03 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 00800-81 for ; Wed, 5 Apr 2006 23:00:02 -0400 (CLT) Received: from mimos.local (pc-158-109-120-200.cm.vtr.net [200.120.109.158]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 985D628002A1 for ; Wed, 5 Apr 2006 23:00:44 -0400 (CLT) Subject: Re: [Banshee-List] Bug Help Requested From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 05 Apr 2006 23:00:38 -0400 Message-Id: <1144292438.8258.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.374 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.374 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 03:00:57 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. I also been triaging, reviewing some patches and commented on bugs in a minimal proportion anyway. But, at the end, you must to checked them. I would like to suggest to you to check the bugs that has patches included. There are only 14 of those bugs (6 reviewed, 8 with no comments at all). http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=commented-on http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=none Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From ruben@Lambda1.be Thu Apr 6 03:23:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41BB23B13A0 for ; Thu, 6 Apr 2006 03:23:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20801-02 for ; Thu, 6 Apr 2006 03:23:56 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 70C6C3B1118 for ; Thu, 6 Apr 2006 03:23:55 -0400 (EDT) Received: from ([62.235.112.218]) by oola.is.scarlet.be with ESMTP id k367NrA17167 for ; Thu, 6 Apr 2006 09:23:53 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 5DD46460202; Thu, 6 Apr 2006 09:23:51 +0200 (CEST) Subject: Re: [Banshee-List] Bug Help Requested From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Apr 2006 09:23:50 +0200 Message-Id: <1144308230.5325.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.598 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 07:23:59 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) And I plan to keep on doing that. I'd really love to be able to write big new features on banshee but currently time does not permit it. That's why I've chosen to concentrate on bug bitching, mainly getting as much bugs as possible ready for merging into CVS (there's quite a lot of those already, which just require a "curl | patch -p0"). What bugs me mostly are those "long term maybe"-feature requests, they're bringing us awefully close to the buggiest top-15 without a direct way to close them ;-). > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. Wonderful! I'm thinking of organising some collective-triage sessions to tackle longstanding bugs, but it's still an early idea and we need people interested in them. Cheers, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From cpfiles@gmail.com Thu Apr 6 10:01:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D0723B15A6 for ; Thu, 6 Apr 2006 10:01:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14756-07 for ; Thu, 6 Apr 2006 10:01:39 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id A48F03B2FED for ; Thu, 6 Apr 2006 10:01:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so170807nzf for ; Thu, 06 Apr 2006 07:01:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Y5JVfjRhhUPOKMWVguVMF/lV3Pk0vJXilfYjnTdoEUqzsd/UVDS15qRJT4jFUTk2pdIAjuSvIGXmUndpYM8pHqSqmlJrfoFdg6Kl4L0HetXmk60dg9xCrDWAP6MVEi2S86ZRaSjBGkqId+iTEancpjqPrVIn//rV0p6agMj9VWE= Received: by 10.36.80.5 with SMTP id d5mr1079002nzb; Thu, 06 Apr 2006 07:01:37 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 07:01:37 -0700 (PDT) Message-ID: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Date: Thu, 6 Apr 2006 09:01:37 -0500 From: "Chad Files" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Poor Playback X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:01:42 -0000 I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad From benjfitz@yahoo.com Thu Apr 6 10:48:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9FC53B3019 for ; Thu, 6 Apr 2006 10:48:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17687-07 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: from web37904.mail.mud.yahoo.com (web37904.mail.mud.yahoo.com [209.191.124.99]) by menubar.gnome.org (Postfix) with SMTP id 6B9C03B3005 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: (qmail 88407 invoked by uid 60001); 6 Apr 2006 14:48:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qb8GW+o5aBy6xF1S1fV7Tp0Zh6F/mSfwtLT+H0PNkmSPvkFeOaaJf+QBoaGkU5wtsFIyQ2HU6BbdT1MXwFDBl7u2tgoiNMN9ql0QfLdseMW7vCMIq1cEjOTzarpL0CN9+/BqTFMIyH951/EUmz5gw1nCOzC8J9e7/0ybr8R6QcI= ; Message-ID: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> Received: from [140.110.206.107] by web37904.mail.mud.yahoo.com via HTTP; Thu, 06 Apr 2006 07:48:23 PDT Date: Thu, 6 Apr 2006 07:48:23 -0700 (PDT) From: Benj FitzPatrick Subject: Re: [Banshee-List] Poor Playback To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-121702021-1144334903=:87901" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.981 tagged_above=-999 required=2 tests=[AWL=-1.381, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_10_20=1.351, HTML_MESSAGE=0.001] X-Spam-Score: -0.981 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:48:26 -0000 --0-121702021-1144334903=:87901 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it. I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom). I added the below commands: alsasink period-size=1024 buffer-size=4096 That seemed to clean up playback for me. Benj Chad Files wrote: I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad _______________________________________________ Banshee-list mailing list Banshee-list@gnome.org http://mail.gnome.org/mailman/listinfo/banshee-list --0-121702021-1144334903=:87901 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it.  I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom).  I added the below commands:

alsasink period-size=1024 buffer-size=4096

That seemed to clean up playback for me.
Benj

Chad Files <cpfiles@gmail.com> wrote:
I am running banshee 0.10.9 on gentoo with all the latest and greatest
gstreamer packages. Everything looks and functions great except for
the playback. I get a lot of popping when the tracks are played.

I have played the same tracks it totem (also uses gstreamer) and there
is no popping. I have tried several other things but all to no avail.
This issue also bleeds over into CD burning. I burned a CD with
banshee and the popping was transfered onto the CD.

I am almost certain that this is an issue with the gstreamer bindings
in banshee. Has anybody else had this issue? Does anybody have a
solution?

Thanks

-- Chad
_______________________________________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

--0-121702021-1144334903=:87901-- From database1@qualitycareforchildren.org Thu Apr 6 11:01:09 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19A943B225A for ; Thu, 6 Apr 2006 11:01:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18884-05 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from www.qualitycareforchildren.org (qualitycareforchildren.org [168.215.70.173]) by menubar.gnome.org (Postfix) with ESMTP id 396B23B2FC0 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from [10.10.10.111] ([66.162.21.62]) by www.qualitycareforchildren.org (8.10.2/8.10.2) with ESMTP id k36F14C27036 for ; Thu, 6 Apr 2006 11:01:04 -0400 From: John Moore To: banshee-list@gnome.org Content-Type: multipart/alternative; boundary="=-9HUXicvlPFj1cQqn3+7I" Message-Id: <1141747243.25631.6.camel@linux.site> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.075 tagged_above=-999 required=2 tests=[AWL=-0.871, BAYES_00=-2.599, DATE_IN_PAST_96_XX=2.02, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: -1.075 X-Spam-Level: Subject: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 06 Apr 2006 15:01:09 -0000 X-Original-Date: Tue, 07 Mar 2006 11:00:43 -0500 X-List-Received-Date: Thu, 06 Apr 2006 15:01:09 -0000 --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/plain Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below): A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine. I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error: E: Couldn't find package gstreamer0.8-plugins-multiverse Any suggestions? Thanks. --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.


--=-9HUXicvlPFj1cQqn3+7I-- From mattisking@gmail.com Thu Apr 6 11:11:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 662B73B2236 for ; Thu, 6 Apr 2006 11:11:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19375-07 for ; Thu, 6 Apr 2006 11:11:46 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id E3D1E3B14A2 for ; Thu, 6 Apr 2006 11:11:45 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id i49so213796pye for ; Thu, 06 Apr 2006 08:11:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Na9O+B/1nNLaL57gPxKYaw2K978E/mlbPcqwURGk6FXym7hZEeY0KWEsuvwzOqcixBhxlDEkTO0HWEruaDMxxd8/jIyLNXjyBp9zHEV6kFhwalXL4xsbO9xo/cXetixqJ4EnFPz0PrYHUJjpbJK5AUMglodq5IQ+zpK0DLWkzd8= Received: by 10.35.49.4 with SMTP id b4mr529764pyk; Thu, 06 Apr 2006 08:11:44 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Thu, 6 Apr 2006 08:11:43 -0700 (PDT) Message-ID: <39efb3860604060811k183530e3w2fd1f9d9fbabb8fe@mail.gmail.com> Date: Thu, 6 Apr 2006 11:11:43 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse In-Reply-To: <1141747243.25631.6.camel@linux.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4236_23280367.1144336303978" References: <1141747243.25631.6.camel@linux.site> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.067 tagged_above=-999 required=2 tests=[AWL=0.158, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.067 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:11:52 -0000 ------=_Part_4236_23280367.1144336303978 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you'll want to enable it along with universe. Do enable multiverse just add it to the end of the lines that contain universe. Then use synaptic to search for gstreamer0.8. You'll find TONS of packages. Just install most or all of them. Matt On 3/7/06, John Moore wrote: > > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the > mp3 problem in the Banshee FAQ (see the site response below): > > *A:* This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends *sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg* and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I got > the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_4236_23280367.1144336303978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you= 'll want to enable it along with universe. Do enable multiverse just add it= to the end of the lines that contain universe.

Then use synaptic to= search for=20 gstreamer0.8. You'll find TONS of packages. Just install most or all of the= m.

Matt

On 3/7/06, John Moore < database1@qualitycareforchildren.org> wrote:
=20 =20 I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted th= e mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstre= amer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-pl= ugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'l= l be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  Ho= wever, when attempting to install gstreamer0.8-plugins-multiverse I got the= following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.



_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



------=_Part_4236_23280367.1144336303978-- From gpoo@ubiobio.cl Thu Apr 6 11:15:11 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ACEB73B303C for ; Thu, 6 Apr 2006 11:15:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19757-01 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 6CCBE3B3023 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id D772D4003E4 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 31704-12 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from dhcp-120.dci.ubiobio.cl (dhcp-120.dci.ubiobio.cl [146.83.195.120]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 2AA6628002AB for ; Thu, 6 Apr 2006 11:15:06 -0400 (CLT) Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1141747243.25631.6.camel@linux.site> References: <1141747243.25631.6.camel@linux.site> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 06 Apr 2006 11:15:01 -0400 Message-Id: <1144336501.9888.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.42 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.42 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:15:11 -0000 On Tue, 2006-03-07 at 11:00 -0500, John Moore wrote: > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted > the mp3 problem in the Banshee FAQ (see the site response below): > > A: This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I > got the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. This is an Ubuntu question more than an specific about banshee. You should read the documentation about how to solve this issues at https://wiki.ubuntu.com/RestrictedFormats In particular, the section related to MP3: https://wiki.ubuntu.com/RestrictedFormats#head-a57167a3ce442dc52d9b05e46a14503330d4e970 Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From cpfiles@gmail.com Thu Apr 6 12:22:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB3473B0889 for ; Thu, 6 Apr 2006 12:22:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24395-02 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 87BEC3B0586 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so228587nzf for ; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ia0WzG/128nvQPkwWZ1znnDwDlgOVURb5gexnobdUZ7eIe+gRSayLHpRrZu5B+olpXWclx2vt/UEaG5MQ/sp3i6c+8o9Hmpc1OhL3sVRPRCBPe1e8YfYGbIDbVFLhaQGlZ+64bB9VnweOX25elhzkfCPss0ixTj/6TKWMteY0Mo= Received: by 10.37.12.23 with SMTP id p23mr1338483nzi; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 09:22:04 -0700 (PDT) Message-ID: <9735eb9b0604060922n686a5b7bm3cc2f3130582a230@mail.gmail.com> Date: Thu, 6 Apr 2006 11:22:04 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 16:22:06 -0000 On 4/6/06, Benj FitzPatrick wrote: > I also ran into this on gentoo, and the devs were nice enough to help me > through it. I made a custom output sink for gstreamer using > gstreamer-properties (go to alsasink and then to custom). I added the be= low > commands: > > alsasink period-size=3D1024 buffer-size=3D4096 Thanks, but no dice. I still get the popping during playback. -- Chad From abockover@novell.com Thu Apr 6 15:31:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A2743B226E for ; Thu, 6 Apr 2006 15:31:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03375-08 for ; Thu, 6 Apr 2006 15:31:18 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 064BE3B3023 for ; Thu, 6 Apr 2006 15:31:17 -0400 (EDT) Received: (qmail 9151 invoked from network); 6 Apr 2006 19:31:17 -0000 Received: from outbound.ximian.com (HELO 164-99-120-99.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 6 Apr 2006 19:31:17 -0000 Subject: Re: [Banshee-List] Poor Playback From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Content-Type: text/plain Date: Thu, 06 Apr 2006 15:27:59 -0400 Message-Id: <1144351679.21194.8.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.485 tagged_above=-999 required=2 tests=[AWL=-0.086, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.485 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 19:31:19 -0000 On Thu, 2006-04-06 at 09:01 -0500, Chad Files wrote: > I am running banshee 0.10.9 on gentoo with all the latest and greatest > gstreamer packages. Everything looks and functions great except for > the playback. I get a lot of popping when the tracks are played. What happens in Rhythmbox? > I have played the same tracks it totem (also uses gstreamer) and there > is no popping. I have tried several other things but all to no avail. > This issue also bleeds over into CD burning. I burned a CD with > banshee and the popping was transfered onto the CD. > > I am almost certain that this is an issue with the gstreamer bindings > in banshee. Has anybody else had this issue? Does anybody have a > solution? No, the problem would not be in bindings. The GStreamer stuff in Banshee is all in C, and a binding wouldn't make your audio pop. There may be something missing from the pipeline, or it could easily be hardware or output sink related. Cheers, Aaron > Thanks > > -- Chad > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From silwenae@gmail.com Thu Apr 6 20:02:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B80583B0096 for ; Thu, 6 Apr 2006 20:02:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17730-02 for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id A29353B00AC for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so338083nzf for ; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fKFqrEMSalWHa6l88i17Y0KVGLs5oOoIlaqAO+8tsPHvQnbzQEikcSK7bIUetSHU3gFAQz4vS1Z3lFTe/ktB93hrQFlPySIqR2Yq7jFAOj1OCgGMdtjT0//4IWbdqt2vUvoapHRmo5r01ydFfE6DZnHbccFyxUOIRrMkWFYpdOE= Received: by 10.37.13.16 with SMTP id q16mr547499nzi; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Thu, 6 Apr 2006 17:02:38 -0700 (PDT) Message-ID: <4c4ad4df0604061702j2d05fee6w6ab5a2d3eb23c495@mail.gmail.com> Date: Thu, 6 Apr 2006 19:02:38 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144308230.5325.11.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2950_7040387.1144368158030" References: <1144251743.8729.6.camel@sledipus.rex> <1144308230.5325.11.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.344 tagged_above=-999 required=2 tests=[AWL=-0.119, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.344 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 00:02:42 -0000 ------=_Part_2950_7040387.1144368158030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/6/06, Ruben Vermeersch wrote: What bugs me mostly are those "long term maybe"-feature requests, > they're bringing us awefully close to the buggiest top-15 without a > direct way to close them ;-). > > > Cheers, > Ruben Is there any reason we can't mark feature requests filed as bugs as closed if we add them to the wiki? Or is that just not the way things are done? If the person commenting on the bug (or closing it) marks the date and time added to the wiki, and maybe we add a * after the request as noted on the wiki, or even add a section on the Features Request page as a section "Feature Requests from Bugzilla", it would go a long way to reducing the overall bug list. Currently 45 out of 121 total bugs are marked as feature enhancement. Paul ------=_Part_2950_7040387.1144368158030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 4/6/06, Ruben Vermeersch <ruben@l= ambda1.be> wrote:

<snip>

What bugs me mostly are those "long term maybe"-feature requests,=
they're bringing us awefully close to the buggiest top-15 without a
= direct way to close them ;-).


Cheers,
   Ruben

Is there any reason we can't mark feature requests filed as bugs a= s closed if we add them to the wiki?  Or is that just not the way thin= gs are done?  If the person commenting on the bug (or closing it) mark= s the date and time added to the wiki, and maybe we add a * after the reque= st as noted on the wiki, or even add a section on the Features Request page= as a section "Feature Requests from Bugzilla", it would go a lon= g way to reducing the overall bug list.

Currently 45 out of 121 total bugs are marked as feature enhancemen= t.

Paul


------=_Part_2950_7040387.1144368158030-- From trick@vanstaveren.us Fri Apr 7 04:07:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 60F363B0252 for ; Fri, 7 Apr 2006 04:07:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06528-09 for ; Fri, 7 Apr 2006 04:07:18 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 039DD3B0230 for ; Fri, 7 Apr 2006 04:07:16 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FRlzv-0003yV-Ur for banshee-list@gnome.org; Fri, 07 Apr 2006 01:07:15 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 07 Apr 2006 04:07:15 -0400 Message-ID: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Date: Fri, 07 Apr 2006 04:07:15 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Plugin in the works: Alarm Clock X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 08:07:24 -0000 Hey folks, I've been starting to work on a new plugin for Banshee - an Alarm Clock plugin. Has anyone worked on this? If so, LMK, so we're not duplicating efforts :) Features I'm working on: Sleep timer: * ability to set a timer that when it's up, will pause playback. Great for when you're loving your tunes but don't want to hear them ALL night. Alarm timer: * will start playback at the given time. * "recur" option - if enabled, will set the timer again for the next day at that same time. * volume setting - will change the volume to a certain level before playing. This way you don't have to set it before you go to sleep. Future ideas: * sleep timer - make it so it fades out the song, or stops at the end of the song rather than just pausing in the middle of it. * alarm timer - volume change will be gradual. will set the volume when the alarm first goes off, and will gradually increase it to another value over a span of seconds or minutes. All three values will be settable. Anyone have any other ideas/suggestions for me? Like I said, this plugin is more in the concept stage (I have more pencil sketches than actual code)...so I'm open to ideas :) Thanks all! Patrick (irc as trick) -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From thijsvermeir@telenet.be Fri Apr 7 08:43:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED8A23B03A5 for ; Fri, 7 Apr 2006 08:43:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23842-08 for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from assei2bl6.telenet-ops.be (assei2bl6.telenet-ops.be [195.130.133.69]) by menubar.gnome.org (Postfix) with ESMTP id 651233B036B for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by assei2bl6.telenet-ops.be (Postfix) with SMTP id E7352F00A2 for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Received: from [192.168.1.4] (d51A40E46.access.telenet.be [81.164.14.70]) by assei2bl6.telenet-ops.be (Postfix) with ESMTP id D8032F007D for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> Content-Transfer-Encoding: 7bit From: Thijs Vermeir Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock Date: Fri, 7 Apr 2006 14:39:11 +0200 To: banshee-list@gnome.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:43:20 -0000 On 7-apr-06, at 10:07, Trick van Staveren wrote: > Hey folks, Hey, > > I've been starting to work on a new plugin for Banshee - an Alarm > Clock plugin. Has > anyone worked on this? If so, LMK, so we're not duplicating > efforts :) > > ... > > Anyone have any other ideas/suggestions for me? Like I said, this > plugin is more in > the concept stage (I have more pencil sketches than actual > code)...so I'm open to > ideas :) Looks nice, Need suggestions? ;-) I like to see integrated support for shutdown/wakeup the PC. > Thanks all! > > Patrick > > (irc as trick) > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From cpfiles@gmail.com Fri Apr 7 08:49:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F23263B03E9 for ; Fri, 7 Apr 2006 08:49:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24722-01 for ; Fri, 7 Apr 2006 08:49:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 083363B32C0 for ; Fri, 7 Apr 2006 08:48:53 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so431851nzf for ; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WsU8SLPgB7IEnIIbBWXyFeT6UL0krV8RBh+sxXfOiTNl+ClzE/rvuEjK6BelLdxgmZiksLBxCTiCSphQ7sbCbN+TcIj5LDLcEQ+5nwFQnjbjgDjZw1n6IfRU/0vq8cl+6LwnhcQu4JLmNbVlOwdMubbl5SSZDydSMFjJCf3UUxY= Received: by 10.36.250.48 with SMTP id x48mr2049921nzh; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Fri, 7 Apr 2006 05:48:53 -0700 (PDT) Message-ID: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> Date: Fri, 7 Apr 2006 07:48:53 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <1144351679.21194.8.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:49:07 -0000 On 4/6/06, Aaron Bockover wrote: > What happens in Rhythmbox? Everything plays fine. > No, the problem would not be in bindings. The GStreamer stuff in Banshee > is all in C, and a binding wouldn't make your audio pop. There may be > something missing from the pipeline, or it could easily be hardware or > output sink related. After reading the above I wondered if it had anything to do with the media format, and it does. The popping only happens when playing ogg files, mp3 and CD playback work fine. Is there something that need to change in the way ogg is read and played? By the way, before it is asked, I have been using the same ogg file in all of the other applications during my troubleshooting. Banshee is the only one that I can hear the popping with. -- Chad From thijsvermeir@telenet.be Fri Apr 7 09:04:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D2453B0394 for ; Fri, 7 Apr 2006 09:04:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25898-03 for ; Fri, 7 Apr 2006 09:04:53 -0400 (EDT) Received: from hoefnix.telenet-ops.be (hoefnix.telenet-ops.be [195.130.132.54]) by menubar.gnome.org (Postfix) with ESMTP id 978D83B3292 for ; Fri, 7 Apr 2006 09:04:52 -0400 (EDT) Received: from nocme1bl6.telenet-ops.be (nocme1bl6.telenet-ops.be [195.130.136.37]) by hoefnix.telenet-ops.be (Postfix) with ESMTP id 04F1CA03AA for ; Fri, 7 Apr 2006 15:04:16 +0200 (CEST) Received: from nocme1bl6.telenet-ops.be (localhost.localdomain [127.0.0.1]) by nocme1bl6.telenet-ops.be (Postfix) with ESMTP id E2E6B388052 for ; Fri, 7 Apr 2006 15:04:15 +0200 (CEST) From: "thijsvermeir@pandora.be" To: banshee-list@gnome.org Importance: Normal Sensitivity: Normal Message-ID: X-Originating-IP: [81.164.14.70] X-Forwarded-For: [(null)] Date: Fri, 07 Apr 2006 13:04:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Error while compiling cvs (Mono.Unix) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 13:04:56 -0000 Hello, I get this error when I try to compile Banshee from source. --- ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous reference between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' --- I'm using mono 1.1.13 from the Ubuntu Breezy archive. How can I fix this? Thanks, Thijs From wpoland@gmail.com Fri Apr 7 11:18:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 320383B0474 for ; Fri, 7 Apr 2006 11:18:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03468-09 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by menubar.gnome.org (Postfix) with ESMTP id 7F2353B0473 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id t4so319004wxc for ; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cDSyTYYBau30SPmJl9fe839LULir1wczTl6RLadjRdvB6OhWBVYYcw5zHO7DCinc9aStQ6fiiWmkZcT1EB6yWs3JCPPHqML7siM5jVzbf7hcX2sog0j349m712sJWA4Q67RyVBn8xMWDqjz/lv/xTBYj3SSUY6fXI0C0ddzWPdw= Received: by 10.70.27.6 with SMTP id a6mr2854231wxa; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 08:18:33 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 08:18:33 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.579 tagged_above=-999 required=2 tests=[AWL=0.021, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.579 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 15:18:37 -0000 On 4/7/06, Thijs Vermeir wrote: > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > Hey folks, > Hey, > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > Clock plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating > > efforts :) > > > > ... > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > plugin is more in > > the concept stage (I have more pencil sketches than actual > > code)...so I'm open to > > ideas :) > > Looks nice, > Need suggestions? ;-) > I like to see integrated support for shutdown/wakeup the PC. > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > This is great, I've been looking forward to a feature like this for a while. I've been using a bash script and banshee's command line options of "--play" and "--pause" to accomplish this lately. Nothing like waking to "Here Comes the Sun" every morning. ;) Best of luck. From josiah.ritchie@gmail.com Fri Apr 7 13:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E36A3B182C for ; Fri, 7 Apr 2006 13:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11539-08 for ; Fri, 7 Apr 2006 13:13:13 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 152B93B33C7 for ; Fri, 7 Apr 2006 13:13:10 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so484612nzf for ; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TcT2qzrO9xWB6tfR0qLlvGaVRe0u2NICrSvHIroIpNQR2YMMK39hAGFXEGTGXnXMoVcISIoouKwGh3x6hbMqJQ8N+SXuDE3+foAWcIkGkj6J9fjNvWIxnHsdPYhzS1VL4037Me9A9wiBl3SxoG4H7NHmkB5HTLi+8Z9I8paJiY4= Received: by 10.36.33.4 with SMTP id g4mr2134703nzg; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Fri, 7 Apr 2006 10:13:09 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 13:13:09 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.474 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.474 X-Spam-Level: Subject: [Banshee-List] How's the podcast plugin coming? X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:13:18 -0000 How is the podcast plugin coming? Mostly I'm asking to make sure I didn't miss an announcement. :-) JSR/ -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From mattisking@gmail.com Fri Apr 7 13:54:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 52F7E3B09E1 for ; Fri, 7 Apr 2006 13:54:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14464-01 for ; Fri, 7 Apr 2006 13:54:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id A62A13B0617 for ; Fri, 7 Apr 2006 13:54:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so514528pyu for ; Fri, 07 Apr 2006 10:54:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iw45thcdgy7nuLGDiN/kP02ylrQIIC2912Q3PU5Vu+mTMSoRhvgQ0ImDvhRL1tJcoRVQrqKisZ3SYbnma8OMhkOO5TmH2e3kb6fNrfl5PKbg1gRpXWkG1nz+PnA2lZaP9Necp8V/A14X9wBzfzrq9pnij/ihz9lfly+hJREcqPc= Received: by 10.35.60.15 with SMTP id n15mr2383799pyk; Fri, 07 Apr 2006 10:54:29 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Fri, 7 Apr 2006 10:54:29 -0700 (PDT) Message-ID: <39efb3860604071054l74153655lee7cbf726d87ff92@mail.gmail.com> Date: Fri, 7 Apr 2006 13:54:29 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27780_12765770.1144432469951" References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.098 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.098 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:54:34 -0000 ------=_Part_27780_12765770.1144432469951 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have. Matt Philmon On 4/7/06, Byron Poland wrote: > > On 4/7/06, Thijs Vermeir wrote: > > > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > > > Hey folks, > > Hey, > > > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > > Clock plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating > > > efforts :) > > > > > > ... > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > > plugin is more in > > > the concept stage (I have more pencil sketches than actual > > > code)...so I'm open to > > > ideas :) > > > > Looks nice, > > Need suggestions? ;-) > > I like to see integrated support for shutdown/wakeup the PC. > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > > > > > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > This is great, I've been looking forward to a feature like this for a > while. I've been using a bash script and banshee's command line > options of "--play" and "--pause" to accomplish this lately. Nothing > like waking to "Here Comes the Sun" every morning. ;) > > Best of luck. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_27780_12765770.1144432469951 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my = nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have.

Matt Philmon

On 4/7/= 06,=20 Byron Poland <wpoland@gmail.com> wrote:
On 4/7/06, Thijs Vermeir <thi= jsvermeir@telenet.be> wrote:
>
> On 7-apr-06, at 10:07, = Trick van Staveren wrote:
>
> > Hey folks,
> Hey,
>
> >
> > I've been starting to work on a new plugin f= or Banshee - an Alarm
> > Clock plugin.  Has
> >= ; anyone worked on this?  If so, LMK, so we're not duplicating> > efforts :)
> >
> > ...
> >
> > Anyone have any ot= her ideas/suggestions for me?  Like I said, this
> > plu= gin is more in
> > the concept stage (I have more pencil sketches = than actual
> > code)...so I'm open to
> > ideas :)
>
> = Looks nice,
> Need suggestions? ;-)
> I like to see integrated = support for shutdown/wakeup the PC.
>
> > Thanks all!
> >
> > Patrick
> >
> > (irc as trick)
= > >
> > --
> > Patrick "Trick" van Staver= en
> > Western Michigan University
> > AIM: goofyassmoose
> > Cell: 269.267.6008
> > http://www.trick.vanstaveren.us/
> >
> &= gt;
> >
> >
> > ________________________________= _______________
> > Banshee-list mailing list
> > Banshee-list@gnome.org
> > http://mail.gnome.org/mail= man/listinfo/banshee-list
> >


This is great, I've been looking forward to a = feature like this for a
while.  I've been using a bash script = and banshee's command line
options of "--play" and "--pau= se" to accomplish this lately.  Nothing
like waking to "Here Comes the Sun" every morning. ;)

= Best of luck.
_______________________________________________
Banshee= -list mailing list
Banshee-lis= t@gnome.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list
=
------=_Part_27780_12765770.1144432469951-- From silwenae@gmail.com Fri Apr 7 14:31:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 877493B33E5 for ; Fri, 7 Apr 2006 14:31:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17225-10 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 3297C3B07F0 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so500194nzf for ; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq009RPMtpj+5D6fTnxkonZJo+vN5cwzrNJRXp7MQeq6/0HIV1tpZGakDFbawhRhnLWCUaGMluPsaRRM7cYpmDs+WUn35pED6KntMeIeuQ/WRU8oYt9bQO25nNk3rh+OeKZgs6FvURYSUJKmaV8N3W2mGrPy/kZnvSX24Anyx/o= Received: by 10.36.247.73 with SMTP id u73mr1736898nzh; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Fri, 7 Apr 2006 11:31:39 -0700 (PDT) Message-ID: <4c4ad4df0604071131v3ea4823br1020552e5e6c4018@mail.gmail.com> Date: Fri, 7 Apr 2006 13:31:39 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Error while compiling cvs (Mono.Unix) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12908_3660691.1144434699567" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.236 tagged_above=-999 required=2 tests=[AWL=-0.133, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.236 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 18:31:42 -0000 ------=_Part_12908_3660691.1144434699567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to need an updated Mono (among other things) on Breezy if you don't want to update to Dapper. See the Ubuntu page on the wiki: http://www.banshee-project.org/Distributions/Ubuntu Paul On 4/7/06, thijsvermeir@pandora.be wrote: > > Hello, > > I get this error when I try to compile Banshee from source. > --- > ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referenc= e > between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' > --- > I'm using mono 1.1.13 from the Ubuntu Breezy archive. > > How can I fix this? > > Thanks, > Thijs > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_12908_3660691.1144434699567 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to = need an updated Mono (among other things) on Breezy if you don't want to up= date to Dapper.

See the Ubuntu page on the wiki:

http://www.banshee-project.org/Distributions/Ubuntu

Paul

=
On 4/7/06, <= a href=3D"mailto:thijsvermeir@pandora.be">thijsvermeir@pandora.be &= lt; thijsvermeir@telenet.be> = wrote:
Hell= o,

I get this error when I try to compile Banshee from source.
---<= br>./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referen= ce between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat'
---
I'm using= mono=20 1.1.13 from the Ubuntu Breezy archive.

How can I fix this?

Th= anks,
Thijs



_____________________________________________= __
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_12908_3660691.1144434699567-- From bertrand.lorentz@free.fr Fri Apr 7 15:47:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12AE93B0C23 for ; Fri, 7 Apr 2006 15:47:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22282-01 for ; Fri, 7 Apr 2006 15:46:55 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 1B32C3B088C for ; Fri, 7 Apr 2006 15:46:48 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 90E3C6D231 for ; Fri, 7 Apr 2006 21:46:46 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nZ0gXIa8jpype9b/iPe6" Date: Fri, 07 Apr 2006 21:46:44 +0200 Message-Id: <1144439204.517.58.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 19:47:02 -0000 --=-nZ0gXIa8jpype9b/iPe6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > Hey folks, >=20 > I've been starting to work on a new plugin for Banshee - an Alarm Clock p= lugin. Has > anyone worked on this? If so, LMK, so we're not duplicating efforts :) Hi, I've been working on something similar. I'm trying to replicate the features from the xmms-alarm plugin for XMMS and beep media player. I've got some working code, but it still needs some work. I'm still waking up with beep media player... > Features I'm working on: >=20 > Sleep timer: > * ability to set a timer that when it's up, will pause playback. Great = for when > you're loving your tunes but don't want to hear them ALL night. >=20 > Alarm timer: > * will start playback at the given time. > * "recur" option - if enabled, will set the timer again for the next day= at that same > time. > * volume setting - will change the volume to a certain level before play= ing. This way > you don't have to set it before you go to sleep. >=20 > Future ideas: > * sleep timer - make it so it fades out the song, or stops at the end of= the song > rather than just pausing in the middle of it. > * alarm timer - volume change will be gradual. will set the volume when= the alarm > first goes off, and will gradually increase it to another value over a sp= an of seconds > or minutes. All three values will be settable. >=20 > Anyone have any other ideas/suggestions for me? Like I said, this plugin= is more in > the concept stage (I have more pencil sketches than actual code)...so I'm= open to > ideas :) What is working in my code : - Start playback at a given time - Set the volume before playing What is implemented but doesn't work - Gradually change the volume while playing over a period of time. The volume just gets stuck at the first value. The configuration options need some UI love. For now it's just a bunch of SpinButtons. Things I'd like to have : - Set different alarm times for each day of the week. I don't want to be waken up at 7am on a Sunday morning because I left banshee running... The sleep timer is a good idea, and should be easy to do once the alarm stuff is done. I planned to put the code out when I have a working plugin, but I'd be happy to share the code now. I just need to find a place to host it. (Looking towards the banshee subversion repository. If the admin is reading this... ;) > Thanks all! >=20 > Patrick >=20 > (irc as trick) >=20 > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ >=20 --=20 Bertrand Lorentz --=-nZ0gXIa8jpype9b/iPe6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE +THmUT47WTYvpwVUSC5JFA0= =ZY2f -----END PGP SIGNATURE----- --=-nZ0gXIa8jpype9b/iPe6-- From pcolijn@gmail.com Fri Apr 7 18:02:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01ED33B0266 for ; Fri, 7 Apr 2006 18:02:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28937-09 for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.228]) by menubar.gnome.org (Postfix) with ESMTP id 32FFF3B106F for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so505799wra for ; Fri, 07 Apr 2006 15:02:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tvl3ZtWt8Y5PWoBRJimlhbzyxFyuk3bRwuc6gKA3kFySGlECzVCU5PhsuEYKiehhjIdiIyD59NT2j/Yz31OcknejPCyzV4yv60VeS+NRjBXBe1YQLZ/mJ33ag93XneFXnMJraiV4GI3jLnSYrx5pBHk2XaoFp82bwW41knCFO+c= Received: by 10.54.100.3 with SMTP id x3mr307724wrb; Fri, 07 Apr 2006 15:02:21 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Fri, 7 Apr 2006 15:02:21 -0700 (PDT) Message-ID: <7c35b00e0604071502r454ac03yed32876ee1cd2139@mail.gmail.com> Date: Fri, 7 Apr 2006 18:02:21 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.363 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.363 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:02:25 -0000 SGksCgpPbiA0LzcvMDYsIENoYWQgRmlsZXMgPGNwZmlsZXNAZ21haWwuY29tPiB3cm90ZToKPiBB ZnRlciByZWFkaW5nIHRoZSBhYm92ZSBJIHdvbmRlcmVkIGlmIGl0IGhhZCBhbnl0aGluZyB0byBk byB3aXRoIHRoZQo+IG1lZGlhIGZvcm1hdCwgYW5kIGl0IGRvZXMuIFRoZSBwb3BwaW5nIG9ubHkg aGFwcGVucyB3aGVuIHBsYXlpbmcgb2dnCj4gZmlsZXMsIG1wMyBhbmQgQ0QgcGxheWJhY2sgd29y ayBmaW5lLiBJcyB0aGVyZSBzb21ldGhpbmcgdGhhdCBuZWVkIHRvCj4gY2hhbmdlIGluIHRoZSB3 YXkgb2dnIGlzIHJlYWQgYW5kIHBsYXllZD8KCkkga25vdyAibWUgdG9vIiByZXBsaWVzIGFyZSBu b3QgdGhhdCB1c2VmdWwsIGJ1dCBJIGhhdmUgZXhwZXJpZW5jZSBhCnNpbWlsYXIgKGJ1dCBub3Qg ZXhhY3RseSB0aGUgc2FtZSkgcHJvYmxlbS4gWWVzdGVyZGF5IEkgY29waWVkIHNvbWUKb2dncyB0 byBteSBpcG9kIHVzaW5nIEJhbnNoZWUsIGFuZCB0aGV5IHNvdW5kIGFsbCBwb3BweSBvbiB0aGUg aXBvZC4KV2hhdCdzIGludGVyZXN0aW5nIGFib3V0IHRoYXQgaXMgdGhhdCBJIGFzc3VtZSB0aGUg dHJhbnNjb2RlciBoYXMKbm90aGluZyB0byBkbyB3aXRoIHRoZSBhdWRpbyBoYXJkd2FyZSBvciBB TFNBIGNvbmZpZ3VyYXRpb24sIHNvIHRob3NlCmNhbiBwcm9iYWJseSBiZSBydWxlZCBvdXQuCgpI YXZlIGZ1biwKClBldGVyCg== From wpoland@gmail.com Fri Apr 7 18:10:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB043B0A42 for ; Fri, 7 Apr 2006 18:10:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29555-07 for ; Fri, 7 Apr 2006 18:10:23 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by menubar.gnome.org (Postfix) with ESMTP id 58D233B05DC for ; Fri, 7 Apr 2006 18:10:22 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so461766wxd for ; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UfOyLWKYIUQunrMKQD3b53u5vEZ4RKnRDx2780mnViKqF+wHyRVNnICwoBfC6KnDNN+4avh0m6HKciY8saBpvU9sasE9viPP4mfEYoUnmkmKxz+0iSXQZnivY4T0nxLCWJ7Giq2WbUjc90QeFYhArZPuLM30Os8IjS2OvgwcKJU= Received: by 10.70.73.6 with SMTP id v6mr2321606wxa; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 15:10:20 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 15:10:20 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.587 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.587 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:10:26 -0000 On 4/7/06, Bertrand Lorentz wrote: > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > Hey folks, > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clock= plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > > > Features I'm working on: > > > > Sleep timer: > > * ability to set a timer that when it's up, will pause playback. Grea= t for when > > you're loving your tunes but don't want to hear them ALL night. > > > > Alarm timer: > > * will start playback at the given time. > > * "recur" option - if enabled, will set the timer again for the next d= ay at that same > > time. > > * volume setting - will change the volume to a certain level before pl= aying. This way > > you don't have to set it before you go to sleep. > > > > Future ideas: > > * sleep timer - make it so it fades out the song, or stops at the end = of the song > > rather than just pausing in the middle of it. > > * alarm timer - volume change will be gradual. will set the volume wh= en the alarm > > first goes off, and will gradually increase it to another value over a = span of seconds > > or minutes. All three values will be settable. > > > > Anyone have any other ideas/suggestions for me? Like I said, this plug= in is more in > > the concept stage (I have more pencil sketches than actual code)...so I= 'm open to > > ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > -- > Bertrand Lorentz > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE > +THmUT47WTYvpwVUSC5JFA0=3D > =3DZY2f > -----END PGP SIGNATURE----- > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > How about a UI element that gives you a countdown clock for either the sleep timer or the time until the alarm goes off? From bertrand.lorentz@free.fr Sat Apr 8 04:08:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22A743B0467 for ; Sat, 8 Apr 2006 04:08:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20914-10 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 7B7D03B0447 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 661C273184 for ; Sat, 8 Apr 2006 10:08:09 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FnO6LSDuTF7Rtiurrljp" Date: Sat, 08 Apr 2006 10:08:08 +0200 Message-Id: <1144483688.517.69.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 08:08:14 -0000 --=-FnO6LSDuTF7Rtiurrljp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 15:10 -0700, Byron Poland wrote: > On 4/7/06, Bertrand Lorentz wrote: > > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > > Hey folks, > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clo= ck plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating efforts = :) > > > > Hi, > > > > I've been working on something similar. I'm trying to replicate the > > features from the xmms-alarm plugin for XMMS and beep media player. > > I've got some working code, but it still needs some work. > > I'm still waking up with beep media player... > > > > > Features I'm working on: > > > > > > Sleep timer: > > > * ability to set a timer that when it's up, will pause playback. Gr= eat for when > > > you're loving your tunes but don't want to hear them ALL night. > > > > > > Alarm timer: > > > * will start playback at the given time. > > > * "recur" option - if enabled, will set the timer again for the next= day at that same > > > time. > > > * volume setting - will change the volume to a certain level before = playing. This way > > > you don't have to set it before you go to sleep. > > > > > > Future ideas: > > > * sleep timer - make it so it fades out the song, or stops at the en= d of the song > > > rather than just pausing in the middle of it. > > > * alarm timer - volume change will be gradual. will set the volume = when the alarm > > > first goes off, and will gradually increase it to another value over = a span of seconds > > > or minutes. All three values will be settable. > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this pl= ugin is more in > > > the concept stage (I have more pencil sketches than actual code)...so= I'm open to > > > ideas :) > > > > What is working in my code : > > - Start playback at a given time > > - Set the volume before playing > > > > What is implemented but doesn't work > > - Gradually change the volume while playing over a period of time. > > The volume just gets stuck at the first value. > > > > The configuration options need some UI love. For now it's just a bunch > > of SpinButtons. > > > > Things I'd like to have : > > - Set different alarm times for each day of the week. I don't want to b= e > > waken up at 7am on a Sunday morning because I left banshee running... > > > > The sleep timer is a good idea, and should be easy to do once the alarm > > stuff is done. > > > > I planned to put the code out when I have a working plugin, but I'd be > > happy to share the code now. > > I just need to find a place to host it. (Looking towards the banshee > > subversion repository. If the admin is reading this... ;) > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > -- > > Bertrand Lorentz > > >=20 > How about a UI element that gives you a countdown clock for either the > sleep timer or the time until the alarm goes off? Good idea, I think knowing that I only have 5 hours of sleep left might help me to go to bed earlier... I think it would be better to have that UI element integrated in the banshee main window. I wonder how we can do that from a plugin... Has any plugin already done something similiar ? --=20 Bertrand Lorentz --=-FnO6LSDuTF7Rtiurrljp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEN29ob1pl4loRymARAtiCAJ45r7mnpYCxpkEzDi+ENe+moYUogwCcC4Ad wQ3UPPt1GLcwAxVNENdSiCU= =hBqc -----END PGP SIGNATURE----- --=-FnO6LSDuTF7Rtiurrljp-- From trick@vanstaveren.us Sat Apr 8 05:26:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA7E63B03D6 for ; Sat, 8 Apr 2006 05:26:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25286-08 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id BCD3C3B02A4 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FS9iM-0006r1-Br; Sat, 08 Apr 2006 02:26:43 -0700 Received: from d107097.dynamic.cmich.edu (d107097.dynamic.cmich.edu [141.209.107.97]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 08 Apr 2006 05:26:40 -0400 Message-ID: <20060408052640.s91dhph69ns4skgo@www.vanstaveren.us> Date: Sat, 08 Apr 2006 05:26:40 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Bertrand Lorentz Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.209.107.97 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 09:26:47 -0000 Bertrand, Glad to hear you've been working on this as well :) Could you maybe post the code here on banshee-list? It can't be too big...just post the main .cs file that you're using. I'll focus on getting the sleep timer to work, and if you want to post your code, we can wrap them together into a single plugin. I left Aaron a message and he can probably get us SVN access here soon. As for adding a UI element, I'm sure it's possible thru a plugin...look at what minimode has done thru a plugin - totally reshaped the UI. We'll keep this one in mind :) Great work! From the sound of it, you've already got the basics of a plugin ready...good work! If you're ever around irc, bug me (trick). Thanks for the suggestions everyone...i'm tired of my sleep timer'd bash scripts, I'm sure we'll have this plugin put together in no time :) If anyone has any more feature requests for this plugin, do post them! Cheers Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from bertrand.lorentz@free.fr --------- Date: Fri, 07 Apr 2006 21:46:44 +0200 From: Bertrand Lorentz Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock To: banshee-list@gnome.org > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: >> Hey folks, >> >> I've been starting to work on a new plugin for Banshee - an Alarm >> Clock plugin. Has >> anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > >> Features I'm working on: >> >> Sleep timer: >> * ability to set a timer that when it's up, will pause playback. >> Great for when >> you're loving your tunes but don't want to hear them ALL night. >> >> Alarm timer: >> * will start playback at the given time. >> * "recur" option - if enabled, will set the timer again for the >> next day at that same >> time. >> * volume setting - will change the volume to a certain level before >> playing. This way >> you don't have to set it before you go to sleep. >> >> Future ideas: >> * sleep timer - make it so it fades out the song, or stops at the >> end of the song >> rather than just pausing in the middle of it. >> * alarm timer - volume change will be gradual. will set the volume >> when the alarm >> first goes off, and will gradually increase it to another value over >> a span of seconds >> or minutes. All three values will be settable. >> >> Anyone have any other ideas/suggestions for me? Like I said, this >> plugin is more in >> the concept stage (I have more pencil sketches than actual >> code)...so I'm open to >> ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > >> Thanks all! >> >> Patrick >> >> (irc as trick) >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> > > > -- > Bertrand Lorentz > ----- End message from bertrand.lorentz@free.fr ----- From abockover@novell.com Sat Apr 8 23:59:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C165B3B0871 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10247-09 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from abock.org (aaronbock.net [67.18.92.43]) by menubar.gnome.org (Postfix) with ESMTP id 035F43B0879 for ; Sat, 8 Apr 2006 23:59:38 -0400 (EDT) Received: from [192.168.1.129] aaron [66.30.115.152] by abock.org with NetMail SMTP Agent $Revision: 1.7 $; Sat, 08 Apr 2006 23:59:38 -0400 Subject: Re: [Banshee-List] How's the podcast plugin coming? From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 07 Apr 2006 21:43:00 -0400 Message-Id: <1144460581.4437.20.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.384 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.384 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 03:59:39 -0000 I have been trying to get hold of Mike since the deadline he set for this past Monday. No announcements missed, and you're not alone in wondering what's going on ;) Cheers, Aaron On Fri, 2006-04-07 at 13:13 -0400, Josiah Ritchie wrote: > How is the podcast plugin coming? Mostly I'm asking to make sure I > didn't miss an announcement. :-) > > JSR/ > > -- > Our Mission > Technology and Hospitality for God's Workmen > http://missions.ritchietribe.net > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Sun Apr 9 07:50:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 869673B1C6C for ; Sun, 9 Apr 2006 07:50:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12857-10 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 79AAD3B1CA0 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so701841wra for ; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=GiQth52y+BSxy0cAWd35+7LObJofI2VpYKOnQq7/5rwCMO3cspbct93mnmMMM4HeTBiw+UJrskLN5fPUdmtaDeEXD/Z7BS3FUDrXKrCo7Odt6CuTU8dbE4FdQWIqI7OvbFWl01z3e4c7Uah2TMYjcUj5m4025kCbUrY3mQQch5k= Received: by 10.54.67.11 with SMTP id p11mr2420146wra; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 04:50:17 -0700 (PDT) Message-ID: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Date: Sun, 9 Apr 2006 12:50:17 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_476_30259549.1144583417871" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] [Patch] DAP UI Initialisation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 11:50:21 -0000 ------=_Part_476_30259549.1144583417871 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch fixes the issue with starting banshee with a mass storage dap plugged in. Rather than loading the track database during Initialisation of the dap class it is now delayed until the UI has been initialised, allowing the reading of the database to use the UI. Cheers, James. ------=_Part_476_30259549.1144583417871 Content-Type: plain/text; name=dap-ui-init.diff Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eltb0vif Content-Disposition: attachment; filename="dap-ui-init.diff" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.14 diff -u -r1.14 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 10 Mar 2006 17:25:12 -0000 1.14 +++ src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 11:34:18 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.12 diff -u -r1.12 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 13 Feb 2006 22:18:10 -0000 1.12 +++ src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 11:34:18 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.5 diff -u -r1.5 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Mar 2006 07:52:42 -0000 1.5 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 11:34:19 -0000 @@ -95,8 +95,6 @@ base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; @@ -110,7 +108,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 9 Apr 2006 11:34:19 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); ------=_Part_476_30259549.1144583417871-- From ruben@Lambda1.be Sun Apr 9 08:56:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4639F3B1D53 for ; Sun, 9 Apr 2006 08:56:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17300-10 for ; Sun, 9 Apr 2006 08:56:19 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 04FD33B1D3C for ; Sun, 9 Apr 2006 08:56:18 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k39CuGc07339 for ; Sun, 9 Apr 2006 14:56:16 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id E77EE4608DA; Sun, 9 Apr 2006 14:56:15 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 14:56:15 +0200 Message-Id: <1144587375.9734.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 12:56:26 -0000 On Sun, 2006-04-09 at 12:50 +0100, James Stembridge wrote: > Hi, > > Attached patch fixes the issue with starting banshee with a mass > storage dap plugged in. > > Rather than loading the track database during Initialisation of the > dap class it is now delayed until the UI has been initialised, > allowing the reading of the database to use the UI. Haven't tested it, but patch looks good at first sight. Don't forget to post it to the bugzilla, else it might get lost in the process. Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Sun Apr 9 09:01:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4C5F3B1D56 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17740-07 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.238]) by menubar.gnome.org (Postfix) with ESMTP id BC3863B1D53 for ; Sun, 9 Apr 2006 09:01:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so706599wra for ; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JqAtr2QRhcDuj5tSXTYg+XkTGr3BqO0PY9dowRSSsZDbG49B+loWQTfIp27FNE2WqMGyEYhhtIFf5Pv0itAehAD9pwv3NgvtOnIATFumbmd/b6CH8yTy0TrXadQjZaBsIS13XVdmZ07/rsZjVeTc7dFqRCUzB6Q+0HNn49/qobE= Received: by 10.54.140.6 with SMTP id n6mr2386636wrd; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 06:01:32 -0700 (PDT) Message-ID: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Date: Sun, 9 Apr 2006 14:01:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation In-Reply-To: <1144587375.9734.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:01:34 -0000 On 4/9/06, Ruben Vermeersch wrote: > Haven't tested it, but patch looks good at first sight. Don't forget to > post it to the bugzilla, else it might get lost in the process. Sure will do. What's the preference for posting patches? Mailing list, bugzilla or both? James. From ruben@Lambda1.be Sun Apr 9 09:17:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1A543B1D5F for ; Sun, 9 Apr 2006 09:17:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18512-07 for ; Sun, 9 Apr 2006 09:17:03 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id EAA603B1D68 for ; Sun, 9 Apr 2006 09:17:02 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k39DH0A32760 for ; Sun, 9 Apr 2006 15:17:01 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 681584608DA; Sun, 9 Apr 2006 15:16:58 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 15:16:58 +0200 Message-Id: <1144588618.11205.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.591 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:17:05 -0000 On Sun, 2006-04-09 at 14:01 +0100, James Stembridge wrote: > On 4/9/06, Ruben Vermeersch wrote: > > Haven't tested it, but patch looks good at first sight. Don't forget to > > post it to the bugzilla, else it might get lost in the process. > > Sure will do. What's the preference for posting patches? Mailing list, > bugzilla or both? There's no strict rules on that, but I'd like to give the advice of posting every patch to bugzilla, they can't get lost there. If your patch needs review / you'd like to get feedback, post them to the list too. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From trick@vanstaveren.us Mon Apr 10 05:29:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888E73B07B1 for ; Mon, 10 Apr 2006 05:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13794-04 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 2EBA53B09A6 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FSsiG-0002jh-0z for banshee-list@gnome.org; Mon, 10 Apr 2006 02:29:36 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Mon, 10 Apr 2006 05:29:35 -0400 Message-ID: <20060410052935.ugeratbs2mv4wosg@www.vanstaveren.us> Date: Mon, 10 Apr 2006 05:29:35 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.554 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_SV=0.077] X-Spam-Score: -2.554 X-Spam-Level: Subject: [Banshee-List] Alarm Plugin is in SVN X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 09:29:40 -0000 Howdy folks, I took Bertrand's working code for the alarm timer, and combined it with my sleep timer code and some scraps that I had written, and put it together in a single plugin. It's available on the banshee svn now...just run: svn co svn://svn.banshee-project.org/trunk/banshee-alarm-plugin. Please read the TODO and BUGS files - this plugin is far from complete, but it's a start :) Feel free to send suggestions for the TODO file ;) Please note - if you were using Bertrand's plugin previously, make sure to delete banshee-alarm.dll from your plugins directory. The new plugin renames the dll and I don't want you to find plugin loading failures b/c of duplicate class names... Please also note - if you have somewhere to be in the morning and you rely on this plugin to wake you up, and it fails to do so - don't blame us, just remember it's beta :) Many thanks to Bertrand for his original code! (Bertrand - if you want SVN access to make commits, all you have to do is ask Aaron :)) Cheers, Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From jstembridge@gmail.com Mon Apr 10 15:59:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2001A3B105D for ; Mon, 10 Apr 2006 15:59:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26219-07 for ; Mon, 10 Apr 2006 15:59:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 2FC9C3B11B4 for ; Mon, 10 Apr 2006 15:59:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so935140wra for ; Mon, 10 Apr 2006 12:59:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=s0DNfst2vdk+d7Z3d0Ek/C1x33uxQNOyGpIHMtDfgb+fh/4AEPH8Wxtw0phP/YM/aUW/R//V804HBKTiu7pD2mchoDv19u3bfSgkJAU9+jegCL7laCXJVSQ8VN6gJ7v0JbFfoX5no4Eul6pe1ESxql59OQlTRSMhK3XxnyNaxvE= Received: by 10.54.107.17 with SMTP id f17mr4274692wrc; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Message-ID: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> Date: Mon, 10 Apr 2006 20:59:29 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8480_21443799.1144699169761" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Mass storage status X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 19:59:41 -0000 ------=_Part_8480_21443799.1144699169761 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Just a heads up to anyone who's interested in mass storage dap support. Current cvs along with the following patches: http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 Is working very well for me here with a W800 walkman phone like I have here (fdi file is attached). If anyone else would like to give it a try I'd be interested to here how they got on. Cheers, James. ------=_Part_8480_21443799.1144699169761 Content-Type: application/octet-stream; name=10-sony-erricsson.fdi Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elv89uzs Content-Disposition: attachment; filename="10-sony-erricsson.fdi" portable_audio_player portable_audio_player generic storage MP3/%Artist/%Album/%Track MP3/ audio/mpeg audio/aac ------=_Part_8480_21443799.1144699169761-- From jstembridge@gmail.com Mon Apr 10 16:06:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1CE83B12A0 for ; Mon, 10 Apr 2006 16:06:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26899-07 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id ABA103B1291 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so936592wra for ; Mon, 10 Apr 2006 13:06:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SK+q7qEi1sk9WYCnqRVzfRFoQMAZRG9WMdSa1JIsCEBoYMkTuPCdgbBLDNUDIGnnZMlqWU3Mdq16Yw9xJixI13Hv9fFYm2EuP5V8LkapVhDI3pxLsCifeVoRgH33OPpFOHJ6WwbuY2jToK+TMG14GZY3ZZ2bk5W5qd3TuumakSk= Received: by 10.54.93.7 with SMTP id q7mr161599wrb; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Message-ID: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Date: Mon, 10 Apr 2006 21:06:35 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Last.fm plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:06:39 -0000 Hi, Second heads up for the evening. I thought I'd have a look at writing a Last.fm plugin, as mentioned on thethe feature request page. Is anyone else out there in internet land working on this? Cheers, James. From ruben@Lambda1.be Mon Apr 10 16:10:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5520E3B2608 for ; Mon, 10 Apr 2006 16:10:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27126-06 for ; Mon, 10 Apr 2006 16:10:57 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 794A73B1DA3 for ; Mon, 10 Apr 2006 16:10:56 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3AKAsA27572 for ; Mon, 10 Apr 2006 22:10:54 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 0EF2A4601E7; Mon, 10 Apr 2006 22:10:51 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Apr 2006 22:10:51 +0200 Message-Id: <1144699851.20263.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:11:00 -0000 On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > Hi, > > Second heads up for the evening. I thought I'd have a look at writing > a Last.fm plugin, as mentioned on thethe feature request page. Is > anyone else out there in internet land working on this? You might want to look into combining this with the internet radio plugin Sven is (was?) writing. Sven, if you're reading this, drop us a line. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From ml@cybernotic.org Mon Apr 10 16:59:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F7A13B28A0 for ; Mon, 10 Apr 2006 16:59:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31164-03 for ; Mon, 10 Apr 2006 16:59:56 -0400 (EDT) Received: from dd1622.kasserver.com (dd1622.kasserver.com [81.209.148.229]) by menubar.gnome.org (Postfix) with ESMTP id EDD483B28A4 for ; Mon, 10 Apr 2006 16:59:55 -0400 (EDT) Received: from [10.14.1.100] (port-212-202-36-218.dynamic.qsc.de [212.202.36.218]) by dd1622.kasserver.com (Postfix) with ESMTP id 689A9B6C41 for ; Mon, 10 Apr 2006 22:59:54 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Alexander Bubeck To: banshee-list@gnome.org In-Reply-To: <1144699851.20263.0.camel@localhost.localdomain> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 10 Apr 2006 22:59:53 +0200 Message-Id: <1144702793.5424.24.camel@matari> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:59:59 -0000 Hi, I started writing a internet radio plugin and got some running code already. After getting the tagging stuff to work I will post my code on the list. I didn't know somebody else was working on this, so I'm also interested in Sven's status. The last.fm radio stuff would also be good in the banshee-recommendation-plugin, where last.fm is used anyway. Cheers, Alex Am Montag, den 10.04.2006, 22:10 +0200 schrieb Ruben Vermeersch: > On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > > Hi, > > > > Second heads up for the evening. I thought I'd have a look at writing > > a Last.fm plugin, as mentioned on thethe feature request page. Is > > anyone else out there in internet land working on this? > > You might want to look into combining this with the internet radio > plugin Sven is (was?) writing. > > Sven, if you're reading this, drop us a line. > > Kind regards, > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From jasl8r@gmail.com Mon Apr 10 17:48:22 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41CB13B133B for ; Mon, 10 Apr 2006 17:48:22 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01333-02 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.236]) by menubar.gnome.org (Postfix) with ESMTP id 398133B1350 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so955949wra for ; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ittiZJO2GwhxY6dVhSMXnJ/x11UZcdh8+44UoW/IVFpWoEFTn5J084VylKePOz0kEjIV7fYBo75cNz4Fe5EQgWA6fUZ85b6XfwmEgZ8trAOJDKCCKlx90owILMNoU7xQQRSl9lwa3T3TY4CPDsEIy1CBlkx7KUnc5f4/3NFAJyo= Received: by 10.54.118.8 with SMTP id q8mr3440634wrc; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Received: by 10.54.125.12 with HTTP; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Message-ID: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> Date: Mon, 10 Apr 2006 17:48:19 -0400 From: "Jeremy Slater" To: "Banshee List" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_948_5761833.1144705699537" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.866 tagged_above=-999 required=2 tests=[AWL=-0.062, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.866 X-Spam-Level: Subject: [Banshee-List] Daap Startup Crash X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 21:48:22 -0000 ------=_Part_948_5761833.1144705699537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an accessible daap share on my network. If I stop the avahi service, then banshee starts just fine. I am running 10.9 and I noticed that this was supposedly a fixed issue in 10.7. I was wondering if anyone else is having this problem or if there is an available patch. Jeremy ------=_Part_948_5761833.1144705699537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy ------=_Part_948_5761833.1144705699537-- From mattvermeulen@gmail.com Mon Apr 10 18:13:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 92C9E3B127C for ; Mon, 10 Apr 2006 18:13:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03202-01 for ; Mon, 10 Apr 2006 18:13:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id DBD8A3B12F4 for ; Mon, 10 Apr 2006 18:13:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1132104pyu for ; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g8KkZ+Yv2U8Yie3YRgyVertpcIzH/wVU9izkrhGj6IDHPwZqxljmIAdLTMG8UPmB8Wjk0iOseUYOKd8Hx6ZEwUlPP3AsAgTWluuo6UEbZe2UsV/HPxaZMBvwn3xjeL9N9Y3aU5dYD9pG93X8VJa4IO57ZL+WWO6WqI3zdoFGjX4= Received: by 10.35.22.17 with SMTP id z17mr1610827pyi; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Message-ID: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> Date: Tue, 11 Apr 2006 06:13:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13667_22538061.1144707223075" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.225 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.225 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 22:13:48 -0000 ------=_Part_13667_22538061.1144707223075 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Lexar Jumpdrive Sport, which is just a generic sort of usb memory stick, an= d I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi to detect the drive as a music device, which it does. However, as best as I ca= n tell, MassStorageDap fails when it gets to if (volume =3D=3D null) and dr= ops out. As of date, I have not been able to get the device showing up in banshee... On 4/11/06, James Stembridge wrote: > > Hi, > > Just a heads up to anyone who's interested in mass storage dap > support. Current cvs along with the following patches: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 > > Is working very well for me here with a W800 walkman phone like I have > here (fdi file is attached). If anyone else would like to give it a > try I'd be interested to here how they got on. > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_13667_22538061.1144707223075 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Le= xar Jumpdrive Sport, which is just a generic sort of usb memory stick, and = I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freed= esktop/10- usb-music-players.fdi to detect the drive as a music device, which it does.= However, as best as I can tell, MassStorageDap fails when it gets to =   if (volume =3D=3D null) and drops out. As of date, I have not been a= ble to get the device showing up in banshee...

On 4/11/06, James Stembridge <j= stembridge@gmail.com> wrote:
Hi,

Just a heads up to anyone who's interested in mass storage dapsupport. Current cvs along with the following patches:

http://bugzilla.gnome.o= rg/show_bug.cgi?id=3D337829
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337808
http://bugzilla.gnome.org/show_bu= g.cgi?id=3D337807
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337800

Is working very w= ell for me here with a W800 walkman phone like I have
here (fdi file is = attached). If anyone else would like to give it a
try I'd be interested to here how they got on.

Cheers,
James.=


_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_13667_22538061.1144707223075-- From kmf@fischer.org.za Tue Apr 11 05:45:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 024E93B2A6B for ; Tue, 11 Apr 2006 05:45:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04886-10 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from water.securenet-server.net (water.securenet-server.net [65.254.38.146]) by menubar.gnome.org (Postfix) with ESMTP id 315ED3B29F7 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from [196.25.70.97] (helo=[10.50.130.37]) by water.securenet-server.net with esmtp (Exim 4.52) id 1FTFRE-00018F-DQ for banshee-list@gnome.org; Tue, 11 Apr 2006 05:45:36 -0400 From: Karl Fischer To: banshee-list@gnome.org Content-Type: text/plain Date: Tue, 11 Apr 2006 11:44:53 +0200 Message-Id: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - water.securenet-server.net X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - fischer.org.za X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.181 tagged_above=-999 required=2 tests=[AWL=0.418, BAYES_00=-2.599] X-Spam-Score: -2.181 X-Spam-Level: Subject: [Banshee-List] Bounties Page X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, kmf@fischer.org.za List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 09:45:40 -0000 Hi There, Perhaps we should have a Bounties Page for Plugins and Features ? Karl -- ----------------------------------------- Karl Fischer Drone, Human and Gnome User I support 10x10. Email : kmf@fischer.org.za Jabber : kmf@jabber.org Personal Site : http://fischer.org.za ----------------------------------------- From pascalhos@gmail.com Tue Apr 11 06:53:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C7543B152E for ; Tue, 11 Apr 2006 06:53:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08835-05 for ; Tue, 11 Apr 2006 06:53:19 -0400 (EDT) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id DC9C93B151D for ; Tue, 11 Apr 2006 06:53:18 -0400 (EDT) Received: by uproxy.gmail.com with SMTP id y2so706681uge for ; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kxFIlGJhMicRvYReZBHwGSaC4Tjb3u2XW7WqlIog4S0SX3Jt5Ml4+7ZX6bx9kl9w1eGmM/z+W9iJ9IRwQEP1UF1IfHP1w/7jhQbh7hD6D3CubgjLPm2eMuE2l/XEJ5JNXaoODOTt33KcSFgvWJlOCIlPeJsR+oOIFNmB+FHqC00= Received: by 10.78.31.18 with SMTP id e18mr85801hue; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Received: by 10.78.27.3 with HTTP; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Message-ID: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> Date: Tue, 11 Apr 2006 12:53:11 +0200 From: "Pascal Hos" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3279_10417146.1144752791716" References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.907 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.907 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 10:53:20 -0000 ------=_Part_3279_10417146.1144752791716 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy, I'm experiencing the same problem running up-to-date ubuntu Dapper. This bu= g has been reported: http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 Pascal On 4/10/06, Jeremy Slater wrote: > > Hi, Banshee crashes for me whenever I start with daap enabled and have an > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is > having this problem or if there is an available patch. > > Jeremy > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_3279_10417146.1144752791716 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy,

I'm experiencing the same problem running up-to-date ubun= tu Dapper. This bug has been reported:

http://bugzilla.gnome.org/show_bug.cgi?id= =3D334174
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D334980

Pascal

On 4/10/06, Jer= emy Slater <jasl8r@gmail.com> wrote= :
Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy

_______________________________________________
Banshee= -list mailing list
Banshee-list@gnome.org http://mail= .gnome.org/mailman/listinfo/banshee-list


=
------=_Part_3279_10417146.1144752791716-- From sjoeboo@sjoeboo.com Tue Apr 11 08:33:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40B0D3B2AF7 for ; Tue, 11 Apr 2006 08:33:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14652-08 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 807533B2AD8 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: by skywalker.sjoeboo.com (Postfix, from userid 1000) id CD2A110DB3; Tue, 11 Apr 2006 08:32:57 -0400 (EDT) Date: Tue, 11 Apr 2006 08:32:57 -0400 To: banshee-list@gnome.org, kmf@fischer.org.za Subject: Re: [Banshee-List] Bounties Page Message-ID: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1144748693.8278.8.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i From: sjoeboo@sjoeboo.com (matt nicholson) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.432 tagged_above=-999 required=2 tests=[AWL=1.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.432 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 12:33:42 -0000 I second this. even if its not $$ based. I really liked what aaron did before with the mini-mode etc, to help people learn and get some new features in there. as soon as school calm down i would love to get involved like this. matt nicholson On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > Hi There, > > Perhaps we should have a Bounties Page > for Plugins and Features ? > > Karl > -- > ----------------------------------------- > Karl Fischer > Drone, Human and Gnome User > I support 10x10. > Email : kmf@fischer.org.za > Jabber : kmf@jabber.org > Personal Site : http://fischer.org.za > ----------------------------------------- > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From josiah.ritchie@gmail.com Tue Apr 11 09:32:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 99B413B20A2 for ; Tue, 11 Apr 2006 09:32:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18795-07 for ; Tue, 11 Apr 2006 09:32:56 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 0A76B3B1CE2 for ; Tue, 11 Apr 2006 09:32:55 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so1780985nzf for ; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rt142c9kVFVPmZiQJNR/Z08Qm9aKXzvPSznKGTfNBKDYUI9RaVO8i6t3JV7vcO4VxYq8JiD7pPsUh+2nVaoKM6/1nGol5gp3QgHuwBWFAZZIowSxu3QjIJkrKlQ3tIMK6CJviL78uT+qiCjrKIaO9Wg0Un7M53uAXbadhkmozLE= Received: by 10.37.18.76 with SMTP id v76mr5394264nzi; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Tue, 11 Apr 2006 06:32:54 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 09:32:54 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.111, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.489 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:32:57 -0000 I've also duplicated these problem on a Dapper machine. JSR/ On 4/11/06, Pascal Hos wrote: > Hi Jeremy, > > I'm experiencing the same problem running up-to-date ubuntu Dapper. This = bug > has been reported: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 > http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 > > Pascal > > > On 4/10/06, Jeremy Slater wrote: > > > > Hi, Banshee crashes for me whenever I start with daap enabled and have a= n > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is havi= ng > this problem or if there is an available patch. > > Jeremy > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From ruben@Lambda1.be Tue Apr 11 09:36:43 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB303B2B56 for ; Tue, 11 Apr 2006 09:36:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19069-02 for ; Tue, 11 Apr 2006 09:36:39 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 0967B3B1CE2 for ; Tue, 11 Apr 2006 09:36:38 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3BDaXA04673; Tue, 11 Apr 2006 15:36:33 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 697BA674002; Tue, 11 Apr 2006 15:36:32 +0200 (CEST) Subject: Re: [Banshee-List] Bounties Page From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> <20060411123257.GA1092@sjoeboo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Apr 2006 15:36:31 +0200 Message-Id: <1144762592.9646.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: oola 2020; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:36:43 -0000 For those interested: I'm working on getting a task list up, a place where can be tracked who does what and where new tasks can be found, implementation ideas etc. So, there's being worked on something, no worries :-). On Tue, 2006-04-11 at 08:32 -0400, matt nicholson wrote: > I second this. even if its not $$ based. I really liked what aaron did > before with the mini-mode etc, to help people learn and get some new > features in there. as soon as school calm down i would love to get > involved like this. > > matt nicholson > > On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > > Hi There, > > > > Perhaps we should have a Bounties Page > > for Plugins and Features ? > > > > Karl > > -- > > ----------------------------------------- > > Karl Fischer > > Drone, Human and Gnome User > > I support 10x10. > > Email : kmf@fischer.org.za > > Jabber : kmf@jabber.org > > Personal Site : http://fischer.org.za > > ----------------------------------------- > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Tue Apr 11 13:30:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A496D3B11D0 for ; Tue, 11 Apr 2006 13:30:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03796-03 for ; Tue, 11 Apr 2006 13:30:48 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.231]) by menubar.gnome.org (Postfix) with ESMTP id E31EE3B1379 for ; Tue, 11 Apr 2006 13:30:47 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i13so1011076wra for ; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l8YbnCfFIb8XQhC+8J8a8tSu7hhWQiRn9SVV3b4cow/NdkUcf+790wlSIEynNcYVTv8tz02dhSlCtmCX2axhRSmVw5odCvsRKMo5ARUwjziQxDf9FRwJbumvgBBUKbe/vccVV4K3JJhoiOMgyEdSf5qInxuNmoz4DTEadaftm/0= Received: by 10.54.72.15 with SMTP id u15mr583413wra; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Message-ID: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> Date: Tue, 11 Apr 2006 18:30:46 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 17:30:56 -0000 Hi Matt, On 4/10/06, Matthew Vermeulen wrote: > I modified > /usr/share/hal/fdi/information/10freedesktop/10- > usb-music-players.fdi to detect the drive as a music device, which it doe= s. > However, as best as I can tell, MassStorageDap fails when it gets to if > (volume =3D=3D null) and drops out. Could you send me the output of "hal-device"? Cheers, James. From lukas@pmad.net Tue Apr 11 16:04:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CEA33B16F3 for ; Tue, 11 Apr 2006 16:04:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13163-03 for ; Tue, 11 Apr 2006 16:04:02 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 15E943B157C for ; Tue, 11 Apr 2006 16:04:00 -0400 (EDT) Received: (qmail 23753 invoked by uid 503); 11 Apr 2006 20:04:07 -0000 Received: (QMFILT: 1.0); 11 Apr 2006 20:04:07 -0000 Received: from b7.ovh.net (HELO mail142.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 11 Apr 2006 20:04:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:04:00 -0000 Received: from mail142.ha.ovh.net (10.0.50.142) by mail142.ha.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from adsl-d43.87-197-139.telecom.sk (HELO ?192.168.0.23?) (87.197.139.43) by ns0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-IVjwuGPDymRq+8gE2l0b" Date: Tue, 11 Apr 2006 22:03:47 +0200 Message-Id: <1144785828.5055.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.139.43 (adsl-d43.87-197-139.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.705 tagged_above=-999 required=2 tests=[AWL=-0.664, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.705 X-Spam-Level: Subject: [Banshee-List] Child sources patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 20:04:14 -0000 --=-IVjwuGPDymRq+8gE2l0b Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, Attached is a patch which adds support for child sources in Banshee. This means that all your playlists should now appear as children of the library source. This is our first small step to full DAP playlist support. Please test the code thoroughly, but I wasn't able to trigger any issues. Have fun! Lukas --=-IVjwuGPDymRq+8gE2l0b Content-Disposition: attachment; filename=banshee-childsource-0.2.patch Content-Type: text/x-patch; name=banshee-childsource-0.2.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlayerInterface.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 11 Apr 2006 20:02:17 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 11 Apr 2006 20:02:26 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 11 Apr 2006 20:02:30 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 11 Apr 2006 20:02:30 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 11 Apr 2006 20:02:36 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 11 Apr 2006 20:02:36 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 11 Apr 2006 20:02:36 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 11 Apr 2006 20:02:42 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-IVjwuGPDymRq+8gE2l0b-- From mattvermeulen@gmail.com Tue Apr 11 17:57:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54AB3B2F29 for ; Tue, 11 Apr 2006 17:57:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20312-01 for ; Tue, 11 Apr 2006 17:57:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id A7A043B2F15 for ; Tue, 11 Apr 2006 17:57:31 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1424418pyu for ; Tue, 11 Apr 2006 14:57:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VR01K87bXnURQrrO+NiDPLkx/hcTfWNtLzBWQz6CPALF9vig5ZwSf0ixstGZ1lAXbJRS0exGILJofWuLDMJFRQgY/ijdJLpewgM9/0vVFuQsym7mw/6TCJxyfP1jLK2aYXGEokybqVTPcdDlaWNJJ5ZU0AgJ3c6wuQv3UlwSJog= Received: by 10.35.36.13 with SMTP id o13mr669714pyj; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Message-ID: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> Date: Wed, 12 Apr 2006 05:57:30 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15061_30686339.1144792650909" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.412 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 21:57:47 -0000 ------=_Part_15061_30686339.1144792650909 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James... Thanks for the reply... Below is the output of hal-device hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdrive: udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' volume.unmount.valid_options =3D { 'lazy' } (string list) volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'iocharset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list= ) org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject' } (string list) org.freedesktop.Hal.Device.Volume.method_signatures =3D { 'ssas', 'as', '= as' } (string list) org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'Unmount', 'Eject' } (string list) info.interfaces =3D { 'org.freedesktop.Hal.Device.Volume' } (string list) volume.ignore =3D false (bool) volume.policy.desired_mount_point =3D 'MATTHEW' (string) volume.policy.mount_filesystem =3D 'vfat' (string) volume.policy.should_mount =3D true (bool) volume.policy.mount_option.quiet =3D true (bool) volume.policy.mount_option.iocharset=3Dutf8 =3D true (bool) info.udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' (string= ) volume.partition.msdos_part_table_type =3D 4 (0x4) (int) info.product =3D 'MATTHEW' (string) volume.size =3D 259506176 (0xf77c000) (uint64) volume.num_blocks =3D 506848 (0x7bbe0) (int) volume.block_size =3D 512 (0x200) (int) volume.partition.number =3D 1 (0x1) (int) info.capabilities =3D { 'volume', 'block' } (string list) info.category =3D 'volume' (string) volume.is_partition =3D true (bool) volume.is_disc =3D false (bool) volume.is_mounted =3D true (bool) volume.mount_point =3D '/media/MATTHEW' (string) volume.label =3D 'MATTHEW' (string) volume.uuid =3D '' (string) volume.fsversion =3D 'FAT16' (string) volume.fsusage =3D 'filesystem' (string) volume.fstype =3D 'vfat' (string) storage.model =3D '' (string) block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) block.is_volume =3D true (bool) block.minor =3D 1 (0x1) (int) block.major =3D 8 (0x8) (int) block.device =3D '/dev/sda1' (string) linux.hotplug_type =3D 3 (0x3) (int) info.parent =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) linux.sysfs_path_device =3D '/sys/block/sda/sda1' (string) linux.sysfs_path =3D '/sys/block/sda/sda1' (string) Thanks a lot Matt On 4/12/06, James Stembridge wrote: > > Hi Matt, > > On 4/10/06, Matthew Vermeulen wrote: > > I modified > > /usr/share/hal/fdi/information/10freedesktop/10- > > usb-music-players.fdi to detect the drive as a music device, which it > does. > > However, as best as I can tell, MassStorageDap fails when it gets to > if > > (volume =3D=3D null) and drops out. > > Could you send me the output of "hal-device"? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_15061_30686339.1144792650909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James...

Thanks for the reply... Below is the output of hal-devic= e hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdri= ve:

udi =3D '/org/freedesktop/Hal/= devices/volume_label_MATTHEW'
  volume.unmount.valid_options =3D { 'lazy' } (string list)
&nb= sp; volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'n= odiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'ioch= arset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-sy= stem-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-ejec= t' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signa= tures =3D { 'ssas', 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'U= nmount', 'Eject' } (string list)
  info.interfaces =3D { 'org.freed= esktop.Hal.Device.Volume' } (string list)
  volume.ignore =3D false=   (bool)
  volume.policy.desired_mount_point =3D 'MATTHEW'  (string)
  volume.policy.mount_filesystem =3D = 'vfat'  (string)
  volume.policy.should_mount =3D true  (= bool)
  volume.policy.mount_option.quiet =3D true  (bool)
&= nbsp; volume.policy.mount_option.iocharset=3Dutf8 =3D true  (bool)
  info.udi =3D '/org/freedesktop/Hal/devices= /volume_label_MATTHEW'  (string)
  volume.partition.msdos_part= _table_type =3D 4  (0x4)  (int)
  info.product =3D 'MATTH= EW'  (string)
  volume.size =3D 259506176  (0xf77c000)&nb= sp; (uint64)
  volume.num_blocks =3D 506848  (0x7bbe0)  (int)
&nbs= p; volume.block_size =3D 512  (0x200)  (int)
  volume.par= tition.number =3D 1  (0x1)  (int)
  info.capabilities =3D= { 'volume', 'block' } (string list)
  info.category =3D 'volume'  (string)
  volume.is_partition =3D true  (= bool)
  volume.is_disc =3D false  (bool)
  volume.is_m= ounted =3D true  (bool)
  volume.mount_point =3D '/media/MATTH= EW'  (string)
  volume.label =3D 'MATTHEW'  (string)
  volume.uuid =3D ''  (string)
  volume.fsversion =3D= 'FAT16'  (string)
  volume.fsusage =3D 'filesystem'  (st= ring)
  volume.fstype =3D 'vfat'  (string)
  storage.m= odel =3D ''  (string)
  block.storage_device =3D '/org/freedes= ktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702165336021204'=   (string)
  block.is_volume =3D true  (bool)
  block.minor =3D = 1  (0x1)  (int)
  block.major =3D 8  (0x8)  (in= t)
  block.device =3D '/dev/sda1'  (string)
  linux.ho= tplug_type =3D 3  (0x3)  (int)
  info.parent =3D '/org/fr= eedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E970216533602= 1204'  (string)
  linux.sysfs_path_device =3D '/sys/block/sda/sda1'  (string)=
  linux.sysfs_path =3D '/sys/block/sda/sda1'  (string)
Thanks a lot

Matt

On = 4/12/06, James Stembridge <jstembrid= ge@gmail.com> wrote:
Hi Matt,

On 4/10/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> I modified=
> /usr/share/hal/fdi/information/10freedesktop/10-
> usb-music= -players.fdi to detect the drive as a music device, which it does.
> However, as = best as I can tell, MassStorageDap fails when it gets to   if
= > (volume =3D=3D null) and drops out.

Could you send me the outpu= t of "hal-device"?

Cheers,
James.
______________________________________________= _
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_15061_30686339.1144792650909-- From jstembridge@gmail.com Wed Apr 12 06:06:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 104C93B0213 for ; Wed, 12 Apr 2006 06:06:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24581-02 for ; Wed, 12 Apr 2006 06:06:45 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id E2B9B3B0296 for ; Wed, 12 Apr 2006 06:06:42 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1126777wri for ; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e3ur1RGd1Sp4hQglWV7vzQjPDyupukbQppYPjpE/RXgiGHvH8LcIhZCAOOT+/SesuWaACWQTryBmOvm4utytcGz/w9tQ6aQfpLa8pihGzRZdSnUTXM5GbL+jhcgrEhqeX6iPyuuyJYEE9/5ntKoZLVM7NscWpwVz26/OckxLprY= Received: by 10.54.127.4 with SMTP id z4mr3057212wrc; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Message-ID: <18bc366d0604120306x65e49490y9a199c653b778089@mail.gmail.com> Date: Wed, 12 Apr 2006 11:06:42 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 10:06:52 -0000 Hi Matthew, On 4/11/06, Matthew Vermeulen wrote: > Thanks for the reply... Below is the output of hal-device hal-device > /org/freedesktop/Hal/devices/volume_label_MATTHEW , my > Jumpdrive: ... Could you send me the complete output (off-list if necessary), there should be several entries for the device and I can't see where you've added the portable audio player entries. Cheers, James. From jstembridge@gmail.com Wed Apr 12 09:25:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8943B3B01DE for ; Wed, 12 Apr 2006 09:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03287-05 for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 235113B010B for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1158581wri for ; Wed, 12 Apr 2006 06:25:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XmmxOQn1meWr/qjgsGauJ2zH4ml9fvo/asp04NJvH3WDjPt/qIdgegpfXUv9m02N8sUKuOf2N/YQXP869N+BufIMU9OCklnXSsyQ8RQQyJS7RaAL1vmbJO5KKT4y9uPz4Dn4mGklGwj6oulUCaDpOmRV+IcVdASPxdAvSa5ISD0= Received: by 10.54.144.17 with SMTP id r17mr4731297wrd; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Message-ID: <18bc366d0604120625u4e185342v459fd41f6408a329@mail.gmail.com> Date: Wed, 12 Apr 2006 14:25:55 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Last.fm plugin In-Reply-To: <1144702793.5424.24.camel@matari> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> <1144702793.5424.24.camel@matari> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 13:25:57 -0000 Hi Alex, On 4/10/06, Alexander Bubeck wrote: > I started writing a internet radio plugin and got some running code > already. After getting the tagging stuff to work I will post my code on > the list. I didn't know somebody else was working on this, so I'm also > interested in Sven's status. I appreciate it's not finished but I'd be interested to see your code anyway, there are some issues, particularly on the interface side of things, that I'd like to see your take on. Cheers, James. From gabriel.burt@gmail.com Wed Apr 12 13:27:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 093373B056C for ; Wed, 12 Apr 2006 13:27:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19072-02 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 4B31A3B0446 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1650379pyu for ; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XlDQEtKFQfZEVxerDwX5wsNV8W/w4LckM9PTtVArA1Q9ysl4A6TwDrTrXW71WoXbFxrHf8Vjv0+OMu/kReYihmudkDDRc46CTdF077Oq4q7gvfiUwmANXZU2xaDehW6/wxT3sCGLtELcKPXidwpWlnVJx9aCwgaoc5mQKdg1eSY= Received: by 10.35.121.2 with SMTP id y2mr263685pym; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Message-ID: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Date: Wed, 12 Apr 2006 12:27:32 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.074 tagged_above=-999 required=2 tests=[AWL=0.302, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.074 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:27:35 -0000 T24gNC8xMC8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBKdXN0IGEgaGVhZHMgdXAgdG8gYW55b25lIHdobydzIGludGVyZXN0ZWQgaW4gbWFzcyBz dG9yYWdlIGRhcAo+IHN1cHBvcnQuIEN1cnJlbnQgY3ZzIGFsb25nIHdpdGggdGhlIGZvbGxvd2lu ZyBwYXRjaGVzOgo+Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9 MzM3ODI5Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA4 Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA3Cj4gaHR0 cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODAwCj4KPiBJcyB3b3Jr aW5nIHZlcnkgd2VsbCBmb3IgbWUgaGVyZSB3aXRoIGEgVzgwMCB3YWxrbWFuIHBob25lIGxpa2Ug SSBoYXZlCj4gaGVyZSAoZmRpIGZpbGUgaXMgYXR0YWNoZWQpLiBJZiBhbnlvbmUgZWxzZSB3b3Vs ZCBsaWtlIHRvIGdpdmUgaXQgYQo+IHRyeSBJJ2QgYmUgaW50ZXJlc3RlZCB0byBoZXJlIGhvdyB0 aGV5IGdvdCBvbi4KCkhpIEphbWVzLAoKVGhhbmtzIGZvciBhbGwgdGhlIHBhdGNoZXMsIHRoZXkg bG9vayBncmVhdC4gIEkgaGF2ZSBhIGZhaXJseSBsYXJnZQpwYXRjaCB0aGF0IHJlcXVpcmVzIHNv bWUgYmFuc2hlZSBjb3JlIGNoYW5nZXMgc28gQWFyb24ncyBob2xkaW5nIG9mZgpvbiBpdC4gIEds YWQgdG8ga25vdyB0aGUgY29kZSBpdCBiZWluZyB1c2VkLiAgSSdsbCB0cnkgdG8gcmVjb25jaWxl CnlvdXIgcGF0Y2hlcyBhbmQgbWluZSBhbmQgZ2V0IHRoZW0gaW4gc29vbi4KCkdhYnJpZWwK From ruben@Lambda1.be Wed Apr 12 13:48:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1DD63B034C for ; Wed, 12 Apr 2006 13:48:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20051-08 for ; Wed, 12 Apr 2006 13:48:43 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 752DB3B0528 for ; Wed, 12 Apr 2006 13:48:42 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k3CHmdc29742 for ; Wed, 12 Apr 2006 19:48:39 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 79029460327; Wed, 12 Apr 2006 19:48:39 +0200 (CEST) Subject: Re: [Banshee-List] Mass storage status From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Apr 2006 19:48:38 +0200 Message-Id: <1144864119.19810.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:48:45 -0000 On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > On 4/10/06, James Stembridge wrote: > > Just a heads up to anyone who's interested in mass storage dap > > support. Current cvs along with the following patches: > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > Is working very well for me here with a W800 walkman phone like I have > > here (fdi file is attached). If anyone else would like to give it a > > try I'd be interested to here how they got on. > > Hi James, > > Thanks for all the patches, they look great. I have a fairly large > patch that requires some banshee core changes so Aaron's holding off > on it. Glad to know the code it being used. I'll try to reconcile > your patches and mine and get them in soon. If I might be curious for a second: which patch? :-) Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From abockover@novell.com Wed Apr 12 14:05:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57E4D3B056C for ; Wed, 12 Apr 2006 14:05:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20984-07 for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 3E3FB3B051E for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: (qmail 5748 invoked from network); 12 Apr 2006 18:05:54 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 12 Apr 2006 18:05:54 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144864119.19810.0.camel@localhost.localdomain> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 12 Apr 2006 14:02:15 -0400 Message-Id: <1144864935.5048.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 18:05:56 -0000 Gabreil, Would you gather all the necessary patches for the Mass Storage DAP stuff, make sure they're A-OK, and generate a single patch against HEAD? The core stuff can go in now, pending review, since I have branched for stable. Cheers, Aaron On Wed, 2006-04-12 at 19:48 +0200, Ruben Vermeersch wrote: > On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > > On 4/10/06, James Stembridge wrote: > > > Just a heads up to anyone who's interested in mass storage dap > > > support. Current cvs along with the following patches: > > > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > > > Is working very well for me here with a W800 walkman phone like I have > > > here (fdi file is attached). If anyone else would like to give it a > > > try I'd be interested to here how they got on. > > > > Hi James, > > > > Thanks for all the patches, they look great. I have a fairly large > > patch that requires some banshee core changes so Aaron's holding off > > on it. Glad to know the code it being used. I'll try to reconcile > > your patches and mine and get them in soon. > > > If I might be curious for a second: which patch? :-) > > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gabriel.burt@gmail.com Wed Apr 12 17:59:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3814E3B0E31 for ; Wed, 12 Apr 2006 17:59:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01817-01 for ; Wed, 12 Apr 2006 17:59:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 537023B0EFB for ; Wed, 12 Apr 2006 17:59:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1707002pyu for ; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YCsW8yAO/2spjRUQxqwvRyuLr1rm74Jde6NEpl8xWljqYOIgRVim8RjaBbWeX64LuYd/SjeTvBSoRxp86J8ad4Z6iFFq8qoJRrxQB5wBgxpttHKilIumjP5OsW70hJYa+8XX2lZnJJDTI5kccsr/3UNTWYwccVSgFE4qSXdCAQc= Received: by 10.35.119.11 with SMTP id w11mr587857pym; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Message-ID: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Date: Wed, 12 Apr 2006 16:59:11 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <1144864935.5048.1.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.1 tagged_above=-999 required=2 tests=[AWL=0.276, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.1 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 21:59:16 -0000 T24gNC8xMi8wNiwgQWFyb24gQm9ja292ZXIgPGFib2Nrb3ZlckBub3ZlbGwuY29tPiB3cm90ZToK PiBXb3VsZCB5b3UgZ2F0aGVyIGFsbCB0aGUgbmVjZXNzYXJ5IHBhdGNoZXMgZm9yIHRoZSBNYXNz IFN0b3JhZ2UgREFQCj4gc3R1ZmYsIG1ha2Ugc3VyZSB0aGV5J3JlIEEtT0ssIGFuZCBnZW5lcmF0 ZSBhIHNpbmdsZSBwYXRjaCBhZ2FpbnN0IEhFQUQ/Cj4gVGhlIGNvcmUgc3R1ZmYgY2FuIGdvIGlu IG5vdywgcGVuZGluZyByZXZpZXcsIHNpbmNlIEkgaGF2ZSBicmFuY2hlZCBmb3IKPiBzdGFibGUu CgpDZXJ0YWlubHkuICBJIHdvbid0IGJlIGFibGUgdG8gZ2V0IHRvIGl0IHVudGlsIEZyaWRheSB0 aG91Z2ggYmVjYXVzZQpvZiBhIG1pc3VuZGVyc3RhbmRpbmcgd2l0aCBHcmV5aG91bmQgdGhhdCBy ZXN1bHRlZCBpbiBteSBwb3dlciBjb3JkCmZvciBteSBsYXB0b3AgYmVpbmcgYSBmZXcgaHVuZHJl ZCBtaWxlcyBhd2F5LgoKR2FicmllbAo= From jstembridge@gmail.com Thu Apr 13 08:43:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E9E93B163B for ; Thu, 13 Apr 2006 08:43:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10921-05 for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.239]) by menubar.gnome.org (Postfix) with ESMTP id 4B1D33B15AB for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so83079wra for ; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kEQ0bn1jx1ewzLZLtWurxOx2MkTYtwK1SdYK0wKwBoU45j8EQUbOWX9h4qkxU7qWFkM3ddW3SzYX5lMdCUBWF4PH8kAAkVbhaW5XN8E2GVNQvo7soI+M7ltPb6gBCJHoCWhBgybhoxSb7/iinFKIcw2gO92fRsAmOz76ELFG0W8= Received: by 10.54.152.15 with SMTP id z15mr400592wrd; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Message-ID: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Date: Thu, 13 Apr 2006 13:43:39 +0100 From: "James Stembridge" To: banshee-list@gnome.org In-Reply-To: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10521_10354496.1144932219681" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Mass Storage Support X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 12:43:41 -0000 ------=_Part_10521_10354496.1144932219681 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Matthew, On 4/12/06, Matthew Vermeulen wrote: > I've attached the complete output of hal-device.. Thanks, it looks roughly equivalent to what I have here. Bit of a long shot, but could you try the attached patch? Cheers, James. ------=_Part_10521_10354496.1144932219681 Content-Type: text/x-patch; name=mass_storage_device.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elz32c4q Content-Disposition: attachment; filename="mass_storage_device.patch" Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 12:38:55 -0000 @@ -79,7 +79,7 @@ return InitializeResult.WaitForPropertyChange; - string block_device = volume_device ["block_device"]; + string block_device = volume_device ["block.device"]; foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { if (vol.DevicePath == block_device) { this.volume = vol; ------=_Part_10521_10354496.1144932219681-- From mattvermeulen@gmail.com Thu Apr 13 09:11:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D73F3B352E for ; Thu, 13 Apr 2006 09:11:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-10 for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 454BD3B182A for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1854022pyu for ; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BbMQ484Nstn6cGrBJFxa6THi870R5d3gI871EFbSqHil+3i39MIAk/cB9Kx8sKJ1Zgt0RkXHmj9uQOvIqDkFTghNANFz+49L87l5/+ckNG2GO0qyBs71SneFnIIsLnsr1M5rKNOmA9t+yEJNBzWgJuLRhWZI7+sEqxNTxTNGDX0= Received: by 10.35.37.18 with SMTP id p18mr889569pyj; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Message-ID: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> Date: Thu, 13 Apr 2006 21:11:18 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22855_6803105.1144933878646" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.257 tagged_above=-999 required=2 tests=[AWL=-0.154, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.257 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:11:21 -0000 ------=_Part_22855_6803105.1144933878646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens... If I start banshee (latest cvs with only your patch applied) with my drive plugged in banshee segfaults... If I start without the drive, starts normally, and nothing changes when I plug in the drive Btw, thankyou so much for the help, even if i cant fix it Matthew On 4/13/06, James Stembridge wrote: > > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_22855_6803105.1144933878646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens...

If I start banshee (lat= est cvs with only your patch applied) with my drive plugged in banshee segf= aults...
If I start without the drive, starts normally, and nothing chan= ges when I plug in the drive

Btw, thankyou so much for the help, even if i cant fix it

Ma= tthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:
Hi Matthew,

On 4/12/06, Matthew Vermeulen = < mattvermeulen@gmail.com> = wrote:
> I've attached the complete output of hal-device..

Tha= nks, it looks roughly equivalent to what I have here.

Bit of a long = shot, but could you try the attached patch?

Cheers,
James.


______________________________________= _________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_22855_6803105.1144933878646-- From jstembridge@gmail.com Thu Apr 13 09:48:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 20B9B3B3588 for ; Thu, 13 Apr 2006 09:48:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14705-02 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 4ED463B3581 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so93816wra for ; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pbDL/M9pL9bVHUUJTrNhkfkudE4UKmIMulkdB4ibPA/tLYFUDhEoXEyyCCG0BNhhc2ZhIiR6es4zgEDKSPRVQSVevU46N2k5z+svyOc7xvufJ6+tWXuEHCoBYpnpnbTsviC93+EH//O1lSgNUYVQUaOKTw2GnGRZ8n6PvNOZSTg= Received: by 10.54.152.15 with SMTP id z15mr469213wrd; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Message-ID: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> Date: Thu, 13 Apr 2006 14:48:12 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:48:16 -0000 On 4/13/06, Matthew Vermeulen wrote: > If I start banshee (latest cvs with only your patch applied) with my driv= e > plugged in banshee segfaults... If you don't have the other patches applied then that's to be expected. > If I start without the drive, starts normally, and nothing changes when I > plug in the drive Hmmm, is the device auto mounting when inserted? James. From mattvermeulen@gmail.com Thu Apr 13 09:57:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BEB83B141D for ; Thu, 13 Apr 2006 09:57:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-06 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 63AC43B0644 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1865071pyu for ; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hZ6VAig5DY9HhrUYMUTjbdDUdwjyqvjrJ68aH7oNv8SH08fDAJJgSsxrB8HpAJ2L9AURKmV8VLjhxyLkn2//rQ7/2HNYNPFNjFOb93dY08iCBni8PdGsjzezvXX12oP5ifrSYvlU8u0fnnjxIDzPDeIAGjtiFoCfZ4kpQvcupYs= Received: by 10.35.81.10 with SMTP id i10mr51526pyl; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Message-ID: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> Date: Thu, 13 Apr 2006 21:57:49 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23721_2581288.1144936669427" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.206 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.206 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:57:52 -0000 ------=_Part_23721_2581288.1144936669427 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > If I start banshee (latest cvs with only your patch applied) with my > drive > > plugged in banshee segfaults... > > If you don't have the other patches applied then that's to be expected. Thanks... I knew that, but it at least shows that some acknowledgement is made of the device's existence... > If I start without the drive, starts normally, and nothing changes when I > > plug in the drive > > Hmmm, is the device auto mounting when inserted? Yes, as it always had. The device functions perfectly, it just isn't displayed by banshee... James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > Thanks a lot Matthew -- matt ------=_Part_23721_2581288.1144936669427 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
=
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> If I start banshee (latest= cvs with only your patch applied) with my drive
> plugged in banshee= segfaults...

If you don't have the other patches applied then that's to be expec= ted.

Thanks... I knew that, but it at least shows that= some acknowledgement is made of the device's existence...

> If I start w= ithout the drive, starts normally, and nothing changes when I
> plug = in the drive

Hmmm, is the device auto mounting when inserted?
<= br>Yes, as it always had. The device functions perfectly, it just isn't dis= played by banshee...

James.
_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome= .org
http://mail.gnome.org/mailman/listinfo/banshee-list

Thanks a lot

Matthew

--
matt ------=_Part_23721_2581288.1144936669427-- From jstembridge@gmail.com Thu Apr 13 10:03:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AFEE3B17E7 for ; Thu, 13 Apr 2006 10:03:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15837-10 for ; Thu, 13 Apr 2006 10:03:06 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id D1E973B17B3 for ; Thu, 13 Apr 2006 10:03:05 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so96672wra for ; Thu, 13 Apr 2006 07:03:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c1YRsk/99C+rBjzTURvulPQCpO5Y+ORNTfWGnvP/5yvlE4+HRncnl+9PW6ovIqqcvNW0Eootb56BogNZEdtM9D/YqBzEFeH0RsUu4IkJpOt/ze4MaficHo4+lAjzqZKtKIfAyedvuAR4De6aCQbo+/sKQS3w8fHaUdRvXYJxLrI= Received: by 10.54.120.19 with SMTP id s19mr485941wrc; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Message-ID: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> Date: Thu, 13 Apr 2006 15:03:04 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:03:07 -0000 On 4/13/06, Matthew Vermeulen wrote: > Thanks... I knew that, but it at least shows that some acknowledgement is > made of the device's existence... Indeed. In fact thinking about it the crash would indicate that a scan of the device is being started. Could you try dap_ui_init.patch in combination with mass_storage_device.patch? From mattvermeulen@gmail.com Thu Apr 13 10:18:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B315A3B1849 for ; Thu, 13 Apr 2006 10:18:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16664-02 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 472893B1845 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1870316pyu for ; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hDRwaqmyRmcmWZ9KQENVtIlcktgNBIyERTuehbDsUtAu4ZWeCNO5kIk0yh6knKPhOi1SfjONhLJEn67EzYnDr8jsdkPryb9AUIOzOrgl/yPWbw52WYFJA0grsIJfHV8wwoKvrvVn/bAcFb+aDg96PheUwIIXLRCtPXLdr/V0uNk= Received: by 10.35.15.11 with SMTP id s11mr868222pyi; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Message-ID: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> Date: Thu, 13 Apr 2006 22:18:31 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24093_8968161.1144937911374" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.241 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.241 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:18:34 -0000 ------=_Part_24093_8968161.1144937911374 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!! It now works, if the device is plugged in when banshee is started... Thank you so much :) Now I just need to get it to work if i plug it in after starting banshee. Maybe applying other patches?? Thanks so much Matthew On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Thanks... I knew that, but it at least shows that some acknowledgement > is > > made of the device's existence... > > Indeed. In fact thinking about it the crash would indicate that a scan > of the device is being started. Could you try dap_ui_init.patch in > combination with mass_storage_device.patch? > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24093_8968161.1144937911374 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!!

It now works, if the device is plugged in when banshee is s= tarted... Thank you so much :)

Now I just need to get it to work if = i plug it in after starting banshee. Maybe applying other patches??

Thanks so much

Matthew

On 4/= 13/06, James Stembridge <jstembridge@gmail.com> wrote: On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Thanks... I knew that, but= it at least shows that some acknowledgement is
> made of the device'= s existence...

Indeed. In fact thinking about it the crash would indicate that a s= can
of the device is being started. Could you try dap_ui_init.patch incombination with mass_storage_device.patch?
__________________________= _____________________
Banshee-list mailing list
= Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>



--
matt ------=_Part_24093_8968161.1144937911374-- From mattvermeulen@gmail.com Thu Apr 13 10:21:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 250803B1808 for ; Thu, 13 Apr 2006 10:21:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16793-03 for ; Thu, 13 Apr 2006 10:21:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id CBC223B10A5 for ; Thu, 13 Apr 2006 10:21:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1871308pyu for ; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FI1zsJtt/jvyjmgbFOS6tyW+fPq8WKnZhR1p9DJPXHkYyqApahUMKxWpVRpHecZIPBYBXbT0WMaUTq8z1lJm3/s7jEteA3QqnR/u9g/tXlIO1zYNYtX6leYHFFzi9e2JgMn+g/mHg3Jadm6n7WmL2WjhouFns0bmoSob4FtavWA= Received: by 10.35.100.6 with SMTP id c6mr295372pym; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Message-ID: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> Date: Thu, 13 Apr 2006 22:21:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24137_7961626.1144938103015" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.358 tagged_above=-999 required=2 tests=[AWL=0.107, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.358 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:21:48 -0000 ------=_Part_24137_7961626.1144938103015 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up... Can I get transcoding to work on my device??? No synchronize button is shown, and banshee crashes on eject... although it does eject and copy the music over. Reason I ask is cause most of my music is ogg, while my player only supports mp3+wma.... Thanks Matthew On 4/13/06, Matthew Vermeulen wrote: > > Yahoo!!! > > It now works, if the device is plugged in when banshee is started... Than= k > you so much :) > > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? > > Thanks so much > > Matthew > > On 4/13/06, James Stembridge wrote: > > > On 4/13/06, Matthew Vermeulen wrote: > > > Thanks... I knew that, but it at least shows that some acknowledgemen= t > > is > > > made of the device's existence... > > > > Indeed. In fact thinking about it the crash would indicate that a scan > > of the device is being started. Could you try dap_ui_init.patch in > > combination with mass_storage_device.patch? > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > -- > matt > -- matt ------=_Part_24137_7961626.1144938103015 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up...

Can I get transcoding to work on my device??? No= synchronize button is shown, and banshee crashes on eject... although it d= oes eject and copy the music over. Reason I ask is cause most of my music i= s ogg, while my player only supports mp3+wma....

Thanks

Matthew

On 4/= 13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
Yahoo!!!

It now works, if the device = is plugged in when banshee is started... Thank you so much :)

Now I = just need to get it to work if i plug it in after starting banshee. Maybe a= pplying other patches??

Thanks so much

Matthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:



-- matt



--
matt ------=_Part_24137_7961626.1144938103015-- From abockover@novell.com Thu Apr 13 10:25:49 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BADC63B1823 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16841-09 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 668663B035D for ; Thu, 13 Apr 2006 10:25:48 -0400 (EDT) Received: (qmail 6336 invoked from network); 13 Apr 2006 14:25:47 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:25:47 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Content-Type: text/plain Date: Wed, 12 Apr 2006 19:14:11 -0400 Message-Id: <1144883651.3613.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.831 tagged_above=-999 required=2 tests=[AWL=-0.679, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -1.831 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:25:49 -0000 Ouch! No rush :) --Aaron On Wed, 2006-04-12 at 16:59 -0500, Gabriel Burt wrote: > On 4/12/06, Aaron Bockover wrote: > > Would you gather all the necessary patches for the Mass Storage DAP > > stuff, make sure they're A-OK, and generate a single patch against HEAD? > > The core stuff can go in now, pending review, since I have branched for > > stable. > > Certainly. I won't be able to get to it until Friday though because > of a misunderstanding with Greyhound that resulted in my power cord > for my laptop being a few hundred miles away. > > Gabriel > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From abockover@novell.com Thu Apr 13 10:26:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C0513B188F for ; Thu, 13 Apr 2006 10:26:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17258-01 for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 5A4053B185F for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: (qmail 6339 invoked from network); 13 Apr 2006 14:26:13 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:26:13 -0000 Subject: Re: [Banshee-List] Re: Mass Storage Support From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Content-Type: text/plain Date: Thu, 13 Apr 2006 09:43:07 -0400 Message-Id: <1144935787.18440.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.336 tagged_above=-999 required=2 tests=[AWL=0.063, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.336 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:26:16 -0000 I am guessing block_device was a typo (Gabriel?). The proper HAL property is in fact block.device. Whether this fixes the problem or not, this change needs to be made. --Aaron On Thu, 2006-04-13 at 13:43 +0100, James Stembridge wrote: > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 10:34:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A79DC3B1844 for ; Thu, 13 Apr 2006 10:34:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17461-03 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.229]) by menubar.gnome.org (Postfix) with ESMTP id 978063B17C8 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so102830wra for ; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R3JgCwX0z0JMq1UG0yWtoN6A6VjZLTTFU8/OiGtLQO1OIvwGGWjqHQ58cli4MP4czrk7ZcC+NUGKkpMPchefS4CsLqLFDluzfyrqxfijN1AeO/DORsw/aS1nKMZ4q4iuByn3uo2aX2pGoizrK79wEOE0KLabM3dRdgfukpFb1mw= Received: by 10.54.102.7 with SMTP id z7mr450290wrb; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:34:26 -0700 (PDT) Message-ID: <18bc366d0604130734l7af5f4f8y273f1cf2961f6782@mail.gmail.com> Date: Thu, 13 Apr 2006 15:34:26 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <1144935787.18440.0.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <1144935787.18440.0.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:34:28 -0000 On 4/13/06, Aaron Bockover wrote: > I am guessing block_device was a typo (Gabriel?). The proper HAL > property is in fact block.device. Whether this fixes the problem or not, > this change needs to be made. Agreed. I'll put it in bugzilla. From jstembridge@gmail.com Thu Apr 13 10:43:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C459B3B1861 for ; Thu, 13 Apr 2006 10:43:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18199-08 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 35E003B15D5 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so104574wra for ; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtSf7EdlVMkim2UnB8OA7ibepzYB/jfSE3RtVhFqcYx+LQ6PS292rtEA7eJj9PneIkCFQRAb5gIfCC5J5gQqZLH91X5TdHOFyY3x57FC/snxXl1zBhNUwP42xztTAbOjWP4m6gTWeZMZIQNv1d4Ba2g5LRxBMm8UyI+xcmcNmqE= Received: by 10.54.70.18 with SMTP id s18mr522143wra; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Message-ID: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> Date: Thu, 13 Apr 2006 15:43:16 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:43:18 -0000 On 4/13/06, Matthew Vermeulen wrote: > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? Don't think any of the other patches would make any difference here. I'd noticed that the devices passed to the dap classes is different if the dap is plugged in before rather than while banshee is running. On 4/13/06, Matthew Vermeulen wrote: > Can I get transcoding to work on my device??? No synchronize button is > shown, and banshee crashes on eject... although it does eject and copy th= e > music over. Reason I ask is cause most of my music is ogg, while my playe= r > only supports mp3+wma.... Yes I'd think so, I'll have a look at how the Ipod transcoding is done. I'll also have a look at the eject crash. James. From mattvermeulen@gmail.com Thu Apr 13 10:45:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3BF053B18B4 for ; Thu, 13 Apr 2006 10:45:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18360-05 for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 168323B18AB for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1877939pyu for ; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Bd929FUpt5WxZR4t3ly5kO8dj13Jwx6ofpxD++KdJ3NAlU08prv9asAGAby3zzHWOs2Ps2bTJyHSIHM2n4HZjJiVNoUnOx54+NoZ5/LKYXyNBzPspBUE7JEU1SCdSWkOqorw6BnFQDn7IeG+tLex45XIE54bvHNjHXuhUuMVEw0= Received: by 10.35.78.9 with SMTP id f9mr194887pyl; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Message-ID: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> Date: Thu, 13 Apr 2006 22:45:37 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24681_32328398.1144939537332" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.767 tagged_above=-999 required=2 tests=[AWL=-0.519, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.767 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:45:39 -0000 ------=_Part_24681_32328398.1144939537332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James, Thanks so much for all the help and assistence. I hope you can sort the res= t of the problems out :) Thanks Matt PS the eject crash was a segfault: (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion `GTK_IS_IMAGE (image)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed closing Segmentation fault On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Now I just need to get it to work if i plug it in after starting > banshee. > > Maybe applying other patches?? > > Don't think any of the other patches would make any difference here. > I'd noticed that the devices passed to the dap classes is different if > the dap is plugged in before rather than while banshee is running. > > On 4/13/06, Matthew Vermeulen wrote: > > Can I get transcoding to work on my device??? No synchronize button is > > shown, and banshee crashes on eject... although it does eject and copy > the > > music over. Reason I ask is cause most of my music is ogg, while my > player > > only supports mp3+wma.... > > Yes I'd think so, I'll have a look at how the Ipod transcoding is > done. I'll also have a look at the eject crash. > > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24681_32328398.1144939537332 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James,

Thanks so much for all the help and assistence. I hope you ca= n sort the rest of the problems out :)

Thanks

Matt

PS = the eject crash was a segfault:

(Banshee:32577): Gtk-CRITICAL **: gt= k_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOOSER (chooser)' fa= iled

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: asse= rtion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gtk-CR= ITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion = `GTK_IS_IMAGE (image)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk= _file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed
closing
Segmentation fault

O= n 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Now I just need to get it = to work if i plug it in after starting banshee.
> Maybe applying othe= r patches??

Don't think any of the other patches would make any difference here= .
I'd noticed that the devices passed to the dap classes is different if=
the dap is plugged in before rather than while banshee is running.

On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Can I get transcoding = to work on my device??? No synchronize button is
> shown, and banshee= crashes on eject... although it does eject and copy the
> music over. Reason I ask is cause most of my music is ogg, while m= y player
> only supports mp3+wma....

Yes I'd think so, I'll ha= ve a look at how the Ipod transcoding is
done. I'll also have a look at = the eject crash.

James.
_______________________________________________
Banshe= e-list mailing list
Banshee-li= st@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_24681_32328398.1144939537332-- From lukas@pmad.net Thu Apr 13 12:03:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 213BA3B18F4 for ; Thu, 13 Apr 2006 12:03:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22737-06 for ; Thu, 13 Apr 2006 12:03:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 59F3F3B1906 for ; Thu, 13 Apr 2006 12:00:59 -0400 (EDT) Received: (qmail 27049 invoked by uid 503); 13 Apr 2006 16:01:07 -0000 Received: (QMFILT: 1.0); 13 Apr 2006 16:01:07 -0000 Received: from b7.ovh.net (HELO mail147.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 13 Apr 2006 16:01:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:34 -0000 Received: from mail147.ha.ovh.net (10.0.50.147) by mail147.ha.ovh.net with SMTP; 13 Apr 2006 16:00:27 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 Received: from adsl-d91.87-197-143.telecom.sk (HELO ?192.168.0.23?) (87.197.143.91) by ns0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-9E0sff6pbaqTSqqCs08K" Date: Thu, 13 Apr 2006 18:00:30 +0200 Message-Id: <1144944031.5000.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.143.91 (adsl-d91.87-197-143.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.439 tagged_above=-999 required=2 tests=[AWL=0.160, BAYES_00=-2.599] X-Spam-Score: -2.439 X-Spam-Level: Subject: [Banshee-List] Child source v0.3 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:03:29 -0000 --=-9E0sff6pbaqTSqqCs08K Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Attached is an updated version of the patch that adds child source support to Banshee. This patch fixes some small issues that I found today. Best, Lukas --=-9E0sff6pbaqTSqqCs08K Content-Disposition: attachment; filename=banshee-childsource-0.3.patch Content-Type: text/x-patch; name=banshee-childsource-0.3.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlaylistView.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 13 Apr 2006 15:58:04 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 13 Apr 2006 15:58:04 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 13 Apr 2006 15:58:04 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 13 Apr 2006 15:58:07 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 13 Apr 2006 15:58:07 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 13 Apr 2006 15:58:14 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 13 Apr 2006 15:58:14 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 13 Apr 2006 15:58:22 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 13 Apr 2006 15:58:22 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-9E0sff6pbaqTSqqCs08K-- From abockover@novell.com Thu Apr 13 12:33:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF7113B1908 for ; Thu, 13 Apr 2006 12:33:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25177-08 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 6925A3B0676 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: (qmail 7065 invoked from network); 13 Apr 2006 16:33:48 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 16:33:48 -0000 Subject: Re: [Banshee-List] Child source v0.3 From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144944031.5000.1.camel@localhost.localdomain> References: <1144944031.5000.1.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 13 Apr 2006 12:30:30 -0400 Message-Id: <1144945831.17382.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.461 tagged_above=-999 required=2 tests=[AWL=0.138, BAYES_00=-2.599] X-Spam-Score: -2.461 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:33:51 -0000 Hi Lukas, I tested the previous version a few days ago and found some issues. Maybe you resolved them already with this version. I'll test this version tonight. In any regard, here is what I found with the previous version: a) Way too much empty space left of the source icon when a node doesn't have children b) Plugging in iPod with Banshee already running does not show the new source c) If library has no playlist children, adding a new playlist is confusing (the "New playlist" node becomes a child of library, which is not expanded and thus not visible) d) Can easily crash by dragging tracks to create a new playlist when there are no other playlists Cheers, Aaron On Thu, 2006-04-13 at 18:00 +0200, Lukas Lipka wrote: > Hey, > > Attached is an updated version of the patch that adds child source > support to Banshee. This patch fixes some small issues that I found > today. > > Best, > Lukas > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 12:50:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30C533B1936 for ; Thu, 13 Apr 2006 12:50:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26483-07 for ; Thu, 13 Apr 2006 12:50:34 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id D298E3B040E for ; Thu, 13 Apr 2006 12:50:33 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so128367wra for ; Thu, 13 Apr 2006 09:50:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rx/cTfFMVRvdCxwa0SWfBnUc/BcNlKSwhNeKKTGm8CYzMxTh8JwYDoGzFe3jgumv1S0yphmo/fNPn4mSNa79Lv7uBr/lDOR4CVuH+bKcPLZG2hAJMb+opttzgajnqinLBUA7XiaEOdRrttNF2J0cn2dpsskG/Rq+VXdjU39w/xs= Received: by 10.54.122.11 with SMTP id u11mr659618wrc; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Message-ID: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> Date: Thu, 13 Apr 2006 17:50:31 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13410_9419575.1144947031390" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.821 tagged_above=-999 required=2 tests=[AWL=-0.779, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.821 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:50:35 -0000 ------=_Part_13410_9419575.1144947031390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Matt: Give the attached patch a go against clean CVS. Eject is still broken (apparently in native code) but everything else should probably be OK. Gabriel: Is this a suitable format for you to incorporate or do you want functionally separated patches? Cheers, James. ------=_Part_13410_9419575.1144947031390 Content-Type: text/x-patch; name=mass_storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elzbtidm Content-Disposition: attachment; filename="mass_storage.patch" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 13 Apr 2006 16:39:52 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -192,7 +205,7 @@ { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.13 diff -u -r1.13 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 21:30:26 -0000 1.13 +++ src/Banshee.Dap/Ipod/IpodDap.cs 13 Apr 2006 16:39:53 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 16:39:53 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -77,31 +77,34 @@ if(!volume_device.PropertyExists ("volume.is_mounted") || !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } public override void Dispose() { @@ -110,7 +113,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); @@ -145,7 +148,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -170,6 +174,14 @@ return track; string new_path = GetTrackPath (track); + if(File.Exists(new_path)) { + if(File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) { + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + } else { + return null; + } + } + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); File.Copy (track.Uri.LocalPath, new_path); @@ -213,19 +225,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string escaped_artist = FileNamePattern.Escape(track.Artist); + string escaped_album = FileNamePattern.Escape(track.Album); + string escaped_track = FileNamePattern.Escape(track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", escaped_artist); + file_path = file_path.Replace ("%Album", escaped_album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, escaped_track); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", escaped_track); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (escaped_artist, escaped_album); + file_path = System.IO.Path.Combine (file_path, escaped_track); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -242,7 +259,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + (volume_device["volume.label"].Length > 0)) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 13 Apr 2006 16:39:53 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); Index: src/Banshee.Dap/Njb/NjbDapTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDapTrackInfo.cs,v retrieving revision 1.2 diff -u -r1.2 NjbDapTrackInfo.cs --- src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Feb 2006 22:18:11 -0000 1.2 +++ src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Apr 2006 16:39:53 -0000 @@ -74,7 +74,7 @@ private void LoadFromNjbSong(DapDevice dap) { - uri = new Uri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); + uri = new SafeUri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); album = song.Album == String.Empty ? null : song.Album; artist = song.Artist == String.Empty ? null : song.Artist; title = song.Title == String.Empty ? null : song.Title; ------=_Part_13410_9419575.1144947031390-- From mattvermeulen@gmail.com Thu Apr 13 19:38:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ECA0D3B085C for ; Thu, 13 Apr 2006 19:38:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16331-03 for ; Thu, 13 Apr 2006 19:38:07 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.180]) by menubar.gnome.org (Postfix) with ESMTP id 9D64A3B138C for ; Thu, 13 Apr 2006 19:38:06 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1981367pyu for ; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hPQ+roydDUZmvvz02u0W0zJBm86F57nDY+tf4T82Iul9uM4yqOAybAYhRNlOeQKrKPwtYJXCRwdXAweB1EVPiyRJUwvwaJoAPN5k1f4wyUTApXqAVJHWgNlQ6pZwzQVNKHvUx+/RWe1+wMiVvuwaKMT4I4X2PCCZyNt5Kk4VPa8= Received: by 10.35.82.15 with SMTP id j15mr695510pyl; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Message-ID: <950c7d180604131638u4f9277e8q3f7f486ba881ccc0@mail.gmail.com> Date: Fri, 14 Apr 2006 07:38:05 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3721_16673855.1144971485684" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.12 tagged_above=-999 required=2 tests=[AWL=-0.017, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.12 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 23:38:13 -0000 ------=_Part_3721_16673855.1144971485684 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James, Mass storage now works if the device is plugged in while banshee is running :) However, still no transcoding or synchronize, which i suppose wasn't in the patch... :) Thanks Matthew On 4/14/06, James Stembridge wrote: > > Matt: Give the attached patch a go against clean CVS. Eject is still > broken (apparently in native code) but everything else should probably > be OK. > > Gabriel: Is this a suitable format for you to incorporate or do you > want functionally separated patches? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_3721_16673855.1144971485684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James,

Mass storage now works if the device is plugged in whi= le banshee is running :) However, still no transcoding or synchronize, whic= h i suppose wasn't in the patch... :)

Thanks

Matthew

On 4/14/06, = James Stembridge <jstembrid= ge@gmail.com> wrote:
Matt: Give the attached patch a go against clean CVS. Eject is still
bro= ken (apparently in native code) but everything else should probably
be O= K.

Gabriel: Is this a suitable format for you to incorporate or do y= ou
want functionally separated patches?

Cheers,
James.

_______________________________________________
Banshee-list mailing l= ist
Banshee-list@gnome.org
http://= mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_3721_16673855.1144971485684-- From gabriel.burt@gmail.com Thu Apr 13 22:16:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9EE0A3B06CD for ; Thu, 13 Apr 2006 22:16:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22073-03 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id 5F2383B0669 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2003750pyu for ; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QeEPp3lwdwS2nyZiZ4U2jqGzZnlUd+TZtXWv/cQGxRAkUYzr70RAJLChHMrnq1lagXuIkmxPBeGTE+bwfe1PWMO3t8a7CRWxTWBAaEGRBZf4kizrjX9UQNzjFeJT46cs1cpJDNBOa7orORmKMWsqqMjchn7ci86gb1VUnVHPAQw= Received: by 10.35.105.18 with SMTP id h18mr383825pym; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Message-ID: <24348e0604131916y4e1413a2ref2f4dbacbce795d@mail.gmail.com> Date: Thu, 13 Apr 2006 21:16:39 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=0.254, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.122 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 02:16:41 -0000 T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpU aGUgd2F5IHlvdSBzZW50IGl0IGlzIGZpbmUuICBUaGFua3MhICBIb3BlZnVsbHkgZ2V0IHRoaXMg aW50byBIRUFEIHNvb24uCgpHYWJyaWVsCg== From lukas@pmad.net Fri Apr 14 08:06:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05FD53B0BBB for ; Fri, 14 Apr 2006 08:06:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19602-09 for ; Fri, 14 Apr 2006 08:06:20 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 0AC583B0F97 for ; Fri, 14 Apr 2006 08:06:18 -0400 (EDT) Received: (qmail 372 invoked by uid 503); 14 Apr 2006 12:06:27 -0000 Received: (QMFILT: 1.0); 14 Apr 2006 12:06:27 -0000 Received: from b7.ovh.net (HELO mail148.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 14 Apr 2006 12:06:27 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 12:05:54 -0000 Received: from mail148.ha.ovh.net (10.0.50.148) by mail148.ha.ovh.net with SMTP; 14 Apr 2006 12:05:46 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Received: from adsl-d56.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.56) by ns0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144945831.17382.2.camel@sledipus.rex> References: <1144944031.5000.1.camel@localhost.localdomain> <1144945831.17382.2.camel@sledipus.rex> Content-Type: multipart/mixed; boundary="=-LDBsFwPm/TmMwGQcPAgc" Date: Fri, 14 Apr 2006 12:47:47 +0200 Message-Id: <1145011668.10366.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.129.56 (adsl-d56.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=0.150, BAYES_00=-2.599] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 12:06:27 -0000 --=-LDBsFwPm/TmMwGQcPAgc Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > a) Way too much empty space left of the source icon when a node doesn't > have children I will have a look at this later but I'm afraid there is no way of fixing this, since this is what a TreeView always does. Any ideas? > b) Plugging in iPod with Banshee already running does not show the new > source You're right, I'm also seeing this. But what is much more interesting is that this doesn't work with a clean checkout of Banshee either. Therefor I don't think this is affected by the patch. > c) If library has no playlist children, adding a new playlist is > confusing (the "New playlist" node becomes a child of library, which is > not expanded and thus not visible) Fixed. > d) Can easily crash by dragging tracks to create a new playlist when > there are no other playlists I'm not able to reproduce this. Can you send me a stacktrace if you are still able to trigger it? Best, Lukas --=-LDBsFwPm/TmMwGQcPAgc Content-Disposition: attachment; filename=banshee-childsource-0.4.patch Content-Type: text/x-patch; name=banshee-childsource-0.4.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 14 Apr 2006 10:43:59 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 14 Apr 2006 10:43:59 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,51 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +241,19 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); } TreePath path; @@ -267,7 +319,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +343,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +539,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 14 Apr 2006 10:43:59 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 14 Apr 2006 10:44:00 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 14 Apr 2006 10:44:00 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 14 Apr 2006 10:44:04 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 14 Apr 2006 10:44:04 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 14 Apr 2006 10:44:04 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 14 Apr 2006 10:44:09 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-LDBsFwPm/TmMwGQcPAgc-- From doclivingston@gmail.com Fri Apr 14 22:13:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 251CE3B1FAC for ; Fri, 14 Apr 2006 22:13:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31050-09 for ; Fri, 14 Apr 2006 22:13:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id D217F3B0ABD for ; Fri, 14 Apr 2006 22:13:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so200870pyu for ; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=SJpTfP5wGT7M/QhAxE1wZQN4W6Zbxty17+u/qx1/UTFdJt4oWRBDpGfQJBQQUha3DEdqoY6SqU4nhdllOmYgw1o7hfpMgS32WCnQ6AD0HhI+7clF6fZUXemRIMHVbK0MQv8p8XL97H9Zxae8Lph2W8FicdIpd4c7loiKiHH9Tkc= Received: by 10.35.107.20 with SMTP id j20mr278118pym; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Received: from alyrion.local ( [144.139.79.240]) by mx.gmail.com with ESMTP id t5sm295032pyc.2006.04.14.19.13.09; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: "James \"Doc\" Livingston" To: banshee-list@gnome.org Content-Type: text/plain Date: Sat, 15 Apr 2006 12:13:07 +1000 Message-Id: <1145067187.5692.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.303 tagged_above=-999 required=2 tests=[AWL=0.297, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.303 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, doclivingston@gmail.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 02:13:15 -0000 On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > a) Way too much empty space left of the source icon when a node doesn't > > have children > > I will have a look at this later but I'm afraid there is no way of > fixing this, since this is what a TreeView always does. Any ideas? You need to create an empty column in the tree view, and make it invisible. Whenever a source is added/removed, determine if there are any sources with children; if so, set the tree view's expander-column to be the first column, if not set it to be the invisible column. Cheers, James "Doc" Livingston -- You wouldn't know a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing 'Subtle Plans Are Here Again' -- Lord Blackadder From gcgmb-banshee-list@m.gmane.org Sat Apr 15 03:35:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7A943B0A99 for ; Sat, 15 Apr 2006 03:35:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11279-03 for ; Sat, 15 Apr 2006 03:35:06 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 1861A3B0AB3 for ; Sat, 15 Apr 2006 03:35:05 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FUfJ8-0001gx-2U for banshee-list@gnome.org; Sat, 15 Apr 2006 09:35:02 +0200 Received: from 69-12-172-225.dsl.static.sonic.net ([69.12.172.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 Received: from eric.moret by 69-12-172-225.dsl.static.sonic.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: "Eric Moret" Date: Sat, 15 Apr 2006 00:24:11 -0700 Lines: 12 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 69-12-172-225.dsl.static.sonic.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.742 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.742 X-Spam-Level: Subject: [Banshee-List] hal-sharp documentation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 07:35:07 -0000 Hello all, I am looking for hal-sharp documentation and so far was not able to find much. Looking at banshee's source code, I see a mix of managed/unmanaged code to detect cd insertion. Is there any reason for using unmanaged code? Would it be possible to do it with 100% managed code instead? Best, __ Eric From lukas@pmad.net Sat Apr 15 07:06:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4FA203B20D3 for ; Sat, 15 Apr 2006 07:06:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22122-05 for ; Sat, 15 Apr 2006 07:06:04 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 647553B20C8 for ; Sat, 15 Apr 2006 07:06:03 -0400 (EDT) Received: (qmail 19881 invoked by uid 503); 15 Apr 2006 11:06:11 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 11:06:11 -0000 Received: from b7.ovh.net (HELO mail152.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 11:06:11 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:29 -0000 Received: from mail152.ha.ovh.net (10.0.50.152) by mail152.ha.ovh.net with SMTP; 15 Apr 2006 11:03:26 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Received: from adsl-d136.87-197-205.telecom.sk (HELO ?192.168.0.23?) (87.197.205.136) by ns0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145067187.5692.13.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-Cb7k/pk1SSJXB0ikDmxI" Date: Sat, 15 Apr 2006 13:03:19 +0200 Message-Id: <1145098999.8073.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.205.136 (adsl-d136.87-197-205.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.457 tagged_above=-999 required=2 tests=[AWL=0.142, BAYES_00=-2.599] X-Spam-Score: -2.457 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 11:06:15 -0000 --=-Cb7k/pk1SSJXB0ikDmxI Content-Type: text/plain Content-Transfer-Encoding: 7bit Thanks! That took care of it. I'm reposting an updated patch which should make everyone happy! Best, Lukas On Sat, 2006-04-15 at 12:13 +1000, James "Doc" Livingston wrote: > On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > > a) Way too much empty space left of the source icon when a node doesn't > > > have children > > > > I will have a look at this later but I'm afraid there is no way of > > fixing this, since this is what a TreeView always does. Any ideas? > > You need to create an empty column in the tree view, and make it > invisible. Whenever a source is added/removed, determine if there are > any sources with children; if so, set the tree view's expander-column to > be the first column, if not set it to be the invisible column. > > > Cheers, > > James "Doc" Livingston --=-Cb7k/pk1SSJXB0ikDmxI Content-Disposition: attachment; filename=banshee-childsource-0.5.patch Content-Type: text/x-patch; name=banshee-childsource-0.5.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 11:00:27 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 11:00:27 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool CheckChildren () + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + + CheckChildren (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + CheckChildren (); + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +270,20 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); + CheckChildren (); } TreePath path; @@ -230,6 +312,7 @@ if(newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + CheckChildren (); } } @@ -243,7 +326,7 @@ string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -267,7 +350,8 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); + CheckChildren (); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +375,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +571,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 11:00:27 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 11:00:31 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 11:00:31 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 11:00:39 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 11:00:39 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 11:00:48 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 11:00:48 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-Cb7k/pk1SSJXB0ikDmxI-- From lukas@pmad.net Sat Apr 15 11:19:23 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6158F3B108F for ; Sat, 15 Apr 2006 11:19:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02535-07 for ; Sat, 15 Apr 2006 11:19:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 01FD33B1066 for ; Sat, 15 Apr 2006 11:19:20 -0400 (EDT) Received: (qmail 21730 invoked by uid 503); 15 Apr 2006 15:19:29 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 15:19:29 -0000 Received: from b6.ovh.net (HELO mail55.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 15:19:29 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from mail55.ha.ovh.net (10.0.50.55) by mail55.ha.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145098999.8073.1.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> Content-Type: text/plain Date: Sat, 15 Apr 2006 17:18:38 +0200 Message-Id: <1145114318.14136.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.50001 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:19:23 -0000 Hi, So I found a bug in 0.5 today when you try to create playlist by dragging. The problem pops up when you try to drop the selection into the "New Playlist" row and there is another source below the music library. Something like: * Music Library + Other playlist + New playlist <= HERE * Music Store * Lukas' iPod What happens is that OnDragMotion the "New Playlist" row is created. After that, when you drop the selection onto it, OnDragLeave gets called at first! This is totally fucking absurdal[1], because in there we destroy the "New Playlist" row. After we have done all of this OnDragDataReceived is finally called. Here we try to get the row under the cursor, but since the "New Playlist" row is long gone, we just get the next row after it (that would be Music Store in the example above). So much for the miracles in GTK-Wonderland! I just thought I would share my fun with you. :-) Best, Lukas [1] MDK's words: http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > Thanks! That took care of it. I'm reposting an updated patch which > should make everyone happy! > > Best, > Lukas From abockover@novell.com Sat Apr 15 11:51:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348883B06FB for ; Sat, 15 Apr 2006 11:51:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04277-08 for ; Sat, 15 Apr 2006 11:51:24 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id EB8753B09A1 for ; Sat, 15 Apr 2006 11:51:23 -0400 (EDT) Received: from [192.168.0.100] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3FFpMU6016954 for ; Sat, 15 Apr 2006 11:51:22 -0400 (EDT) Subject: Re: [Banshee-List] hal-sharp documentation From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Sat, 15 Apr 2006 11:48:25 -0400 Message-Id: <1145116106.6921.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.575 tagged_above=-999 required=2 tests=[AWL=0.024, BAYES_00=-2.599] X-Spam-Score: -2.575 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:51:27 -0000 On Sat, 2006-04-15 at 00:24 -0700, Eric Moret wrote: > Hello all, > > I am looking for hal-sharp documentation and so far was not able to find > much. Looking at banshee's source code, I see a mix of managed/unmanaged > code to detect cd insertion. Is there any reason for using unmanaged code? > Would it be possible to do it with 100% managed code instead? http://banshee-project.org/files/documentation/banshee/Hal This is monodoc-generated documentation and it has not been filled in with details, but the API should be fairly straight forward. As for CD detection, yes, you can do this in managed. The detection in Banshee is fully managed. The only unmanaged code is GStreamer related, and a P/Invoke into an ioctl call to eject the disk. I need to add HAL method call support to hal-sharp, and when I do, you could even do ejecting in managed, however, it requires HAL 0.5.6 or better. --Aaron > Best, > __ > Eric > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From ruben@Lambda1.be Sat Apr 15 12:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50BF93B1085 for ; Sat, 15 Apr 2006 12:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06716-06 for ; Sat, 15 Apr 2006 12:42:23 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 9E78D3B0B1A for ; Sat, 15 Apr 2006 12:42:22 -0400 (EDT) Received: from ([62.235.114.77]) by guri.is.scarlet.be with ESMTP id k3FGgJc03233 for ; Sat, 15 Apr 2006 18:42:19 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id B7F02460118; Sat, 15 Apr 2006 18:42:18 +0200 (CEST) Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145114318.14136.10.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 15 Apr 2006 18:42:16 +0200 Message-Id: <1145119337.20262.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 16:42:29 -0000 It also seems to break the minimode plugin. Not sure which one would need fixing though. Ruben On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > Hi, > > So I found a bug in 0.5 today when you try to create playlist by > dragging. The problem pops up when you try to drop the selection into > the "New Playlist" row and there is another source below the music > library. > > Something like: > > * Music Library > + Other playlist > + New playlist <= HERE > * Music Store > * Lukas' iPod > > What happens is that OnDragMotion the "New Playlist" row is created. > After that, when you drop the selection onto it, OnDragLeave gets called > at first! This is totally fucking absurdal[1], because in there we > destroy the "New Playlist" row. After we have done all of this > OnDragDataReceived is finally called. Here we try to get the row under > the cursor, but since the "New Playlist" row is long gone, we just get > the next row after it (that would be Music Store in the example above). > > So much for the miracles in GTK-Wonderland! I just thought I would share > my fun with you. :-) > > Best, > Lukas > > > [1] MDK's words: > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > Thanks! That took care of it. I'm reposting an updated patch which > > should make everyone happy! > > > > Best, > > Lukas > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Sat Apr 15 13:08:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF663B0D50 for ; Sat, 15 Apr 2006 13:08:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08397-05 for ; Sat, 15 Apr 2006 13:07:56 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 3CD4F3B0724 for ; Sat, 15 Apr 2006 13:07:55 -0400 (EDT) Received: (qmail 15254 invoked by uid 503); 15 Apr 2006 17:08:03 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 17:08:03 -0000 Received: from b7.ovh.net (HELO mail138.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 17:08:03 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:22 -0000 Received: from mail138.ha.ovh.net (10.0.50.138) by mail138.ha.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145119337.20262.0.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> <1145119337.20262.0.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-eRYPIfpR9ZLXY0Xwz0jD" Date: Sat, 15 Apr 2006 19:07:27 +0200 Message-Id: <1145120847.5158.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.47 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599] X-Spam-Score: -2.47 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 17:08:02 -0000 --=-eRYPIfpR9ZLXY0Xwz0jD Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached is a patch which fixes this. It should be alright to check it in now, since it doesn't depend on the child source patch. Lukas On Sat, 2006-04-15 at 18:42 +0200, Ruben Vermeersch wrote: > It also seems to break the minimode plugin. Not sure which one would > need fixing though. > > Ruben > > On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > > Hi, > > > > So I found a bug in 0.5 today when you try to create playlist by > > dragging. The problem pops up when you try to drop the selection into > > the "New Playlist" row and there is another source below the music > > library. > > > > Something like: > > > > * Music Library > > + Other playlist > > + New playlist <= HERE > > * Music Store > > * Lukas' iPod > > > > What happens is that OnDragMotion the "New Playlist" row is created. > > After that, when you drop the selection onto it, OnDragLeave gets called > > at first! This is totally fucking absurdal[1], because in there we > > destroy the "New Playlist" row. After we have done all of this > > OnDragDataReceived is finally called. Here we try to get the row under > > the cursor, but since the "New Playlist" row is long gone, we just get > > the next row after it (that would be Music Store in the example above). > > > > So much for the miracles in GTK-Wonderland! I just thought I would share > > my fun with you. :-) > > > > Best, > > Lukas > > > > > > [1] MDK's words: > > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > > Thanks! That took care of it. I'm reposting an updated patch which > > > should make everyone happy! > > > > > > Best, > > > Lukas > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-eRYPIfpR9ZLXY0Xwz0jD Content-Disposition: inline; filename=banshee-minimode.patch Content-Type: text/x-patch; name=banshee-minimode.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -101,10 +101,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-eRYPIfpR9ZLXY0Xwz0jD-- From lukas@pmad.net Sat Apr 15 15:29:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D05F3B22A8 for ; Sat, 15 Apr 2006 15:29:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15335-01 for ; Sat, 15 Apr 2006 15:29:03 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C5BDB3B22AC for ; Sat, 15 Apr 2006 15:29:01 -0400 (EDT) Received: (qmail 31567 invoked by uid 503); 15 Apr 2006 19:29:10 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 19:29:10 -0000 Received: from b6.ovh.net (HELO mail54.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 19:29:10 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:32 -0000 Received: from mail54.ha.ovh.net (10.0.50.54) by mail54.ha.ovh.net with SMTP; 15 Apr 2006 19:28:29 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-1VydZuHNf7DrKSjSE6UG" Date: Sat, 15 Apr 2006 21:28:36 +0200 Message-Id: <1145129316.18680.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=0.123, BAYES_00=-2.599] X-Spam-Score: -2.476 X-Spam-Level: Subject: [Banshee-List] Child source final (v0.6) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 19:29:15 -0000 --=-1VydZuHNf7DrKSjSE6UG Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, The "gtk d&d is crack" version patch of child source support for Banshee is out! All the issues everyone pointed out should be fixed now. For the awesome minimode plugin users - a patch which makes minimode work with this has been sent to the list. Good luck & Have fun! Lukas --=-1VydZuHNf7DrKSjSE6UG Content-Disposition: attachment; filename=banshee-childsource-0.6.patch Content-Type: text/x-patch; name=banshee-childsource-0.6.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 19:22:36 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 19:22:36 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; - } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + // FIXME: We need to handle this nicer + //if(!((SourceManager.ActiveSource is LibrarySource) + //|| ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + // return true; + //} + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 19:22:37 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 19:22:37 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 19:22:37 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 19:22:40 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 19:22:40 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 19:22:42 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 19:22:42 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-1VydZuHNf7DrKSjSE6UG-- From teuf@gnome.org Sat Apr 15 19:10:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62DF63B0D16 for ; Sat, 15 Apr 2006 19:10:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25429-09 for ; Sat, 15 Apr 2006 19:10:42 -0400 (EDT) Received: from smTp.neuf.fr (sp604003mt.neufgp.fr [84.96.92.56]) by menubar.gnome.org (Postfix) with ESMTP id 0F6223B0885 for ; Sat, 15 Apr 2006 19:10:39 -0400 (EDT) Received: from [192.168.0.2] ([86.69.170.130]) by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IXS00AK4DPP9G92@sp604003mt.gpm.neuf.ld> for banshee-list@gnome.org; Sun, 16 Apr 2006 01:10:37 +0200 (CEST) Date: Sun, 16 Apr 2006 01:10:37 +0200 From: Christophe Fergeau To: banshee-list@gnome.org Message-id: <1145142637.6269.15.camel@localhost> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bZrh/Wa52c1Dvjr47M+j" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.409 tagged_above=-999 required=2 tests=[AWL=0.055, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.409 X-Spam-Level: Subject: [Banshee-List] libipoddevice patches X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 23:10:45 -0000 --=-bZrh/Wa52c1Dvjr47M+j Content-Type: multipart/mixed; boundary="=-EkK9V63M14Bw9vauXkCw" --=-EkK9V63M14Bw9vauXkCw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Here are two patches to fix 2 issues in libipoddevice: * endianess.diff should hopefully make it possible to parse the DeviceInfo file on big endian machines * list.diff fixes a warning from gcc about the return value of g_list_remove being ignored. I removed some seemingly useless code at the same time (g_list_length(l) is 0 if and only if l is NULL if I read glib code properly) (both patches are only compile tested, so there might be some obvious mistakes in them) Christophe --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=list.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=list.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS1ldmVudC1saXN0ZW5lci5jDQo9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg ZmlsZTogL2N2cy9nbm9tZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS1ldmVudC1saXN0 ZW5lci5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44DQpkaWZmIC11IC1yMS44IGlwb2QtZGV2 aWNlLWV2ZW50LWxpc3RlbmVyLmMNCi0tLSBzcmMvaXBvZC1kZXZpY2UtZXZlbnQtbGlzdGVuZXIu Ywk4IE5vdiAyMDA1IDIyOjA0OjUzIC0wMDAwCTEuOA0KKysrIHNyYy9pcG9kLWRldmljZS1ldmVu dC1saXN0ZW5lci5jCTE1IEFwciAyMDA2IDIzOjAzOjQyIC0wMDAwDQpAQCAtMTk5LDExICsxOTks NyBAQA0KICAgICANCiAgICAgZ19saXN0X2ZyZWUobGlzdGVuZXItPnByaXYtPmlwb2RVZGlzKTsN CiAgICAgDQotICAgIGdfbGlzdF9yZW1vdmUoaW5zdGFuY2VzLCBsaXN0ZW5lcik7DQotICAgIGlm KGdfbGlzdF9sZW5ndGgoaW5zdGFuY2VzKSA9PSAwKSB7DQotICAgICAgICBnX2xpc3RfZnJlZShp bnN0YW5jZXMpOw0KLSAgICAgICAgaW5zdGFuY2VzID0gTlVMTDsNCi0gICAgfQ0KKyAgICBpbnN0 YW5jZXMgPSBnX2xpc3RfcmVtb3ZlKGluc3RhbmNlcywgbGlzdGVuZXIpOw0KIH0NCiANCiBzdGF0 aWMgdm9pZCANCg== --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=endianess.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=endianess.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9nbm9t ZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS42MA0KZGlmZiAtdSAtcjEuNjAgaXBvZC1kZXZpY2UuYw0KLS0tIHNyYy9pcG9kLWRldmljZS5j CTEzIEFwciAyMDA2IDIzOjM4OjEzIC0wMDAwCTEuNjANCisrKyBzcmMvaXBvZC1kZXZpY2UuYwkx NSBBcHIgMjAwNiAyMzowMzoyMyAtMDAwMA0KQEAgLTgyNCwyMCArODI0LDI1IEBADQogICAgIGdz aG9ydCBsZW5ndGg7DQogICAgIGd1bmljaGFyMiAqdXRmMTY7DQogICAgIGdjaGFyICp1dGY4Ow0K LSAgICANCisgICAgdW5zaWduZWQgaW50IGk7DQorDQogICAgIGlmKGZyZWFkKCZsZW5ndGgsIDEs IHNpemVvZihnc2hvcnQpLCBmZCkgPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAg IH0gZWxzZSBpZihsZW5ndGggPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAgIH0N CiAgICAgDQorICAgIGxlbmd0aCA9IEdJTlQxNl9GUk9NX0xFIChsZW5ndGgpOw0KKw0KICAgICB1 dGYxNiA9IChndW5pY2hhcjIgKilnX21hbGxvYyhsZW5ndGggKiBzaXplb2YoZ3VuaWNoYXIyKSk7 DQogICAgIGlmKHV0ZjE2ID09IE5VTEwpIHsNCiAgICAgICAgIHJldHVybiBOVUxMOw0KICAgICB9 IGVsc2UgaWYoZnJlYWQodXRmMTYsIHNpemVvZihndW5pY2hhcjIpLCBsZW5ndGgsIGZkKSA8PSAw KSB7DQogICAgICAgICByZXR1cm4gTlVMTDsNCiAgICAgfQ0KLSAgICANCisgICAgZm9yIChpID0g MDsgaSA8IGxlbmd0aDsgaSsrKSB7DQorCXV0ZjE2W2ldID0gR0lOVDE2X0ZST01fTEUgKHV0ZjE2 W2ldKTsNCisgICAgfQ0KICAgICB1dGY4ID0gZ191dGYxNl90b191dGY4KHV0ZjE2LCBsZW5ndGgs IE5VTEwsIE5VTEwsIE5VTEwpOw0KICAgICANCiAgICAgZ19mcmVlKHV0ZjE2KTsNCkBAIC04NTAs MTggKzg1NSwyNSBAQA0KIGlwb2RfZGV2aWNlX3dyaXRlX2RldmljZV9pbmZvX3N0cmluZyhnY2hh ciAqc3RyLCBGSUxFICpmZCkNCiB7DQogICAgIGd1bmljaGFyMiAqdW5pc3RyOw0KLSAgICBnc2hv cnQgbGVuZ3RoOw0KKyAgICBnbG9uZyBsZW5ndGg7DQorICAgIGdzaG9ydCBsZW5ndGhfbGU7DQor ICAgIHVuc2lnbmVkIGludCBpOw0KIA0KICAgICBpZihzdHIgPT0gTlVMTCkgew0KICAgICAgICAg cmV0dXJuOw0KICAgICB9DQogICAgIA0KLSAgICBsZW5ndGggPSBzdHJsZW4oc3RyKTsNCi0gICAg dW5pc3RyID0gZ191dGY4X3RvX3V0ZjE2KHN0ciwgbGVuZ3RoLCBOVUxMLCBOVUxMLCBOVUxMKTsN Ci0gICAgDQorICAgIHVuaXN0ciA9IGdfdXRmOF90b191dGYxNihzdHIsIC0xLCBOVUxMLCAmbGVu Z3RoLCBOVUxMKTsNCisgICAgaWYgKHVuaXN0ciA9PSBOVUxMKSB7DQorCXJldHVybjsNCisgICAg fQ0KKyAgICBmb3IgKGkgPSAwOyBpIDwgbGVuZ3RoOyBpKyspIHsNCisJdW5pc3RyW2ldID0gR0lO VDE2X1RPX0xFICh1bmlzdHJbaV0pOw0KKyAgICB9DQorICAgIGxlbmd0aCAqPSBzaXplb2YgKGd1 bmljaGFyMik7DQogICAgIGxlbmd0aCA9IGxlbmd0aCA+IDB4MTk4ID8gMHgxOTggOiBsZW5ndGg7 DQotDQotICAgIGlmKGZ3cml0ZSgmbGVuZ3RoLCAyLCAxLCBmZCkgPD0gMCANCisgICAgbGVuZ3Ro X2xlID0gR0lOVDE2X1RPX0xFIChsZW5ndGgpOw0KKyAgICBpZihmd3JpdGUoJmxlbmd0aF9sZSwg MiwgMSwgZmQpIDw9IDAgDQogICAgICAgICB8fCBmd3JpdGUodW5pc3RyLCAyLCBsZW5ndGgsIGZk KSA8PSAwKSB7DQogICAgICAgICBnX3dhcm5pbmcoIkNvdWxkIG5vdCB3cml0ZSB0byBEZXZpY2VJ bmZvIGZpbGUiKTsNCiAgICAgfQ0K --=-EkK9V63M14Bw9vauXkCw-- --=-bZrh/Wa52c1Dvjr47M+j Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQX1t+13jZzlzSs4RApzBAJ0XvjsgdPcDbyYRytRc3NYGi8cjMwCeMzKL XDiwGXNnj/dKelq1S/QT3N8= =DuVJ -----END PGP SIGNATURE----- --=-bZrh/Wa52c1Dvjr47M+j-- From lukas@pmad.net Sun Apr 16 08:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 291933B15CE for ; Sun, 16 Apr 2006 08:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06694-03 for ; Sun, 16 Apr 2006 08:13:15 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C394F3B1519 for ; Sun, 16 Apr 2006 08:13:13 -0400 (EDT) Received: (qmail 8117 invoked by uid 503); 16 Apr 2006 12:13:21 -0000 Received: (QMFILT: 1.0); 16 Apr 2006 12:13:21 -0000 Received: from b6.ovh.net (HELO mail51.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 16 Apr 2006 12:13:21 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:37 -0000 Received: from mail51.ha.ovh.net (10.0.50.51) by mail51.ha.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from adsl-d74.87-197-130.telecom.sk (HELO ?192.168.0.23?) (87.197.130.74) by ns0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-MIftsI8pDW7HXQVLyMKT" Date: Sun, 16 Apr 2006 14:04:38 +0200 Message-Id: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.130.74 (adsl-d74.87-197-130.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.110, BAYES_00=-2.599] X-Spam-Score: -2.489 X-Spam-Level: Subject: [Banshee-List] Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 12:13:18 -0000 --=-MIftsI8pDW7HXQVLyMKT Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Hopefully the final version of the child source patch. I figured I forgot to commment out some lines in the previous one, so here is the fixed version. Please test it and if you still do find any issues please report them. Thanks, Lukas --=-MIftsI8pDW7HXQVLyMKT Content-Disposition: attachment; filename=banshee-childsource-0.8.patch Content-Type: text/x-patch; name=banshee-childsource-0.8.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 16 Apr 2006 12:01:53 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 16 Apr 2006 12:01:53 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 16 Apr 2006 12:01:56 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 16 Apr 2006 12:01:58 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 16 Apr 2006 12:01:58 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 16 Apr 2006 12:02:03 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 16 Apr 2006 12:02:03 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 16 Apr 2006 12:02:10 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 16 Apr 2006 12:02:10 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-MIftsI8pDW7HXQVLyMKT-- From benjy.grogan@gmail.com Sun Apr 16 17:31:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A8D5D3B1B02 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32719-06 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id E344A3B1A46 for ; Sun, 16 Apr 2006 17:31:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so476908pyu for ; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=C1Tpo2UpOBSSC/TuLLjgmeICDHJqSUulYNco7GxoW6rUOGc+yOBhUW4GYAkzo1/HWBS4MeZNDQ85RFcUZQj/TzhJbGGvAMiINYo5zbW6p8lThbKMfSSsIm6b7GrIIelEZ8ZslsrnSqXYna2BdWC0thb+ZAHzsUjqIc0LJyVGkws= Received: by 10.35.15.11 with SMTP id s11mr1929318pyi; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Received: by 10.35.109.12 with HTTP; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Message-ID: Date: Sun, 16 Apr 2006 17:31:30 -0400 From: "Benjy Grogan" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.604 tagged_above=-999 required=2 tests=[AWL=-0.562, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.604 X-Spam-Level: Subject: [Banshee-List] Banshee Slow to Re-Load Music Library After Clearing Search X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 21:31:31 -0000 Hello I'm using Banshee 0.10.9 on FC5 and enjoying it. Though, now that I've been able to import my entire music collection (over 3000 songs) I find the search box has become a pain. If I do a search for an artist, and then clear that search it will take approximately 20 seconds or so of 100% CPU usage to load up the original list of some 3000 songs. There should be some kind of a cache to take care of loading the Music Library, because clearly this is a problem that will only get worse. I've also got a question. If I'm scrolling through my list of songs, and then the next song plays, the list will slingshot to that song, interrupting my scrolling. Is there a way to disable this? I always found this annoying on Windows Media Player. I'm sure others do too.=20 Could be a good Advanced Preference: the option to disable slingshotting to the next song playing. But liking Banshee so far. Thanks. Benjy From gabriel.burt@gmail.com Mon Apr 17 13:47:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D46293B0566 for ; Mon, 17 Apr 2006 13:47:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28600-09 for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.178]) by menubar.gnome.org (Postfix) with ESMTP id 15C193B272D for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so682825pyu for ; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dbUwY6OGmzHWyfkqP9SyD3IUSi89a7M16y/VF3G6Hx48rUJ2CjF3j9i4k3efT6in3d1MB8Q4YuvKm2QMbzNwpQ4onwxMgYZ6PHZVNh3ccYWk8S6170W3tA7anHtIZzZPv2iNdwYtPvoli16W9eCJUGy5JtiK1mRnIycs2xocBGU= Received: by 10.35.96.11 with SMTP id y11mr1637128pyl; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Message-ID: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> Date: Mon, 17 Apr 2006 12:47:17 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18786_27847866.1145296037209" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.138 tagged_above=-999 required=2 tests=[AWL=0.238, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.138 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:47:32 -0000 ------=_Part_18786_27847866.1145296037209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpP aywgSSdtIGF0dGFjaGluZyB0aGUgY29tYmluZWQgcGF0Y2gsIGEgbGl0dGxlIGxhdGVyIHRoYW4g cHJvbWlzZWQsCnNvcnJ5LiA6KQoKR2FicmllbAo= ------=_Part_18786_27847866.1145296037209 Content-Type: text/x-patch; name=mass-storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em53nzmo Content-Disposition: attachment; filename="mass-storage.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.450 diff -u -r1.450 ChangeLog --- ChangeLog 17 Apr 2006 14:50:37 -0000 1.450 +++ ChangeLog 17 Apr 2006 17:32:34 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: When adding a song to + the device, overwrite it if it is out of date. Don't use the volume + label for the Name if it's blank. If the volume for a new device isn't + yet mounted, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * entagged-sharp/Mp4/Mp4FileReader.cs: Added audio/mp4, audio/m4a mime Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 17 Apr 2006 17:32:35 -0000 @@ -93,6 +93,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:32:35 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,11 +188,11 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -521,6 +521,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 17 Apr 2006 17:32:35 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,37 +78,52 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + + // FIXME should probably reload the tracks.. + } + } + public override void Dispose() { // FIXME anything else to do here? volume = null; base.Dispose(); } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } private void ReloadDatabase() { @@ -145,7 +160,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +179,49 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; + + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + + // If it already is on the device but it's out of date, remove it + if (File.Exists (new_path) && File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + + if (!File.Exists (new_path)) { + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + } - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +261,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +287,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +310,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 17 Apr 2006 17:32:36 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 12:40:38.000000000 -0500 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 11:35:47.000000000 -0500 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_18786_27847866.1145296037209-- From jstembridge@gmail.com Mon Apr 17 15:26:00 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B8C63B0349 for ; Mon, 17 Apr 2006 15:26:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01600-03 for ; Mon, 17 Apr 2006 15:25:53 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id EC0953B27F0 for ; Mon, 17 Apr 2006 15:25:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1323902wri for ; Mon, 17 Apr 2006 12:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ad6kGBc6N2U1lh28qfH5pnidbDGBNTgLskdI7iwZBsXFfUjbc/fokWJ0Xeu/POGlgbDPwgFtgi3Z+Y4doap5+4WDVR7+eRRvNlsJ7+J3O4lo3jYLs/hSCUr+7lh3odS6fZd75vss/pF8thKvbb5zK/4iOXeV6JQceqLMJfyCM+w= Received: by 10.54.122.17 with SMTP id u17mr267737wrc; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Message-ID: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> Date: Mon, 17 Apr 2006 20:25:01 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.54 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.54 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 19:26:00 -0000 Hi Gabriel, On 4/17/06, Gabriel Burt wrote: > Ok, I'm attaching the combined patch, a little later than promised, > sorry. :) Thanks for incorporating my patches, a couple of things: 1) There's now a conflict in Dap.cs against latest CVS. 2) With regard to the "If the volume for a new device isn't yet mounted, wait for it." The problem isn't that the device isn't mounted, as hal is correctly telling us that it is via volume.is_mounted. The actual issue is that at this point the list of mounted volumes coming from the Gnome VFS monitor doesn't contain our device. I don't know why this is, but I guess it would be the case if hal events are fired of synchronously and we get the mount event before gnome vfs does. Cheers, James. From jstembridge@gmail.com Mon Apr 17 18:11:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 310043B0D37 for ; Mon, 17 Apr 2006 18:11:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11728-04 for ; Mon, 17 Apr 2006 18:11:03 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.232]) by menubar.gnome.org (Postfix) with ESMTP id D47883B0BBF for ; Mon, 17 Apr 2006 18:11:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1355067wri for ; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KhssVVMmiKBMNNEhfwCwm90jpBUHvEJQSlqZ8yBRELaiLBD1d60QP6/L8xzc0E607cWQ0F/E939hJgddsKPdzam9/vCEI1Xzls66oBOGz+cfpmg8ZuE0VDBoCf2tB8589cs75FkqhV6BmUOUFlbCGcAkMEVgbEDxZ2jGZikF/mU= Received: by 10.54.66.15 with SMTP id o15mr427567wra; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Message-ID: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> Date: Mon, 17 Apr 2006 23:11:02 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8988_6161796.1145311862126" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.057, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 22:11:14 -0000 ------=_Part_8988_6161796.1145311862126 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/17/06, James Stembridge wrote: > Thanks for incorporating my patches, a couple of things: ... Fixed up patch attached. ------=_Part_8988_6161796.1145311862126 Content-Type: text/x-patch; name="mass-storage2.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mass-storage2.patch" X-Attachment-Id: f_em5d3dxv SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2JhbnNoZWUv Q2hhbmdlTG9nLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQ1MQpkaWZmIC11IC1yMS40NTEgQ2hh bmdlTG9nCi0tLSBDaGFuZ2VMb2cJMTcgQXByIDIwMDYgMTc6NDQ6MDkgLTAwMDAJMS40NTEKKysr IENoYW5nZUxvZwkxNyBBcHIgMjAwNiAxOToxMDoyNSAtMDAwMApAQCAtMSwzICsxLDMxIEBACisy MDA2LTA0LTE3ICBKYW1lcyBTdGVtYnJpZGdlICA8anN0ZW1icmlkZ2VAZ21haWwuY29tPgorCisJ KiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3M6IFdoZW4gYWRk aW5nIGEgc29uZyB0bworCXRoZSBkZXZpY2UsIG92ZXJ3cml0ZSBpdCBpZiBpdCBpcyBvdXQgb2Yg ZGF0ZS4gRG9uJ3QgdXNlIHRoZSB2b2x1bWUKKwlsYWJlbCBmb3IgdGhlIE5hbWUgaWYgaXQncyBi bGFuay4gSWYgbW91bnRlZCB2b2x1bWUgaXNuJ3QgYXZhaWxhYmxlCisJZnJvbSBWRlMgeWV0LCB3 YWl0IGZvciBpdC4KKworMjAwNi0wNC0xNyAgR2FicmllbCBCdXJ0ICA8Z2FicmllbC5idXJ0QGdt YWlsLmNvbT4KKworCSogc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbTogYWRkIFF1ZXVlZE9w ZXJhdGlvbk1hbmFnZXIuY3MuCisKKwkqIHNyYy9CYW5zaGVlLkJhc2UvUXVldWVkT3BlcmF0aW9u TWFuYWdlci5jczogTmV3IGZpbGUsIGFsbG93cyBmb3IgZ2VuZXJpYworCWFzeW5jaHJvbm91cyBl dmVudHMgbGlrZSBjb3B5aW5nIGZpbGVzIHRvIGEgVVNCIERBUCwgZXRjLgorCisJKiBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3M6IEFkZCBFbWl0VHJhY2tBZGRlZCBtZXRob2QgYW5kIGFsbG93 CisJc3ViLWNsYXNzZXMgdG8gb3ZlcnJpZGUgQWRkVHJhY2suCisKKwkqIHNyYy9CYW5zaGVlLkRh cC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jczogRml4IHRoZSBidWcgd2hlcmUgdGhlIERB UAorCWNvdWxkbid0IGJlIHBsdWdnZWQgaW4gd2hlbiBCYW5zaGVlIHN0YXJ0ZWQsIGhhbmRsZSBj b3B5aW5nIGZpbGVzIHRvIHRoZQorCWRldmljZSBhc3luY2hyb25vdXNseSB1c2luZyBhIFF1ZXVl ZE9wZXJhdGlvbk1hbmFnZXIgdGhhdCBwb3BzIHVwIGEKKwlBY3RpdmVVc2VyRXZlbnQgaWYgdGhl IHRyYW5zZmVyIGlzIHNsb3cuICBFc2NhcGUgYXJ0aXN0L2FsYnVtL3RpdGxlIHdoZW4KKwljcmVh dGluZyB0aGUgZGVzdGluYXRpb24gZmlsZW5hbWUuICBDYXRjaCBleGNlcHRpb25zIGluIHRoZSBj b3B5LgorCisJKiBzcmMvQmFuc2hlZS5XaWRldHMvQWN0aXZlVXNlckV2ZW50LmNzOiBBZGQgYW4g b3B0aW9uIGZvciBoYXZpbmcgdGhlIHVzZXIKKwlldmVudCBub3QgcmVnaXN0ZXIgaXRzZWxmIChh bmQgdGhlcmVmb3JlIG5vdCBzaG93IGl0c2VsZikgdW50aWwgYXQgbGVhc3QgYQorCXNlY29uZCBo YXMgcGFzc2VkLCBhdCB3aGljaCB0aW1lIGlmIHRoZSBvcGVyYXRpb24gaXMgbGVzcyB0aGFuIDMz JSBkb25lLAorCWl0IGlzIHJlZ2lzdGVyZWQgYW5kIHNob3duIChhbmQgb3RoZXJ3aXNlIGl0IGlz IG5vdCkuCisKIDIwMDYtMDQtMTcgIEFhcm9uIEJvY2tvdmVyICA8YWFyb25AYWJvY2sub3JnPgog CiAJKiBjb25maWd1cmUuYWM6IFJlcXVpcmUgbmpiLXNoYXJwIDAuMy4wKwpJbmRleDogc3JjL0Jh bnNoZWUuQmFzZS9NYWtlZmlsZS5hbQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2Jh bnNoZWUvc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbSx2CnJldHJpZXZpbmcgcmV2aXNpb24g MS4yOApkaWZmIC11IC1yMS4yOCBNYWtlZmlsZS5hbQotLS0gc3JjL0JhbnNoZWUuQmFzZS9NYWtl ZmlsZS5hbQk5IEFwciAyMDA2IDIxOjMwOjIzIC0wMDAwCTEuMjgKKysrIHNyYy9CYW5zaGVlLkJh c2UvTWFrZWZpbGUuYW0JMTcgQXByIDIwMDYgMTk6MTA6MjYgLTAwMDAKQEAgLTkzLDYgKzkzLDcg QEAKIAkkKHNyY2RpcikvTGlicmFyeVRyYWNrSW5mby5jcyBcCiAJJChzcmNkaXIpL0ZpbGVUcmFj a0luZm8uY3MgXAogCSQoc3JjZGlyKS9EQnVzUmVtb3RlLmNzIFwKKwkkKHNyY2RpcikvUXVldWVk T3BlcmF0aW9uTWFuYWdlci5jcyBcCiAJJChzcmNkaXIpL1F1ZXVlZFNxbGl0ZURhdGFiYXNlLmNz IFwKIAkkKHNyY2RpcikvQXVkaW9DZFJpcHBlci5jcyBcCiAJJChzcmNkaXIpL0lJbXBvcnRTb3Vy Y2UuY3MgXApJbmRleDogc3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNT IGZpbGU6IC9jdnMvZ25vbWUvYmFuc2hlZS9zcmMvQmFuc2hlZS5CYXNlL0RhcC9EYXAuY3Msdgpy ZXRyaWV2aW5nIHJldmlzaW9uIDEuMTYKZGlmZiAtdSAtcjEuMTYgRGFwLmNzCi0tLSBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3MJMTcgQXByIDIwMDYgMTc6NDQ6MTAgLTAwMDAJMS4xNgorKysg c3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBA IC0xMjMsNyArMTIzLDcgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZhdGUgdWludCB1aWQ7CiAg ICAgICAgIHByaXZhdGUgUHJvcGVydHlUYWJsZSBwcm9wZXJ0aWVzID0gbmV3IFByb3BlcnR5VGFi bGUoKTsKLSAgICAgICAgcHJpdmF0ZSBBcnJheUxpc3QgdHJhY2tzID0gbmV3IEFycmF5TGlzdCgp OyAKKyAgICAgICAgcHJvdGVjdGVkIEFycmF5TGlzdCB0cmFja3MgPSBuZXcgQXJyYXlMaXN0KCk7 IAogICAgICAgICBwcml2YXRlIEFjdGl2ZVVzZXJFdmVudCBzYXZlX3JlcG9ydF9ldmVudDsKICAg ICAgICAgcHJpdmF0ZSBib29sIGlzX3N5bmNpbmcgPSBmYWxzZTsKICAgICAgICAgcHJpdmF0ZSBi b29sIGNhbl9jYW5jZWxfc2F2ZSA9IHRydWU7CkBAIC0xODgsNyArMTg4LDcgQEAKICAgICAgICAg ICAgIE9uUHJvcGVydGllc0NoYW5nZWQoKTsKICAgICAgICAgfQogICAgICAgICAKLSAgICAgICAg cHVibGljIHZvaWQgQWRkVHJhY2soVHJhY2tJbmZvIHRyYWNrKQorICAgICAgICBwdWJsaWMgdmly dHVhbCB2b2lkIEFkZFRyYWNrKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAg ICAgVHJhY2tJbmZvIGRhcF90cmFjayA9IE9uVHJhY2tBZGRlZCh0cmFjayk7CiAgICAgICAgICAg ICAKQEAgLTUzNyw2ICs1MzcsMTIgQEAKICAgICAgICAgICAgIAogICAgICAgICAgICAgcmV0dXJu IG5ldyBTYWZlVXJpKGRpciArIFBhdGguRGlyZWN0b3J5U2VwYXJhdG9yQ2hhciAKICAgICAgICAg ICAgICAgICArICIuYmFuc2hlZS1kYXAtIiArIGZpbGUgKyAiLiIgKyBuZXdleHQpOworICAgICAg ICB9CisKKyAgICAgICAgcHJvdGVjdGVkIHZvaWQgRW1pdFRyYWNrQWRkZWQgKFRyYWNrSW5mbyB0 cmFjaykKKyAgICAgICAgeworICAgICAgICAgICAgaWYoVHJhY2tBZGRlZCAhPSBudWxsKQorICAg ICAgICAgICAgICAgIFRyYWNrQWRkZWQodGhpcywgbmV3IERhcFRyYWNrTGlzdFVwZGF0ZWRBcmdz KHRyYWNrKSk7CiAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICBwdWJsaWMgdmlydHVhbCBH ZGsuUGl4YnVmIEdldEljb24oaW50IHNpemUpCkluZGV4OiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0 b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9i YW5zaGVlL3NyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcyx2CnJl dHJpZXZpbmcgcmV2aXNpb24gMS42CmRpZmYgLXUgLXIxLjYgTWFzc1N0b3JhZ2VEYXAuY3MKLS0t IHNyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcwk5IEFwciAyMDA2 IDIxOjMwOjI2IC0wMDAwCTEuNgorKysgc3JjL0JhbnNoZWUuRGFwL01hc3NTdG9yYWdlL01hc3NT dG9yYWdlRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBAIC02Myw3ICs2Myw3IEBA CiAgICAgICAgICAgICAgICAgcGxheWVyX2RldmljZSA9IEhhbC5EZXZpY2UuVWRpc1RvRGV2aWNl cyAodm9sdW1lX2RldmljZS5Db250ZXh0LCBuZXcgc3RyaW5nIFtdIHt2b2x1bWVfZGV2aWNlIFsi aW5mby5wYXJlbnQiXX0pIFswXTsKICAgICAgICAgICAgICAgICB1c2JfZGV2aWNlID0gSGFsLkRl dmljZS5VZGlzVG9EZXZpY2VzIChwbGF5ZXJfZGV2aWNlLkNvbnRleHQsIG5ldyBzdHJpbmcgW10g e3BsYXllcl9kZXZpY2UgWyJzdG9yYWdlLnBoeXNpY2FsX2RldmljZSJdfSkgWzBdOwogICAgICAg ICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKLSAgICAgICAgICAgICAgICAgICAgcmV0dXJu IEluaXRpYWxpemVSZXN1bHQuSW52YWxpZDsKKyAgICAgICAgICAgICAgICByZXR1cm4gSW5pdGlh bGl6ZVJlc3VsdC5JbnZhbGlkOwogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBpZiAoIXBs YXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMgKCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuYWNjZXNz X21ldGhvZCIpIHx8CkBAIC03OCwzNyArNzgsNTIgQEAKICAgICAgICAgICAgICAgICAgICAgIXZv bHVtZV9kZXZpY2UuR2V0UHJvcGVydHlCb29sKCJ2b2x1bWUuaXNfbW91bnRlZCIpKQogICAgICAg ICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LldhaXRGb3JQcm9wZXJ0eUNoYW5nZTsK IAkgICAgCi0KLSAgICAgICAgICAgIHN0cmluZyBibG9ja19kZXZpY2UgPSB2b2x1bWVfZGV2aWNl IFsiYmxvY2tfZGV2aWNlIl07Ci0gICAgICAgICAgICBmb3JlYWNoIChHbm9tZS5WZnMuVm9sdW1l IHZvbCBpbiBtb25pdG9yLk1vdW50ZWRWb2x1bWVzKSB7Ci0gICAgICAgICAgICAgICAgaWYgKHZv bC5EZXZpY2VQYXRoID09IGJsb2NrX2RldmljZSkgewotICAgICAgICAgICAgICAgICAgICB0aGlz LnZvbHVtZSA9IHZvbDsKLSAgICAgICAgICAgICAgICAgICAgYnJlYWs7Ci0gICAgICAgICAgICAg ICAgfQorICAgICAgICAgICAgdm9sdW1lID0gbW9uaXRvci5HZXRWb2x1bWVGb3JQYXRoKE1vdW50 UG9pbnQpOworICAgICAgICAgICAgaWYodm9sdW1lID09IG51bGwpIHsKKyAgICAgICAgICAgICAg ICAvLyBHbm9tZSBWRlMgZG9lc24ndCBrbm93IHZvbHVtZSBpcyBtb3VudGVkIHlldAorICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCArPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdHJ1ZTsKKyAgICAgICAgICAgIH0gZWxzZSB7Cisg ICAgICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdm9sdW1lLklzUmVhZE9ubHk7CiAgICAgICAg ICAgICB9CiAKLSAgICAgICAgICAgIGlmICh2b2x1bWUgPT0gbnVsbCkKLSAgICAgICAgICAgICAg ICByZXR1cm4gSW5pdGlhbGl6ZVJlc3VsdC5JbnZhbGlkOwotCi0gICAgICAgICAgICBpc19yZWFk X29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKLQogICAgICAgICAgICAgYmFzZS5Jbml0aWFsaXpl ICh1c2JfZGV2aWNlKTsKICAKICAgICAgICAgICAgIEluc3RhbGxQcm9wZXJ0eSgiVmVuZG9yIiwg dXNiX2RldmljZVsidXNiLnZlbmRvciJdKTsKIAotICAgICAgICAgICAgUmVsb2FkRGF0YWJhc2Uo KTsKKyAgICAgICAgICAgIGlmKCFHbG9iYWxzLlVJTWFuYWdlci5Jc0luaXRpYWxpemVkKSB7Cisg ICAgICAgICAgICAgICAgR2xvYmFscy5VSU1hbmFnZXIuSW5pdGlhbGl6ZWQgKz0gT25VSU1hbmFn ZXJJbml0aWFsaXplZDsKKyAgICAgICAgICAgIH0gZWxzZSB7CisgICAgICAgICAgICAgICAgUmVs b2FkRGF0YWJhc2UoKTsKKyAgICAgICAgICAgIH0KICAgICAgICAgICAgIAogICAgICAgICAgICAg Ly8gRklYTUUgcHJvYmFibHkgc2hvdWxkIGJlIGFibGUgdG8gY2FuY2VsIGF0IHNvbWUgcG9pbnQg d2hlbiB5b3UgY2FuIGFjdHVhbGx5IHN5bmMKICAgICAgICAgICAgIENhbkNhbmNlbFNhdmUgPSBm YWxzZTsKICAgICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LlZhbGlkOwogICAgICAg ICB9CiAKKyAgICAgICAgcHVibGljIHZvaWQgT25Wb2x1bWVNb3VudGVkKG9iamVjdCBvLCBHbm9t ZS5WZnMuVm9sdW1lTW91bnRlZEFyZ3MgYXJncykgeworICAgICAgICAgICAgaWYoYXJncy5Wb2x1 bWUuRGV2aWNlUGF0aCA9PSB2b2x1bWVfZGV2aWNlWyJibG9jay5kZXZpY2UiXSkgeworICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCAtPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAKKyAgICAgICAgICAgICAgICB2b2x1bWUgPSBhcmdzLlZvbHVtZTsKKyAgICAgICAg ICAgICAgICBpc19yZWFkX29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKKworICAgICAgICAgICAg ICAgIC8vIEZJWE1FIHNob3VsZCBwcm9iYWJseSByZWxvYWQgdGhlIHRyYWNrcy4uCisgICAgICAg ICAgICB9CisgICAgICAgIH0KKwogICAgICAgICBwdWJsaWMgb3ZlcnJpZGUgdm9pZCBEaXNwb3Nl KCkKICAgICAgICAgewogICAgICAgICAgICAgLy8gRklYTUUgYW55dGhpbmcgZWxzZSB0byBkbyBo ZXJlPwogICAgICAgICAgICAgdm9sdW1lID0gbnVsbDsKICAgICAgICAgICAgIGJhc2UuRGlzcG9z ZSgpOwogICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSB2b2lkIE9uVUlNYW5hZ2VySW5pdGlh bGl6ZWQob2JqZWN0IG8sIEV2ZW50QXJncyBhcmdzKQorICAgICAgICB7CisgICAgICAgICAgICBS ZWxvYWREYXRhYmFzZSAoKTsKKyAgICAgICAgfQogIAogICAgICAgICBwcml2YXRlIHZvaWQgUmVs b2FkRGF0YWJhc2UoKQogICAgICAgICB7CkBAIC0xNDUsNyArMTYwLDggQEAKIAogICAgICAgICBw dWJsaWMgb3ZlcnJpZGUgdm9pZCBFamVjdCAoKQogICAgICAgICB7Ci0gICAgICAgICAgICB2b2x1 bWUuVW5tb3VudCAoVW5tb3VudENhbGxiYWNrKTsKKyAgICAgICAgICAgIGlmKHZvbHVtZSAhPSBu dWxsKQorICAgICAgICAgICAgICAgIHZvbHVtZS5Vbm1vdW50IChVbm1vdW50Q2FsbGJhY2spOwog ICAgICAgICB9CiAKICAgICAgICAgcHJpdmF0ZSB2b2lkIFVubW91bnRDYWxsYmFjayAoYm9vbCBz dWNjZWVkZWQsIHN0cmluZyBlcnJvciwgc3RyaW5nIGRldGFpbGVkX2Vycm9yKQpAQCAtMTYzLDE3 ICsxNzksNDkgQEAKICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBDb25zb2xlLldy aXRlTGluZSAoIkZhaWxlZCB0byBlamVjdC4gIHsxfSB7Mn0iLCBlcnJvciwgZGV0YWlsZWRfZXJy b3IpOwogICAgICAgICB9CisKKyAgICAgICAgcHVibGljIG92ZXJyaWRlIHZvaWQgQWRkVHJhY2so VHJhY2tJbmZvIHRyYWNrKQorICAgICAgICB7CisgICAgICAgICAgICBpZiAodHJhY2sgPT0gbnVs bCB8fCBJc1JlYWRPbmx5KQorICAgICAgICAgICAgICAgIHJldHVybjsKKworICAgICAgICAgICAg Ly8gSWYgd2UncmUgImFkZGluZyIgaXQgd2hlbiBpdCdzIGFscmVhZHkgb24gdGhlIGRldmljZSwg dGhlbgorICAgICAgICAgICAgLy8gd2UgZG9uJ3QgbmVlZCB0byBjb3B5IGl0CisgICAgICAgICAg ICBpZiAodHJhY2sgaXMgTWFzc1N0b3JhZ2VUcmFja0luZm8pIHsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKHRyYWNrKTsKKyAgICAgICAgICAgICAgICBFbWl0VHJhY2tBZGRlZCh0cmFjayk7 CisgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgIENvcGllci5FbnF1ZXVlICh0 cmFjayk7CisgICAgICAgICAgICB9CisgICAgICAgIH0KICAgICAgICAgCi0gICAgICAgIHByb3Rl Y3RlZCBvdmVycmlkZSBUcmFja0luZm8gT25UcmFja0FkZGVkKFRyYWNrSW5mbyB0cmFjaykKKyAg ICAgICAgcHJpdmF0ZSB2b2lkIEhhbmRsZUNvcHlSZXF1ZXN0ZWQgKG9iamVjdCBvLCBRdWV1ZWRP cGVyYXRpb25BcmdzIGFyZ3MpCiAgICAgICAgIHsKLSAgICAgICAgICAgIGlmICh0cmFjayBpcyBN YXNzU3RvcmFnZVRyYWNrSW5mbyB8fCBJc1JlYWRPbmx5KQotICAgICAgICAgICAgICAgIHJldHVy biB0cmFjazsKKyAgICAgICAgICAgIFRyYWNrSW5mbyB0cmFjayA9IGFyZ3MuT2JqZWN0IGFzIFRy YWNrSW5mbzsKKworICAgICAgICAgICAgaWYgKHRyYWNrID09IG51bGwpCisgICAgICAgICAgICAg ICAgcmV0dXJuOworICAgICAgICAgICAgCisgICAgICAgICAgICB0cnkgeworICAgICAgICAgICAg ICAgIHN0cmluZyBuZXdfcGF0aCA9IEdldFRyYWNrUGF0aCAodHJhY2spOworCisgICAgICAgICAg ICAgICAgLy8gSWYgaXQgYWxyZWFkeSBpcyBvbiB0aGUgZGV2aWNlIGJ1dCBpdCdzIG91dCBvZiBk YXRlLCByZW1vdmUgaXQKKyAgICAgICAgICAgICAgICBpZiAoRmlsZS5FeGlzdHMgKG5ld19wYXRo KSAmJiBGaWxlLkdldExhc3RXcml0ZVRpbWUodHJhY2suVXJpLkxvY2FsUGF0aCkgPiBGaWxlLkdl dExhc3RXcml0ZVRpbWUobmV3X3BhdGgpKQorICAgICAgICAgICAgICAgICAgICBSZW1vdmVUcmFj ayhuZXcgTWFzc1N0b3JhZ2VUcmFja0luZm8obmV3IFNhZmVVcmkobmV3X3BhdGgpKSk7CisKKyAg ICAgICAgICAgICAgICBpZiAoIUZpbGUuRXhpc3RzIChuZXdfcGF0aCkpIHsKKyAgICAgICAgICAg ICAgICAgICAgICAgIERpcmVjdG9yeS5DcmVhdGVEaXJlY3RvcnkgKFBhdGguR2V0RGlyZWN0b3J5 TmFtZSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICAgICAgICAgIEZpbGUuQ29weSAodHJh Y2suVXJpLkxvY2FsUGF0aCwgbmV3X3BhdGgpOworICAgICAgICAgICAgICAgIH0KIAotICAgICAg ICAgICAgc3RyaW5nIG5ld19wYXRoID0gR2V0VHJhY2tQYXRoICh0cmFjayk7Ci0gICAgICAgICAg ICBEaXJlY3RvcnkuQ3JlYXRlRGlyZWN0b3J5IChQYXRoLkdldERpcmVjdG9yeU5hbWUgKG5ld19w YXRoKSk7Ci0gICAgICAgICAgICBGaWxlLkNvcHkgKHRyYWNrLlVyaS5Mb2NhbFBhdGgsIG5ld19w YXRoKTsKKyAgICAgICAgICAgICAgICBUcmFja0luZm8gbmV3X3RyYWNrID0gbmV3IE1hc3NTdG9y YWdlVHJhY2tJbmZvIChuZXcgU2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKG5ld190cmFjayk7CisgICAgICAgICAgICAgICAgRW1pdFRyYWNrQWRkZWQodHJh Y2spOwogCi0gICAgICAgICAgICByZXR1cm4gbmV3IE1hc3NTdG9yYWdlVHJhY2tJbmZvIChuZXcg U2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICBhcmdzLlJldHVybk1lc3NhZ2Ug PSBTdHJpbmcuRm9ybWF0KCJ7MH0gLSB7MX0iLCB0cmFjay5BcnRpc3QsIHRyYWNrLlRpdGxlKTsK KyAgICAgICAgICAgIH0gY2F0Y2ggKEV4Y2VwdGlvbiBlKSB7CisgICAgICAgICAgICAgICAgYXJn cy5SZXR1cm5NZXNzYWdlID0gU3RyaW5nLkZvcm1hdCgiU2tpcHBpbmcgU29uZyIsIHRyYWNrLkFy dGlzdCwgdHJhY2suVGl0bGUpOworICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgIAog ICAgICAgICBwcm90ZWN0ZWQgb3ZlcnJpZGUgdm9pZCBPblRyYWNrUmVtb3ZlZChUcmFja0luZm8g dHJhY2spCkBAIC0yMTMsMTkgKzI2MSwyNCBAQAogICAgICAgICBwcml2YXRlIHN0cmluZyBHZXRU cmFja1BhdGggKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAgICAgc3RyaW5n IGZpbGVfcGF0aCA9ICIiOworCisgICAgICAgICAgICBzdHJpbmcgYXJ0aXN0ID0gRmlsZU5hbWVQ YXR0ZXJuLkVzY2FwZSAodHJhY2suQXJ0aXN0KTsKKyAgICAgICAgICAgIHN0cmluZyBhbGJ1bSA9 IEZpbGVOYW1lUGF0dGVybi5Fc2NhcGUgKHRyYWNrLkFsYnVtKTsKKyAgICAgICAgICAgIHN0cmlu ZyBudW1iZXJfdGl0bGUgPSBGaWxlTmFtZVBhdHRlcm4uRXNjYXBlICh0cmFjay5UcmFja051bWJl clRpdGxlKTsKKwogICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMg KCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuZmlsZXBhdGhfZm9ybWF0IikpIHsKICAgICAgICAgICAg ICAgICBmaWxlX3BhdGggPSBwbGF5ZXJfZGV2aWNlLkdldFByb3BlcnR5U3RyaW5nICgicG9ydGFi bGVfYXVkaW9fcGxheWVyLmZpbGVwYXRoX2Zvcm1hdCIpOwotICAgICAgICAgICAgICAgIGZpbGVf cGF0aCA9IGZpbGVfcGF0aC5SZXBsYWNlICgiJUFydGlzdCIsIHRyYWNrLkFydGlzdCk7Ci0gICAg ICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2UgKCIlQWxidW0iLCB0cmFj ay5BbGJ1bSk7CisgICAgICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2Ug KCIlQXJ0aXN0IiwgYXJ0aXN0KTsKKyAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3Bh dGguUmVwbGFjZSAoIiVBbGJ1bSIsIGFsYnVtKTsKIAogICAgICAgICAgICAgICAgIGlmIChmaWxl X3BhdGguSW5kZXhPZiAoIiVUcmFjayIpID09IC0xKSB7Ci0gICAgICAgICAgICAgICAgICAgIGZp bGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgdHJhY2suVHJhY2tO dW1iZXJUaXRsZSk7CisgICAgICAgICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5Q YXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgICAgICB9 IGVsc2UgewotICAgICAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFj ZSAoIiVUcmFjayIsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFjZSAoIiVUcmFjayIsIG51bWJlcl90aXRsZSk7 CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lICh0cmFjay5BcnRpc3QsIHRyYWNr LkFsYnVtKTsKLSAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21i aW5lIChmaWxlX3BhdGgsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAg IGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGFydGlzdCwgYWxidW0pOworICAg ICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0 aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgZmlsZV9wYXRo ICs9IFBhdGguR2V0RXh0ZW5zaW9uICh0cmFjay5VcmkuTG9jYWxQYXRoKTsKQEAgLTIzNCw2ICsy ODcsMjEgQEAKICAgICAgICAgICAgIHJldHVybiBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lIChNb3Vu dFBvaW50LCBmaWxlX3BhdGgpOwogICAgICAgICB9CiAKKyAgICAgICAgcHJpdmF0ZSBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyIGNvcGllcjsKKyAgICAgICAgcHVibGljIFF1ZXVlZE9wZXJhdGlvbk1h bmFnZXIgQ29waWVyIHsKKyAgICAgICAgICAgIGdldCB7CisgICAgICAgICAgICAgICAgaWYgKGNv cGllciA9PSBudWxsKSB7CisgICAgICAgICAgICAgICAgICAgIGNvcGllciA9IG5ldyBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyICgpOworICAgICAgICAgICAgICAgICAgICBjb3BpZXIuQWN0aW9uTWVz c2FnZSA9IENhdGFsb2cuR2V0U3RyaW5nICgiQ29weWluZyBTb25ncyIpOworICAgICAgICAgICAg ICAgICAgICBjb3BpZXIuUHJvZ3Jlc3NNZXNzYWdlID0gQ2F0YWxvZy5HZXRTdHJpbmcgKCJDb3B5 aW5nIHswfSBvZiB7MX0iKTsKKyAgICAgICAgICAgICAgICAgICAgY29waWVyLk9wZXJhdGlvblJl cXVlc3RlZCArPSBIYW5kbGVDb3B5UmVxdWVzdGVkOworICAgICAgICAgICAgICAgIH0KKworICAg ICAgICAgICAgICAgIHJldHVybiBjb3BpZXI7CisgICAgICAgICAgICB9CisgICAgICAgICAgICBz ZXQgeyBjb3BpZXIgPSB2YWx1ZTsgfQorICAgICAgICB9CisKICAgICAgICAgcHVibGljIHZpcnR1 YWwgc3RyaW5nIEljb25JZCB7CiAgICAgICAgICAgICBnZXQgewogICAgICAgICAgICAgICAgIHJl dHVybiBudWxsOwpAQCAtMjQyLDcgKzMxMCw4IEBACiAgCiAgICAgICAgIHB1YmxpYyBvdmVycmlk ZSBzdHJpbmcgTmFtZSB7CiAgICAgICAgICAgICBnZXQgewotICAgICAgICAgICAgICAgIGlmICh2 b2x1bWVfZGV2aWNlLlByb3BlcnR5RXhpc3RzKCJ2b2x1bWUubGFiZWwiKSkKKyAgICAgICAgICAg ICAgICBpZiAodm9sdW1lX2RldmljZS5Qcm9wZXJ0eUV4aXN0cygidm9sdW1lLmxhYmVsIikgJiYK KyAgICAgICAgICAgICAgICAgICAgdm9sdW1lX2RldmljZVsidm9sdW1lLmxhYmVsIl0uTGVuZ3Ro ID4gMCkKICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZvbHVtZV9kZXZpY2VbInZvbHVtZS5s YWJlbCJdOwogCiAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlz dHMoImluZm8ucHJvZHVjdCIpKQpJbmRleDogc3JjL0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2Vy RXZlbnQuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9iYW5zaGVlL3NyYy9CYW5z aGVlLldpZGdldHMvQWN0aXZlVXNlckV2ZW50LmNzLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjcK ZGlmZiAtdSAtcjEuNyBBY3RpdmVVc2VyRXZlbnQuY3MKLS0tIHNyYy9CYW5zaGVlLldpZGdldHMv QWN0aXZlVXNlckV2ZW50LmNzCTEzIEZlYiAyMDA2IDIyOjE4OjE0IC0wMDAwCTEuNworKysgc3Jj L0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2VyRXZlbnQuY3MJMTcgQXByIDIwMDYgMTk6MTA6Mjgg LTAwMDAKQEAgLTQ5LDYgKzQ5LDcgQEAKICAgICAgICAgcHJpdmF0ZSBzdHJpbmcgaGVhZGVyOwog ICAgICAgICAKICAgICAgICAgcHJpdmF0ZSB1aW50IHRpbWVvdXRfaWQgPSAwOworICAgICAgICBw cml2YXRlIHVpbnQgc2xvd190aW1lb3V0X2lkID0gMDsKICAgICAgICAgcHJpdmF0ZSBib29sIGRp c3Bvc2VkID0gZmFsc2U7CiAgICAgICAgIAogICAgICAgICBwdWJsaWMgZXZlbnQgRXZlbnRIYW5k bGVyIERpc3Bvc2VkOwpAQCAtNTYsOCArNTcsMTAgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZh dGUgYm9vbCBjYW5jZWxfcmVxdWVzdGVkOwogICAgICAgICBwcml2YXRlIGJvb2wgY2FuX2NhbmNl bDsKLSAgICAgCi0gICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIAor CisgICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIDogdGhpcyAobmFt ZSwgZmFsc2UpIHt9CisKKyAgICAgICAgcHVibGljIEFjdGl2ZVVzZXJFdmVudChzdHJpbmcgbmFt ZSwgYm9vbCBkZWxheV9zaG93KQogICAgICAgICB7CiAgICAgICAgICAgICB0aXBzID0gbmV3IFRv b2x0aXBzKCk7CiAgICAgICAgICAgICAKQEAgLTExNyw3ICsxMjAsMTEgQEAKICAgICAgICAgICAg IAogICAgICAgICAgICAgdGFibGUuU2hvd0FsbCgpOwogICAgICAgICAgICAgCi0gICAgICAgICAg ICBBY3RpdmVVc2VyRXZlbnRzTWFuYWdlci5JbnN0YW5jZS5SZWdpc3Rlcih0aGlzKTsKKyAgICAg ICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGVsYXkgc2hvdyA9IHswfSIsIGRlbGF5X3Nob3cp OworICAgICAgICAgICAgaWYgKGRlbGF5X3Nob3cpCisgICAgICAgICAgICAgICAgc2xvd190aW1l b3V0X2lkID0gR0xpYi5UaW1lb3V0LkFkZCgxMDAwLCBPbkNoZWNrRm9yRGlzcGxheSk7CisgICAg ICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgQWN0aXZlVXNlckV2ZW50c01hbmFnZXIuSW5z dGFuY2UuUmVnaXN0ZXIodGhpcyk7CiAgICAgICAgIH0KICAgICAgICAgCiAgICAgICAgIHB1Ymxp YyB2b2lkIENhbmNlbCgpCkBAIC0xMzgsMTAgKzE0NSwzNCBAQAogICAgICAgICAgICAgICAgIEdM aWIuU291cmNlLlJlbW92ZSh0aW1lb3V0X2lkKTsKICAgICAgICAgICAgICAgICB0aW1lb3V0X2lk ID0gMDsKICAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYoc2xvd190aW1lb3V0X2lkID4g MCkgeworICAgICAgICAgICAgICAgIEdMaWIuU291cmNlLlJlbW92ZShzbG93X3RpbWVvdXRfaWQp OworICAgICAgICAgICAgICAgIHNsb3dfdGltZW91dF9pZCA9IDA7CisgICAgICAgICAgICB9CiAg ICAgICAgICAgICAKICAgICAgICAgICAgIGlmKERpc3Bvc2VkICE9IG51bGwpIHsKICAgICAgICAg ICAgICAgICBEaXNwb3NlZCh0aGlzLCBuZXcgRXZlbnRBcmdzKCkpOwogICAgICAgICAgICAgfQor ICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSBib29sIE9uQ2hlY2tGb3JEaXNwbGF5KCkKKyAg ICAgICAgeworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCJPbkNoZWNrRm9yRGlzcGxh eSBjYWxsZWQuLiIpOworICAgICAgICAgICAgaWYgKGRpc3Bvc2VkKQorICAgICAgICAgICAgICAg IHJldHVybiBmYWxzZTsKKworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCIuLi5hbmQg bm90IGRpc3Bvc2VkLi4iKTsKKworICAgICAgICAgICAgLy8gSWYgdGhlIGV2ZW50IGhhcyBub3Qg bWFkZSBlbm91Z2ggcHJvZ3Jlc3MsIHNob3cgdGhpcyBldmVudAorICAgICAgICAgICAgaWYgKFBy b2dyZXNzIDwgMC4zMykgeworICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGlk bid0IG1ha2UgZW5vdWdoIHByb2dyZXNzLCBzaG93aW5nIGFjdGlvbiBldmVudCIpOworICAgICAg ICAgICAgICAgIEFjdGl2ZVVzZXJFdmVudHNNYW5hZ2VyLkluc3RhbmNlLlJlZ2lzdGVyKHRoaXMp OworICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGlu ZSAoIk1hZGUgZW5vdWdoIHByb2dyZXNzLCBub3Qgc2hvd2luZyBhY3Rpb24gZXZlbnQiKTsKKyAg ICAgICAgICAgIH0KKworICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICB9CiAgICAg ICAgIAogICAgICAgICBwcml2YXRlIGJvb2wgT25UaW1lb3V0KCkK ------=_Part_8988_6161796.1145311862126-- From florin@andrei.myip.org Tue Apr 18 01:35:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C8C23B1449 for ; Tue, 18 Apr 2006 01:35:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29878-04 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.200.83]) by menubar.gnome.org (Postfix) with ESMTP id 7CF603B1480 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from andrei.myip.org ([24.6.189.81]) by comcast.net (sccrmhc13) with ESMTP id <200604180535430130020jk5e>; Tue, 18 Apr 2006 05:35:43 +0000 Received: from localhost (andrei.myip.org [127.0.0.1]) by andrei.myip.org (Postfix) with ESMTP id 1C574E4DA for ; Mon, 17 Apr 2006 22:35:43 -0700 (PDT) Received: from andrei.myip.org ([127.0.0.1]) by localhost (andrei.myip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29548-01 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) Received: from rivendell.home.local (rivendell.home.local [192.168.0.12]) by andrei.myip.org (Postfix) with ESMTP id 33CC9E4D5 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) From: Florin Andrei To: banshee-list@gnome.org Content-Type: text/plain Date: Mon, 17 Apr 2006 22:35:39 -0700 Message-Id: <1145338540.7850.1.camel@rivendell.home.local> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at andrei.myip.org X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.58 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599] X-Spam-Score: -2.58 X-Spam-Level: Subject: [Banshee-List] lame presets X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 05:35:52 -0000 I was pleasantly surprised to discover that Banshee can use lame to encode songs, but there are only options for CBR encoding. Would it be possible to add an option to use the Standard VBR preset? lame --preset standard song.wav song.mp3 -- Florin Andrei http://florin.myip.org/ From jstembridge@gmail.com Tue Apr 18 08:11:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D77503B2A0F for ; Tue, 18 Apr 2006 08:11:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21709-01 for ; Tue, 18 Apr 2006 08:11:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.225]) by menubar.gnome.org (Postfix) with ESMTP id B8BF13B0685 for ; Tue, 18 Apr 2006 08:11:10 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1473829wri for ; Tue, 18 Apr 2006 05:11:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QOCHnaYn1W8HnzTHdBEvWuNLCHN3rMrtKODOxN36O1lnaqjeyvTzWB26uIa0LK1lmU9Zch1vC1/z7UR/GKAj9hMBKDpilYo+KCHI7LvIzwXlhcT0fxy3AKCEhd8hCAdcOZZFNe5sU7o3qjSBNUu3hZ7ziY/AyYr4BM1a7pgcKoI= Received: by 10.54.117.10 with SMTP id p10mr3925935wrc; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Message-ID: <18bc366d0604180511s1db23ce6od6fb909fe238444d@mail.gmail.com> Date: Tue, 18 Apr 2006 13:11:09 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14604_3604805.1145362269787" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.768 tagged_above=-999 required=2 tests=[AWL=-0.726, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.768 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 12:11:28 -0000 ------=_Part_14604_3604805.1145362269787 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another update, duplicate detection done via tags rather than filename as it's more reliable. Cheers, James. ------=_Part_14604_3604805.1145362269787 Content-Type: text/x-patch; name=mass-storage3.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em672y5z Content-Disposition: attachment; filename="mass-storage3.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.452 diff -u -r1.452 ChangeLog --- ChangeLog 18 Apr 2006 03:25:33 -0000 1.452 +++ ChangeLog 18 Apr 2006 12:07:10 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device. Don't use the volumel label for the + Name if it's blank. If the volume for a new device isn't yet available + from VFS, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * banshee.mdp: Updated MonoDevelop project Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 18 Apr 2006 12:07:11 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 18 Apr 2006 12:07:12 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 18 Apr 2006 12:07:12 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,31 +78,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +158,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +177,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +252,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +278,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +301,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 18 Apr 2006 12:07:13 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 18:40:38.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_14604_3604805.1145362269787-- From abockover@novell.com Tue Apr 18 11:32:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5BBF73B2A92 for ; Tue, 18 Apr 2006 11:32:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01121-06 for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 8B2073B18CF for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3IFWn8i024935 for ; Tue, 18 Apr 2006 11:32:50 -0400 (EDT) Subject: Re: [Banshee-List] lame presets From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145338540.7850.1.camel@rivendell.home.local> References: <1145338540.7850.1.camel@rivendell.home.local> Content-Type: text/plain Date: Tue, 18 Apr 2006 11:29:50 -0400 Message-Id: <1145374190.12396.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.077, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.476 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 15:32:52 -0000 Take a look at the lame options exposed by the gstreamer plugin: gst-inspect-0.10 lame Then edit the lame profile for Banshee in gconf: gconf-editor /apps/Banshee and browse to "EncoderProfiles," edit the value for that key and choose the 'lame' entry and edit the string, adding the options you want. --Aaron On Mon, 2006-04-17 at 22:35 -0700, Florin Andrei wrote: > I was pleasantly surprised to discover that Banshee can use lame to > encode songs, but there are only options for CBR encoding. > Would it be possible to add an option to use the Standard VBR preset? > > lame --preset standard song.wav song.mp3 > From c.travis.bradshaw@gmail.com Tue Apr 18 23:00:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 057813B1AF1 for ; Tue, 18 Apr 2006 23:00:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05516-01 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 6E9473B1538 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1099498pyu for ; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cf3W9wli+Ze1cAayQaFS15QAVvaQl1I6TnABaiOOc29iJYns1ZV/fiEy1oCWhPvugDpO9+sKIhkAbw9litcPKHZWndhRfBpBLejtdVKvh6chzma4CRUwZUJrWTF8zSYHLiQZ8F6gdbfkZ4DKstPE9g2GwHH6gbbznqEL+UXEDPU= Received: by 10.35.66.13 with SMTP id t13mr2324489pyk; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2006 22:00:10 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Help Reproducing a Bug - fuzzy searching (#333893) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 03:00:13 -0000 Hey guys and gals, I was wondering if anyone would be interested in helping me test a patch. On bug #333893 "searches should be fuzzy", I've submitted a patch to add fuzzy searching and a NOT operator to the simple search on the main interface. Everything seems to be working great--completely implementing Dave Rodgman's suggestions--and Aaron tested the patch. He found a couple issues with the patch and I'm very eager to get both issues handled for a clean patch. The catch is that I can't seem to reproduce the behavior he describes. If anyone would be willing to help me out and try the patch on bug #333893, I would greatly appreciate it. (And I think you'll like the fuzzy searching as well.) http://bugzilla.gnome.org/show_bug.cgi?id=3D333893 Thanks everyone, Travis Bradshaw From c.travis.bradshaw@gmail.com Wed Apr 19 05:07:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F219F3B115B for ; Wed, 19 Apr 2006 05:07:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24087-01 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id A7E973B09B2 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1167003pyu for ; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BqfIuopjY+7gr3hj8ItswDg3xFprHp3XoRM6TBR/ZSNpiN8ph95ZsBHUQE7BDUsE1ThNSiT1tV4l3/NJadTaNMDYVeZQnmcPzcdlFMFmFRYzII336ff8dCvIJptpvtA9MFf7r6kjFDs8zerNoj+uXlxv/JqZNzp2q1hGHWG+YWQ= Received: by 10.35.98.6 with SMTP id a6mr785072pym; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2006 04:07:35 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Trouble Building after cvs update X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:07:38 -0000 Just today I did a quick cvs update, and now I can't seem to get through an entire build. Everything is going great until I get: make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' make[3]: *** No rule to make target `IO/IOProxy.cs', needed by `Banshee.Base.dll'. Stop. Any idea what I've got wrong? Thanks, Travis Bradshaw travis@tbradshaw.net From jstembridge@gmail.com Wed Apr 19 05:22:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 128113B2EE1 for ; Wed, 19 Apr 2006 05:22:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24849-06 for ; Wed, 19 Apr 2006 05:22:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id B507B3B2EE8 for ; Wed, 19 Apr 2006 05:22:00 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 69so819510wra for ; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxdhQ36+eBF2urpxK5sBDRo0aYykKM76xppuq2CkdekEN7+2W0W9lEAigwcYPkmybezeV0IF1/iDyiFCFBG7iVEnACSR9aE+/M5pmH/4e+TA/HCjx8UGhmlHpYmIysQGjcumJCNL1iQjVWQZBhCBNYTlPVRYxUYNbgaHPshe67k= Received: by 10.54.102.9 with SMTP id z9mr5687243wrb; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Received: by 10.54.99.5 with HTTP; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Message-ID: <18bc366d0604190222u699f43e2wbe56283edaeee0f8@mail.gmail.com> Date: Wed, 19 Apr 2006 10:22:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Trouble Building after cvs update In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.093, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:22:02 -0000 On 4/19/06, Travis Bradshaw wrote: > Just today I did a quick cvs update, and now I can't seem to get > through an entire build. Everything is going great until I get: > > make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' > make[3]: *** No rule to make target `IO/IOProxy.cs', needed by > `Banshee.Base.dll'. Stop. Try "cvs up -d". The "-d" asks cvs to create any directories present in the repository that you don't have locally. James. From pat@thepatsite.com Wed Apr 19 12:57:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C4BB63B00B1 for ; Wed, 19 Apr 2006 12:57:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22600-01 for ; Wed, 19 Apr 2006 12:57:05 -0400 (EDT) Received: from f04n01.cac.psu.edu (f04s01.cac.psu.edu [128.118.141.31]) by menubar.gnome.org (Postfix) with ESMTP id 080A93B000F for ; Wed, 19 Apr 2006 12:57:04 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f04n01.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3JGuxcl155350 for ; Wed, 19 Apr 2006 12:56:59 -0400 From: Pat Rondon To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 19 Apr 2006 12:57:42 -0400 Message-Id: <1145465862.563.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Shuffle playlist plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:57:07 -0000 I've put together a shuffle playlist plugin that works like the dynamic mode in Amarok or (I assume) party shuffle in iTunes - it maintains a playlist of 20 randomly-chosen songs, automatically removing the ones that have been played. It may be a little hackish. Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 - Pat From julien.marbach@gmail.com Fri Apr 21 12:20:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 86AEE3B2011 for ; Fri, 21 Apr 2006 12:20:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20034-02 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id B66433B1F98 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so378302wxd for ; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cqBsk/SZ45xZgITyr5J5lSy5HJVETCTXvuTJiUaLdDOVa6rexVDSvrmNJ/69T2UoCEaFbsGR6FPXf+xX1OvNg0MsL2Ca1AcaGkI5oVd1qX03tHcr4ODWYWGKd0ubcdnjKCu4L+ukfaeF3CaXVXPrg+ol8nmatv4idsenS4RDPGo= Received: by 10.70.94.4 with SMTP id r4mr374257wxb; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Received: by 10.70.97.18 with HTTP; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Message-ID: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Date: Fri, 21 Apr 2006 12:20:54 -0400 From: "Julien Marbach" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25915_12204578.1145636454183" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.315 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.315 X-Spam-Level: Subject: [Banshee-List] iCal 2 iPod plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:20:55 -0000 ------=_Part_25915_12204578.1145636454183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, I've started to use google calendar since a few days and am already addicted. As a iPod user I like to have my calendar synchronised to my iPod= , and as a Banshee user I like to use Banshee to synchronise my iPod... So after writing a quick and dirty C#/mono standalone app to synchronize my google iCal to my iPod I would like to try to write a banshee plugin to do the job. Firstly I would like to be sure that no one else is working on the same idea. And secondly, do you think this is something that can be done as a banshee plugin? I've no idea at the moment of what I can/cannot do in a banshee plugin so I'm asking you... I believe i would need to use the ipod-sharp library but I don't know how t= o use its documentation (in xml format). Do I have to use monodoc or another tool to display it? Thanks, Julien ------=_Part_25915_12204578.1145636454183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there,
I've started to use google calendar since a few days and am al= ready addicted. As a iPod user I like to have my calendar synchronised to m= y iPod, and as a Banshee user I like to use Banshee to synchronise my iPod.= .. So after writing a quick and dirty C#/mono standalone app to synchronize= my google iCal to my iPod I would like to try to write a banshee plugin to= do the job.=20

Firstly I would like to be sure that no one else is working on the = same idea. And secondly, do you think this is something that can be done as= a banshee plugin? I've no idea at the moment of what I can/cannot do in a = banshee plugin so I'm asking you...

I believe i would need to use the ipod-sharp library but I don't kn= ow how to use its documentation (in xml format). Do I have to use monodoc o= r another tool to display it?

Thanks,

Julien
------=_Part_25915_12204578.1145636454183-- From lukasz.halman@gmail.com Fri Apr 21 12:38:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 557C73B2174 for ; Fri, 21 Apr 2006 12:38:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21075-01 for ; Fri, 21 Apr 2006 12:38:18 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8D6A63B10A3 for ; Fri, 21 Apr 2006 12:38:17 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so278931nfc for ; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=JKuSkcKpBhkzQd7Y8ofgJwzYwUT0W/Ur35w5F+5s+Wy5InC9zQB/1E39bsOYk8WoA+70m8YTuvfw/NLjxzVD13Zky53MJOXv0wty/AR5Ho1gEFRu+2MgE/BbYZETYS3D6FhlkH7AZNz6AxhIAelGJI0F29sfeD6a56jqO9h0Vhs= Received: by 10.48.211.17 with SMTP id j17mr1513821nfg; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Received: from lukasz ( [83.25.220.107]) by mx.gmail.com with ESMTP id q28sm41526nfc.2006.04.21.09.38.15; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Lukasz Halman To: banshee-list@gnome.org In-Reply-To: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Content-Type: text/plain Date: Fri, 21 Apr 2006 18:38:26 +0200 Message-Id: <1145637506.21876.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.57 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.57 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:38:19 -0000 Hi I think you should get in touch with evolution team. As far as I know they are working on getting evolution and google calendars syncing to work. If that's done then syncing ipod with evolution is very easy. That way not only it would be easier to do, but it'll provide better system integration. Since evolution-data-server is THE SOURCE of information in gnome, you should sync with it, not with google directly. That's my opinion. I have somewhere on my disk gtk2 application which used to sync evolution contacts/calendar with ipod. Give me a sign if you're interested in those sources. L. From abockover@novell.com Fri Apr 21 13:10:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AF453B15FA for ; Fri, 21 Apr 2006 13:10:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23144-03 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from ms-smtp-04.southeast.rr.com (unknown [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 4AA7F3B1CC5 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3LHAWZ4005019 for ; Fri, 21 Apr 2006 13:10:32 -0400 (EDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145637506.21876.4.camel@localhost.localdomain> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> <1145637506.21876.4.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 21 Apr 2006 13:07:30 -0400 Message-Id: <1145639250.21317.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.538 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.538 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 17:10:50 -0000 If you're looking to do this in C#, then I would use ipod-sharp for getting the device handle and events. If you want to use C, then use libipoddevice (which ipod-sharp uses for device access). While I guess this could be done in Banshee, I second the motion that it's probably better in Evolution. You could probably do it in C# with EDS bindings. It doesn't need to be *in* Evolution, rather Evolution does the calendar syncing, and then using EDS you request those calendars and sync them to the iPod. However, if you're looking for a quick route, I'd probably just write a standalone C# app that uses ipod-sharp and fetch your iCal calendars directly from Google and sync them. As for ipod-sharp docs, they are in the monodoc format. James also has them online at: http://www.snorp.net/docs/ipod-sharp/ ... not sure if they're 100% current, but the API has changed very little in quite a few months. Anyway, let us know your progress :) Cheers, Aaron On Fri, 2006-04-21 at 18:38 +0200, Lukasz Halman wrote: > Hi > > I think you should get in touch with evolution team. As far as I know > they are working on getting evolution and google calendars syncing to > work. If that's done then syncing ipod with evolution is very easy. That > way not only it would be easier to do, but it'll provide better system > integration. Since evolution-data-server is THE SOURCE of information in > gnome, you should sync with it, not with google directly. That's my > opinion. > > I have somewhere on my disk gtk2 application which used to sync > evolution contacts/calendar with ipod. Give me a sign if you're > interested in those sources. > > L. > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gcgmb-banshee-list@m.gmane.org Mon Apr 24 03:04:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B147C3B18DA for ; Mon, 24 Apr 2006 03:04:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24601-02 for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 2CF473B13BF for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FXv7B-0002ae-9a for banshee-list@gnome.org; Mon, 24 Apr 2006 09:04:09 +0200 Received: from 136.red-213-96-98.staticip.rima-tde.net ([213.96.98.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 Received: from knocte by 136.red-213-96-98.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses=22?= Date: Mon, 24 Apr 2006 09:03:53 +0200 Lines: 19 Message-ID: <444C7859.1000407@gmail.com> References: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 136.red-213-96-98.staticip.rima-tde.net User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.799 X-Spam-Level: Subject: [Banshee-List] Re: Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 07:04:20 -0000 Lukas Lipka escribió: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. Hello. I am very interested in this patch, which besides I think is a pre-requisite for the ipod-playlists patch (am I right?), so, any chances for it to be commited? Thanks in advance. Andrew -- From ruben@Lambda1.be Thu Apr 27 08:06:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E93363B2034 for ; Thu, 27 Apr 2006 08:06:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00930-02 for ; Thu, 27 Apr 2006 08:06:44 -0400 (EDT) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by menubar.gnome.org (Postfix) with ESMTP id C45F93B2015 for ; Thu, 27 Apr 2006 08:06:43 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 84BC14D203 for ; Thu, 27 Apr 2006 14:06:42 +0200 (CEST) Received: from smtp03.kuleuven.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id DEE104CF6D for ; Thu, 27 Apr 2006 14:06:41 +0200 (CEST) Received: from localhost.localdomain (10-91-21-117.kotnet.org [10.91.21.117]) by smtp03.kuleuven.be (Postfix) with ESMTP id 014E733278C for ; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id B23C6460149; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Subject: Re: [Banshee-List] Child Source patch v0.8 From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> References: <1145189078.6791.1.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 27 Apr 2006 14:06:40 +0200 Message-Id: <1146139600.4260.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by KULeuven Antivirus Cluster X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 12:06:46 -0000 On Sun, 2006-04-16 at 14:04 +0200, Lukas Lipka wrote: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. I'm not sure if this is known, but doing "Music -> New Playlist" with no other playlists around seems to position them wrongly. I'm not sure if I'm using the latest patch though. Kind Regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Thu Apr 27 14:13:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBEF33B0378 for ; Thu, 27 Apr 2006 14:13:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21923-06 for ; Thu, 27 Apr 2006 14:12:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 8A70C3B21B3 for ; Thu, 27 Apr 2006 14:12:51 -0400 (EDT) Received: (qmail 9173 invoked by uid 503); 27 Apr 2006 18:12:57 -0000 Received: (QMFILT: 1.0); 27 Apr 2006 18:12:57 -0000 Received: from b6.ovh.net (HELO mail46.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 27 Apr 2006 18:12:57 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:35 -0000 Received: from mail46.ha.ovh.net (10.0.50.46) by mail46.ha.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from adsl-d140.87-197-209.telecom.sk (HELO ?192.168.0.23?) (87.197.209.140) by ns0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-aPt7HjTvvfCZ8ZipkXG3" Date: Thu, 27 Apr 2006 20:12:28 +0200 Message-Id: <1146161548.8120.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.209.140 (adsl-d140.87-197-209.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.089, BAYES_00=-2.599] X-Spam-Score: -2.51 X-Spam-Level: Subject: [Banshee-List] Child sources patch v0.10 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:13:02 -0000 --=-aPt7HjTvvfCZ8ZipkXG3 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, attached are patches to get child source support working in Banshee. The minimode patch also fixes the random and shuffle play buttons bug. Lukas --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-childsource-0.10.patch Content-Type: text/x-patch; name=banshee-childsource-0.10.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 27 Apr 2006 18:06:16 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 27 Apr 2006 18:06:17 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource(args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource(args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,96 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + UpdateView (); + }; + + source.ChildSourceRemoved += delegate(SourceEventArgs e) { + RemoveSource(e.Source); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + + private void RefreshList() + { + store.Clear(); + foreach(Source source in SourceManager.Sources) { + AddSource (source); + } + } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,14 +239,6 @@ source.Rename(text); } - private void RefreshList() - { - store.Clear(); - foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); - } - } - private void OnCursorChanged(object o, EventArgs args) { if(currentTimeout < 0) { @@ -188,62 +269,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +350,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -281,24 +379,22 @@ public Source GetSource(TreePath path) { TreeIter iter; - + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +585,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 27 Apr 2006 18:06:17 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 27 Apr 2006 18:06:21 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 27 Apr 2006 18:06:21 -0000 @@ -41,6 +41,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 27 Apr 2006 18:06:29 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 27 Apr 2006 18:06:29 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 27 Apr 2006 18:06:37 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 27 Apr 2006 18:06:37 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-19 11:48:42.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-25 20:26:01.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-minimode-0.1.patch Content-Type: text/x-patch; name=banshee-minimode-0.1.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: src/MiniModeWindow.cs =================================================================== --- src/MiniModeWindow.cs (revision 84) +++ src/MiniModeWindow.cs (working copy) @@ -113,6 +113,7 @@ Globals.ActionManager["ShuffleAction"] as ToggleAction); shuffle_toggle_button.Relief = ReliefStyle.None; shuffle_toggle_button.ShowLabel = false; + shuffle_toggle_button.ActiveStateIndex = (int)Globals.Configuration.Get(GConfKeys.PlaylistRepeat); shuffle_toggle_button.ShowAll(); MultiStateToggleButton repeat_toggle_button = new MultiStateToggleButton(); @@ -124,8 +125,8 @@ Globals.ActionManager["RepeatSingleAction"] as ToggleAction); repeat_toggle_button.Relief = ReliefStyle.None; repeat_toggle_button.ShowLabel = false; + repeat_toggle_button.ActiveStateIndex = (bool)Globals.Configuration.Get(GConfKeys.PlaylistShuffle) ? 1 : 0; repeat_toggle_button.ShowAll(); - LowerButtonsBox.PackEnd(repeat_toggle_button, false, false, 0); LowerButtonsBox.PackEnd(shuffle_toggle_button, false, false, 0); Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -25,6 +25,9 @@ Clear(); foreach(Source source in SourceManager.Sources) { SetSource(Append(), source); + + foreach (ChildSource child in source.Children) + SetSource (Append(), child); } // Be prepared for other sources @@ -101,10 +104,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-aPt7HjTvvfCZ8ZipkXG3-- From trick@vanstaveren.us Thu Apr 27 14:41:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 235B13B022E for ; Thu, 27 Apr 2006 14:41:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25164-03 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id CFD5B3B03A5 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZBQy-0003nJ-ED; Thu, 27 Apr 2006 11:41:48 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Thu, 27 Apr 2006 14:41:48 -0400 Message-ID: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Date: Thu, 27 Apr 2006 14:41:48 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Pat Rondon Subject: Re: [Banshee-List] Shuffle playlist plugin References: <1145465862.563.36.camel@localhost.localdomain> In-Reply-To: <1145465862.563.36.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.588 tagged_above=-999 required=2 tests=[AWL=0.011, BAYES_00=-2.599] X-Spam-Score: -2.588 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:41:55 -0000 Pat, This looks cool - it kinda works for me but it doesn't remove tracks from the playlist after played. It also double-adds when I remove a single track. The code looks good...maybe the PlayerEngineCore has changed in my cvs version and that's why the automatic removal doesn't work. I haven't looked. The code looks good tho (this is how I'd implement it if I were you). I've actually been thinking lately about writing something similar to this. What I'd like to do (and I think other plugins for itunes or amarok probably do this) is set it up so it's not actually pseudo random, but "intelligent random" so that it will pick music that is "similar" to it (eg by maybe picking two or three songs by a single artist and then finding the next by picking songs from the same genre. It could get really advanced and choose tracks based on a service like last.fm or something (but that might be a bit much for now!). Maybe I'll hack at this sometime and see if I can hack up something on the intelligent random stuff I talked about. I'll also see if I can figure out the problem with not removing tracks... Good stuff! LMK if you make any more changes, I'd be curious to see :) -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from pat@thepatsite.com --------- Date: Wed, 19 Apr 2006 12:57:42 -0400 From: Pat Rondon Reply-To: banshee-list@gnome.org Subject: [Banshee-List] Shuffle playlist plugin To: banshee-list@gnome.org > I've put together a shuffle playlist plugin that works like the dynamic > mode in Amarok or (I assume) party shuffle in iTunes - it maintains a > playlist of 20 randomly-chosen songs, automatically removing the ones > that have been played. It may be a little hackish. > > Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 > > - Pat > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from pat@thepatsite.com ----- From trick@vanstaveren.us Fri Apr 28 03:33:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49A103B237A for ; Fri, 28 Apr 2006 03:33:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06229-08 for ; Fri, 28 Apr 2006 03:33:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 553963B2388 for ; Fri, 28 Apr 2006 03:33:00 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZNTH-0004BG-D6 for banshee-list@gnome.org; Fri, 28 Apr 2006 00:32:59 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 03:32:59 -0400 Message-ID: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> Date: Fri, 28 Apr 2006 03:32:59 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 07:33:04 -0000 Howdy folks, Everyone likes screenshots, so I'll start with the screenie: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png I was reading the feature requests page, and I've noticed that as far back as I can remember, someone requested that banshee show artist information from wikipedia. At first I thought it was silly. Banshee is a music player, not a web browser! Well, needless to say, I've found myself such an addict to wikipedia for artist information, that earlier today I thought it'd be a neat idea to implement. Thus, the banshee-wikipedia-plugin was born. It's simple right now (and I plan to keep it as simple as possible). It's a Gecko widget dropped right below the library view. (Gecko == firefoz/mozilla rendering engine). It has a fixed size (for now). It can be hidden/shown from the View menu (CTRL+I as well - is this an logical shortcut mapping?). It automatically queries wikipedia (english) for a page with the same title as the artist that you're playing. Changes with the track you're playing. I'm very tired. This is accurate probably about 80% of the time...you'll usually find a disambiguation page wherever it's lacking. I'm also telling it to use the mediawiki "simple" skin to make it load faster. In the future I'll figure out how to remove the nav bar on the left as it's pretty much useless (if you want to browse, use a web browser). Note the debug output in the console - it shows the actual URL you're looking at. A few hours of hacking, and here you have it: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshee SVN at some point so you can track progress (abock - do you mind me adding this?) MAJOR credit goes out to Fredrik Hedberg - more than half the code was based on the banshee-recommendation-plugin. I'll rewrite some of it in the future to fit my situation, but it provided a GREAT starting point for me as I barely had to think twice about how to create the frame, enable/disable it with a toggle menu item, etc. Thanks Fredrik! Enjoy! Reply to the list or snag me on IRC (nick: trick) Patrick -- Patrick "Trick" van Staveren Western Michigan University http://www.trick.vanstaveren.us/ From pat@thepatsite.com Fri Apr 28 08:40:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98A163B05AE for ; Fri, 28 Apr 2006 08:40:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23505-03 for ; Fri, 28 Apr 2006 08:40:12 -0400 (EDT) Received: from f05n03.cac.psu.edu (f05s03.cac.psu.edu [128.118.141.46]) by menubar.gnome.org (Postfix) with ESMTP id CB88E3B0463 for ; Fri, 28 Apr 2006 08:40:11 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f05n03.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3SCe4Lk059298; Fri, 28 Apr 2006 08:40:08 -0400 Subject: Re: [Banshee-List] Shuffle playlist plugin From: Pat Rondon To: Trick van Staveren In-Reply-To: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> References: <1145465862.563.36.camel@localhost.localdomain> <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Content-Type: text/plain Date: Fri, 28 Apr 2006 08:39:16 -0400 Message-Id: <1146227956.8845.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 12:40:16 -0000 On Thu, 2006-04-27 at 14:41 -0400, Trick van Staveren wrote: > This looks cool - it kinda works for me but it doesn't remove tracks > from the playlist > after played. It also double-adds when I remove a single track. The > code looks > good...maybe the PlayerEngineCore has changed in my cvs version and > that's why the > automatic removal doesn't work. I haven't tested much against CVS, but I had at least the first problem the last time I did. > I've actually been thinking lately about writing something similar to > this. What I'd > like to do (and I think other plugins for itunes or amarok probably do > this) is set it > up so it's not actually pseudo random, but "intelligent random" so that > it will pick > music that is "similar" to it (eg by maybe picking two or three songs > by a single > artist and then finding the next by picking songs from the same genre. Yeah, I think this is what Amarok does. What I really wanted to do, and just didn't get around to yet, was use the random track function that Banshee already uses for shuffle mode. That function is already weighted in favor of songs in the same genre and, in the future, it's possible it could be enhanced in other ways that would make it really convenient to use that function instead of duplicating it (e.g. user preferences about the randomization style, album shuffle, etc.). > Good stuff! LMK if you make any more changes, I'd be curious to see :) Just some code cleanups and other boring stuff so far. I'll probably hack on getting it to work with CVS this weekend now that classes are over. I'm glad you liked it - BTW, the Wikipedia plugin is really neat. - Pat From jstembridge@gmail.com Fri Apr 28 14:35:05 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 922483B1658 for ; Fri, 28 Apr 2006 14:35:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09510-03 for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id 17BED3B06DA for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so186392wra for ; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JvmoRFyztPFDwwlHaG52xEopONqBDaI+/aNPIAaqdDb5s8BRMZ9OAUhzHlidKPVMTKoqHEmlQf1louXlOMeyrvVPTt/V0VmooGkCy9PzMj8Eag09xIG0xuMDVS8McuSHKyRBVj2UYXpuO0WGfqY6EbSQAA5oVajMAOLmq80C7O0= Received: by 10.54.101.18 with SMTP id y18mr1088909wrb; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Message-ID: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> Date: Fri, 28 Apr 2006 19:34:58 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4491_30228987.1146249298310" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.512 tagged_above=-999 required=2 tests=[AWL=0.088, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.512 X-Spam-Level: Subject: [Banshee-List] Updated mass storage patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:35:05 -0000 ------=_Part_4491_30228987.1146249298310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Couple more minor changes. I've added to check to see if Gnome VFS has already been initialized before initializing it, and (more importantly) tried to prevent the mass storage plugin accepting non-generic devices like iPods. Cheers, James. ------=_Part_4491_30228987.1146249298310 Content-Type: text/x-patch; name=mass-storage4.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkv7vv0 Content-Disposition: attachment; filename="mass-storage4.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 18:29:04 -0000 @@ -1,3 +1,33 @@ +2006-04-28 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; check that the device is a generic + audio player and not something with a defined access method such as + an iPod; don't initialize Gnome VFS if it's already been initialized + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 18:29:05 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 18:29:06 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 18:29:06 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize (); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,13 +65,12 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || + player_device ["portable_audio_player.type"] != "generic" || !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } @@ -78,31 +79,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +159,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +178,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +253,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +279,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +302,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 18:29:07 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_4491_30228987.1146249298310-- From ghaefbgtk@gmail.com Fri Apr 28 14:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54E43B20F2 for ; Fri, 28 Apr 2006 14:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09787-05 for ; Fri, 28 Apr 2006 14:42:15 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id B77073B24EB for ; Fri, 28 Apr 2006 14:42:11 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i28so1982972nzi for ; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKNt1RA4UfdLauKLf6SESV9jd9wxjBNRM1GfaLtJR6osLxbMa5rza3BYH8TaadzK8q4gb6Q7/3nQlsiFUfguAVDbr9AVmCgJ+6HU5lkMFBP/OE5Dq0RsOIcARm8T7bsN9upNmiClBP54impKngAFd7qBYyY57b0I2F0EuzkDqZM= Received: by 10.36.43.6 with SMTP id q6mr804831nzq; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Received: by 10.36.135.1 with HTTP; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 20:42:11 +0200 From: "Nil Gradisnik" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:42:29 -0000 Looking good. I'm getting an error when using this plugin on Banshee 0.10.9 The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck Any suggestions ? On 4/28/06, Trick van Staveren wrote: > Howdy folks, > > Everyone likes screenshots, so I'll start with the screenie: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > > I was reading the feature requests page, and I've noticed that as far bac= k as I can > remember, someone requested that banshee show artist information from wik= ipedia. At > first I thought it was silly. Banshee is a music player, not a web brows= er! Well, > needless to say, I've found myself such an addict to wikipedia for artist= information, > that earlier today I thought it'd be a neat idea to implement. > > Thus, the banshee-wikipedia-plugin was born. > It's simple right now (and I plan to keep it as simple as possible). > It's a Gecko widget dropped right below the library view. (Gecko =3D=3D f= irefoz/mozilla > rendering engine). > It has a fixed size (for now). > It can be hidden/shown from the View menu (CTRL+I as well - is this an lo= gical shortcut > mapping?). > It automatically queries wikipedia (english) for a page with the same tit= le as the > artist that you're playing. Changes with the track you're playing. > I'm very tired. > This is accurate probably about 80% of the time...you'll usually find a d= isambiguation > page wherever it's lacking. > I'm also telling it to use the mediawiki "simple" skin to make it load fa= ster. > In the future I'll figure out how to remove the nav bar on the left as it= 's pretty much > useless (if you want to browse, use a web browser). > Note the debug output in the console - it shows the actual URL you're loo= king at. > > A few hours of hacking, and here you have it: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > > Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshe= e SVN at some > point so you can track progress (abock - do you mind me adding this?) > > MAJOR credit goes out to Fredrik Hedberg - more than half the code was ba= sed on the > banshee-recommendation-plugin. I'll rewrite some of it in the future to = fit my > situation, but it provided a GREAT starting point for me as I barely had = to think > twice about how to create the frame, enable/disable it with a toggle menu= item, etc. > Thanks Fredrik! > > Enjoy! Reply to the list or snag me on IRC (nick: trick) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From gabriel.burt@gmail.com Fri Apr 28 14:51:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F4633B18C8 for ; Fri, 28 Apr 2006 14:51:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10234-04 for ; Fri, 28 Apr 2006 14:51:24 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id D7D353B186D for ; Fri, 28 Apr 2006 14:51:23 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2394914pyu for ; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ip5uVHFHFKXlfT9XbGzeQ/F8w1zEb5d6ULSax4AtIptiWWuI8xZl+6Qw3q9iB2wHr1WOJ+/DAikPCFs/blI3Ot6+DQ1FUWcnw2NGeUi4gX8JfX8YuugFQHuB/KKp7jJs2WE8qfGaG3KvaDU5Q7Ot7tyfrhsivpkC7v+q3GrrhXk= Received: by 10.35.14.1 with SMTP id r1mr1960767pyi; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Fri, 28 Apr 2006 11:51:22 -0700 (PDT) Message-ID: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Date: Fri, 28 Apr 2006 13:51:23 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.154 tagged_above=-999 required=2 tests=[AWL=0.222, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.154 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:51:25 -0000 SGkgSmFtZXMsCgpPbiA0LzI4LzA2LCBKYW1lcyBTdGVtYnJpZGdlIDxqc3RlbWJyaWRnZUBnbWFp bC5jb20+IHdyb3RlOgo+IENvdXBsZSBtb3JlIG1pbm9yIGNoYW5nZXMuIEkndmUgYWRkZWQgdG8g Y2hlY2sgdG8gc2VlIGlmIEdub21lIFZGUyBoYXMKPiBhbHJlYWR5IGJlZW4gaW5pdGlhbGl6ZWQg YmVmb3JlIGluaXRpYWxpemluZyBpdCwgYW5kIChtb3JlCgpJJ20gbm90IHN1cmUgaWYgdGhlcmUn cyBhIHBlbmFsdHkgYXQgYWxsLCBidXQgdGhlIGRvY3Mgc2F5IGNhbGxpbmcKSW5pdGlhbGl6ZSBt dWx0aXBsZSB0aW1lcyBkb2Vzbid0IG1hdHRlciAtIGJ1dCB0aGlzIGlzIHRpbnkgcG9pbnQgbm90 CndvcnRoIHRhbGtpbmcgYWJvdXQuIDopCgo+IGltcG9ydGFudGx5KSB0cmllZCB0byBwcmV2ZW50 IHRoZSBtYXNzIHN0b3JhZ2UgcGx1Z2luIGFjY2VwdGluZwo+IG5vbi1nZW5lcmljIGRldmljZXMg bGlrZSBpUG9kcy4KCldlcmUgeW91IGhhdmluZyBhIHByb2JsZW0gd2l0aCBpdCB1c2luZyB0aGUg bWFzcyBzdG9yYWdlIHR5cGUgZm9yCmhhbmRsaW5nIGFuIGlQb2Q/ICBUaGF0IHNob3VsZCBub3Qg aGFwcGVuIGJlY2F1c2UgdGhlIG1hc3Mgc3RvcmFnZQpzdXBwb3J0IGlzIGxpc3RlZCBhcyBhIGdl bmVyaWMgRGFwVHlwZSwgYW5kIGRldmljZXMgYXJlIGNoZWNrZWQKYWdhaW5zdCBub24tZ2VuZXJp YyB0eXBlcyBmaXJzdC4KCkFsc28sIHdoZXJlIGRpZCB5b3UgZ2V0IHRoZSBwb3J0YWJsZV9hdWRp b19wbGF5ZXIudHlwZSBoYWwga2V5IGZyb20/IApJIGRvbid0IHNlZSBpdCBpbiB0aGUgc3BlYyBb MV0uCgpBbnkgd2F5LCB0aGFua3MgZm9yIHJldmlld2luZyB0aGUgY29kZSBhbmQgZm9yIHRoZSBo ZWxwIQoKR2FicmllbAoKWzFdIGh0dHA6Ly93ZWJjdnMuZnJlZWRlc2t0b3Aub3JnLypjaGVja291 dCovaGFsL2hhbC9kb2Mvc3BlYy9oYWwtc3BlYy5odG1sI2RldmljZS1wcm9wZXJ0aWVzLXBvcnRh YmxlX2F1ZGlvX3BsYXllcgo= From jstembridge@gmail.com Fri Apr 28 14:59:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F57B3B1986 for ; Fri, 28 Apr 2006 14:59:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10485-09 for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 2EACA3B222E for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so191504wra for ; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lg2hqVRaE1K092ouZ1RP/49L8tgTuDOPpIVk7vN3uXGfMYTHWq1khg+5cIpH+9v+QNhXSxElRanJx6GnIzWP1UqH4SHHr0/d0dzgwld0j7AEyvGUxKZHSb/N0C/M0mbkAow3DpZFFerC7qiVHvLC1N3dtihOPD3I/vPb9BR0cc0= Received: by 10.54.72.8 with SMTP id u8mr6840888wra; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Message-ID: <18bc366d0604281159u42bc56cdu76e21364fee5e54c@mail.gmail.com> Date: Fri, 28 Apr 2006 19:59:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.083, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:59:04 -0000 Hi Gabriel, On 4/28/06, Gabriel Burt wrote: > I'm not sure if there's a penalty at all, but the docs say calling > Initialize multiple times doesn't matter - but this is tiny point not > worth talking about. :) OK, I spotted it somewhere else in passing and thought it might be a good i= dea. > Were you having a problem with it using the mass storage type for > handling an iPod? That should not happen because the mass storage > support is listed as a generic DapType, and devices are checked > against non-generic types first. Ah OK, I hadn't caught that subtlety. I just noticed the type hal key and thought we should probably check it. > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. Dapper fdi files, e.g. portable_audio_player portable_audio_playe= r storage ipod ... Cheers, James. From trick@vanstaveren.us Fri Apr 28 15:36:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57BA03B09D1 for ; Fri, 28 Apr 2006 15:36:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12212-03 for ; Fri, 28 Apr 2006 15:36:39 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id DB6373B07B9 for ; Fri, 28 Apr 2006 15:36:38 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZYlZ-00085y-VM for banshee-list@gnome.org; Fri, 28 Apr 2006 12:36:37 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 15:36:37 -0400 Message-ID: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> Date: Fri, 28 Apr 2006 15:36:37 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.009, BAYES_00=-2.599] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:36:46 -0000 Interesting. It looks almost like you have the gecko-sharp libraries but not the underlying mozilla libraries (or your gecko-sharp library is pointing to the wrong location). Maybe I need to do something in my package to point to the proper location of a mozilla library. I don't know. I looked on my system for the library, and I found that it's libgtkembedmoz.so: trick@mc /usr/lib $ find | grep gtkembedmoz.so ./mozilla/libgtkembedmoz.so ./gecko-sdk/lib/libgtkembedmoz.so ./mozilla-firefox/libgtkembedmoz.so From the looks of it, your installation of gecko-sharp just doesn't have the library reference set up (properly). Maybe I need to include gecko-sharp.dll.config in the plugin install. trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat gecko-sharp.dll.config If I were you, I'd drop a copy of your gecko-sharp.dll.config into ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) LMK if you make any progress! Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from ghaefbgtk@gmail.com --------- Date: Fri, 28 Apr 2006 20:42:11 +0200 From: Nil Gradisnik Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Looking good. > > I'm getting an error when using this plugin on Banshee 0.10.9 > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck > > Any suggestions ? > > On 4/28/06, Trick van Staveren wrote: >> Howdy folks, >> >> Everyone likes screenshots, so I'll start with the screenie: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> I was reading the feature requests page, and I've noticed that as >> far back as I can >> remember, someone requested that banshee show artist information >> from wikipedia. At >> first I thought it was silly. Banshee is a music player, not a web >> browser! Well, >> needless to say, I've found myself such an addict to wikipedia for >> artist information, >> that earlier today I thought it'd be a neat idea to implement. >> >> Thus, the banshee-wikipedia-plugin was born. >> It's simple right now (and I plan to keep it as simple as possible). >> It's a Gecko widget dropped right below the library view. (Gecko == >> firefoz/mozilla >> rendering engine). >> It has a fixed size (for now). >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> an logical shortcut >> mapping?). >> It automatically queries wikipedia (english) for a page with the >> same title as the >> artist that you're playing. Changes with the track you're playing. >> I'm very tired. >> This is accurate probably about 80% of the time...you'll usually >> find a disambiguation >> page wherever it's lacking. >> I'm also telling it to use the mediawiki "simple" skin to make it >> load faster. >> In the future I'll figure out how to remove the nav bar on the left >> as it's pretty much >> useless (if you want to browse, use a web browser). >> Note the debug output in the console - it shows the actual URL >> you're looking at. >> >> A few hours of hacking, and here you have it: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> Banshee SVN at some >> point so you can track progress (abock - do you mind me adding this?) >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> was based on the >> banshee-recommendation-plugin. I'll rewrite some of it in the >> future to fit my >> situation, but it provided a GREAT starting point for me as I barely >> had to think >> twice about how to create the frame, enable/disable it with a toggle >> menu item, etc. >> Thanks Fredrik! >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> http://www.trick.vanstaveren.us/ >> >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from ghaefbgtk@gmail.com ----- From abockover@novell.com Fri Apr 28 15:42:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCF6D3B16A7 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12409-06 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id DB8733B0920 for ; Fri, 28 Apr 2006 15:42:55 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3SJgsfg010601 for ; Fri, 28 Apr 2006 15:42:54 -0400 (EDT) Subject: Re: [Banshee-List] Updated mass storage patch From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Content-Type: text/plain Date: Fri, 28 Apr 2006 15:39:47 -0400 Message-Id: <1146253187.2629.29.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.475 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.475 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:42:56 -0000 On Fri, 2006-04-28 at 13:51 -0500, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. I think portable_audio_player.type is now portable_audio_player.access_method. Either way, we sort of have an issue here. I guess the Mass Storage DAP should be forward-thinking and work only with the new spec (HEAD). But currently distros are shipping the old spec. NJB and iPod support in Banshee is based off keys from the old spec. These need to be forward-adapted for the new spec. --Aaron > Any way, thanks for reviewing the code and for the help! > > Gabriel > > [1] http://webcvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-spec.html#device-properties-portable_audio_player > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From m.j.hutchinson@gmail.com Fri Apr 28 16:03:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB33B158C for ; Fri, 28 Apr 2006 16:03:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13216-06 for ; Fri, 28 Apr 2006 16:03:43 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id AD23C3B04A8 for ; Fri, 28 Apr 2006 16:03:42 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so215777nfc for ; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bm1zIi0HyHPZNr3FQDVyf8fJWHBpYhLp/RktRZFjXhMtLlllKik6U/jThKxgLi7+MjIgYsghgt2TxRFykK5HB+YjvLNpPGG54tP3cX0vrtb5mPBG8ttJy1sNoA9Y+Aaj3dA/dHp94jZg1VPv4+VgTaFdi6eikbtjvcteg/pC/fQ= Received: by 10.48.12.19 with SMTP id 19mr6209526nfl; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Received: by 10.49.40.1 with HTTP; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 21:03:41 +0100 From: "Michael Hutchinson" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.483 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.483 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:03:44 -0000 On 4/28/06, Trick van Staveren wrote: > Interesting. It looks almost like you have the gecko-sharp libraries > but not the > underlying mozilla libraries (or your gecko-sharp library is pointing > to the wrong > location). Maybe I need to do something in my package to point to the > proper location > of a mozilla library. I don't know. Yes, this is something you have to do in your package (though whether you should have to do it is another question...) The Mozilla libraries are often not in the library loader's path, for example in Debian and Ubuntu. This is because of the way they are versioned. Mono projects that use Gecko# often have a wrapper script that runs something like $LD_LIBRARY_PATH:/usr/lib/mozilla /path/to/actual/program.exe You can see an example of this at http://svn.myrealbox.com/viewcvs/trunk/aspeditor/script.in?view=3Dmarkup Note that it detects the mozilla path in the configure script. MonoDevelop has a more robust (and more complicated) method: http://svn.myrealbox.com/viewcvs/trunk/monodevelop/monodevelop.in?view=3Dma= rkup Michael From jstembridge@gmail.com Fri Apr 28 16:10:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 354A73B158C for ; Fri, 28 Apr 2006 16:10:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13907-05 for ; Fri, 28 Apr 2006 16:10:37 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.235]) by menubar.gnome.org (Postfix) with ESMTP id 5877D3B17E0 for ; Fri, 28 Apr 2006 16:10:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so205719wra for ; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eksCIMim9SOcTZp+kQMRtqJhd5zSSmi9qLAqUSLyKvWwHYm+jpvlBH/XYV5e56uFhIveocwHIKc/RlIZU0Kscl6yegwEf2Ly3EzJYQgfRSZHXr9OhFpTW9X8SkN2geRdVwSEkbawlucv1TYSnzEc2a68QuJzcAKFPuFEQNKh94U= Received: by 10.54.112.16 with SMTP id k16mr2303711wrc; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Message-ID: <18bc366d0604281310w26cd92b9q3283aa223461f0f3@mail.gmail.com> Date: Fri, 28 Apr 2006 21:10:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5479_24399094.1146255032170" References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[AWL=0.079, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.521 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:10:44 -0000 ------=_Part_5479_24399094.1146255032170 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/28/06, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. OK, I've dropped the check as it doesn't seem necessary due to the priority given to non-generic plugins. The attached patch also adds support for players not recognised by hal at all, following the method used by rhythmbox of putting a file .is_audio_player in the root of the device. This change monkeys around with the device loading at startup, so I may well have inadvertently broken iPod/NJB support, but my best guess is that I haven't :-) Cheers, James. ------=_Part_5479_24399094.1146255032170 Content-Type: text/x-patch; name=mass-storage5.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkymw86 Content-Disposition: attachment; filename="mass-storage5.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 20:04:43 -0000 @@ -1,3 +1,37 @@ +2006-04-28 James Stembridge + + * src/Banshee.Base/Dap/DapCore.cs: Include all volumes when performing + initial scan for DAP devices, not just those that are children of + devices tagged by hal with portable_audio_player + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; don't initialize Gnome VFS if it's + already been initialized; accept devices with a file .is_audio_player + in the root + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 20:04:44 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 20:04:45 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Base/Dap/DapCore.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/DapCore.cs,v retrieving revision 1.11 diff -u -r1.11 DapCore.cs --- src/Banshee.Base/Dap/DapCore.cs 3 Mar 2006 07:46:54 -0000 1.11 +++ src/Banshee.Base/Dap/DapCore.cs 28 Apr 2006 20:04:45 -0000 @@ -149,23 +149,17 @@ private static void BuildDeviceTable() { + // All volume devices, should cover all storage based players foreach(Device device in Device.FindByStringMatch(HalCore.Context, + "info.category", "volume")) { + AddDevice(device); + } + + // None storage based players + foreach(Device device in Device.FindByStringMatch(HalCore.Context, "info.category", "portable_audio_player")) { - // Find the actual storage device that is mountable; - // this should probably just be possible by accessing - // portable_audio_player.storage_device, but for me - // as of HAL 0.5.6, this property just points to its own UDI - if(device["portable_audio_player.access_method"] == "storage" && - !device.GetPropertyBool("block.is_volume")) { - foreach(Device storage_device in Hal.Device.FindByStringMatch(device.Context, - "info.parent", device.Udi)) { - if(AddDevice(storage_device)) { - break; - } - } - } else { + if(device["portable_audio_player.access_method"] != "storage") AddDevice(device); - } } } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 20:04:46 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize(); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,46 +65,60 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; - } - - if (!player_device.PropertyExists ("portable_audio_player.access_method") || - player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || - !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } - if(!volume_device.PropertyExists ("volume.is_mounted") || - !volume_device.GetPropertyBool("volume.is_mounted")) + if (!volume_device.PropertyExists("block.device")) + return InitializeResult.Invalid; + + if (!volume_device.PropertyExists ("volume.is_mounted") || + !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } - } - - if (volume == null) + // Detect player via HAL property or presence of .is_audo_player in root + if (player_device["portable_audio_player.access_method"] != "storage" && + !File.Exists(Path.Combine(MountPoint, ".is_audio_player"))) { return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; + } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; + } base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +161,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +180,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +255,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +281,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +304,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 20:04:46 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_5479_24399094.1146255032170-- From trick@vanstaveren.us Sat Apr 29 14:15:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DEA4C3B0187 for ; Sat, 29 Apr 2006 14:15:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07090-06 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 909733B0380 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZtyw-0004Ar-B0; Sat, 29 Apr 2006 11:15:50 -0700 Received: from 24-247-125-4.dhcp.klmz.mi.charter.com (24-247-125-4.dhcp.klmz.mi.charter.com [24.247.125.4]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 29 Apr 2006 14:15:50 -0400 Message-ID: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> Date: Sat, 29 Apr 2006 14:15:50 -0400 From: Trick van Staveren To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> In-Reply-To: <1146319138.6018.4.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 24.247.125.4 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 18:15:56 -0000 Excellent! This is what OSS is all about :) Patches are more than just welcome - they're encouraged. If you've got a better way of doing this, don't hesitate to contribute :) I haven't changed it much since 0.0.1, other than I've been experimenting with using google searches of wikipedia to better find the right pages - for instance, when I play a song by Kansas, I get info about the state. Searching google for 'kansas band' returns only results with both words in it, and I use the auto-redirect to push it to wikipedia. It seems to return better results (about 95% of the time I get the correct page, versus right now probably only 75%). Aside that, patch away my friend! I will be putting this in the banshee SVN or my personal SVN (which I'm setting up this weekend) and we can work together better :) I look forward to it! -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from indecent@picle.org --------- Date: Sat, 29 Apr 2006 15:58:58 +0200 From: indecent Reply-To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin To: trick@vanstaveren.us > Hello, > My Name is David Schneider, I#m a cs student from Germany. > Some time ago i started writing a similar plugin for muine, but for > differtent reasons i never finished it. I had used a x-path based > aproach to parse the wikipedia pages. So if you don't mind i'd love to > contribute to the banshee-wikipedia plugin. > > David > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> Interesting. It looks almost like you have the gecko-sharp libraries >> but not the >> underlying mozilla libraries (or your gecko-sharp library is pointing >> to the wrong >> location). Maybe I need to do something in my package to point to the >> proper location >> of a mozilla library. I don't know. >> I looked on my system for the library, and I found that it's >> libgtkembedmoz.so: >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> ./mozilla/libgtkembedmoz.so >> ./gecko-sdk/lib/libgtkembedmoz.so >> ./mozilla-firefox/libgtkembedmoz.so >> >> From the looks of it, your installation of gecko-sharp just doesn't >> have the library >> reference set up (properly). Maybe I need to include >> gecko-sharp.dll.config in the >> plugin install. >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) >> >> LMK if you make any progress! >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> From: Nil Gradisnik >> Reply-To: banshee-list@gnome.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: banshee-list@gnome.org >> >> >> > Looking good. >> > >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck >> > >> > Any suggestions ? >> > >> > On 4/28/06, Trick van Staveren wrote: >> >> Howdy folks, >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> far back as I can >> >> remember, someone requested that banshee show artist information >> >> from wikipedia. At >> >> first I thought it was silly. Banshee is a music player, not a web >> >> browser! Well, >> >> needless to say, I've found myself such an addict to wikipedia for >> >> artist information, >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> firefoz/mozilla >> >> rendering engine). >> >> It has a fixed size (for now). >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> an logical shortcut >> >> mapping?). >> >> It automatically queries wikipedia (english) for a page with the >> >> same title as the >> >> artist that you're playing. Changes with the track you're playing. >> >> I'm very tired. >> >> This is accurate probably about 80% of the time...you'll usually >> >> find a disambiguation >> >> page wherever it's lacking. >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> load faster. >> >> In the future I'll figure out how to remove the nav bar on the left >> >> as it's pretty much >> >> useless (if you want to browse, use a web browser). >> >> Note the debug output in the console - it shows the actual URL >> >> you're looking at. >> >> >> >> A few hours of hacking, and here you have it: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> Banshee SVN at some >> >> point so you can track progress (abock - do you mind me adding this?) >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> was based on the >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> future to fit my >> >> situation, but it provided a GREAT starting point for me as I barely >> >> had to think >> >> twice about how to create the frame, enable/disable it with a toggle >> >> menu item, etc. >> >> Thanks Fredrik! >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > _______________________________________________ >> > Banshee-list mailing list >> > Banshee-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> > >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > > ----- End message from indecent@picle.org ----- From jasl8r@gmail.com Sat Apr 29 17:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DAAF3B02DF for ; Sat, 29 Apr 2006 17:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15587-06 for ; Sat, 29 Apr 2006 17:45:29 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 10B5D3B0255 for ; Sat, 29 Apr 2006 17:45:28 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so367226wra for ; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DlCKFLg9qkAWjVHgBqB9S48InVj3sHHUNgcdm1AlYDb9lFQ6nnFFfO7EQAka/b0x00NxGc4fFmVGIMfwsFDOTEYXxIZ0nsvguGirn3/qSBy8bxNrPYkTLivU8OBqNV79ovFBpFjud5n/siKOIga+Pk5zh1E+WOFxvXcIQMsFX5k= Received: by 10.54.91.16 with SMTP id o16mr1256135wrb; Sat, 29 Apr 2006 14:43:58 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) Message-ID: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> Date: Sat, 29 Apr 2006 17:45:28 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14006_24167613.1146347128392" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.028 tagged_above=-999 required=2 tests=[AWL=0.197, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.028 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 21:45:38 -0000 ------=_Part_14006_24167613.1146347128392 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to go to the band specific page with the attached "_(band)" in the url which exists when disambiguation is needed. Then if that page "does not have an article" or whatnot you can go to the page without the attached "_(band)" i= n the url. I don't know if that would be more accurate than google or not. Jeremy On 4/29/06, Trick van Staveren wrote: > > Excellent! This is what OSS is all about :) > > Patches are more than just welcome - they're encouraged. If you've got > a better way of > doing this, don't hesitate to contribute :) > > I haven't changed it much since 0.0.1, other than I've been > experimenting with using > google searches of wikipedia to better find the right pages - for > instance, when I > play a song by Kansas, I get info about the state. Searching google > for 'kansas band' > returns only results with both words in it, and I use the auto-redirect > to push it to > wikipedia. It seems to return better results (about 95% of the time I > get the correct > page, versus right now probably only 75%). Aside that, patch away my > friend! > > I will be putting this in the banshee SVN or my personal SVN (which I'm > setting up this > weekend) and we can work together better :) > > I look forward to it! > > -Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from indecent@picle.org --------- > Date: Sat, 29 Apr 2006 15:58:58 +0200 > From: indecent > Reply-To: indecent@picle.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: trick@vanstaveren.us > > > > Hello, > > My Name is David Schneider, I#m a cs student from Germany. > > Some time ago i started writing a similar plugin for muine, but > for > > differtent reasons i never finished it. I had used a x-path based > > aproach to parse the wikipedia pages. So if you don't mind i'd love to > > contribute to the banshee-wikipedia plugin. > > > > David > > > > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> Interesting. It looks almost like you have the gecko-sharp libraries > >> but not the > >> underlying mozilla libraries (or your gecko-sharp library is pointing > >> to the wrong > >> location). Maybe I need to do something in my package to point to the > >> proper location > >> of a mozilla library. I don't know. > >> I looked on my system for the library, and I found that it's > >> libgtkembedmoz.so: > >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> ./mozilla/libgtkembedmoz.so > >> ./gecko-sdk/lib/libgtkembedmoz.so > >> ./mozilla-firefox/libgtkembedmoz.so > >> > >> From the looks of it, your installation of gecko-sharp just doesn't > >> have the library > >> reference set up (properly). Maybe I need to include > >> gecko-sharp.dll.config in the > >> plugin install. > >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat > >> gecko-sharp.dll.config > >> > >> > >> > >> > >> > >> > >> > >> > >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you > :) > >> > >> LMK if you make any progress! > >> > >> Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from ghaefbgtk@gmail.com --------- > >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> From: Nil Gradisnik > >> Reply-To: banshee-list@gnome.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: banshee-list@gnome.org > >> > >> > >> > Looking good. > >> > > >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > found. > >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > luck > >> > > >> > Any suggestions ? > >> > > >> > On 4/28/06, Trick van Staveren wrote: > >> >> Howdy folks, > >> >> > >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> > >> >> I was reading the feature requests page, and I've noticed that as > >> >> far back as I can > >> >> remember, someone requested that banshee show artist information > >> >> from wikipedia. At > >> >> first I thought it was silly. Banshee is a music player, not a web > >> >> browser! Well, > >> >> needless to say, I've found myself such an addict to wikipedia for > >> >> artist information, > >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> > >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> It's simple right now (and I plan to keep it as simple as possible)= . > >> >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D > >> >> firefoz/mozilla > >> >> rendering engine). > >> >> It has a fixed size (for now). > >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this > >> >> an logical shortcut > >> >> mapping?). > >> >> It automatically queries wikipedia (english) for a page with the > >> >> same title as the > >> >> artist that you're playing. Changes with the track you're playing. > >> >> I'm very tired. > >> >> This is accurate probably about 80% of the time...you'll usually > >> >> find a disambiguation > >> >> page wherever it's lacking. > >> >> I'm also telling it to use the mediawiki "simple" skin to make it > >> >> load faster. > >> >> In the future I'll figure out how to remove the nav bar on the left > >> >> as it's pretty much > >> >> useless (if you want to browse, use a web browser). > >> >> Note the debug output in the console - it shows the actual URL > >> >> you're looking at. > >> >> > >> >> A few hours of hacking, and here you have it: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> > >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in > >> >> Banshee SVN at some > >> >> point so you can track progress (abock - do you mind me adding > this?) > >> >> > >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code > >> >> was based on the > >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> future to fit my > >> >> situation, but it provided a GREAT starting point for me as I barel= y > >> >> had to think > >> >> twice about how to create the frame, enable/disable it with a toggl= e > >> >> menu item, etc. > >> >> Thanks Fredrik! > >> >> > >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > _______________________________________________ > >> > Banshee-list mailing list > >> > Banshee-list@gnome.org > >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > >> > >> > >> ----- End message from ghaefbgtk@gmail.com ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > > > ----- End message from indecent@picle.org ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_14006_24167613.1146347128392 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to = go to the band specific page with the attached "_(band)" in the u= rl which exists when disambiguation is needed.  Then if that page &quo= t;does not have an article" or whatnot you can go to the page without = the attached "_(band)" in the url.  I don't know if that wou= ld be more accurate than google or not.

Jeremy

On 4/29/06, Trick van Staveren <trick@vanstaveren.us> wrote:
Excellent!  This is what OSS is all about :)

Patches are m= ore than just welcome - they're encouraged.  If you've got
a b= etter way of
doing this, don't hesitate to contribute :)

I haven'= t changed it much since=20 0.0.1, other than I've been
experimenting with using
google searches = of wikipedia to better find the right pages - for
instance, when I
pl= ay a song by Kansas, I get info about the state.  Searching googl= e
for 'kansas band'
returns only results with both words in it, and I use the auto-redirect=
to push it to
wikipedia.  It seems to return better result= s (about 95% of the time I
get the correct
page, versus right now pro= bably only 75%).  Aside that, patch away my friend!

I will be putting this in the banshee SVN or my personal SVN (which= I'm
setting up this
weekend) and we can work together better :)
<= br>I look forward to it!

-Patrick

--
Patrick "Trick&q= uot; van Staveren
Western Michigan University
AIM: goofyassmoose
Cell: 269.267.6008=
http://www.trick.vanstaver= en.us/


----- Message from indecent@picle.org ---------
    Date: Sat, 29 A= pr 2006 15:58:58 +0200
    From: indecent <indecent@picle.org>
Reply-To: indecent@picle.org
Subject: Re: [Banshee-List] Wikipedia plugin
   &= nbsp;  To: trick@vanstave= ren.us


> Hello,
> My Name is David Schneider, I#m a= cs student from Germany.
>       Some time ago i started writing a = similar plugin for muine, but for
> differtent reasons i never finish= ed it. I had used a x-path based
> aproach to parse the wikipedia pag= es. So if you don't mind i'd love to
> contribute to the banshee-wikipedia plugin.
>
> David<= br>>
>
> Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Tri= ck van Staveren:
>> Interesting.  It looks almost like y= ou have the gecko-sharp libraries
>> but not the
>> underlying mozilla libraries (or your = gecko-sharp library is pointing
>> to the wrong
>> locati= on).  Maybe I need to do something in my package to point to the<= br>>> proper location
>> of a mozilla library.  I don't know.
>> I l= ooked on my system for the library, and I found that it's
>> libgt= kembedmoz.so:
>> trick@mc /usr/lib $ find | grep gtkembedmoz.so>> ./mozilla/libgtkembedmoz.so
>> ./gecko-sdk/lib/libgtkembedmoz.so
>> ./mozilla-firefo= x/libgtkembedmoz.so
>>
>>  From the looks of it= , your installation of gecko-sharp just doesn't
>> have the librar= y
>> reference set up (properly).  Maybe I need to inclu= de
>> gecko-sharp.dll.config in the
>> plugin install.
&= gt;> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ = cat
>> gecko-sharp.dll.config
>> <configuration>
>>   <dllmap dll=3D"libglib-2.0-0.dll" tar= get=3D"libglib-2.0.so.0"/>
>>   <dllmap = dll=3D"libgobject-2.0-0.dll" target=3D"libgobject-2.0.so.0&q= uot;/>
>>   <dllmap dll=3D" libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>
>>= ;   <dllmap dll=3D"libgtk-win32-2.0-0.dll" target=3D= "libgtk-x11-2.0.so.0"/>
>>   <dllmap dll= =3D"gtkembedmoz.dll " target=3D"libgtkembedmoz.so"/>
>> </configu= ration>
>>
>> If I were you, I'd drop a copy of your g= ecko-sharp.dll.config into
>> ~/.gnome2/banshee/plugins and see wh= at happens!  Might fix it for you :)
>>
>> LMK if you make any progress!
>>
>&= gt; Patrick
>>
>> --
>> Patrick "Trick"= ; van Staveren
>> Western Michigan University
>> AIM: goo= fyassmoose
>> Cell: 269.267.6008
>> http://www.trick.vanstaveren.us/
>>
>><= br>>> ----- Message from ghaef= bgtk@gmail.com ---------
>>     Date: Fri, 28 Apr 2006 2= 0:42:11 +0200
>>     From: Nil Gradisnik <<= a href=3D"mailto:ghaefbgtk@gmail.com">ghaefbgtk@gmail.com>
>&g= t; Reply-To: banshee-list@gnome.org
>> Subject: Re: [Banshee-List] Wikipedi= a plugin
>>       To: banshee-list@gnome.org
>>
>&= gt;
>> > Looking good.
>> >
>> > I'm getting an error when using this plu= gin on Banshee 0.10.9
>> > The exception is thrown by Gecko.Web= Control -> gtkembedmoz.so not found.
>> > I linked the mozil= las=20 libgtkembedmoz.so to /usr/lib/ and still no luck
>> >
>&g= t; > Any suggestions ?
>> >
>> > On 4/28/06, Tri= ck van Staveren <trick@vanstaver= en.us > wrote:
>> >> Howdy folks,
>> >>
&= gt;> >> Everyone likes screenshots, so I'll start with the screeni= e:
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png<= /a>
>> >>
>> >> I was reading the feature req= uests page, and I've noticed that as
>> >> far back as I can
>> >> remember, someone requested that banshee show artist = information
>> >> from wikipedia.  At
>> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> browser!  Well,
>> >> needless to say, I've found myself such an addict to = wikipedia for
>> >> artist information,
>> >>= that earlier today I thought it'd be a neat idea to implement.
>>= >>
>> >> Thus, the banshee-wikipedia-plugin was born.
>&= gt; >> It's simple right now (and I plan to keep it as simple as poss= ible).
>> >> It's a Gecko widget dropped right below the lib= rary view. (Gecko =3D=3D
>> >> firefoz/mozilla
>> >> rendering engine= ).
>> >> It has a fixed size (for now).
>> >>= It can be hidden/shown from the View menu (CTRL+I as well - is this
>> >> an logical shortcut
>> >> mapping?).
&g= t;> >> It automatically queries wikipedia (english) for a page wit= h the
>> >> same title as the
>> >> artist th= at you're playing.  Changes with the track you're playing.
>> >> I'm very tired.
>> >> This is accurate= probably about 80% of the time...you'll usually
>> >> find = a disambiguation
>> >> page wherever it's lacking.
>&g= t; >> I'm also telling it to use the mediawiki "simple" ski= n to make it
>> >> load faster.
>> >> In the future I'll = figure out how to remove the nav bar on the left
>> >> as it= 's pretty much
>> >> useless (if you want to browse, use a w= eb browser).
>> >> Note the debug output in the console - it shows the a= ctual URL
>> >> you're looking at.
>> >>
&= gt;> >> A few hours of hacking, and here you have it:
>> = >>
>>
http://www.trick.vanstaveren.us/banshee/banshe= e-wikipedia-plugin-0.0.1.tar.bz2
>> >>
>> >&= gt; Feedback is welcome, appreciated, and encouraged!  I'll drop = it in
>> >> Banshee SVN at some
>> >> point so you= can track progress (abock - do you mind me adding this?)
>> >&= gt;
>> >> MAJOR credit goes out to Fredrik Hedberg - more th= an half the code
>> >> was based on the
>> >> banshee-recomme= ndation-plugin.  I'll rewrite some of it in the
>> >&= gt; future to fit my
>> >> situation, but it provided a GREA= T starting point for me as I barely
>> >> had to think
>> >> twice about how to = create the frame, enable/disable it with a toggle
>> >> menu= item, etc.
>> >> Thanks Fredrik!
>> >>
>> >> Enjoy!  Reply to the list or snag me on IRC (ni= ck: trick)
>> >>
>> >> Patrick
>> &g= t;>
>> >> --
>> >> Patrick "Trick&quo= t; van Staveren
>> >> Western Michigan University
>> >> http://www.trick.vanstaveren.us/
>> >>
>> >>
>> >>
>&g= t; >>
>> >> _______________________________________________
&g= t;> >> Banshee-list mailing list
>> >>
Banshee-list@gnome.org
>> >&g= t;=20 http://mail= .gnome.org/mailman/listinfo/banshee-list
>> >>
>&g= t; > _______________________________________________
>> > Ba= nshee-list mailing list
>> > Banshee-list@gn= ome.org
>> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >
>>
>>
>> ----- End message from ghaefbgtk@gmail.com -----
>&= gt;
>>
>>
>> ___________________________________= ____________
>> Banshee-list mailing list
>> Banshee-list@gnome.org
>> http://mail.gnome.org/mailman= /listinfo/banshee-list
>>
>
>


----- End message from indecent@picle.org -----



= _______________________________________________
Banshee-list mailing lis= t
Banshee-list@gnome.orghttp://mai= l.gnome.org/mailman/listinfo/banshee-list

------=_Part_14006_24167613.1146347128392-- From trick@vanstaveren.us Sun Apr 30 02:37:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 657613B0324 for ; Sun, 30 Apr 2006 02:37:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01852-07 for ; Sun, 30 Apr 2006 02:37:23 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 0B5353B0099 for ; Sun, 30 Apr 2006 02:37:22 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5YY-00083x-0d for banshee-list@gnome.org; Sat, 29 Apr 2006 23:37:22 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:37:21 -0400 Message-ID: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:37:21 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin, v0.0.2 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:37:26 -0000 Hey folks, Been working on it a bit and just wanted to publish :) http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 Changelog: 2006-04-30 Patrick van Staveren * Google search mode - uses the "i'm feeling lucky" feature of Google to direct to the closes match using Google, adding the keyword "band". I know, this isn't the best way, but it is much much more accurate than just searching for the artist keyword. * Experimenting with stuff like a status bar and progress bar for loading. * Progress bar is way too buggy and causes segfaults - commented out :) * Opens to about:blank, not google on init. Faster. * Made default size a bit bigger. Maybe this should be a percentage someday. Someone patch this for me! * Bunch of attempts to create a HPaned between the track listing and this, but I can't find a widget. Big chunk of commented code for now. * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) * Debug info is copied in, so you can easily trace Enjoy, and send feedback :) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From trick@vanstaveren.us Sun Apr 30 02:40:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DAEB3B0401 for ; Sun, 30 Apr 2006 02:40:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02027-02 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 6CAEB3B0409 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5b6-0008B5-OP for banshee-list@gnome.org; Sat, 29 Apr 2006 23:40:00 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:40:00 -0400 Message-ID: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:40:00 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> In-Reply-To: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.592 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599] X-Spam-Score: -2.592 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:40:04 -0000 I'd be totally game for that if I can (easily) detect disambiguation pages somehow. I haven't really tried...but I can't think of any other way than to look right at the source of the page, parse it all up, and hope I'm doing it right and that wikipedia never changes their skin format. Sounds like a lot of work to me :/ I'm using the google search right now which has proven really nice, and I'm going to research some of the external indexes to wikipedia...maybe there's one that indexes music groups only that we could search thru - that'd be superb :) Thanks for the suggestion! LMK if you have any idea how to detect disambiguation/no-result pages (code wise, even if you don't know C#, anything's good!) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from jasl8r@gmail.com --------- Date: Sat, 29 Apr 2006 17:45:28 -0400 From: Jeremy Slater Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Not sure if this is a good suggestion or not, but what if you first try to > go to the band specific page with the attached "_(band)" in the url which > exists when disambiguation is needed. Then if that page "does not have an > article" or whatnot you can go to the page without the attached "_(band)" in > the url. I don't know if that would be more accurate than google or not. > > Jeremy > > On 4/29/06, Trick van Staveren wrote: >> >> Excellent! This is what OSS is all about :) >> >> Patches are more than just welcome - they're encouraged. If you've got >> a better way of >> doing this, don't hesitate to contribute :) >> >> I haven't changed it much since 0.0.1, other than I've been >> experimenting with using >> google searches of wikipedia to better find the right pages - for >> instance, when I >> play a song by Kansas, I get info about the state. Searching google >> for 'kansas band' >> returns only results with both words in it, and I use the auto-redirect >> to push it to >> wikipedia. It seems to return better results (about 95% of the time I >> get the correct >> page, versus right now probably only 75%). Aside that, patch away my >> friend! >> >> I will be putting this in the banshee SVN or my personal SVN (which I'm >> setting up this >> weekend) and we can work together better :) >> >> I look forward to it! >> >> -Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from indecent@picle.org --------- >> Date: Sat, 29 Apr 2006 15:58:58 +0200 >> From: indecent >> Reply-To: indecent@picle.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: trick@vanstaveren.us >> >> >> > Hello, >> > My Name is David Schneider, I#m a cs student from Germany. >> > Some time ago i started writing a similar plugin for muine, but >> for >> > differtent reasons i never finished it. I had used a x-path based >> > aproach to parse the wikipedia pages. So if you don't mind i'd love to >> > contribute to the banshee-wikipedia plugin. >> > >> > David >> > >> > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> >> Interesting. It looks almost like you have the gecko-sharp libraries >> >> but not the >> >> underlying mozilla libraries (or your gecko-sharp library is pointing >> >> to the wrong >> >> location). Maybe I need to do something in my package to point to the >> >> proper location >> >> of a mozilla library. I don't know. >> >> I looked on my system for the library, and I found that it's >> >> libgtkembedmoz.so: >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> >> ./mozilla/libgtkembedmoz.so >> >> ./gecko-sdk/lib/libgtkembedmoz.so >> >> ./mozilla-firefox/libgtkembedmoz.so >> >> >> >> From the looks of it, your installation of gecko-sharp just doesn't >> >> have the library >> >> reference set up (properly). Maybe I need to include >> >> gecko-sharp.dll.config in the >> >> plugin install. >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you >> :) >> >> >> >> LMK if you make any progress! >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> AIM: goofyassmoose >> >> Cell: 269.267.6008 >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> >> From: Nil Gradisnik >> >> Reply-To: banshee-list@gnome.org >> >> Subject: Re: [Banshee-List] Wikipedia plugin >> >> To: banshee-list@gnome.org >> >> >> >> >> >> > Looking good. >> >> > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not >> found. >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no >> luck >> >> > >> >> > Any suggestions ? >> >> > >> >> > On 4/28/06, Trick van Staveren wrote: >> >> >> Howdy folks, >> >> >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> >> far back as I can >> >> >> remember, someone requested that banshee show artist information >> >> >> from wikipedia. At >> >> >> first I thought it was silly. Banshee is a music player, not a web >> >> >> browser! Well, >> >> >> needless to say, I've found myself such an addict to wikipedia for >> >> >> artist information, >> >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> >> firefoz/mozilla >> >> >> rendering engine). >> >> >> It has a fixed size (for now). >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> >> an logical shortcut >> >> >> mapping?). >> >> >> It automatically queries wikipedia (english) for a page with the >> >> >> same title as the >> >> >> artist that you're playing. Changes with the track you're playing. >> >> >> I'm very tired. >> >> >> This is accurate probably about 80% of the time...you'll usually >> >> >> find a disambiguation >> >> >> page wherever it's lacking. >> >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> >> load faster. >> >> >> In the future I'll figure out how to remove the nav bar on the left >> >> >> as it's pretty much >> >> >> useless (if you want to browse, use a web browser). >> >> >> Note the debug output in the console - it shows the actual URL >> >> >> you're looking at. >> >> >> >> >> >> A few hours of hacking, and here you have it: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> >> Banshee SVN at some >> >> >> point so you can track progress (abock - do you mind me adding >> this?) >> >> >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> >> was based on the >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> >> future to fit my >> >> >> situation, but it provided a GREAT starting point for me as I barely >> >> >> had to think >> >> >> twice about how to create the frame, enable/disable it with a toggle >> >> >> menu item, etc. >> >> >> Thanks Fredrik! >> >> >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> >> >> Patrick >> >> >> >> >> >> -- >> >> >> Patrick "Trick" van Staveren >> >> >> Western Michigan University >> >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Banshee-list mailing list >> >> >> Banshee-list@gnome.org >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> >> >> > _______________________________________________ >> >> > Banshee-list mailing list >> >> > Banshee-list@gnome.org >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >> > >> >> >> >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > >> > >> >> >> ----- End message from indecent@picle.org ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > ----- End message from jasl8r@gmail.com ----- From indecent@picle.org Sun Apr 30 11:17:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D9763B0903 for ; Sun, 30 Apr 2006 11:17:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08239-08 for ; Sun, 30 Apr 2006 11:17:32 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id B4F9F3B0908 for ; Sun, 30 Apr 2006 11:17:31 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 23A0920CFB7 for ; Sun, 30 Apr 2006 17:17:29 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Content-Type: multipart/mixed; boundary="=-9FrJ4BBEwohT68RTNwby" Date: Sun, 30 Apr 2006 17:17:26 +0200 Message-Id: <1146410246.6015.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:17:40 -0000 --=-9FrJ4BBEwohT68RTNwby Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, here comes a little patch for the wikipedia plugin, i added a parser for the wikipedia pages to remove information that is not needed, for now the bar left, header and footer. Also I added a class to manage the querys an request the pages using httpwebrequest, this could also help tho find pages that didn't match match the search. I used the httpwebresponse.Host to detect results not from wikipedia. Further i started a cache for the downloaded pages, these are stored in the plungindir/wikipedia David Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > Hey folks, > > Been working on it a bit and just wanted to publish :) > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > Changelog: > 2006-04-30 Patrick van Staveren > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > to the closes match using Google, adding the keyword "band". I know, this isn't the > best way, but it is much much more accurate than just searching for the artist > keyword. > * Experimenting with stuff like a status bar and progress bar for loading. > * Progress bar is way too buggy and causes segfaults - commented out :) > * Opens to about:blank, not google on init. Faster. > * Made default size a bit bigger. Maybe this should be a percentage someday. > Someone patch this for me! > * Bunch of attempts to create a HPaned between the track listing and this, but > I can't find a widget. Big chunk of commented code for now. > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > * Debug info is copied in, so you can easily trace > > Enjoy, and send feedback :) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=banshee_wikipedia.patch Content-Type: text/x-patch; name=banshee_wikipedia.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./WikipediaPane.cs 2006-04-30 08:28:46.000000000 +0200 +++ ../../new/WikipediaPane.cs 2006-04-30 16:42:39.000000000 +0200 @@ -19,13 +19,14 @@ namespace Banshee.Plugins.Wikipedia private VBox main; private HBox bot; private ProgressBar pb; - private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; - + + // set url + web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); @@ -109,15 +110,27 @@ namespace Banshee.Plugins.Wikipedia slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page - */ - web.LoadUrl( - "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+" + - + "%22" + current_artist + "%22" - + "band" + - + "&btnI=asdf" - ); - + */ + string temp; + WikipediaQuery w_query = new WikipediaQuery(current_artist); + WikipediaPage w_page = w_query.PerformLookUp(); + if ( w_page != null ) { + web.OpenStream(w_page.BaseUri,"text/html"); + web.AppendData(w_page.Header); + web.AppendData("

"+current_artist+"

"); + //Console.WriteLine(w_page.Header); + while ( (temp = w_page.ReadBodyLine())!= null ) { + web.AppendData(temp); + //Console.WriteLine(temp); + } + web.AppendData(w_page.Footer); + web.CloseStream(); + web.Show(); + Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); + } else { + Visible = false; + } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. @@ -130,7 +143,7 @@ namespace Banshee.Plugins.Wikipedia ); */ - Console.WriteLine("Wikipedia plugin debug: URL=" + web.Location); + } // --------------------------------------------------------------- // @@ -149,7 +162,7 @@ namespace Banshee.Plugins.Wikipedia Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { - ShowArtist(null, null); + //ShowArtist(null, null); Visible = true; return; } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { //ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaParser.cs Content-Type: text/x-csharp; name=WikipediaParser.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using System.Xml; using System.Xml.XPath; using Mono.Unix; namespace Banshee.Plugins.Wikipedia { public sealed class WikipediaParser { private string title; private MemoryStream body; private Stream target; public MemoryStream Body { get { return body; } } public StreamReader BodyReader { get { if ( this.body == null ) { this.body = new MemoryStream(); } return new StreamReader(this.body,Encoding.UTF8); } } public string Title { get { return this.title; } } public WikipediaParser(Stream s) { this.target = s; } public bool GetWikipediaInfo(string query) { if ( query == "" ) { return false; } else { // Stream response_stream = this.SendRequest(query); // this.Parse(response_stream); // response_stream.Close(); return true; } } public void Parse() { XmlDocument html = new XmlDocument(); StreamReader sr = new StreamReader(target, Encoding.UTF8); sr.ReadLine(); sr.ReadLine(); StringBuilder sb = new StringBuilder(); sb.Insert(0,""); sb.Append(sr.ReadToEnd()); sr.Close(); html.LoadXml(sb.ToString()); XPathNavigator nav = html.CreateNavigator(); try { XPathNodeIterator iter = nav.Select("//div[@id='bodyContent']"); iter.MoveNext(); XmlNode node = ((IHasXmlNode)iter.Current ).GetNode(); if ( node != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); } /*try { XPathNodeIterator iter = nav.Select("//h1[@class='firstHeading']/text()"); iter.MoveNext(); XmlNode node = (iter.Current as IHasXmlNode).GetNode(); if ( node != null ) { this.title = node.Value; } else { this.title = Catalog.GetString("Not found"); } } catch ( Exception e ) { Console.WriteLine("Error retrieving title "+e.Message); this.title = Catalog.GetString("An error ocurred")+" "+e.Message; } // maybe perform some cleanup on the html // get body try { XPathNodeIterator iter2 = nav.Select("//div[@id='bodyContent']"); iter2.MoveNext(); XmlNode node2 = ((IHasXmlNode)iter2.Current ).GetNode(); if ( node2 != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node2.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); }*/ } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaQuery.cs Content-Type: text/x-csharp; name=WikipediaQuery.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using Mono.Posix; using Banshee.Base; namespace Banshee.Plugins.Wikipedia { public class WikipediaQuery { private string query; private const string url = "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+%22{0}%22%20band&btnI=asdf";// private const string wiki_host = "en.wikipedia.org";// private static string CACHE_PATH = System.IO.Path.Combine (Paths.UserPluginDirectory, "wikipedia"); public string QueryUrl { get { Console.WriteLine(string.Format(url,this.query)); return string.Format(url,this.query); } } public string Query { get { return this.query; } set { this.query = value; } } public WikipediaQuery(string query) { this.query = query; if (!Directory.Exists (CACHE_PATH)) Directory.CreateDirectory (CACHE_PATH); } public WikipediaPage LoadInformation() { return PerformLookUp(); } public WikipediaPage PerformLookUp() { string filename = this.GetCachedPath(); HttpWebRequest c_req = GetRequest(); WikipediaPage wp; if (File.Exists (filename)) { // check if we have a cached veriosn DateTime last_updated_time = File.GetLastWriteTime (filename); if (DateTime.Compare(last_updated_time, c_req.IfModifiedSince) < 0) { // the cached verion is ok Console.WriteLine("Opening from cache"); wp = LoadFromCache(); } else { Console.WriteLine("In cache but to old"); wp = DownloadWikipedia(c_req); } } else { Console.WriteLine("Opening from wikipedia"); wp = DownloadWikipedia(c_req); } if ( wp != null ) wp.BaseUri = "http://en.wikipedia.org/wiki/"; return wp; } private HttpWebRequest GetRequest() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.QueryUrl); request.KeepAlive = false; request.AllowAutoRedirect = true; request.UserAgent = "Mozilla (Banshee-wikipedia plugin)"; return request; } private WikipediaPage DownloadWikipedia(HttpWebRequest req) { HttpWebResponse response = (HttpWebResponse) req.GetResponse(); Console.WriteLine(response.ResponseUri); if ( response.ResponseUri.Host.Equals(wiki_host) ) { Stream s = response.GetResponseStream (); WikipediaParser wparser = new WikipediaParser(s); wparser.Parse(); MemoryStream body = wparser.Body; response.Close(); try { SaveToCache(body); } catch(Exception e ) { Console.WriteLine("Could not cache file because: {0}",e.Message); // Console.WriteLine(e.StackTrace); } return new WikipediaPage(body); } else { return null; } } private WikipediaPage LoadFromCache() { string f_name = GetCachedPath(); FileStream fs = File.OpenRead(f_name); return new WikipediaPage(fs); } private void SaveToCache(MemoryStream body) { string f_name = GetCachedPath(); FileStream fs = File.OpenWrite(f_name); BufferedStream buffered_stream = new BufferedStream (fs); //buffered_stream.Write(body.GetBuffer(),0,(int)body.Length); byte [] buffer = new byte [8192]; int read; do { read = body.Read (buffer, 0, buffer.Length); if (read > 0) buffered_stream.Write (buffer, 0, read); } while (read > 0); buffered_stream.Close(); fs.Close(); body.Position = 0; } private string GetCachedPath() { return System.IO.Path.Combine (CACHE_PATH, Math.Abs(this.query.ToLower().GetHashCode()).ToString()); } } } --=-9FrJ4BBEwohT68RTNwby-- From indecent@picle.org Sun Apr 30 11:29:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 985493B094A for ; Sun, 30 Apr 2006 11:29:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08769-07 for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id 11F043B093C for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 76F0620BD1E for ; Sun, 30 Apr 2006 17:29:09 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <1146410246.6015.8.camel@localhost.localdomain> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> <1146410246.6015.8.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-js8RkJd1Mb70m6Kb0B4s" Date: Sun, 30 Apr 2006 17:29:07 +0200 Message-Id: <1146410947.6015.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:29:16 -0000 --=-js8RkJd1Mb70m6Kb0B4s Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, i'm sorry i forgot one file, and i found an error i introduced in wikipediapane.cs Am Sonntag, den 30.04.2006, 17:17 +0200 schrieb indecent: > Hello, > > here comes a little patch for the wikipedia plugin, i added a parser > for the wikipedia pages to remove information that is not needed, for > now the bar left, header and footer. > Also I added a class to manage the querys an request the pages using > httpwebrequest, this could also help tho find pages that didn't match > match the search. I used the httpwebresponse.Host to detect results not > from wikipedia. > Further i started a cache for the downloaded pages, these are stored in > the plungindir/wikipedia > > David > > Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > > Hey folks, > > > > Been working on it a bit and just wanted to publish :) > > > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > > > Changelog: > > 2006-04-30 Patrick van Staveren > > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > > to the closes match using Google, adding the keyword "band". I know, this isn't the > > best way, but it is much much more accurate than just searching for the artist > > keyword. > > * Experimenting with stuff like a status bar and progress bar for loading. > > * Progress bar is way too buggy and causes segfaults - commented out :) > > * Opens to about:blank, not google on init. Faster. > > * Made default size a bit bigger. Maybe this should be a percentage someday. > > Someone patch this for me! > > * Bunch of attempts to create a HPaned between the track listing and this, but > > I can't find a widget. Big chunk of commented code for now. > > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > > * Debug info is copied in, so you can easily trace > > > > Enjoy, and send feedback :) > > > > Patrick > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPage.cs Content-Type: text/x-csharp; name=WikipediaPage.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Text; namespace Banshee.Plugins.Wikipedia { public class WikipediaPage { private static string header = " "+ ""+ ""+ ""+ ""; private static string footer = ""; //public Stream body; private StreamReader body_reader; private string base_url; public string BaseUri { get { return base_url; } set { this.base_url = value; } } public string Header { get { return header; } } public string Footer { get { return footer; } } public WikipediaPage(Stream body) { body_reader = new StreamReader(body,System.Text.Encoding.UTF8); } ~WikipediaPage() { body_reader.Close(); //body.Close(); } public string ReadBodyLine() { return body_reader.ReadLine(); } } } --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-js8RkJd1Mb70m6Kb0B4s-- From jasl8r@gmail.com Sun Apr 30 12:15:17 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE6D53B0967 for ; Sun, 30 Apr 2006 12:15:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11583-01 for ; Sun, 30 Apr 2006 12:15:15 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id BD8453B0971 for ; Sun, 30 Apr 2006 12:15:14 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i34so2171290wra for ; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I+QXPZNF/D7ut55I8HfQr8RcMhBGuF+9tWBeWFahIBv5NVjYhqoNy6HtSsMBFlHiocwgEKFRYkNNyIipS1vUrx62wM4dVMpLnAnGpGFeJX/Rl1bfMR4zdbnJ29Ia/pjv8evooi3Kj8zlOrtAcdcCKBbxbMn4nQKgZHkpFEsXJjE= Received: by 10.54.119.11 with SMTP id r11mr1825205wrc; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Message-ID: <3e5be67b0604300915o415bc9cepa5652f9107f26dd@mail.gmail.com> Date: Sun, 30 Apr 2006 12:15:13 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3133_27860369.1146413713519" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.037 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -2.037 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 16:15:17 -0000 ------=_Part_3133_27860369.1146413713519 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page. The following meta tag comes from the missing page: I imagine this is to prevent google from indexing tons of missing pages. I= t looks like you could fetch a page such as /Kansas_(band) first and check fo= r a robots meta tag. In the case of /Kansas_(band) it won't be there and you will have your requested page. However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you coul= d then load /Collective_Soul which is the real page for this band. I imagine as long as the band exists in wikipedia, one of these pages should exist. Jeremy On 4/30/06, Trick van Staveren wrote: > > I'd be totally game for that if I can (easily) detect disambiguation > pages somehow. I > haven't really tried...but I can't think of any other way than to look > right at the > source of the page, parse it all up, and hope I'm doing it right and > that wikipedia > never changes their skin format. Sounds like a lot of work to me :/ > > I'm using the google search right now which has proven really nice, and > I'm going to > research some of the external indexes to wikipedia...maybe there's one > that indexes > music groups only that we could search thru - that'd be superb :) > > Thanks for the suggestion! LMK if you have any idea how to detect > disambiguation/no-result pages (code wise, even if you don't know C#, > anything's > good!) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from jasl8r@gmail.com --------- > Date: Sat, 29 Apr 2006 17:45:28 -0400 > From: Jeremy Slater > Reply-To: banshee-list@gnome.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: banshee-list@gnome.org > > > > Not sure if this is a good suggestion or not, but what if you first try > to > > go to the band specific page with the attached "_(band)" in the url > which > > exists when disambiguation is needed. Then if that page "does not have > an > > article" or whatnot you can go to the page without the attached > "_(band)" in > > the url. I don't know if that would be more accurate than google or > not. > > > > Jeremy > > > > On 4/29/06, Trick van Staveren wrote: > >> > >> Excellent! This is what OSS is all about :) > >> > >> Patches are more than just welcome - they're encouraged. If you've go= t > >> a better way of > >> doing this, don't hesitate to contribute :) > >> > >> I haven't changed it much since 0.0.1, other than I've been > >> experimenting with using > >> google searches of wikipedia to better find the right pages - for > >> instance, when I > >> play a song by Kansas, I get info about the state. Searching google > >> for 'kansas band' > >> returns only results with both words in it, and I use the auto-redirec= t > >> to push it to > >> wikipedia. It seems to return better results (about 95% of the time I > >> get the correct > >> page, versus right now probably only 75%). Aside that, patch away my > >> friend! > >> > >> I will be putting this in the banshee SVN or my personal SVN (which I'= m > >> setting up this > >> weekend) and we can work together better :) > >> > >> I look forward to it! > >> > >> -Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from indecent@picle.org --------- > >> Date: Sat, 29 Apr 2006 15:58:58 +0200 > >> From: indecent > >> Reply-To: indecent@picle.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: trick@vanstaveren.us > >> > >> > >> > Hello, > >> > My Name is David Schneider, I#m a cs student from Germany. > >> > Some time ago i started writing a similar plugin for muine, bu= t > >> for > >> > differtent reasons i never finished it. I had used a x-path based > >> > aproach to parse the wikipedia pages. So if you don't mind i'd love > to > >> > contribute to the banshee-wikipedia plugin. > >> > > >> > David > >> > > >> > > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> >> Interesting. It looks almost like you have the gecko-sharp > libraries > >> >> but not the > >> >> underlying mozilla libraries (or your gecko-sharp library is > pointing > >> >> to the wrong > >> >> location). Maybe I need to do something in my package to point to > the > >> >> proper location > >> >> of a mozilla library. I don't know. > >> >> I looked on my system for the library, and I found that it's > >> >> libgtkembedmoz.so: > >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> >> ./mozilla/libgtkembedmoz.so > >> >> ./gecko-sdk/lib/libgtkembedmoz.so > >> >> ./mozilla-firefox/libgtkembedmoz.so > >> >> > >> >> From the looks of it, your installation of gecko-sharp just doesn'= t > >> >> have the library > >> >> reference set up (properly). Maybe I need to include > >> >> gecko-sharp.dll.config in the > >> >> plugin install. > >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ > cat > >> >> gecko-sharp.dll.config > >> >> > >> >> > >> >> > >> >> > >> >> "/> > >> >> > >> >> > >> >> > >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for > you > >> :) > >> >> > >> >> LMK if you make any progress! > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> AIM: goofyassmoose > >> >> Cell: 269.267.6008 > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> ----- Message from ghaefbgtk@gmail.com --------- > >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> >> From: Nil Gradisnik > >> >> Reply-To: banshee-list@gnome.org > >> >> Subject: Re: [Banshee-List] Wikipedia plugin > >> >> To: banshee-list@gnome.org > >> >> > >> >> > >> >> > Looking good. > >> >> > > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > >> found. > >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > >> luck > >> >> > > >> >> > Any suggestions ? > >> >> > > >> >> > On 4/28/06, Trick van Staveren wrote: > >> >> >> Howdy folks, > >> >> >> > >> >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> >> > >> >> >> I was reading the feature requests page, and I've noticed that a= s > >> >> >> far back as I can > >> >> >> remember, someone requested that banshee show artist information > >> >> >> from wikipedia. At > >> >> >> first I thought it was silly. Banshee is a music player, not a > web > >> >> >> browser! Well, > >> >> >> needless to say, I've found myself such an addict to wikipedia > for > >> >> >> artist information, > >> >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> >> > >> >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> >> It's simple right now (and I plan to keep it as simple as > possible). > >> >> >> It's a Gecko widget dropped right below the library view. (Gecko > =3D=3D > >> >> >> firefoz/mozilla > >> >> >> rendering engine). > >> >> >> It has a fixed size (for now). > >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is > this > >> >> >> an logical shortcut > >> >> >> mapping?). > >> >> >> It automatically queries wikipedia (english) for a page with the > >> >> >> same title as the > >> >> >> artist that you're playing. Changes with the track you're > playing. > >> >> >> I'm very tired. > >> >> >> This is accurate probably about 80% of the time...you'll usually > >> >> >> find a disambiguation > >> >> >> page wherever it's lacking. > >> >> >> I'm also telling it to use the mediawiki "simple" skin to make i= t > >> >> >> load faster. > >> >> >> In the future I'll figure out how to remove the nav bar on the > left > >> >> >> as it's pretty much > >> >> >> useless (if you want to browse, use a web browser). > >> >> >> Note the debug output in the console - it shows the actual URL > >> >> >> you're looking at. > >> >> >> > >> >> >> A few hours of hacking, and here you have it: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> >> > >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it > in > >> >> >> Banshee SVN at some > >> >> >> point so you can track progress (abock - do you mind me adding > >> this?) > >> >> >> > >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the > code > >> >> >> was based on the > >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> >> future to fit my > >> >> >> situation, but it provided a GREAT starting point for me as I > barely > >> >> >> had to think > >> >> >> twice about how to create the frame, enable/disable it with a > toggle > >> >> >> menu item, etc. > >> >> >> Thanks Fredrik! > >> >> >> > >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> >> > >> >> >> Patrick > >> >> >> > >> >> >> -- > >> >> >> Patrick "Trick" van Staveren > >> >> >> Western Michigan University > >> >> >> http://www.trick.vanstaveren.us/ > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> _______________________________________________ > >> >> >> Banshee-list mailing list > >> >> >> Banshee-list@gnome.org > >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> >> > >> >> > _______________________________________________ > >> >> > Banshee-list mailing list > >> >> > Banshee-list@gnome.org > >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > > >> >> > >> >> > >> >> ----- End message from ghaefbgtk@gmail.com ----- > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > > >> > > >> > >> > >> ----- End message from indecent@picle.org ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > ----- End message from jasl8r@gmail.com ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_3133_27860369.1146413713519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page.  The following meta tag comes from the missing page:
<meta name=3D"robots" content=3D"noinde= x,nofollow" />
I imagine this is to prevent google from indexing tons of missing pages.  It looks like you could fetch a page such as /Kansas_(band) first and check for a robots meta tag.  In the case of /Kansas_(band) it won't be there and you will have your requested page.  However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you could then load /Collective_Soul which is the real page for this band.  I imagine as long as the band exists in wikipedia, one of these pages should exist.

Jeremy

On 4/30/06, Trick van Staveren <tric= k@vanstaveren.us> wrote:
I'd be totally game for that if I can (easily) detect disambiguation
pag= es somehow.  I
haven't really tried...but I can't think of any= other way than to look
right at the
source of the page, parse it all= up, and hope I'm doing it right and
that wikipedia
never changes their skin format.  Sounds li= ke a lot of work to me :/

I'm using the google search right now whic= h has proven really nice, and
I'm going to
research some of the exter= nal indexes to wikipedia...maybe there's one
that indexes
music groups only that we could search thru - that'd be= superb :)

Thanks for the suggestion!  LMK if you have any= idea how to detect
disambiguation/no-result pages (code wise, even if y= ou don't know C#,
anything's
good!)

Patrick

--
Patrick "Trick&qu= ot; van Staveren
Western Michigan University
AIM: goofyassmoose
Ce= ll: 269.267.6008
http://www= .trick.vanstaveren.us/


----- Message from jasl= 8r@gmail.com ---------
    Date: Sat, 29 Apr 200= 6 17:45:28 -0400
    From: Jeremy Slater <jasl8r@gmail.com >
Reply-To: banshee-lis= t@gnome.org
Subject: Re: [Banshee-List] Wikipedia plugin
 &n= bsp;    To: b= anshee-list@gnome.org


> Not sure if this is a good suggestion or not, but what if you firs= t try to
> go to the band specific page with the attached "_(ban= d)" in the url which
> exists when disambiguation is needed.&nbs= p; Then if that page "does not have an
> article" or whatnot you can go to the page without the attach= ed "_(band)" in
> the url.  I don't know if that = would be more accurate than google or not.
>
> Jeremy
>> On 4/29/06, Trick van Staveren < trick@vanstaveren.us> wrote:=
>>
>> Excellent!  This is what OSS is all abou= t :)
>>
>> Patches are more than just welcome - they're e= ncouraged.  If you've got
>> a better way of
>> doing this, don't hesitate to cont= ribute :)
>>
>> I haven't changed it much since 0.0.1, ot= her than I've been
>> experimenting with using
>> google = searches of wikipedia to better find the right pages - for
>> instance, when I
>> play a song by Kansas, I get info= about the state.  Searching google
>> for 'kansas band'=
>> returns only results with both words in it, and I use the auto= -redirect
>> to push it to
>> wikipedia.  It seems to re= turn better results (about 95% of the time I
>> get the correct>> page, versus right now probably only 75%).  Aside that,= patch away my
>> friend!
>>
>> I will be putting this in the bans= hee SVN or my personal SVN (which I'm
>> setting up this
>&g= t; weekend) and we can work together better :)
>>
>> I lo= ok forward to it!
>>
>> -Patrick
>>
>> --
>> Pa= trick "Trick" van Staveren
>> Western Michigan Universit= y
>> AIM: goofyassmoose
>> Cell: 269.267.6008
>>= =20 http://www.trick.vanstaveren.u= s/
>>
>>
>> ----- Message from indecent@picle.org ---------
>> =     Date: Sat, 29 Apr 2006 15:58:58 +0200
>>     From: indecent <indecent@picle.org>
>> Reply-To: indecent@picle.org
>> Subject: = Re: [Banshee-List] Wikipedia plugin
>>       To: trick@vanstaveren.us
>>
>>
>&= gt; > Hello,
>> > My Name is David Schneider, I#m a cs stude= nt from Germany.
>> >       Some = time ago i started writing a similar plugin for muine, but
>> for
>> > differtent reasons i never finished it. I= had used a x-path based
>> > aproach to parse the wikipedia pa= ges. So if you don't mind i'd love to
>> > contribute to the ba= nshee-wikipedia plugin.
>> >
>> > David
>> >
>> ><= br>>> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van = Staveren:
>> >> Interesting.  It looks almost like= you have the gecko-sharp libraries
>> >> but not the
>> >> underlying mozilla l= ibraries (or your gecko-sharp library is pointing
>> >> to t= he wrong
>> >> location).  Maybe I need to do some= thing in my package to point to the
>> >> proper location
>> >> of a mozilla lib= rary.  I don't know.
>> >> I looked on my system f= or the library, and I found that it's
>> >> libgtkembedmoz.s= o:
>> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so
>>= ; >> ./mozilla/libgtkembedmoz.so
>> >> ./gecko-sdk/lib= /libgtkembedmoz.so
>> >> ./mozilla-firefox/libgtkembedmoz.so
>> >>
>> >>  From the looks of it,= your installation of gecko-sharp just doesn't
>> >> have th= e library
>> >> reference set up (properly).  Mayb= e I need to include
>> >> gecko-sharp.dll.config in the
>> >> pl= ugin install.
>> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2= .0.0.0__ccf7d78a55e9f021 $ cat
>> >> gecko-sharp.dll.config
>> >> <configuration>
>> >>  = ; <dllmap dll=3D"libglib-2.0-0.dll" target=3D"libglib-2.0= .so.0"/>
>> >>   <dllmap dll=3D"li= bgobject-2.0-0.dll" target=3D" libgobject-2.0.so.0"/>
>> >>   <dllmap = dll=3D"libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>= ;
>> >>   <dllmap dll=3D"libgtk-win32-2.0-= 0.dll" target=3D" libgtk-x11-2.0.so.0"/>
>> >>   <dllmap = dll=3D"gtkembedmoz.dll" target=3D"libgtkembedmoz.so"/&g= t;
>> >> </configuration>
>> >>
>= > >> If I were you, I'd drop a copy of your=20 gecko-sharp.dll.config into
>> >> ~/.gnome2/banshee/plugins = and see what happens!  Might fix it for you
>> :)
>= ;> >>
>> >> LMK if you make any progress!
>&g= t; >>
>> >> Patrick
>> >>
>> >> --<= br>>> >> Patrick "Trick" van Staveren
>> >= ;> Western Michigan University
>> >> AIM: goofyassmoose
>> >> Cell: 269.267.6008
>> >> http://www.trick.vanstaveren.us/
>= ;> >>
>> >>
>> >> ----- Message from= =20 ghaefbgtk@gmail.com --------->> >>     Date: Fri, 28 Apr 2006 20:42:11 = +0200
>> >>     From: Nil Gradisnik <= ghaefbgtk@gmail.com >
>> >> Reply-To: banshee-list@gnome.org
>> >> Subject: Re: [Banshe= e-List] Wikipedia plugin
>> >>     =   To: banshee-list@gnome.org
>> >>
>> >>
>= ;> >> > Looking good.
>> >> >
>> >= ;> > I'm getting an error when using this plugin on Banshee 0.10.9
>> >> > The exception is thrown by Gecko.WebControl ->= ; gtkembedmoz.so not
>> found.
>> >> > I linked = the mozillas libgtkembedmoz.so to /usr/lib/ and still no
>> luck
>> >> >
>> >> > Any suggestions ?
&= gt;> >> >
>> >> > On 4/28/06, Trick van Stave= ren <trick@vanstaveren.us>= ; wrote:
>> >> >> Howdy folks,
>> >> >>>> >> >> Everyone likes screenshots, so I'll start with= the screenie:
>> >> >>
>> >>
>&g= t;=20 http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugi= n-0.0.1.png
>> >> >>
>> >> >>= I was reading the feature requests page, and I've noticed that as
>> >> >> far back as I can
>> >> >&= gt; remember, someone requested that banshee show artist information
>= ;> >> >> from wikipedia.  At
>> >> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> >> browser!  Well,
>> >&g= t; >> needless to say, I've found myself such an addict to wikipedia = for
>> >> >> artist information,
>> >> = >> that earlier today I thought it'd be a neat idea to implement.
>> >> >>
>> >> >> Thus, the bans= hee-wikipedia-plugin was born.
>> >> >> It's simple ri= ght now (and I plan to keep it as simple as possible).
>> >>= >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D
>> >> >> firefoz/mozilla
>> >> >>= ; rendering engine).
>> >> >> It has a fixed size (for= now).
>> >> >> It can be hidden/shown from the View m= enu (CTRL+I as well - is this
>> >> >> an logical shortcut
>> >> >= ;> mapping?).
>> >> >> It automatically queries wik= ipedia (english) for a page with the
>> >> >> same tit= le as the
>> >> >> artist that you're playing.  Chang= es with the track you're playing.
>> >> >> I'm very ti= red.
>> >> >> This is accurate probably about 80% of t= he time...you'll usually
>> >> >> find a disambiguation
>> >> &= gt;> page wherever it's lacking.
>> >> >> I'm also = telling it to use the mediawiki "simple" skin to make it
>&= gt; >> >> load faster.
>> >> >> In the future I'll figure out how to remove = the nav bar on the left
>> >> >> as it's pretty much>> >> >> useless (if you want to browse, use a web brow= ser).
>> >> >> Note the debug output in the console - it sh= ows the actual URL
>> >> >> you're looking at.
>= > >> >>
>> >> >> A few hours of hacking= , and here you have it:
>> >> >>
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1= .tar.bz2
>> >> >>
>> >> >> Feedback i= s welcome, appreciated, and encouraged!  I'll drop it in
>&= gt; >> >> Banshee SVN at some
>> >> >> poi= nt so you can track progress (abock - do you mind me adding
>> this?)
>> >> >>
>> >> >= > MAJOR credit goes out to Fredrik Hedberg - more than half the code
= >> >> >> was based on the
>> >> >> b= anshee-recommendation-plugin.  I'll rewrite some of it in the
>> >> >> future to fit my
>> >> >&g= t; situation, but it provided a GREAT starting point for me as I barely
= >> >> >> had to think
>> >> >> twice= about how to create the frame, enable/disable it with a toggle
>> >> >> menu item, etc.
>> >> >>= ; Thanks Fredrik!
>> >> >>
>> >> >&g= t; Enjoy!  Reply to the list or snag me on IRC (nick: trick)
&= gt;> >> >>
>> >> >> Patrick
>> >> >>
>= ;> >> >> --
>> >> >> Patrick "Tric= k" van Staveren
>> >> >> Western Michigan Univers= ity
>> >> >> http://www.trick.vanstaveren.us/
>> >> >>
>= > >> >>
>> >> >>
>> >> &= gt;>
>> >> >> ____________________________________________= ___
>> >> >> Banshee-list mailing list
>> >= ;> >> Banshee-list@gnome= .org
>> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list=
>> >> >>
>> >> > ______________= _________________________________
>> >> > Banshee-list mailing list
>> >> &= gt; Banshee-list@gnome.org>> >> > http://mail.gnome.org/mailman/listinfo/banshee-list
>> >>= ; >
>> >>
>> >>
>> >> -----= End message from ghaefbgtk@gmail.co= m -----
>> >>
>> >>
>> >>>> >> _______________________________________________
>= > >> Banshee-list mailing list
>> >> Banshee-list@gnome.org
>> >> http://mail.gnome.org/mailman/listinfo= /banshee-list
>> >>
>> >
>> > >>
>>
>> ----- End message from indecent@picle.org -----
>>
>>
= >>
>> _______________________________________________
>= ;> Banshee-list mailing list
>> Banshee-list@gnome.o= rg
>> http://mail.gnome.org/mailman/listinfo/banshee-list
>>
>


----- End message from jasl8r@gmail.com -----



_____________________________= __________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_3133_27860369.1146413713519-- From pcolijn@gmail.com Sun Apr 30 18:13:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 322D93B0A96 for ; Sun, 30 Apr 2006 18:13:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27714-01 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 509683B0AA1 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i2so891317wra for ; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Iv4YAyFeUcfCspas7ktPQXNpJXe++MVAqFF08CXmGdrmw8LTCdrLB4n+/H26GSpCJDHqnBWHPYPCQPTV+SG0k9KSNl6gI9mXoJ0n2fXJ6s4zYT8/L+D2G3+UPilXz06EAWvz4ibdmG2QkG+4jrV+yJpWTSk2HtmN2qd7xBVJikQ= Received: by 10.54.110.13 with SMTP id i13mr180047wrc; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Message-ID: <7c35b00e0604301513w424a2d63s7d7f57a4531a61cb@mail.gmail.com> Date: Sun, 30 Apr 2006 18:13:03 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin, v0.0.2 In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.59 tagged_above=-999 required=2 tests=[AWL=-0.772, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 22:13:06 -0000 T24gNC8zMC8wNiwgVHJpY2sgdmFuIFN0YXZlcmVuIDx0cmlja0B2YW5zdGF2ZXJlbi51cz4gd3Jv dGU6Cj4gICAgICAgICAqIEdvb2dsZSBzZWFyY2ggbW9kZSAtIHVzZXMgdGhlICJpJ20gZmVlbGlu ZyBsdWNreSIgZmVhdHVyZSBvZiBHb29nbGUgdG8gZGlyZWN0Cj4gdG8gdGhlIGNsb3NlcyBtYXRj aCB1c2luZyBHb29nbGUsIGFkZGluZyB0aGUga2V5d29yZCAiYmFuZCIuICBJIGtub3csIHRoaXMg aXNuJ3QgdGhlCj4gYmVzdCB3YXksIGJ1dCBpdCBpcyBtdWNoIG11Y2ggbW9yZSBhY2N1cmF0ZSB0 aGFuIGp1c3Qgc2VhcmNoaW5nIGZvciB0aGUgYXJ0aXN0Cj4ga2V5d29yZC4KCmhhdmUgeW91IHRo b3VnaHQgYWJvdXQgdXNpbmcgR29vZ2xlIE11c2ljIFNlYXJjaCBmb3IgdGhpcz8gZWcuCmh0dHA6 Ly93d3cuZ29vZ2xlLmNvbS9tdXNpY3NlYXJjaD9xPXUyCgpUaGF0IG1pZ2h0IHdvcmsgYSBiaXQg YmV0dGVyIHRoYW4gZG9pbmcgdGhlICJJJ20gZmVlbGluZyBsdWNreSIgdGhpbmcuCgpIYXZlIGZ1 biwKClBldGVyCg== From vamsee.krishna@gmail.com Sat Apr 1 18:41:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0ACF63B008B for ; Sat, 1 Apr 2006 18:41:33 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03585-04 for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 579443B007D for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3129274nzf for ; Sat, 01 Apr 2006 15:41:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fmHZaKDxRWKbqRg8MAssoa1KNvuFSXGH11TSmtyDBr+yTNWHDAdQjVTITQRuo9zdYD0ETotRkngvo7mSQuECj1OszqMW8HgOxursXlJNjv4AUdiFPVKl0vbvfavE1ZAi2sfZ1PNSKQBFGpKj0t/4voBKFdh9rl2pjzSBuMaPR4s= Received: by 10.35.99.5 with SMTP id b5mr1439412pym; Sat, 01 Apr 2006 15:41:30 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 15:41:30 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:11:30 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Smart Playlist plugin In-Reply-To: <1143655553.7081.12.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2612_30251453.1143934890438" References: <1143655553.7081.12.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.235 tagged_above=-999 required=2 tests=[AWL=0.990, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.235 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 23:41:33 -0000 ------=_Part_2612_30251453.1143934890438 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt wrote: > > Lukas' e-mail reminded me I should let you all know that I'm working on > a smart playlist plugin. I would say it's about 60% done - you can make > a new playlist and define the query it uses and it will run it, but it > doesn't handle the track database changing yet (scanning new/changed > tracks). If anybody wants to try it out or help me develop it, let me > know. Sounds interesting. I've recently shifted from Rhythmbox to Banshee and thi= s is one feature I'd love to see in Banshee. Please let me know the location where I can get your plugin. Would love to test it out. GVK ------=_Part_2612_30251453.1143934890438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt <gabriel.burt@gmail.com> wrote:
Lukas' e-mail reminded me I should let you all know that I'm working on
= a smart playlist plugin.  I would say it's about 60% done - you c= an make
a new playlist and define the query it uses and it will run it, = but it
doesn't handle the track database changing yet (scanning new/changedtracks).  If anybody wants to try it out or help me develop it, = let me
know.

Sounds interesting. I've recently shif= ted from Rhythmbox to Banshee and this is one feature I'd love to see in Ba= nshee.  Please let me know the location where I can get your plugin. W= ould love to test it out.

GVK

------=_Part_2612_30251453.1143934890438-- From vamsee.krishna@gmail.com Sat Apr 1 19:16:36 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6B0D3B00EA for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05543-01 for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id B77033B007D for ; Sat, 1 Apr 2006 19:16:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3152433nzf for ; Sat, 01 Apr 2006 16:16:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LtG2XeAF/It9i7ZRN5WrRp4XVhWrTjOSdpC3/GJDvGvD8RVGXRPXPYUaIjU2Bt4mz0YltT+LSGjHzmm5hcN2A4jPU2BseHBgPMfvsWF+KiLX6qybt0WU7cFjbkI9d2mP/8Rw64619oW0YElfHRXZ5v0PzKisV5bDmDmoi6Lvcfw= Received: by 10.35.36.13 with SMTP id o13mr477120pyj; Sat, 01 Apr 2006 16:16:35 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 16:16:35 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:46:35 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2868_14676714.1143936995115" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.985 tagged_above=-999 required=2 tests=[AWL=0.186, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_SV=0.077] X-Spam-Score: -0.985 X-Spam-Level: Subject: [Banshee-List] Smart-playlists-plugin: Select songs by rating X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 00:16:36 -0000 ------=_Part_2868_14676714.1143936995115 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I've checked out the smart-playlists-plugin from svn and after loading it, I'm trying to create a _smart playlist of songs with rating greater than 3_= . Here's the message printed to the terminal: Name =3D Smart Playlist, Cond =3D Rating < '3' , OrderAndLimit =3D Adding smart playlist Smart Playlist, id 6 Refreshing smart playlist Smart Playlist with condition Rating < '3' I don't think this is the correct behaviour. This can be changed to behave correctly by interchanging the '>' and '<' symbols on lines 162 and 164 of QueryBuilderModel.cs. Sorry for the crude report. Can someone patch it up? GVK ------=_Part_2868_14676714.1143936995115 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,
I've checked out the smart-playlists-plugin from svn and after lo= ading it, I'm trying to create a _smart playlist of songs with rating great= er than 3_. Here's the message printed to the terminal:

Name =3D Sma= rt Playlist, Cond =3D  Rating < '3' , OrderAndLimit =3D
Adding smart playlist Smart Playlist, id 6
Refreshing smart playlist= Smart Playlist with condition  Rating < '3'

I don't think t= his is the correct behaviour. This can be changed to behave correctly by in= terchanging the '>' and '<' symbols on lines 162 and 164 of=20 QueryBuilderModel.cs.

Sorry for the crude report. Can someone patch = it up?

GVK


------=_Part_2868_14676714.1143936995115-- From abockover@novell.com Sun Apr 2 18:15:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 035D13B15E9 for ; Sun, 2 Apr 2006 18:15:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13902-05 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by menubar.gnome.org (Postfix) with ESMTP id 39D4E3B14D1 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from [192.168.0.105] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-02-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k32MFha9021588 for ; Sun, 2 Apr 2006 18:15:43 -0400 (EDT) From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Sun, 02 Apr 2006 18:13:02 -0400 Message-Id: <1144015982.30733.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=-0.116, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_SV=0.077] X-Spam-Score: -2.438 X-Spam-Level: Subject: [Banshee-List] Banshee Subversion X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 22:15:50 -0000 If you have an SSH account on svn.banshee-project.org, you may get a "host name changed" message from SSH. I rebuild my linode on which I host the Banshee SVN repo. No need to be alarmed, just remove the old host entry from your ~/.ssh/known_hosts. Also, please verify that you can actually connect/check out over svn +ssh. Everything should be okay though. Thanks, --Aaron From bertrand.lorentz@free.fr Mon Apr 3 12:12:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 563C23B1882 for ; Mon, 3 Apr 2006 12:12:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08632-06 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id 6495E3B1B96 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp1-g19.free.fr (Postfix) with ESMTP id 632149AE05 for ; Mon, 3 Apr 2006 18:12:21 +0200 (CEST) From: Bertrand Lorentz To: banshee-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BKPtsZ2EQVIvrBBRMYpg" Date: Mon, 03 Apr 2006 18:12:18 +0200 Message-Id: <1144080739.22083.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Nomad Jukebox and Banshee X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 16:12:24 -0000 --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everybody, I'm a happy owner of a Creative Nomad Jukebox 1 (Product ID 0x0222), and I've been having some trouble to get it working with banshee. When I connect my NJB to my PC, it shows up in banshee, but no tracks are shown. The following exception is thrown : System.ApplicationException: Frame data is not uint16 in <0x00051> Njb.SongFrame:get_DataShort () in <0x00025> Njb.Song:GetFrameShort (System.String label) in <0x00010> Njb.Song:get_IsProtected () in <0x0028a> Banshee.Dap.Njb.NjbDapTrackInfo:LoadFromNjbSong (Banshee.Dap.DapDevice dap) in <0x0001f> Banshee.Dap.Njb.NjbDapTrackInfo:.ctor (Njb.Song song, Banshee.Dap.DapDevice dap) in <0x0008c> Banshee.Dap.Njb.NjbDap:ReloadDatabase () in <0x00598> Banshee.Dap.Njb.NjbDap:Initialize (Hal.Device halDevice) in <0x0004c> Banshee.Dap.DapCore:AddDevice (Hal.Device device, System.Type type) After some investigations, here's what I found : In njb-sharp, the frames containing the "Year" and the "PlayOnly" data are supposed to be UInt16 frames. After playing around with the njb-test program, I found out that on my NJB these frames are String frames. I don't know if that's the case with all NJB 1, or if my library is messed up. I'm not quite sure how to fix this, without being too permissive on the frame types or breaking anything... Thanks for any input or suggestion... --=20 Bertrand Lorentz --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMUlib1pl4loRymARAkBqAKDK3cXxoN9xQy7qKIbEUtaKWGOmzACfUxTX gFeGYW88W0DKCyCzng5Axxg= =WFvF -----END PGP SIGNATURE----- --=-BKPtsZ2EQVIvrBBRMYpg-- From doktorn@sub.nu Mon Apr 3 14:54:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDA3C3B1CFB for ; Mon, 3 Apr 2006 14:54:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19828-01 for ; Mon, 3 Apr 2006 14:54:35 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id F35BC3B1CBB for ; Mon, 3 Apr 2006 14:54:34 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k33IsYVA000488 for ; Mon, 3 Apr 2006 20:54:35 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id B1CE0AB13B for ; Mon, 3 Apr 2006 20:54:32 +0200 (CEST) Message-ID: <44316F67.6080408@sub.nu> Date: Mon, 03 Apr 2006 20:54:31 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: [Banshee-List] How to update/re-scan library X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 18:54:37 -0000 Hello, I've added some music to my library, but it doesn't show up in the list. Is there some way to force a re-scan of the library or how am I suppose to handle this? Best regards Rickard Borgmäster From sjoeboo@sjoeboo.com Mon Apr 3 15:41:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 53A613B1CBC for ; Mon, 3 Apr 2006 15:41:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22778-05 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 356803B1CB5 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 4E43110B2B for ; Mon, 3 Apr 2006 15:41:13 -0400 (EDT) MIME-Version: 1.0 Date: Mon, 3 Apr 2006 15:41:13 -0400 From: Matthew Nicholson To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library Organization: sjoeboo.com In-Reply-To: <44316F67.6080408@sub.nu> References: <44316F67.6080408@sub.nu> Message-ID: <8b843aef824487e1799668c668f45a51@localhost> X-Sender: sjoeboo@sjoeboo.com User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.411 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046] X-Spam-Score: -0.411 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:41:48 -0000 i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? > > Best regards > Rickard Borgmäster > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list -- Matthew Nicholson sjoeboo@sjoeboo.com sjoeboo.com From ken@vandine.org Mon Apr 3 15:46:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 241C53B1CE5 for ; Mon, 3 Apr 2006 15:46:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23196-06 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id 79DE13B1CF9 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from foobar.rdu.rpath.com (rdu-nat.rpath.com [24.172.59.42]) by ms-smtp-03-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k33JkWgA006659; Mon, 3 Apr 2006 15:46:32 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Ken VanDine To: banshee-list@gnome.org, sjoeboo@sjoeboo.com In-Reply-To: <8b843aef824487e1799668c668f45a51@localhost> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Apr 2006 15:46:37 -0400 Message-Id: <1144093597.1033.9.camel@foobar> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, TW_TM=0.077] X-Spam-Score: -2.561 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:46:38 -0000 Using 0.10.9, inotify has been working fine adding music to my library. I don't use rhytmbox at all, so can't compare. --Ken On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > > Hello, > > > > I've added some music to my library, but it doesn't show up in the list. > > Is there some way to force a re-scan of the library or how am I > > suppose to handle this? > > > > Best regards > > Rickard Borgmäster > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list From zachtib@gmail.com Mon Apr 3 16:02:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7EBC3B1D37 for ; Mon, 3 Apr 2006 16:02:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24218-10 for ; Mon, 3 Apr 2006 16:02:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id F3DDB3B2634 for ; Mon, 3 Apr 2006 16:02:01 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so112378nzf for ; Mon, 03 Apr 2006 13:02:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XlyV3q1Gv7rLNcbpv5K2GJIsPLf3XrffI6Qh8Gd2waMYQpx09AbsIzD7Lmgk7jr//3HzKzG9t6SPSgxvjVblnXOkFHo2sicEJQkxD1ihH8s0SBNgtrkaPi3HAu6sp7BCYJDXsdm4jmk9UW9b+Wc67t9c+uzxCKH8YELvBU9l4XU= Received: by 10.35.121.2 with SMTP id y2mr1372988pym; Mon, 03 Apr 2006 13:01:59 -0700 (PDT) Received: by 10.35.34.12 with HTTP; Mon, 3 Apr 2006 13:01:59 -0700 (PDT) Message-ID: <5f2bbff20604031301y4493ebfamf43cfd925dcc5974@mail.gmail.com> Date: Mon, 3 Apr 2006 16:01:59 -0400 From: "Zach Tibbitts" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18649_27581749.1144094519786" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.71 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.71 X-Spam-Level: Subject: [Banshee-List] New build problems X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 20:02:07 -0000 ------=_Part_18649_27581749.1144094519786 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this error: ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert from `Banshee.Base.ArtistInfo' to `string' Compilation failed: 2 error(s), 0 warnings make[3]: *** [Banshee.Base.dll] Error 1 make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/zach/banshee/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zach/banshee' make: *** [all] Error 2 this is using oscars normalized patch ------=_Part_18649_27581749.1144094519786 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this er= ror:

./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot c= onvert from `Banshee.Base.ArtistInfo' to `string'
Compilation failed: 2 = error(s), 0 warnings
make[3]: *** [Banshee.Base.dll] Error 1
make[3]: Leaving directory `= /home/zach/banshee/src/Banshee.Base'
make[2]: *** [all-recursive] Error = 1
make[2]: Leaving directory `/home/zach/banshee/src'
make[1]: *** [a= ll-recursive] Error 1
make[1]: Leaving directory `/home/zach/banshee'
make: *** [all] Erro= r 2

this is using oscars normalized patch
------=_Part_18649_27581749.1144094519786-- From oivind.hoel@gmail.com Mon Apr 3 22:35:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36E8D3B06A1 for ; Mon, 3 Apr 2006 22:35:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14269-04 for ; Mon, 3 Apr 2006 22:35:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 03F323B06EF for ; Mon, 3 Apr 2006 22:35:37 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 14so1860799nzn for ; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tI8UHDcQIlWrgZkTjH5De8gDrjF0wJLqJf35+x96upcbKxaBtDskcgNLazcpefe4VIC/NaaipuiDmmkRNZRaFte1fyozdUGevKvUIeUP6qLHJNNMjPsvpDiSFsqBAuAmPipdUrbwQ+zST1Ky0DCk15v7yy9yV6Ovo16EUlJ63Yc= Received: by 10.64.143.11 with SMTP id q11mr40421qbd; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) Received: by 10.65.183.2 with HTTP; Mon, 3 Apr 2006 19:35:37 -0700 (PDT) Message-ID: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Date: Tue, 4 Apr 2006 04:35:37 +0200 From: "=?ISO-8859-1?Q?=D8ivind_Hoel?=" To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library In-Reply-To: <44316F67.6080408@sub.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44316F67.6080408@sub.nu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 02:35:41 -0000 On 4/3/06, Rickard Borgm=E4ster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? Have you enabled the filesystem watcher plugin? From oforero@novell.com Tue Apr 4 03:24:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941423B2784 for ; Tue, 4 Apr 2006 03:24:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28026-07 for ; Tue, 4 Apr 2006 03:24:23 -0400 (EDT) Received: from emea1-mh.id2.novell.com (public.id2-vpn.continvity.gns.novell.com [195.33.99.129]) by menubar.gnome.org (Postfix) with ESMTP id 91CA93B0A7F for ; Tue, 4 Apr 2006 03:24:22 -0400 (EDT) Received: from EMEA1-MTA by emea1-mh.id2.novell.com with Novell_GroupWise; Tue, 04 Apr 2006 08:24:17 +0200 Message-Id: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Beta Date: Tue, 04 Apr 2006 09:23:58 +0200 From: "Oscar Forero" To: Subject: Re: [Banshee-List] New build problems References: <44318D640200007400007602@emea1-mh.id2.novell.com> <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> In-Reply-To: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 07:24:25 -0000 Hi, I insist the patch is not apply it properly, that is one of the changes that has to be make, go to that line and change the reference to ti.Artist to ti.Artist.Name; also please check the PlaylistModel.cs because i think the variable call sort is set to be a TreeModelSort and that is the root of all evil. regards, Oscar. On Mon, 2006-04-03 at 20:02 +0000, zachtib@gmail.com wrote: > This is the first time ive tried to build 10.9 on Dapper, and i get > this error: > > ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert > from `Banshee.Base.ArtistInfo' to `string' > Compilation failed: 2 error(s), 0 warnings > make[3]: *** [Banshee.Base.dll] Error 1 > make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/zach/banshee/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/zach/banshee' > make: *** [all] Error 2 > > this is using oscars normalized patch From sjoeboo@sjoeboo.com Tue Apr 4 13:28:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 454F03B2941 for ; Tue, 4 Apr 2006 13:28:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02273-10 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 5E53A3B2062 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from vader (vader.sjoeboo.com [192.168.1.104]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 9799410B2A; Tue, 4 Apr 2006 13:28:09 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Matthew Nicholson To: Ken VanDine In-Reply-To: <1144093597.1033.9.camel@foobar> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> <1144093597.1033.9.camel@foobar> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BoiBoCnNSIxMDyMHygYH" Organization: sjoeboo.com Date: Tue, 04 Apr 2006 13:28:42 -0400 Message-Id: <1144171723.14660.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.373 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046, TW_TM=0.077] X-Spam-Score: -0.373 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 17:28:45 -0000 --=-BoiBoCnNSIxMDyMHygYH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable acctually, its working fine. i must have been mistaken, for i just moved some files, and both application, running at the same time, picked them up. excelent. On Mon, 2006-04-03 at 15:46 -0400, Ken VanDine wrote: > Using 0.10.9, inotify has been working fine adding music to my library. > I don't use rhytmbox at all, so can't compare. =20 >=20 > --Ken >=20 > On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > > i have had issues like this as well. inotify IS working, because new mu= sic will show up in rhythmbox. banshee does not pick up the changes. shutdo= wn/re-open banshee, and it still doesn't see the new files. this happens wi= th rythmbox open, and closed, so its not conflicts on both of them watching= the same place. so far, with banshee, i still have to add new things manua= lly..... > >=20 > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgm=C3=A4ster wrote: > > > Hello, > > >=20 > > > I've added some music to my library, but it doesn't show up in the li= st. > > > Is there some way to force a re-scan of the library or how am I > > > suppose to handle this? > > >=20 > > > Best regards > > > Rickard Borgm=C3=A4ster > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list --=-BoiBoCnNSIxMDyMHygYH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMqzKs9/XCuaG1WkRAjfiAKCAAjL7PHUKiGfr4w9TVk1XXeAOKACeMfp5 v2m9AByCd+7dN2EeUptCWkE= =atus -----END PGP SIGNATURE----- --=-BoiBoCnNSIxMDyMHygYH-- From doktorn@sub.nu Tue Apr 4 21:31:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58B9D3B083D for ; Tue, 4 Apr 2006 21:31:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26571-01 for ; Tue, 4 Apr 2006 21:31:21 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id 7628E3B07FA for ; Tue, 4 Apr 2006 21:31:20 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k351VIoU011859 for ; Wed, 5 Apr 2006 03:31:19 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id E9443AE297 for ; Wed, 5 Apr 2006 03:31:17 +0200 (CEST) Message-ID: <44331DE5.8090701@sub.nu> Date: Wed, 05 Apr 2006 03:31:17 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library References: <44316F67.6080408@sub.nu> <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> In-Reply-To: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 01:31:41 -0000 Øivind Hoel wrote: > On 4/3/06, Rickard Borgmäster wrote: >> Hello, >> >> I've added some music to my library, but it doesn't show up in the list. >> Is there some way to force a re-scan of the library or how am I >> suppose to handle this? > > Have you enabled the filesystem watcher plugin? Yes, but it hasn't detected the new music. Best regards Rickard Borgmäster From ncjeffgus@zimage.com Wed Apr 5 04:19:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADBB63B2AF9 for ; Wed, 5 Apr 2006 04:19:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13405-07 for ; Wed, 5 Apr 2006 04:19:27 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id DF0E53B2AEC for ; Wed, 5 Apr 2006 04:19:26 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id 866ED1C2AC4 for ; Wed, 5 Apr 2006 01:19:25 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00568-03 for ; Wed, 5 Apr 2006 01:19:08 -0700 (PDT) Received: from polly.zimage.com (polly.zimage.com [216.86.199.26]) by alpha.zimage.com (Postfix) with ESMTP id CEF061C2A7D for ; Wed, 5 Apr 2006 01:19:02 -0700 (PDT) From: Jeff Gustafson To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 05 Apr 2006 01:18:48 -0700 Message-Id: <1144225128.7088.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: [Banshee-List] banshee and iTunes X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 08:19:29 -0000 Is it just me or did the new plug-in stop working? Sharpmusique isn't working either. 404 not found error. ...Jeff From lukas@pmad.net Wed Apr 5 06:31:53 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CABAB3B0CB0 for ; Wed, 5 Apr 2006 06:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20860-01 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 321813B0C73 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: (qmail 27414 invoked by uid 503); 5 Apr 2006 10:28:54 -0000 Received: (QMFILT: 1.0); 05 Apr 2006 10:28:54 -0000 Received: from b7.ovh.net (HELO mail1.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 5 Apr 2006 10:28:54 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:28:27 -0000 Received: from mail145.ha.ovh.net (HELO mail1.ha.ovh.net) (10.0.50.145) by mail145.ha.ovh.net with SMTP; 5 Apr 2006 10:28:23 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Received: from adsl-d200.87-197-131.telecom.sk (HELO ?192.168.0.23?) (87.197.131.200) by ns0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Subject: Re: [Banshee-List] banshee and iTunes From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:25:33 +0200 Message-Id: <1144232733.5059.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.131.200 (adsl-d200.87-197-131.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.741 tagged_above=-999 required=2 tests=[AWL=-0.700, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.741 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:31:54 -0000 Hi, On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. The plugin hasn't been touched in ages, and yes, IMS have changed something yet again. Lukas From fredrik.hedberg@avafan.com Wed Apr 5 06:55:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7CFEE3B2A7E for ; Wed, 5 Apr 2006 06:55:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21953-07 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by menubar.gnome.org (Postfix) with ESMTP id 237243B2A56 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from [172.14.11.116] (217.210.3.62) by pne-smtpout1-sn2.hy.skanova.net (7.2.070) id 44311E3A000923BE for banshee-list@gnome.org; Wed, 5 Apr 2006 12:55:10 +0200 Subject: Re: [Banshee-List] banshee and iTunes From: Fredrik Hedberg To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:55:09 +0200 Message-Id: <1144234509.5656.7.camel@lovemachine.hedbergs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:55:15 -0000 Hi, Purchasing music from Banshee works great here. There is however, a small issue. If you ever used iTunes 6 to purchase music with you account, your account gets flagged. This will essentially block you from using the store with either the Banshee plugin or with Sharpmusique (and any older version of iTunes i presume). I'm sure either Aaron or Jon can elaborate more on this issue. Fredrik On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. > > ...Jeff > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From mattisking@gmail.com Wed Apr 5 10:55:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D153B2C5C for ; Wed, 5 Apr 2006 10:55:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05591-10 for ; Wed, 5 Apr 2006 10:55:00 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 35CED3B0D50 for ; Wed, 5 Apr 2006 10:54:59 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n29so306884nzf for ; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qMILgVPiuTEcDqYKv8eABZfFlZ4W6w3grKMH/Tp9eENz/LGhceFIEj/30bEHCXmE1SQtmtJgIwLtFxG+A8pDs+ZEDWcxEEYAU7WVg0QWC9Z1ZPvH5DMCAvdzZLFHqcKDq44clq/t/bb3751NiwjBroRmN/xW/KK+ngYKmk5egcU= Received: by 10.35.37.18 with SMTP id p18mr789032pyj; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Wed, 5 Apr 2006 07:54:58 -0700 (PDT) Message-ID: <39efb3860604050754o7c914de6jb7a630061243bdfb@mail.gmail.com> Date: Wed, 5 Apr 2006 10:54:58 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] banshee and iTunes In-Reply-To: <1144234509.5656.7.camel@lovemachine.hedbergs.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30503_17740251.1144248898549" References: <1144225128.7088.2.camel@localhost.localdomain> <1144234509.5656.7.camel@lovemachine.hedbergs.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.014 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.014 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 14:55:13 -0000 ------=_Part_30503_17740251.1144248898549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never use it against iTunes 6. I've finally admitted to myself that the Fairkey thing resulting in applications like iOpener and Jhymn just isn't getting updated any time soon. :( Personally, I've moved to using allofmp3.com All the same music (more or less) for a fraction of the cost, and at this point at least, still legal. Matt Philmon On 4/5/06, Fredrik Hedberg wrote: > > Hi, > > Purchasing music from Banshee works great here. There is however, a > small issue. > > If you ever used iTunes 6 to purchase music with you account, your > account gets flagged. This will essentially block you from using the > store with either the Banshee plugin or with Sharpmusique (and any older > version of iTunes i presume). > > I'm sure either Aaron or Jon can elaborate more on this issue. > > Fredrik > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique > isn't > > working either. 404 not found error. > > > > ...Jeff > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_30503_17740251.1144248898549 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never= use it against iTunes 6. I've finally admitted to myself that the Fairkey = thing resulting in applications like iOpener and Jhymn just isn't getting u= pdated any time soon. :(

Personally, I've moved to using all= ofmp3.com All the same music (more or less) for a fraction of the cost,= and at this point at least, still legal.

Matt Philmon

On 4/5/06, Fredri= k Hedberg <fredrik.hed= berg@avafan.com> wrote:
Hi,

Purchasing music from Banshee works great here. There is however= , a
small issue.

If you ever used iTunes 6 to purchase music with= you account, your
account gets flagged. This will essentially block you= from using the
store with either the Banshee plugin or with Sharpmusique (and any olde= r
version of iTunes i presume).

I'm sure either Aaron or Jon can = elaborate more on this issue.

      &n= bsp; Fredrik

On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson = wrote:
>       Is it just me or did the new p= lug-in stop working?  Sharpmusique isn't
> working either.&= nbsp; 404 not found error.
>
>    &nbs= p;            &= nbsp;     ...Jeff
>
> _____________________= __________________________
> Banshee-list mailing list
> Banshee-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/ba= nshee-list

_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_30503_17740251.1144248898549-- From abockover@novell.com Wed Apr 5 11:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B1923B2CBA for ; Wed, 5 Apr 2006 11:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09160-08 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 77F583B2CB8 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: (qmail 32543 invoked from network); 5 Apr 2006 15:45:34 -0000 Received: from outbound.ximian.com (HELO 164-99-120-28.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 5 Apr 2006 15:45:34 -0000 From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Wed, 05 Apr 2006 11:42:23 -0400 Message-Id: <1144251743.8729.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.399 X-Spam-Level: Subject: [Banshee-List] Bug Help Requested X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 15:45:38 -0000 I am noticing that there are currently at least 114 new bug comments on Banshee in Gnome Bugzilla, and I am not going to have the time to look at many of them for a maybe another week. Right now my priority is fixing our internal set of bugs, which will without a doubt knock out many in Gnome Bugzilla. However, just glancing at the bug summaries many look like dupes or ones easy to resolve or at least start commenting on. If anyone is willing, I would appreciate some help in whittling these down a bit until I can give them more attention. I know Ruben has been doing his best when he has time, but it'd be lovely to get some more hands in the stew :) Also, I am going to create a banshee-devel-list. I'll post a message when it is up. Thanks! Cheers, Aaron From ncjeffgus@zimage.com Wed Apr 5 14:49:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7732F3B0C3E for ; Wed, 5 Apr 2006 14:49:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20105-07 for ; Wed, 5 Apr 2006 14:49:55 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id 0655C3B0A2E for ; Wed, 5 Apr 2006 14:49:53 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id D74F11C2567 for ; Wed, 5 Apr 2006 11:49:47 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05050-08 for ; Wed, 5 Apr 2006 11:49:33 -0700 (PDT) Received: from polly.idc.local (mail.idc-global.com [66.92.217.130]) by alpha.zimage.com (Postfix) with ESMTP id DFF241C255B for ; Wed, 5 Apr 2006 11:49:31 -0700 (PDT) Subject: Re: [Banshee-List] banshee and iTunes From: Jeff Gustafson To: banshee-list@gnome.org In-Reply-To: <1144232733.5059.0.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> <1144232733.5059.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 11:49:28 -0700 Message-Id: <1144262969.3260.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.466 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.466 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 18:49:56 -0000 On Wed, 2006-04-05 at 12:25 +0200, Lukas Lipka wrote: > Hi, > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique isn't > > working either. 404 not found error. > > The plugin hasn't been touched in ages, and yes, IMS have changed > something yet again. They must be changing stuff. :) I've installed iTunes 6 on the Windows side, but never purchased anything with it. Just used it to install some Audible books. On Monday I tried the plugin and purchased a couple of songs. On Tuesday I got the 404 Not Found message. Today I get: Unhandled Exception: System.Net.WebException: The remote server returned an error: (502) Bad Gateway. in <0x003de> System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult result) in <0x00216> System.Net.HttpWebRequest:SetResponseData (System.Net.WebConnectionData data) Bummer. ...Jeff From silwenae@gmail.com Wed Apr 5 21:42:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F04933B0A4B for ; Wed, 5 Apr 2006 21:42:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07128-06 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 70E863B07F8 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so35227nzf for ; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=n0h2ms6nv7ixk3+OmrawjQdW6acM3O78XHRSOJa7so+G2D1w4Pk4nNYF8Mh7oBEaqCbrYK8QkkB/YhRFveEYKWK2kQXNVeAa+sMp0uZr6URmaOXZks8aqWMLx3NX1UgMQbcgtcf/v18NKWvn1pFhqali+GO0hB7mJWOfPf2S6sA= Received: by 10.36.39.6 with SMTP id m6mr341671nzm; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) Received: by 10.36.129.16 with HTTP; Wed, 5 Apr 2006 18:42:01 -0700 (PDT) Message-ID: <4c4ad4df0604051842t1b82a719sa1d44bfb376aa0fa@mail.gmail.com> Date: Wed, 5 Apr 2006 20:42:01 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8408_8905771.1144287721697" References: <1144251743.8729.6.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 01:42:04 -0000 ------=_Part_8408_8905771.1144287721697 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or could not duplicate some of the bugs. There are a ton of bugs that are feature enhancements. Some are labeled a= s such, but a number are labeled under Normal or such. Any recommendations o= n what to do with feature enhancements? Add a comment to post on the wiki, leave them be, or something else, especially ones marked as normal? Paul On 4/5/06, Aaron Bockover wrote: > > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. > > Thanks! > > Cheers, > Aaron > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_8408_8905771.1144287721697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or= could not duplicate some of the bugs.

There are a ton of bugs that = are feature enhancements.   Some are labeled as such, but a numbe= r are labeled under Normal or such.  Any recommendations on what to do= with feature enhancements?  Add a comment to post on the wiki, leave = them be, or something else, especially ones marked as normal?

Paul

On 4/5/06, Aaron Bockover <abockover@novell.com> wrote:
I am noticing that there are currently at least 114 new bug comments on
= Banshee in Gnome Bugzilla, and I am not going to have the time to look
a= t many of them for a maybe another week. Right now my priority is
fixing= our internal set of bugs, which will without a doubt knock out
many in Gnome Bugzilla.

However, just glancing at the bug summar= ies many look like dupes or ones
easy to resolve or at least start comme= nting on.

If anyone is willing, I would appreciate some help in whit= tling these
down a bit until I can give them more attention.

I know Ruben ha= s been doing his best when he has time, but it'd be
lovely to get some m= ore hands in the stew :)

Also, I am going to create a banshee-devel-= list. I'll post a message
when it is up.

Thanks!

Cheers,
Aaron


______= _________________________________________
Banshee-list mailing list
<= a href=3D"mailto:Banshee-list@gnome.org">Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_8408_8905771.1144287721697-- From gpoo@ubiobio.cl Wed Apr 5 23:00:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7E53B0AC4 for ; Wed, 5 Apr 2006 23:00:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10137-07 for ; Wed, 5 Apr 2006 23:00:53 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 986603B0C17 for ; Wed, 5 Apr 2006 23:00:52 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id ABFAF400127 for ; Wed, 5 Apr 2006 23:00:03 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 00800-81 for ; Wed, 5 Apr 2006 23:00:02 -0400 (CLT) Received: from mimos.local (pc-158-109-120-200.cm.vtr.net [200.120.109.158]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 985D628002A1 for ; Wed, 5 Apr 2006 23:00:44 -0400 (CLT) Subject: Re: [Banshee-List] Bug Help Requested From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 05 Apr 2006 23:00:38 -0400 Message-Id: <1144292438.8258.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.374 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.374 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 03:00:57 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. I also been triaging, reviewing some patches and commented on bugs in a minimal proportion anyway. But, at the end, you must to checked them. I would like to suggest to you to check the bugs that has patches included. There are only 14 of those bugs (6 reviewed, 8 with no comments at all). http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=commented-on http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=none Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From ruben@Lambda1.be Thu Apr 6 03:23:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41BB23B13A0 for ; Thu, 6 Apr 2006 03:23:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20801-02 for ; Thu, 6 Apr 2006 03:23:56 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 70C6C3B1118 for ; Thu, 6 Apr 2006 03:23:55 -0400 (EDT) Received: from ([62.235.112.218]) by oola.is.scarlet.be with ESMTP id k367NrA17167 for ; Thu, 6 Apr 2006 09:23:53 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 5DD46460202; Thu, 6 Apr 2006 09:23:51 +0200 (CEST) Subject: Re: [Banshee-List] Bug Help Requested From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Apr 2006 09:23:50 +0200 Message-Id: <1144308230.5325.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.598 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 07:23:59 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) And I plan to keep on doing that. I'd really love to be able to write big new features on banshee but currently time does not permit it. That's why I've chosen to concentrate on bug bitching, mainly getting as much bugs as possible ready for merging into CVS (there's quite a lot of those already, which just require a "curl | patch -p0"). What bugs me mostly are those "long term maybe"-feature requests, they're bringing us awefully close to the buggiest top-15 without a direct way to close them ;-). > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. Wonderful! I'm thinking of organising some collective-triage sessions to tackle longstanding bugs, but it's still an early idea and we need people interested in them. Cheers, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From cpfiles@gmail.com Thu Apr 6 10:01:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D0723B15A6 for ; Thu, 6 Apr 2006 10:01:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14756-07 for ; Thu, 6 Apr 2006 10:01:39 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id A48F03B2FED for ; Thu, 6 Apr 2006 10:01:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so170807nzf for ; Thu, 06 Apr 2006 07:01:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Y5JVfjRhhUPOKMWVguVMF/lV3Pk0vJXilfYjnTdoEUqzsd/UVDS15qRJT4jFUTk2pdIAjuSvIGXmUndpYM8pHqSqmlJrfoFdg6Kl4L0HetXmk60dg9xCrDWAP6MVEi2S86ZRaSjBGkqId+iTEancpjqPrVIn//rV0p6agMj9VWE= Received: by 10.36.80.5 with SMTP id d5mr1079002nzb; Thu, 06 Apr 2006 07:01:37 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 07:01:37 -0700 (PDT) Message-ID: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Date: Thu, 6 Apr 2006 09:01:37 -0500 From: "Chad Files" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Poor Playback X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:01:42 -0000 I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad From benjfitz@yahoo.com Thu Apr 6 10:48:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9FC53B3019 for ; Thu, 6 Apr 2006 10:48:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17687-07 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: from web37904.mail.mud.yahoo.com (web37904.mail.mud.yahoo.com [209.191.124.99]) by menubar.gnome.org (Postfix) with SMTP id 6B9C03B3005 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: (qmail 88407 invoked by uid 60001); 6 Apr 2006 14:48:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qb8GW+o5aBy6xF1S1fV7Tp0Zh6F/mSfwtLT+H0PNkmSPvkFeOaaJf+QBoaGkU5wtsFIyQ2HU6BbdT1MXwFDBl7u2tgoiNMN9ql0QfLdseMW7vCMIq1cEjOTzarpL0CN9+/BqTFMIyH951/EUmz5gw1nCOzC8J9e7/0ybr8R6QcI= ; Message-ID: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> Received: from [140.110.206.107] by web37904.mail.mud.yahoo.com via HTTP; Thu, 06 Apr 2006 07:48:23 PDT Date: Thu, 6 Apr 2006 07:48:23 -0700 (PDT) From: Benj FitzPatrick Subject: Re: [Banshee-List] Poor Playback To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-121702021-1144334903=:87901" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.981 tagged_above=-999 required=2 tests=[AWL=-1.381, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_10_20=1.351, HTML_MESSAGE=0.001] X-Spam-Score: -0.981 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:48:26 -0000 --0-121702021-1144334903=:87901 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it. I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom). I added the below commands: alsasink period-size=1024 buffer-size=4096 That seemed to clean up playback for me. Benj Chad Files wrote: I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad _______________________________________________ Banshee-list mailing list Banshee-list@gnome.org http://mail.gnome.org/mailman/listinfo/banshee-list --0-121702021-1144334903=:87901 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it.  I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom).  I added the below commands:

alsasink period-size=1024 buffer-size=4096

That seemed to clean up playback for me.
Benj

Chad Files <cpfiles@gmail.com> wrote:
I am running banshee 0.10.9 on gentoo with all the latest and greatest
gstreamer packages. Everything looks and functions great except for
the playback. I get a lot of popping when the tracks are played.

I have played the same tracks it totem (also uses gstreamer) and there
is no popping. I have tried several other things but all to no avail.
This issue also bleeds over into CD burning. I burned a CD with
banshee and the popping was transfered onto the CD.

I am almost certain that this is an issue with the gstreamer bindings
in banshee. Has anybody else had this issue? Does anybody have a
solution?

Thanks

-- Chad
_______________________________________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

--0-121702021-1144334903=:87901-- From database1@qualitycareforchildren.org Thu Apr 6 11:01:09 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19A943B225A for ; Thu, 6 Apr 2006 11:01:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18884-05 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from www.qualitycareforchildren.org (qualitycareforchildren.org [168.215.70.173]) by menubar.gnome.org (Postfix) with ESMTP id 396B23B2FC0 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from [10.10.10.111] ([66.162.21.62]) by www.qualitycareforchildren.org (8.10.2/8.10.2) with ESMTP id k36F14C27036 for ; Thu, 6 Apr 2006 11:01:04 -0400 From: John Moore To: banshee-list@gnome.org Content-Type: multipart/alternative; boundary="=-9HUXicvlPFj1cQqn3+7I" Message-Id: <1141747243.25631.6.camel@linux.site> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.075 tagged_above=-999 required=2 tests=[AWL=-0.871, BAYES_00=-2.599, DATE_IN_PAST_96_XX=2.02, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: -1.075 X-Spam-Level: Subject: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 06 Apr 2006 15:01:09 -0000 X-Original-Date: Tue, 07 Mar 2006 11:00:43 -0500 X-List-Received-Date: Thu, 06 Apr 2006 15:01:09 -0000 --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/plain Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below): A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine. I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error: E: Couldn't find package gstreamer0.8-plugins-multiverse Any suggestions? Thanks. --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.


--=-9HUXicvlPFj1cQqn3+7I-- From mattisking@gmail.com Thu Apr 6 11:11:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 662B73B2236 for ; Thu, 6 Apr 2006 11:11:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19375-07 for ; Thu, 6 Apr 2006 11:11:46 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id E3D1E3B14A2 for ; Thu, 6 Apr 2006 11:11:45 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id i49so213796pye for ; Thu, 06 Apr 2006 08:11:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Na9O+B/1nNLaL57gPxKYaw2K978E/mlbPcqwURGk6FXym7hZEeY0KWEsuvwzOqcixBhxlDEkTO0HWEruaDMxxd8/jIyLNXjyBp9zHEV6kFhwalXL4xsbO9xo/cXetixqJ4EnFPz0PrYHUJjpbJK5AUMglodq5IQ+zpK0DLWkzd8= Received: by 10.35.49.4 with SMTP id b4mr529764pyk; Thu, 06 Apr 2006 08:11:44 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Thu, 6 Apr 2006 08:11:43 -0700 (PDT) Message-ID: <39efb3860604060811k183530e3w2fd1f9d9fbabb8fe@mail.gmail.com> Date: Thu, 6 Apr 2006 11:11:43 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse In-Reply-To: <1141747243.25631.6.camel@linux.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4236_23280367.1144336303978" References: <1141747243.25631.6.camel@linux.site> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.067 tagged_above=-999 required=2 tests=[AWL=0.158, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.067 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:11:52 -0000 ------=_Part_4236_23280367.1144336303978 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you'll want to enable it along with universe. Do enable multiverse just add it to the end of the lines that contain universe. Then use synaptic to search for gstreamer0.8. You'll find TONS of packages. Just install most or all of them. Matt On 3/7/06, John Moore wrote: > > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the > mp3 problem in the Banshee FAQ (see the site response below): > > *A:* This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends *sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg* and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I got > the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_4236_23280367.1144336303978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you= 'll want to enable it along with universe. Do enable multiverse just add it= to the end of the lines that contain universe.

Then use synaptic to= search for=20 gstreamer0.8. You'll find TONS of packages. Just install most or all of the= m.

Matt

On 3/7/06, John Moore < database1@qualitycareforchildren.org> wrote:
=20 =20 I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted th= e mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstre= amer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-pl= ugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'l= l be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  Ho= wever, when attempting to install gstreamer0.8-plugins-multiverse I got the= following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.



_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



------=_Part_4236_23280367.1144336303978-- From gpoo@ubiobio.cl Thu Apr 6 11:15:11 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ACEB73B303C for ; Thu, 6 Apr 2006 11:15:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19757-01 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 6CCBE3B3023 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id D772D4003E4 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 31704-12 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from dhcp-120.dci.ubiobio.cl (dhcp-120.dci.ubiobio.cl [146.83.195.120]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 2AA6628002AB for ; Thu, 6 Apr 2006 11:15:06 -0400 (CLT) Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1141747243.25631.6.camel@linux.site> References: <1141747243.25631.6.camel@linux.site> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 06 Apr 2006 11:15:01 -0400 Message-Id: <1144336501.9888.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.42 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.42 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:15:11 -0000 On Tue, 2006-03-07 at 11:00 -0500, John Moore wrote: > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted > the mp3 problem in the Banshee FAQ (see the site response below): > > A: This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I > got the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. This is an Ubuntu question more than an specific about banshee. You should read the documentation about how to solve this issues at https://wiki.ubuntu.com/RestrictedFormats In particular, the section related to MP3: https://wiki.ubuntu.com/RestrictedFormats#head-a57167a3ce442dc52d9b05e46a14503330d4e970 Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From cpfiles@gmail.com Thu Apr 6 12:22:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB3473B0889 for ; Thu, 6 Apr 2006 12:22:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24395-02 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 87BEC3B0586 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so228587nzf for ; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ia0WzG/128nvQPkwWZ1znnDwDlgOVURb5gexnobdUZ7eIe+gRSayLHpRrZu5B+olpXWclx2vt/UEaG5MQ/sp3i6c+8o9Hmpc1OhL3sVRPRCBPe1e8YfYGbIDbVFLhaQGlZ+64bB9VnweOX25elhzkfCPss0ixTj/6TKWMteY0Mo= Received: by 10.37.12.23 with SMTP id p23mr1338483nzi; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 09:22:04 -0700 (PDT) Message-ID: <9735eb9b0604060922n686a5b7bm3cc2f3130582a230@mail.gmail.com> Date: Thu, 6 Apr 2006 11:22:04 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 16:22:06 -0000 On 4/6/06, Benj FitzPatrick wrote: > I also ran into this on gentoo, and the devs were nice enough to help me > through it. I made a custom output sink for gstreamer using > gstreamer-properties (go to alsasink and then to custom). I added the be= low > commands: > > alsasink period-size=3D1024 buffer-size=3D4096 Thanks, but no dice. I still get the popping during playback. -- Chad From abockover@novell.com Thu Apr 6 15:31:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A2743B226E for ; Thu, 6 Apr 2006 15:31:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03375-08 for ; Thu, 6 Apr 2006 15:31:18 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 064BE3B3023 for ; Thu, 6 Apr 2006 15:31:17 -0400 (EDT) Received: (qmail 9151 invoked from network); 6 Apr 2006 19:31:17 -0000 Received: from outbound.ximian.com (HELO 164-99-120-99.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 6 Apr 2006 19:31:17 -0000 Subject: Re: [Banshee-List] Poor Playback From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Content-Type: text/plain Date: Thu, 06 Apr 2006 15:27:59 -0400 Message-Id: <1144351679.21194.8.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.485 tagged_above=-999 required=2 tests=[AWL=-0.086, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.485 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 19:31:19 -0000 On Thu, 2006-04-06 at 09:01 -0500, Chad Files wrote: > I am running banshee 0.10.9 on gentoo with all the latest and greatest > gstreamer packages. Everything looks and functions great except for > the playback. I get a lot of popping when the tracks are played. What happens in Rhythmbox? > I have played the same tracks it totem (also uses gstreamer) and there > is no popping. I have tried several other things but all to no avail. > This issue also bleeds over into CD burning. I burned a CD with > banshee and the popping was transfered onto the CD. > > I am almost certain that this is an issue with the gstreamer bindings > in banshee. Has anybody else had this issue? Does anybody have a > solution? No, the problem would not be in bindings. The GStreamer stuff in Banshee is all in C, and a binding wouldn't make your audio pop. There may be something missing from the pipeline, or it could easily be hardware or output sink related. Cheers, Aaron > Thanks > > -- Chad > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From silwenae@gmail.com Thu Apr 6 20:02:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B80583B0096 for ; Thu, 6 Apr 2006 20:02:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17730-02 for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id A29353B00AC for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so338083nzf for ; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fKFqrEMSalWHa6l88i17Y0KVGLs5oOoIlaqAO+8tsPHvQnbzQEikcSK7bIUetSHU3gFAQz4vS1Z3lFTe/ktB93hrQFlPySIqR2Yq7jFAOj1OCgGMdtjT0//4IWbdqt2vUvoapHRmo5r01ydFfE6DZnHbccFyxUOIRrMkWFYpdOE= Received: by 10.37.13.16 with SMTP id q16mr547499nzi; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Thu, 6 Apr 2006 17:02:38 -0700 (PDT) Message-ID: <4c4ad4df0604061702j2d05fee6w6ab5a2d3eb23c495@mail.gmail.com> Date: Thu, 6 Apr 2006 19:02:38 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144308230.5325.11.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2950_7040387.1144368158030" References: <1144251743.8729.6.camel@sledipus.rex> <1144308230.5325.11.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.344 tagged_above=-999 required=2 tests=[AWL=-0.119, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.344 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 00:02:42 -0000 ------=_Part_2950_7040387.1144368158030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/6/06, Ruben Vermeersch wrote: What bugs me mostly are those "long term maybe"-feature requests, > they're bringing us awefully close to the buggiest top-15 without a > direct way to close them ;-). > > > Cheers, > Ruben Is there any reason we can't mark feature requests filed as bugs as closed if we add them to the wiki? Or is that just not the way things are done? If the person commenting on the bug (or closing it) marks the date and time added to the wiki, and maybe we add a * after the request as noted on the wiki, or even add a section on the Features Request page as a section "Feature Requests from Bugzilla", it would go a long way to reducing the overall bug list. Currently 45 out of 121 total bugs are marked as feature enhancement. Paul ------=_Part_2950_7040387.1144368158030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 4/6/06, Ruben Vermeersch <ruben@l= ambda1.be> wrote:

<snip>

What bugs me mostly are those "long term maybe"-feature requests,=
they're bringing us awefully close to the buggiest top-15 without a
= direct way to close them ;-).


Cheers,
   Ruben

Is there any reason we can't mark feature requests filed as bugs a= s closed if we add them to the wiki?  Or is that just not the way thin= gs are done?  If the person commenting on the bug (or closing it) mark= s the date and time added to the wiki, and maybe we add a * after the reque= st as noted on the wiki, or even add a section on the Features Request page= as a section "Feature Requests from Bugzilla", it would go a lon= g way to reducing the overall bug list.

Currently 45 out of 121 total bugs are marked as feature enhancemen= t.

Paul


------=_Part_2950_7040387.1144368158030-- From trick@vanstaveren.us Fri Apr 7 04:07:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 60F363B0252 for ; Fri, 7 Apr 2006 04:07:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06528-09 for ; Fri, 7 Apr 2006 04:07:18 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 039DD3B0230 for ; Fri, 7 Apr 2006 04:07:16 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FRlzv-0003yV-Ur for banshee-list@gnome.org; Fri, 07 Apr 2006 01:07:15 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 07 Apr 2006 04:07:15 -0400 Message-ID: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Date: Fri, 07 Apr 2006 04:07:15 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Plugin in the works: Alarm Clock X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 08:07:24 -0000 Hey folks, I've been starting to work on a new plugin for Banshee - an Alarm Clock plugin. Has anyone worked on this? If so, LMK, so we're not duplicating efforts :) Features I'm working on: Sleep timer: * ability to set a timer that when it's up, will pause playback. Great for when you're loving your tunes but don't want to hear them ALL night. Alarm timer: * will start playback at the given time. * "recur" option - if enabled, will set the timer again for the next day at that same time. * volume setting - will change the volume to a certain level before playing. This way you don't have to set it before you go to sleep. Future ideas: * sleep timer - make it so it fades out the song, or stops at the end of the song rather than just pausing in the middle of it. * alarm timer - volume change will be gradual. will set the volume when the alarm first goes off, and will gradually increase it to another value over a span of seconds or minutes. All three values will be settable. Anyone have any other ideas/suggestions for me? Like I said, this plugin is more in the concept stage (I have more pencil sketches than actual code)...so I'm open to ideas :) Thanks all! Patrick (irc as trick) -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From thijsvermeir@telenet.be Fri Apr 7 08:43:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED8A23B03A5 for ; Fri, 7 Apr 2006 08:43:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23842-08 for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from assei2bl6.telenet-ops.be (assei2bl6.telenet-ops.be [195.130.133.69]) by menubar.gnome.org (Postfix) with ESMTP id 651233B036B for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by assei2bl6.telenet-ops.be (Postfix) with SMTP id E7352F00A2 for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Received: from [192.168.1.4] (d51A40E46.access.telenet.be [81.164.14.70]) by assei2bl6.telenet-ops.be (Postfix) with ESMTP id D8032F007D for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> Content-Transfer-Encoding: 7bit From: Thijs Vermeir Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock Date: Fri, 7 Apr 2006 14:39:11 +0200 To: banshee-list@gnome.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:43:20 -0000 On 7-apr-06, at 10:07, Trick van Staveren wrote: > Hey folks, Hey, > > I've been starting to work on a new plugin for Banshee - an Alarm > Clock plugin. Has > anyone worked on this? If so, LMK, so we're not duplicating > efforts :) > > ... > > Anyone have any other ideas/suggestions for me? Like I said, this > plugin is more in > the concept stage (I have more pencil sketches than actual > code)...so I'm open to > ideas :) Looks nice, Need suggestions? ;-) I like to see integrated support for shutdown/wakeup the PC. > Thanks all! > > Patrick > > (irc as trick) > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From cpfiles@gmail.com Fri Apr 7 08:49:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F23263B03E9 for ; Fri, 7 Apr 2006 08:49:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24722-01 for ; Fri, 7 Apr 2006 08:49:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 083363B32C0 for ; Fri, 7 Apr 2006 08:48:53 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so431851nzf for ; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WsU8SLPgB7IEnIIbBWXyFeT6UL0krV8RBh+sxXfOiTNl+ClzE/rvuEjK6BelLdxgmZiksLBxCTiCSphQ7sbCbN+TcIj5LDLcEQ+5nwFQnjbjgDjZw1n6IfRU/0vq8cl+6LwnhcQu4JLmNbVlOwdMubbl5SSZDydSMFjJCf3UUxY= Received: by 10.36.250.48 with SMTP id x48mr2049921nzh; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Fri, 7 Apr 2006 05:48:53 -0700 (PDT) Message-ID: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> Date: Fri, 7 Apr 2006 07:48:53 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <1144351679.21194.8.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:49:07 -0000 On 4/6/06, Aaron Bockover wrote: > What happens in Rhythmbox? Everything plays fine. > No, the problem would not be in bindings. The GStreamer stuff in Banshee > is all in C, and a binding wouldn't make your audio pop. There may be > something missing from the pipeline, or it could easily be hardware or > output sink related. After reading the above I wondered if it had anything to do with the media format, and it does. The popping only happens when playing ogg files, mp3 and CD playback work fine. Is there something that need to change in the way ogg is read and played? By the way, before it is asked, I have been using the same ogg file in all of the other applications during my troubleshooting. Banshee is the only one that I can hear the popping with. -- Chad From thijsvermeir@telenet.be Fri Apr 7 09:04:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D2453B0394 for ; Fri, 7 Apr 2006 09:04:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25898-03 for ; Fri, 7 Apr 2006 09:04:53 -0400 (EDT) Received: from hoefnix.telenet-ops.be (hoefnix.telenet-ops.be [195.130.132.54]) by menubar.gnome.org (Postfix) with ESMTP id 978D83B3292 for ; Fri, 7 Apr 2006 09:04:52 -0400 (EDT) Received: from nocme1bl6.telenet-ops.be (nocme1bl6.telenet-ops.be [195.130.136.37]) by hoefnix.telenet-ops.be (Postfix) with ESMTP id 04F1CA03AA for ; Fri, 7 Apr 2006 15:04:16 +0200 (CEST) Received: from nocme1bl6.telenet-ops.be (localhost.localdomain [127.0.0.1]) by nocme1bl6.telenet-ops.be (Postfix) with ESMTP id E2E6B388052 for ; Fri, 7 Apr 2006 15:04:15 +0200 (CEST) From: "thijsvermeir@pandora.be" To: banshee-list@gnome.org Importance: Normal Sensitivity: Normal Message-ID: X-Originating-IP: [81.164.14.70] X-Forwarded-For: [(null)] Date: Fri, 07 Apr 2006 13:04:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Error while compiling cvs (Mono.Unix) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 13:04:56 -0000 Hello, I get this error when I try to compile Banshee from source. --- ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous reference between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' --- I'm using mono 1.1.13 from the Ubuntu Breezy archive. How can I fix this? Thanks, Thijs From wpoland@gmail.com Fri Apr 7 11:18:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 320383B0474 for ; Fri, 7 Apr 2006 11:18:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03468-09 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by menubar.gnome.org (Postfix) with ESMTP id 7F2353B0473 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id t4so319004wxc for ; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cDSyTYYBau30SPmJl9fe839LULir1wczTl6RLadjRdvB6OhWBVYYcw5zHO7DCinc9aStQ6fiiWmkZcT1EB6yWs3JCPPHqML7siM5jVzbf7hcX2sog0j349m712sJWA4Q67RyVBn8xMWDqjz/lv/xTBYj3SSUY6fXI0C0ddzWPdw= Received: by 10.70.27.6 with SMTP id a6mr2854231wxa; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 08:18:33 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 08:18:33 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.579 tagged_above=-999 required=2 tests=[AWL=0.021, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.579 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 15:18:37 -0000 On 4/7/06, Thijs Vermeir wrote: > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > Hey folks, > Hey, > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > Clock plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating > > efforts :) > > > > ... > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > plugin is more in > > the concept stage (I have more pencil sketches than actual > > code)...so I'm open to > > ideas :) > > Looks nice, > Need suggestions? ;-) > I like to see integrated support for shutdown/wakeup the PC. > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > This is great, I've been looking forward to a feature like this for a while. I've been using a bash script and banshee's command line options of "--play" and "--pause" to accomplish this lately. Nothing like waking to "Here Comes the Sun" every morning. ;) Best of luck. From josiah.ritchie@gmail.com Fri Apr 7 13:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E36A3B182C for ; Fri, 7 Apr 2006 13:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11539-08 for ; Fri, 7 Apr 2006 13:13:13 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 152B93B33C7 for ; Fri, 7 Apr 2006 13:13:10 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so484612nzf for ; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TcT2qzrO9xWB6tfR0qLlvGaVRe0u2NICrSvHIroIpNQR2YMMK39hAGFXEGTGXnXMoVcISIoouKwGh3x6hbMqJQ8N+SXuDE3+foAWcIkGkj6J9fjNvWIxnHsdPYhzS1VL4037Me9A9wiBl3SxoG4H7NHmkB5HTLi+8Z9I8paJiY4= Received: by 10.36.33.4 with SMTP id g4mr2134703nzg; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Fri, 7 Apr 2006 10:13:09 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 13:13:09 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.474 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.474 X-Spam-Level: Subject: [Banshee-List] How's the podcast plugin coming? X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:13:18 -0000 How is the podcast plugin coming? Mostly I'm asking to make sure I didn't miss an announcement. :-) JSR/ -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From mattisking@gmail.com Fri Apr 7 13:54:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 52F7E3B09E1 for ; Fri, 7 Apr 2006 13:54:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14464-01 for ; Fri, 7 Apr 2006 13:54:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id A62A13B0617 for ; Fri, 7 Apr 2006 13:54:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so514528pyu for ; Fri, 07 Apr 2006 10:54:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iw45thcdgy7nuLGDiN/kP02ylrQIIC2912Q3PU5Vu+mTMSoRhvgQ0ImDvhRL1tJcoRVQrqKisZ3SYbnma8OMhkOO5TmH2e3kb6fNrfl5PKbg1gRpXWkG1nz+PnA2lZaP9Necp8V/A14X9wBzfzrq9pnij/ihz9lfly+hJREcqPc= Received: by 10.35.60.15 with SMTP id n15mr2383799pyk; Fri, 07 Apr 2006 10:54:29 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Fri, 7 Apr 2006 10:54:29 -0700 (PDT) Message-ID: <39efb3860604071054l74153655lee7cbf726d87ff92@mail.gmail.com> Date: Fri, 7 Apr 2006 13:54:29 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27780_12765770.1144432469951" References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.098 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.098 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:54:34 -0000 ------=_Part_27780_12765770.1144432469951 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have. Matt Philmon On 4/7/06, Byron Poland wrote: > > On 4/7/06, Thijs Vermeir wrote: > > > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > > > Hey folks, > > Hey, > > > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > > Clock plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating > > > efforts :) > > > > > > ... > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > > plugin is more in > > > the concept stage (I have more pencil sketches than actual > > > code)...so I'm open to > > > ideas :) > > > > Looks nice, > > Need suggestions? ;-) > > I like to see integrated support for shutdown/wakeup the PC. > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > > > > > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > This is great, I've been looking forward to a feature like this for a > while. I've been using a bash script and banshee's command line > options of "--play" and "--pause" to accomplish this lately. Nothing > like waking to "Here Comes the Sun" every morning. ;) > > Best of luck. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_27780_12765770.1144432469951 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my = nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have.

Matt Philmon

On 4/7/= 06,=20 Byron Poland <wpoland@gmail.com> wrote:
On 4/7/06, Thijs Vermeir <thi= jsvermeir@telenet.be> wrote:
>
> On 7-apr-06, at 10:07, = Trick van Staveren wrote:
>
> > Hey folks,
> Hey,
>
> >
> > I've been starting to work on a new plugin f= or Banshee - an Alarm
> > Clock plugin.  Has
> >= ; anyone worked on this?  If so, LMK, so we're not duplicating> > efforts :)
> >
> > ...
> >
> > Anyone have any ot= her ideas/suggestions for me?  Like I said, this
> > plu= gin is more in
> > the concept stage (I have more pencil sketches = than actual
> > code)...so I'm open to
> > ideas :)
>
> = Looks nice,
> Need suggestions? ;-)
> I like to see integrated = support for shutdown/wakeup the PC.
>
> > Thanks all!
> >
> > Patrick
> >
> > (irc as trick)
= > >
> > --
> > Patrick "Trick" van Staver= en
> > Western Michigan University
> > AIM: goofyassmoose
> > Cell: 269.267.6008
> > http://www.trick.vanstaveren.us/
> >
> &= gt;
> >
> >
> > ________________________________= _______________
> > Banshee-list mailing list
> > Banshee-list@gnome.org
> > http://mail.gnome.org/mail= man/listinfo/banshee-list
> >


This is great, I've been looking forward to a = feature like this for a
while.  I've been using a bash script = and banshee's command line
options of "--play" and "--pau= se" to accomplish this lately.  Nothing
like waking to "Here Comes the Sun" every morning. ;)

= Best of luck.
_______________________________________________
Banshee= -list mailing list
Banshee-lis= t@gnome.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list
=
------=_Part_27780_12765770.1144432469951-- From silwenae@gmail.com Fri Apr 7 14:31:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 877493B33E5 for ; Fri, 7 Apr 2006 14:31:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17225-10 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 3297C3B07F0 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so500194nzf for ; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq009RPMtpj+5D6fTnxkonZJo+vN5cwzrNJRXp7MQeq6/0HIV1tpZGakDFbawhRhnLWCUaGMluPsaRRM7cYpmDs+WUn35pED6KntMeIeuQ/WRU8oYt9bQO25nNk3rh+OeKZgs6FvURYSUJKmaV8N3W2mGrPy/kZnvSX24Anyx/o= Received: by 10.36.247.73 with SMTP id u73mr1736898nzh; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Fri, 7 Apr 2006 11:31:39 -0700 (PDT) Message-ID: <4c4ad4df0604071131v3ea4823br1020552e5e6c4018@mail.gmail.com> Date: Fri, 7 Apr 2006 13:31:39 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Error while compiling cvs (Mono.Unix) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12908_3660691.1144434699567" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.236 tagged_above=-999 required=2 tests=[AWL=-0.133, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.236 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 18:31:42 -0000 ------=_Part_12908_3660691.1144434699567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to need an updated Mono (among other things) on Breezy if you don't want to update to Dapper. See the Ubuntu page on the wiki: http://www.banshee-project.org/Distributions/Ubuntu Paul On 4/7/06, thijsvermeir@pandora.be wrote: > > Hello, > > I get this error when I try to compile Banshee from source. > --- > ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referenc= e > between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' > --- > I'm using mono 1.1.13 from the Ubuntu Breezy archive. > > How can I fix this? > > Thanks, > Thijs > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_12908_3660691.1144434699567 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to = need an updated Mono (among other things) on Breezy if you don't want to up= date to Dapper.

See the Ubuntu page on the wiki:

http://www.banshee-project.org/Distributions/Ubuntu

Paul

=
On 4/7/06, <= a href=3D"mailto:thijsvermeir@pandora.be">thijsvermeir@pandora.be &= lt; thijsvermeir@telenet.be> = wrote:
Hell= o,

I get this error when I try to compile Banshee from source.
---<= br>./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referen= ce between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat'
---
I'm using= mono=20 1.1.13 from the Ubuntu Breezy archive.

How can I fix this?

Th= anks,
Thijs



_____________________________________________= __
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_12908_3660691.1144434699567-- From bertrand.lorentz@free.fr Fri Apr 7 15:47:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12AE93B0C23 for ; Fri, 7 Apr 2006 15:47:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22282-01 for ; Fri, 7 Apr 2006 15:46:55 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 1B32C3B088C for ; Fri, 7 Apr 2006 15:46:48 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 90E3C6D231 for ; Fri, 7 Apr 2006 21:46:46 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nZ0gXIa8jpype9b/iPe6" Date: Fri, 07 Apr 2006 21:46:44 +0200 Message-Id: <1144439204.517.58.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 19:47:02 -0000 --=-nZ0gXIa8jpype9b/iPe6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > Hey folks, >=20 > I've been starting to work on a new plugin for Banshee - an Alarm Clock p= lugin. Has > anyone worked on this? If so, LMK, so we're not duplicating efforts :) Hi, I've been working on something similar. I'm trying to replicate the features from the xmms-alarm plugin for XMMS and beep media player. I've got some working code, but it still needs some work. I'm still waking up with beep media player... > Features I'm working on: >=20 > Sleep timer: > * ability to set a timer that when it's up, will pause playback. Great = for when > you're loving your tunes but don't want to hear them ALL night. >=20 > Alarm timer: > * will start playback at the given time. > * "recur" option - if enabled, will set the timer again for the next day= at that same > time. > * volume setting - will change the volume to a certain level before play= ing. This way > you don't have to set it before you go to sleep. >=20 > Future ideas: > * sleep timer - make it so it fades out the song, or stops at the end of= the song > rather than just pausing in the middle of it. > * alarm timer - volume change will be gradual. will set the volume when= the alarm > first goes off, and will gradually increase it to another value over a sp= an of seconds > or minutes. All three values will be settable. >=20 > Anyone have any other ideas/suggestions for me? Like I said, this plugin= is more in > the concept stage (I have more pencil sketches than actual code)...so I'm= open to > ideas :) What is working in my code : - Start playback at a given time - Set the volume before playing What is implemented but doesn't work - Gradually change the volume while playing over a period of time. The volume just gets stuck at the first value. The configuration options need some UI love. For now it's just a bunch of SpinButtons. Things I'd like to have : - Set different alarm times for each day of the week. I don't want to be waken up at 7am on a Sunday morning because I left banshee running... The sleep timer is a good idea, and should be easy to do once the alarm stuff is done. I planned to put the code out when I have a working plugin, but I'd be happy to share the code now. I just need to find a place to host it. (Looking towards the banshee subversion repository. If the admin is reading this... ;) > Thanks all! >=20 > Patrick >=20 > (irc as trick) >=20 > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ >=20 --=20 Bertrand Lorentz --=-nZ0gXIa8jpype9b/iPe6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE +THmUT47WTYvpwVUSC5JFA0= =ZY2f -----END PGP SIGNATURE----- --=-nZ0gXIa8jpype9b/iPe6-- From pcolijn@gmail.com Fri Apr 7 18:02:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01ED33B0266 for ; Fri, 7 Apr 2006 18:02:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28937-09 for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.228]) by menubar.gnome.org (Postfix) with ESMTP id 32FFF3B106F for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so505799wra for ; Fri, 07 Apr 2006 15:02:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tvl3ZtWt8Y5PWoBRJimlhbzyxFyuk3bRwuc6gKA3kFySGlECzVCU5PhsuEYKiehhjIdiIyD59NT2j/Yz31OcknejPCyzV4yv60VeS+NRjBXBe1YQLZ/mJ33ag93XneFXnMJraiV4GI3jLnSYrx5pBHk2XaoFp82bwW41knCFO+c= Received: by 10.54.100.3 with SMTP id x3mr307724wrb; Fri, 07 Apr 2006 15:02:21 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Fri, 7 Apr 2006 15:02:21 -0700 (PDT) Message-ID: <7c35b00e0604071502r454ac03yed32876ee1cd2139@mail.gmail.com> Date: Fri, 7 Apr 2006 18:02:21 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.363 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.363 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:02:25 -0000 SGksCgpPbiA0LzcvMDYsIENoYWQgRmlsZXMgPGNwZmlsZXNAZ21haWwuY29tPiB3cm90ZToKPiBB ZnRlciByZWFkaW5nIHRoZSBhYm92ZSBJIHdvbmRlcmVkIGlmIGl0IGhhZCBhbnl0aGluZyB0byBk byB3aXRoIHRoZQo+IG1lZGlhIGZvcm1hdCwgYW5kIGl0IGRvZXMuIFRoZSBwb3BwaW5nIG9ubHkg aGFwcGVucyB3aGVuIHBsYXlpbmcgb2dnCj4gZmlsZXMsIG1wMyBhbmQgQ0QgcGxheWJhY2sgd29y ayBmaW5lLiBJcyB0aGVyZSBzb21ldGhpbmcgdGhhdCBuZWVkIHRvCj4gY2hhbmdlIGluIHRoZSB3 YXkgb2dnIGlzIHJlYWQgYW5kIHBsYXllZD8KCkkga25vdyAibWUgdG9vIiByZXBsaWVzIGFyZSBu b3QgdGhhdCB1c2VmdWwsIGJ1dCBJIGhhdmUgZXhwZXJpZW5jZSBhCnNpbWlsYXIgKGJ1dCBub3Qg ZXhhY3RseSB0aGUgc2FtZSkgcHJvYmxlbS4gWWVzdGVyZGF5IEkgY29waWVkIHNvbWUKb2dncyB0 byBteSBpcG9kIHVzaW5nIEJhbnNoZWUsIGFuZCB0aGV5IHNvdW5kIGFsbCBwb3BweSBvbiB0aGUg aXBvZC4KV2hhdCdzIGludGVyZXN0aW5nIGFib3V0IHRoYXQgaXMgdGhhdCBJIGFzc3VtZSB0aGUg dHJhbnNjb2RlciBoYXMKbm90aGluZyB0byBkbyB3aXRoIHRoZSBhdWRpbyBoYXJkd2FyZSBvciBB TFNBIGNvbmZpZ3VyYXRpb24sIHNvIHRob3NlCmNhbiBwcm9iYWJseSBiZSBydWxlZCBvdXQuCgpI YXZlIGZ1biwKClBldGVyCg== From wpoland@gmail.com Fri Apr 7 18:10:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB043B0A42 for ; Fri, 7 Apr 2006 18:10:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29555-07 for ; Fri, 7 Apr 2006 18:10:23 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by menubar.gnome.org (Postfix) with ESMTP id 58D233B05DC for ; Fri, 7 Apr 2006 18:10:22 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so461766wxd for ; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UfOyLWKYIUQunrMKQD3b53u5vEZ4RKnRDx2780mnViKqF+wHyRVNnICwoBfC6KnDNN+4avh0m6HKciY8saBpvU9sasE9viPP4mfEYoUnmkmKxz+0iSXQZnivY4T0nxLCWJ7Giq2WbUjc90QeFYhArZPuLM30Os8IjS2OvgwcKJU= Received: by 10.70.73.6 with SMTP id v6mr2321606wxa; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 15:10:20 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 15:10:20 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.587 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.587 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:10:26 -0000 On 4/7/06, Bertrand Lorentz wrote: > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > Hey folks, > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clock= plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > > > Features I'm working on: > > > > Sleep timer: > > * ability to set a timer that when it's up, will pause playback. Grea= t for when > > you're loving your tunes but don't want to hear them ALL night. > > > > Alarm timer: > > * will start playback at the given time. > > * "recur" option - if enabled, will set the timer again for the next d= ay at that same > > time. > > * volume setting - will change the volume to a certain level before pl= aying. This way > > you don't have to set it before you go to sleep. > > > > Future ideas: > > * sleep timer - make it so it fades out the song, or stops at the end = of the song > > rather than just pausing in the middle of it. > > * alarm timer - volume change will be gradual. will set the volume wh= en the alarm > > first goes off, and will gradually increase it to another value over a = span of seconds > > or minutes. All three values will be settable. > > > > Anyone have any other ideas/suggestions for me? Like I said, this plug= in is more in > > the concept stage (I have more pencil sketches than actual code)...so I= 'm open to > > ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > -- > Bertrand Lorentz > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE > +THmUT47WTYvpwVUSC5JFA0=3D > =3DZY2f > -----END PGP SIGNATURE----- > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > How about a UI element that gives you a countdown clock for either the sleep timer or the time until the alarm goes off? From bertrand.lorentz@free.fr Sat Apr 8 04:08:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22A743B0467 for ; Sat, 8 Apr 2006 04:08:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20914-10 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 7B7D03B0447 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 661C273184 for ; Sat, 8 Apr 2006 10:08:09 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FnO6LSDuTF7Rtiurrljp" Date: Sat, 08 Apr 2006 10:08:08 +0200 Message-Id: <1144483688.517.69.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 08:08:14 -0000 --=-FnO6LSDuTF7Rtiurrljp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 15:10 -0700, Byron Poland wrote: > On 4/7/06, Bertrand Lorentz wrote: > > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > > Hey folks, > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clo= ck plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating efforts = :) > > > > Hi, > > > > I've been working on something similar. I'm trying to replicate the > > features from the xmms-alarm plugin for XMMS and beep media player. > > I've got some working code, but it still needs some work. > > I'm still waking up with beep media player... > > > > > Features I'm working on: > > > > > > Sleep timer: > > > * ability to set a timer that when it's up, will pause playback. Gr= eat for when > > > you're loving your tunes but don't want to hear them ALL night. > > > > > > Alarm timer: > > > * will start playback at the given time. > > > * "recur" option - if enabled, will set the timer again for the next= day at that same > > > time. > > > * volume setting - will change the volume to a certain level before = playing. This way > > > you don't have to set it before you go to sleep. > > > > > > Future ideas: > > > * sleep timer - make it so it fades out the song, or stops at the en= d of the song > > > rather than just pausing in the middle of it. > > > * alarm timer - volume change will be gradual. will set the volume = when the alarm > > > first goes off, and will gradually increase it to another value over = a span of seconds > > > or minutes. All three values will be settable. > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this pl= ugin is more in > > > the concept stage (I have more pencil sketches than actual code)...so= I'm open to > > > ideas :) > > > > What is working in my code : > > - Start playback at a given time > > - Set the volume before playing > > > > What is implemented but doesn't work > > - Gradually change the volume while playing over a period of time. > > The volume just gets stuck at the first value. > > > > The configuration options need some UI love. For now it's just a bunch > > of SpinButtons. > > > > Things I'd like to have : > > - Set different alarm times for each day of the week. I don't want to b= e > > waken up at 7am on a Sunday morning because I left banshee running... > > > > The sleep timer is a good idea, and should be easy to do once the alarm > > stuff is done. > > > > I planned to put the code out when I have a working plugin, but I'd be > > happy to share the code now. > > I just need to find a place to host it. (Looking towards the banshee > > subversion repository. If the admin is reading this... ;) > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > -- > > Bertrand Lorentz > > >=20 > How about a UI element that gives you a countdown clock for either the > sleep timer or the time until the alarm goes off? Good idea, I think knowing that I only have 5 hours of sleep left might help me to go to bed earlier... I think it would be better to have that UI element integrated in the banshee main window. I wonder how we can do that from a plugin... Has any plugin already done something similiar ? --=20 Bertrand Lorentz --=-FnO6LSDuTF7Rtiurrljp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEN29ob1pl4loRymARAtiCAJ45r7mnpYCxpkEzDi+ENe+moYUogwCcC4Ad wQ3UPPt1GLcwAxVNENdSiCU= =hBqc -----END PGP SIGNATURE----- --=-FnO6LSDuTF7Rtiurrljp-- From trick@vanstaveren.us Sat Apr 8 05:26:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA7E63B03D6 for ; Sat, 8 Apr 2006 05:26:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25286-08 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id BCD3C3B02A4 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FS9iM-0006r1-Br; Sat, 08 Apr 2006 02:26:43 -0700 Received: from d107097.dynamic.cmich.edu (d107097.dynamic.cmich.edu [141.209.107.97]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 08 Apr 2006 05:26:40 -0400 Message-ID: <20060408052640.s91dhph69ns4skgo@www.vanstaveren.us> Date: Sat, 08 Apr 2006 05:26:40 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Bertrand Lorentz Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.209.107.97 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 09:26:47 -0000 Bertrand, Glad to hear you've been working on this as well :) Could you maybe post the code here on banshee-list? It can't be too big...just post the main .cs file that you're using. I'll focus on getting the sleep timer to work, and if you want to post your code, we can wrap them together into a single plugin. I left Aaron a message and he can probably get us SVN access here soon. As for adding a UI element, I'm sure it's possible thru a plugin...look at what minimode has done thru a plugin - totally reshaped the UI. We'll keep this one in mind :) Great work! From the sound of it, you've already got the basics of a plugin ready...good work! If you're ever around irc, bug me (trick). Thanks for the suggestions everyone...i'm tired of my sleep timer'd bash scripts, I'm sure we'll have this plugin put together in no time :) If anyone has any more feature requests for this plugin, do post them! Cheers Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from bertrand.lorentz@free.fr --------- Date: Fri, 07 Apr 2006 21:46:44 +0200 From: Bertrand Lorentz Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock To: banshee-list@gnome.org > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: >> Hey folks, >> >> I've been starting to work on a new plugin for Banshee - an Alarm >> Clock plugin. Has >> anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > >> Features I'm working on: >> >> Sleep timer: >> * ability to set a timer that when it's up, will pause playback. >> Great for when >> you're loving your tunes but don't want to hear them ALL night. >> >> Alarm timer: >> * will start playback at the given time. >> * "recur" option - if enabled, will set the timer again for the >> next day at that same >> time. >> * volume setting - will change the volume to a certain level before >> playing. This way >> you don't have to set it before you go to sleep. >> >> Future ideas: >> * sleep timer - make it so it fades out the song, or stops at the >> end of the song >> rather than just pausing in the middle of it. >> * alarm timer - volume change will be gradual. will set the volume >> when the alarm >> first goes off, and will gradually increase it to another value over >> a span of seconds >> or minutes. All three values will be settable. >> >> Anyone have any other ideas/suggestions for me? Like I said, this >> plugin is more in >> the concept stage (I have more pencil sketches than actual >> code)...so I'm open to >> ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > >> Thanks all! >> >> Patrick >> >> (irc as trick) >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> > > > -- > Bertrand Lorentz > ----- End message from bertrand.lorentz@free.fr ----- From abockover@novell.com Sat Apr 8 23:59:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C165B3B0871 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10247-09 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from abock.org (aaronbock.net [67.18.92.43]) by menubar.gnome.org (Postfix) with ESMTP id 035F43B0879 for ; Sat, 8 Apr 2006 23:59:38 -0400 (EDT) Received: from [192.168.1.129] aaron [66.30.115.152] by abock.org with NetMail SMTP Agent $Revision: 1.7 $; Sat, 08 Apr 2006 23:59:38 -0400 Subject: Re: [Banshee-List] How's the podcast plugin coming? From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 07 Apr 2006 21:43:00 -0400 Message-Id: <1144460581.4437.20.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.384 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.384 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 03:59:39 -0000 I have been trying to get hold of Mike since the deadline he set for this past Monday. No announcements missed, and you're not alone in wondering what's going on ;) Cheers, Aaron On Fri, 2006-04-07 at 13:13 -0400, Josiah Ritchie wrote: > How is the podcast plugin coming? Mostly I'm asking to make sure I > didn't miss an announcement. :-) > > JSR/ > > -- > Our Mission > Technology and Hospitality for God's Workmen > http://missions.ritchietribe.net > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Sun Apr 9 07:50:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 869673B1C6C for ; Sun, 9 Apr 2006 07:50:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12857-10 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 79AAD3B1CA0 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so701841wra for ; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=GiQth52y+BSxy0cAWd35+7LObJofI2VpYKOnQq7/5rwCMO3cspbct93mnmMMM4HeTBiw+UJrskLN5fPUdmtaDeEXD/Z7BS3FUDrXKrCo7Odt6CuTU8dbE4FdQWIqI7OvbFWl01z3e4c7Uah2TMYjcUj5m4025kCbUrY3mQQch5k= Received: by 10.54.67.11 with SMTP id p11mr2420146wra; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 04:50:17 -0700 (PDT) Message-ID: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Date: Sun, 9 Apr 2006 12:50:17 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_476_30259549.1144583417871" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] [Patch] DAP UI Initialisation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 11:50:21 -0000 ------=_Part_476_30259549.1144583417871 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch fixes the issue with starting banshee with a mass storage dap plugged in. Rather than loading the track database during Initialisation of the dap class it is now delayed until the UI has been initialised, allowing the reading of the database to use the UI. Cheers, James. ------=_Part_476_30259549.1144583417871 Content-Type: plain/text; name=dap-ui-init.diff Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eltb0vif Content-Disposition: attachment; filename="dap-ui-init.diff" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.14 diff -u -r1.14 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 10 Mar 2006 17:25:12 -0000 1.14 +++ src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 11:34:18 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.12 diff -u -r1.12 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 13 Feb 2006 22:18:10 -0000 1.12 +++ src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 11:34:18 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.5 diff -u -r1.5 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Mar 2006 07:52:42 -0000 1.5 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 11:34:19 -0000 @@ -95,8 +95,6 @@ base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; @@ -110,7 +108,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 9 Apr 2006 11:34:19 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); ------=_Part_476_30259549.1144583417871-- From ruben@Lambda1.be Sun Apr 9 08:56:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4639F3B1D53 for ; Sun, 9 Apr 2006 08:56:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17300-10 for ; Sun, 9 Apr 2006 08:56:19 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 04FD33B1D3C for ; Sun, 9 Apr 2006 08:56:18 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k39CuGc07339 for ; Sun, 9 Apr 2006 14:56:16 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id E77EE4608DA; Sun, 9 Apr 2006 14:56:15 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 14:56:15 +0200 Message-Id: <1144587375.9734.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 12:56:26 -0000 On Sun, 2006-04-09 at 12:50 +0100, James Stembridge wrote: > Hi, > > Attached patch fixes the issue with starting banshee with a mass > storage dap plugged in. > > Rather than loading the track database during Initialisation of the > dap class it is now delayed until the UI has been initialised, > allowing the reading of the database to use the UI. Haven't tested it, but patch looks good at first sight. Don't forget to post it to the bugzilla, else it might get lost in the process. Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Sun Apr 9 09:01:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4C5F3B1D56 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17740-07 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.238]) by menubar.gnome.org (Postfix) with ESMTP id BC3863B1D53 for ; Sun, 9 Apr 2006 09:01:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so706599wra for ; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JqAtr2QRhcDuj5tSXTYg+XkTGr3BqO0PY9dowRSSsZDbG49B+loWQTfIp27FNE2WqMGyEYhhtIFf5Pv0itAehAD9pwv3NgvtOnIATFumbmd/b6CH8yTy0TrXadQjZaBsIS13XVdmZ07/rsZjVeTc7dFqRCUzB6Q+0HNn49/qobE= Received: by 10.54.140.6 with SMTP id n6mr2386636wrd; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 06:01:32 -0700 (PDT) Message-ID: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Date: Sun, 9 Apr 2006 14:01:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation In-Reply-To: <1144587375.9734.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:01:34 -0000 On 4/9/06, Ruben Vermeersch wrote: > Haven't tested it, but patch looks good at first sight. Don't forget to > post it to the bugzilla, else it might get lost in the process. Sure will do. What's the preference for posting patches? Mailing list, bugzilla or both? James. From ruben@Lambda1.be Sun Apr 9 09:17:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1A543B1D5F for ; Sun, 9 Apr 2006 09:17:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18512-07 for ; Sun, 9 Apr 2006 09:17:03 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id EAA603B1D68 for ; Sun, 9 Apr 2006 09:17:02 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k39DH0A32760 for ; Sun, 9 Apr 2006 15:17:01 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 681584608DA; Sun, 9 Apr 2006 15:16:58 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 15:16:58 +0200 Message-Id: <1144588618.11205.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.591 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:17:05 -0000 On Sun, 2006-04-09 at 14:01 +0100, James Stembridge wrote: > On 4/9/06, Ruben Vermeersch wrote: > > Haven't tested it, but patch looks good at first sight. Don't forget to > > post it to the bugzilla, else it might get lost in the process. > > Sure will do. What's the preference for posting patches? Mailing list, > bugzilla or both? There's no strict rules on that, but I'd like to give the advice of posting every patch to bugzilla, they can't get lost there. If your patch needs review / you'd like to get feedback, post them to the list too. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From trick@vanstaveren.us Mon Apr 10 05:29:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888E73B07B1 for ; Mon, 10 Apr 2006 05:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13794-04 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 2EBA53B09A6 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FSsiG-0002jh-0z for banshee-list@gnome.org; Mon, 10 Apr 2006 02:29:36 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Mon, 10 Apr 2006 05:29:35 -0400 Message-ID: <20060410052935.ugeratbs2mv4wosg@www.vanstaveren.us> Date: Mon, 10 Apr 2006 05:29:35 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.554 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_SV=0.077] X-Spam-Score: -2.554 X-Spam-Level: Subject: [Banshee-List] Alarm Plugin is in SVN X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 09:29:40 -0000 Howdy folks, I took Bertrand's working code for the alarm timer, and combined it with my sleep timer code and some scraps that I had written, and put it together in a single plugin. It's available on the banshee svn now...just run: svn co svn://svn.banshee-project.org/trunk/banshee-alarm-plugin. Please read the TODO and BUGS files - this plugin is far from complete, but it's a start :) Feel free to send suggestions for the TODO file ;) Please note - if you were using Bertrand's plugin previously, make sure to delete banshee-alarm.dll from your plugins directory. The new plugin renames the dll and I don't want you to find plugin loading failures b/c of duplicate class names... Please also note - if you have somewhere to be in the morning and you rely on this plugin to wake you up, and it fails to do so - don't blame us, just remember it's beta :) Many thanks to Bertrand for his original code! (Bertrand - if you want SVN access to make commits, all you have to do is ask Aaron :)) Cheers, Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From jstembridge@gmail.com Mon Apr 10 15:59:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2001A3B105D for ; Mon, 10 Apr 2006 15:59:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26219-07 for ; Mon, 10 Apr 2006 15:59:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 2FC9C3B11B4 for ; Mon, 10 Apr 2006 15:59:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so935140wra for ; Mon, 10 Apr 2006 12:59:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=s0DNfst2vdk+d7Z3d0Ek/C1x33uxQNOyGpIHMtDfgb+fh/4AEPH8Wxtw0phP/YM/aUW/R//V804HBKTiu7pD2mchoDv19u3bfSgkJAU9+jegCL7laCXJVSQ8VN6gJ7v0JbFfoX5no4Eul6pe1ESxql59OQlTRSMhK3XxnyNaxvE= Received: by 10.54.107.17 with SMTP id f17mr4274692wrc; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Message-ID: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> Date: Mon, 10 Apr 2006 20:59:29 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8480_21443799.1144699169761" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Mass storage status X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 19:59:41 -0000 ------=_Part_8480_21443799.1144699169761 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Just a heads up to anyone who's interested in mass storage dap support. Current cvs along with the following patches: http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 Is working very well for me here with a W800 walkman phone like I have here (fdi file is attached). If anyone else would like to give it a try I'd be interested to here how they got on. Cheers, James. ------=_Part_8480_21443799.1144699169761 Content-Type: application/octet-stream; name=10-sony-erricsson.fdi Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elv89uzs Content-Disposition: attachment; filename="10-sony-erricsson.fdi" portable_audio_player portable_audio_player generic storage MP3/%Artist/%Album/%Track MP3/ audio/mpeg audio/aac ------=_Part_8480_21443799.1144699169761-- From jstembridge@gmail.com Mon Apr 10 16:06:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1CE83B12A0 for ; Mon, 10 Apr 2006 16:06:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26899-07 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id ABA103B1291 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so936592wra for ; Mon, 10 Apr 2006 13:06:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SK+q7qEi1sk9WYCnqRVzfRFoQMAZRG9WMdSa1JIsCEBoYMkTuPCdgbBLDNUDIGnnZMlqWU3Mdq16Yw9xJixI13Hv9fFYm2EuP5V8LkapVhDI3pxLsCifeVoRgH33OPpFOHJ6WwbuY2jToK+TMG14GZY3ZZ2bk5W5qd3TuumakSk= Received: by 10.54.93.7 with SMTP id q7mr161599wrb; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Message-ID: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Date: Mon, 10 Apr 2006 21:06:35 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Last.fm plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:06:39 -0000 Hi, Second heads up for the evening. I thought I'd have a look at writing a Last.fm plugin, as mentioned on thethe feature request page. Is anyone else out there in internet land working on this? Cheers, James. From ruben@Lambda1.be Mon Apr 10 16:10:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5520E3B2608 for ; Mon, 10 Apr 2006 16:10:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27126-06 for ; Mon, 10 Apr 2006 16:10:57 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 794A73B1DA3 for ; Mon, 10 Apr 2006 16:10:56 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3AKAsA27572 for ; Mon, 10 Apr 2006 22:10:54 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 0EF2A4601E7; Mon, 10 Apr 2006 22:10:51 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Apr 2006 22:10:51 +0200 Message-Id: <1144699851.20263.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:11:00 -0000 On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > Hi, > > Second heads up for the evening. I thought I'd have a look at writing > a Last.fm plugin, as mentioned on thethe feature request page. Is > anyone else out there in internet land working on this? You might want to look into combining this with the internet radio plugin Sven is (was?) writing. Sven, if you're reading this, drop us a line. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From ml@cybernotic.org Mon Apr 10 16:59:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F7A13B28A0 for ; Mon, 10 Apr 2006 16:59:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31164-03 for ; Mon, 10 Apr 2006 16:59:56 -0400 (EDT) Received: from dd1622.kasserver.com (dd1622.kasserver.com [81.209.148.229]) by menubar.gnome.org (Postfix) with ESMTP id EDD483B28A4 for ; Mon, 10 Apr 2006 16:59:55 -0400 (EDT) Received: from [10.14.1.100] (port-212-202-36-218.dynamic.qsc.de [212.202.36.218]) by dd1622.kasserver.com (Postfix) with ESMTP id 689A9B6C41 for ; Mon, 10 Apr 2006 22:59:54 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Alexander Bubeck To: banshee-list@gnome.org In-Reply-To: <1144699851.20263.0.camel@localhost.localdomain> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 10 Apr 2006 22:59:53 +0200 Message-Id: <1144702793.5424.24.camel@matari> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:59:59 -0000 Hi, I started writing a internet radio plugin and got some running code already. After getting the tagging stuff to work I will post my code on the list. I didn't know somebody else was working on this, so I'm also interested in Sven's status. The last.fm radio stuff would also be good in the banshee-recommendation-plugin, where last.fm is used anyway. Cheers, Alex Am Montag, den 10.04.2006, 22:10 +0200 schrieb Ruben Vermeersch: > On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > > Hi, > > > > Second heads up for the evening. I thought I'd have a look at writing > > a Last.fm plugin, as mentioned on thethe feature request page. Is > > anyone else out there in internet land working on this? > > You might want to look into combining this with the internet radio > plugin Sven is (was?) writing. > > Sven, if you're reading this, drop us a line. > > Kind regards, > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From jasl8r@gmail.com Mon Apr 10 17:48:22 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41CB13B133B for ; Mon, 10 Apr 2006 17:48:22 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01333-02 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.236]) by menubar.gnome.org (Postfix) with ESMTP id 398133B1350 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so955949wra for ; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ittiZJO2GwhxY6dVhSMXnJ/x11UZcdh8+44UoW/IVFpWoEFTn5J084VylKePOz0kEjIV7fYBo75cNz4Fe5EQgWA6fUZ85b6XfwmEgZ8trAOJDKCCKlx90owILMNoU7xQQRSl9lwa3T3TY4CPDsEIy1CBlkx7KUnc5f4/3NFAJyo= Received: by 10.54.118.8 with SMTP id q8mr3440634wrc; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Received: by 10.54.125.12 with HTTP; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Message-ID: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> Date: Mon, 10 Apr 2006 17:48:19 -0400 From: "Jeremy Slater" To: "Banshee List" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_948_5761833.1144705699537" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.866 tagged_above=-999 required=2 tests=[AWL=-0.062, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.866 X-Spam-Level: Subject: [Banshee-List] Daap Startup Crash X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 21:48:22 -0000 ------=_Part_948_5761833.1144705699537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an accessible daap share on my network. If I stop the avahi service, then banshee starts just fine. I am running 10.9 and I noticed that this was supposedly a fixed issue in 10.7. I was wondering if anyone else is having this problem or if there is an available patch. Jeremy ------=_Part_948_5761833.1144705699537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy ------=_Part_948_5761833.1144705699537-- From mattvermeulen@gmail.com Mon Apr 10 18:13:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 92C9E3B127C for ; Mon, 10 Apr 2006 18:13:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03202-01 for ; Mon, 10 Apr 2006 18:13:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id DBD8A3B12F4 for ; Mon, 10 Apr 2006 18:13:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1132104pyu for ; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g8KkZ+Yv2U8Yie3YRgyVertpcIzH/wVU9izkrhGj6IDHPwZqxljmIAdLTMG8UPmB8Wjk0iOseUYOKd8Hx6ZEwUlPP3AsAgTWluuo6UEbZe2UsV/HPxaZMBvwn3xjeL9N9Y3aU5dYD9pG93X8VJa4IO57ZL+WWO6WqI3zdoFGjX4= Received: by 10.35.22.17 with SMTP id z17mr1610827pyi; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Message-ID: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> Date: Tue, 11 Apr 2006 06:13:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13667_22538061.1144707223075" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.225 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.225 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 22:13:48 -0000 ------=_Part_13667_22538061.1144707223075 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Lexar Jumpdrive Sport, which is just a generic sort of usb memory stick, an= d I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi to detect the drive as a music device, which it does. However, as best as I ca= n tell, MassStorageDap fails when it gets to if (volume =3D=3D null) and dr= ops out. As of date, I have not been able to get the device showing up in banshee... On 4/11/06, James Stembridge wrote: > > Hi, > > Just a heads up to anyone who's interested in mass storage dap > support. Current cvs along with the following patches: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 > > Is working very well for me here with a W800 walkman phone like I have > here (fdi file is attached). If anyone else would like to give it a > try I'd be interested to here how they got on. > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_13667_22538061.1144707223075 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Le= xar Jumpdrive Sport, which is just a generic sort of usb memory stick, and = I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freed= esktop/10- usb-music-players.fdi to detect the drive as a music device, which it does.= However, as best as I can tell, MassStorageDap fails when it gets to =   if (volume =3D=3D null) and drops out. As of date, I have not been a= ble to get the device showing up in banshee...

On 4/11/06, James Stembridge <j= stembridge@gmail.com> wrote:
Hi,

Just a heads up to anyone who's interested in mass storage dapsupport. Current cvs along with the following patches:

http://bugzilla.gnome.o= rg/show_bug.cgi?id=3D337829
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337808
http://bugzilla.gnome.org/show_bu= g.cgi?id=3D337807
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337800

Is working very w= ell for me here with a W800 walkman phone like I have
here (fdi file is = attached). If anyone else would like to give it a
try I'd be interested to here how they got on.

Cheers,
James.=


_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_13667_22538061.1144707223075-- From kmf@fischer.org.za Tue Apr 11 05:45:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 024E93B2A6B for ; Tue, 11 Apr 2006 05:45:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04886-10 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from water.securenet-server.net (water.securenet-server.net [65.254.38.146]) by menubar.gnome.org (Postfix) with ESMTP id 315ED3B29F7 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from [196.25.70.97] (helo=[10.50.130.37]) by water.securenet-server.net with esmtp (Exim 4.52) id 1FTFRE-00018F-DQ for banshee-list@gnome.org; Tue, 11 Apr 2006 05:45:36 -0400 From: Karl Fischer To: banshee-list@gnome.org Content-Type: text/plain Date: Tue, 11 Apr 2006 11:44:53 +0200 Message-Id: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - water.securenet-server.net X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - fischer.org.za X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.181 tagged_above=-999 required=2 tests=[AWL=0.418, BAYES_00=-2.599] X-Spam-Score: -2.181 X-Spam-Level: Subject: [Banshee-List] Bounties Page X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, kmf@fischer.org.za List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 09:45:40 -0000 Hi There, Perhaps we should have a Bounties Page for Plugins and Features ? Karl -- ----------------------------------------- Karl Fischer Drone, Human and Gnome User I support 10x10. Email : kmf@fischer.org.za Jabber : kmf@jabber.org Personal Site : http://fischer.org.za ----------------------------------------- From pascalhos@gmail.com Tue Apr 11 06:53:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C7543B152E for ; Tue, 11 Apr 2006 06:53:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08835-05 for ; Tue, 11 Apr 2006 06:53:19 -0400 (EDT) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id DC9C93B151D for ; Tue, 11 Apr 2006 06:53:18 -0400 (EDT) Received: by uproxy.gmail.com with SMTP id y2so706681uge for ; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kxFIlGJhMicRvYReZBHwGSaC4Tjb3u2XW7WqlIog4S0SX3Jt5Ml4+7ZX6bx9kl9w1eGmM/z+W9iJ9IRwQEP1UF1IfHP1w/7jhQbh7hD6D3CubgjLPm2eMuE2l/XEJ5JNXaoODOTt33KcSFgvWJlOCIlPeJsR+oOIFNmB+FHqC00= Received: by 10.78.31.18 with SMTP id e18mr85801hue; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Received: by 10.78.27.3 with HTTP; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Message-ID: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> Date: Tue, 11 Apr 2006 12:53:11 +0200 From: "Pascal Hos" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3279_10417146.1144752791716" References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.907 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.907 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 10:53:20 -0000 ------=_Part_3279_10417146.1144752791716 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy, I'm experiencing the same problem running up-to-date ubuntu Dapper. This bu= g has been reported: http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 Pascal On 4/10/06, Jeremy Slater wrote: > > Hi, Banshee crashes for me whenever I start with daap enabled and have an > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is > having this problem or if there is an available patch. > > Jeremy > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_3279_10417146.1144752791716 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy,

I'm experiencing the same problem running up-to-date ubun= tu Dapper. This bug has been reported:

http://bugzilla.gnome.org/show_bug.cgi?id= =3D334174
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D334980

Pascal

On 4/10/06, Jer= emy Slater <jasl8r@gmail.com> wrote= :
Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy

_______________________________________________
Banshee= -list mailing list
Banshee-list@gnome.org http://mail= .gnome.org/mailman/listinfo/banshee-list


=
------=_Part_3279_10417146.1144752791716-- From sjoeboo@sjoeboo.com Tue Apr 11 08:33:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40B0D3B2AF7 for ; Tue, 11 Apr 2006 08:33:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14652-08 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 807533B2AD8 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: by skywalker.sjoeboo.com (Postfix, from userid 1000) id CD2A110DB3; Tue, 11 Apr 2006 08:32:57 -0400 (EDT) Date: Tue, 11 Apr 2006 08:32:57 -0400 To: banshee-list@gnome.org, kmf@fischer.org.za Subject: Re: [Banshee-List] Bounties Page Message-ID: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1144748693.8278.8.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i From: sjoeboo@sjoeboo.com (matt nicholson) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.432 tagged_above=-999 required=2 tests=[AWL=1.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.432 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 12:33:42 -0000 I second this. even if its not $$ based. I really liked what aaron did before with the mini-mode etc, to help people learn and get some new features in there. as soon as school calm down i would love to get involved like this. matt nicholson On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > Hi There, > > Perhaps we should have a Bounties Page > for Plugins and Features ? > > Karl > -- > ----------------------------------------- > Karl Fischer > Drone, Human and Gnome User > I support 10x10. > Email : kmf@fischer.org.za > Jabber : kmf@jabber.org > Personal Site : http://fischer.org.za > ----------------------------------------- > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From josiah.ritchie@gmail.com Tue Apr 11 09:32:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 99B413B20A2 for ; Tue, 11 Apr 2006 09:32:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18795-07 for ; Tue, 11 Apr 2006 09:32:56 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 0A76B3B1CE2 for ; Tue, 11 Apr 2006 09:32:55 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so1780985nzf for ; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rt142c9kVFVPmZiQJNR/Z08Qm9aKXzvPSznKGTfNBKDYUI9RaVO8i6t3JV7vcO4VxYq8JiD7pPsUh+2nVaoKM6/1nGol5gp3QgHuwBWFAZZIowSxu3QjIJkrKlQ3tIMK6CJviL78uT+qiCjrKIaO9Wg0Un7M53uAXbadhkmozLE= Received: by 10.37.18.76 with SMTP id v76mr5394264nzi; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Tue, 11 Apr 2006 06:32:54 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 09:32:54 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.111, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.489 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:32:57 -0000 I've also duplicated these problem on a Dapper machine. JSR/ On 4/11/06, Pascal Hos wrote: > Hi Jeremy, > > I'm experiencing the same problem running up-to-date ubuntu Dapper. This = bug > has been reported: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 > http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 > > Pascal > > > On 4/10/06, Jeremy Slater wrote: > > > > Hi, Banshee crashes for me whenever I start with daap enabled and have a= n > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is havi= ng > this problem or if there is an available patch. > > Jeremy > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From ruben@Lambda1.be Tue Apr 11 09:36:43 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB303B2B56 for ; Tue, 11 Apr 2006 09:36:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19069-02 for ; Tue, 11 Apr 2006 09:36:39 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 0967B3B1CE2 for ; Tue, 11 Apr 2006 09:36:38 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3BDaXA04673; Tue, 11 Apr 2006 15:36:33 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 697BA674002; Tue, 11 Apr 2006 15:36:32 +0200 (CEST) Subject: Re: [Banshee-List] Bounties Page From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> <20060411123257.GA1092@sjoeboo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Apr 2006 15:36:31 +0200 Message-Id: <1144762592.9646.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: oola 2020; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:36:43 -0000 For those interested: I'm working on getting a task list up, a place where can be tracked who does what and where new tasks can be found, implementation ideas etc. So, there's being worked on something, no worries :-). On Tue, 2006-04-11 at 08:32 -0400, matt nicholson wrote: > I second this. even if its not $$ based. I really liked what aaron did > before with the mini-mode etc, to help people learn and get some new > features in there. as soon as school calm down i would love to get > involved like this. > > matt nicholson > > On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > > Hi There, > > > > Perhaps we should have a Bounties Page > > for Plugins and Features ? > > > > Karl > > -- > > ----------------------------------------- > > Karl Fischer > > Drone, Human and Gnome User > > I support 10x10. > > Email : kmf@fischer.org.za > > Jabber : kmf@jabber.org > > Personal Site : http://fischer.org.za > > ----------------------------------------- > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Tue Apr 11 13:30:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A496D3B11D0 for ; Tue, 11 Apr 2006 13:30:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03796-03 for ; Tue, 11 Apr 2006 13:30:48 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.231]) by menubar.gnome.org (Postfix) with ESMTP id E31EE3B1379 for ; Tue, 11 Apr 2006 13:30:47 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i13so1011076wra for ; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l8YbnCfFIb8XQhC+8J8a8tSu7hhWQiRn9SVV3b4cow/NdkUcf+790wlSIEynNcYVTv8tz02dhSlCtmCX2axhRSmVw5odCvsRKMo5ARUwjziQxDf9FRwJbumvgBBUKbe/vccVV4K3JJhoiOMgyEdSf5qInxuNmoz4DTEadaftm/0= Received: by 10.54.72.15 with SMTP id u15mr583413wra; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Message-ID: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> Date: Tue, 11 Apr 2006 18:30:46 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 17:30:56 -0000 Hi Matt, On 4/10/06, Matthew Vermeulen wrote: > I modified > /usr/share/hal/fdi/information/10freedesktop/10- > usb-music-players.fdi to detect the drive as a music device, which it doe= s. > However, as best as I can tell, MassStorageDap fails when it gets to if > (volume =3D=3D null) and drops out. Could you send me the output of "hal-device"? Cheers, James. From lukas@pmad.net Tue Apr 11 16:04:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CEA33B16F3 for ; Tue, 11 Apr 2006 16:04:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13163-03 for ; Tue, 11 Apr 2006 16:04:02 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 15E943B157C for ; Tue, 11 Apr 2006 16:04:00 -0400 (EDT) Received: (qmail 23753 invoked by uid 503); 11 Apr 2006 20:04:07 -0000 Received: (QMFILT: 1.0); 11 Apr 2006 20:04:07 -0000 Received: from b7.ovh.net (HELO mail142.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 11 Apr 2006 20:04:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:04:00 -0000 Received: from mail142.ha.ovh.net (10.0.50.142) by mail142.ha.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from adsl-d43.87-197-139.telecom.sk (HELO ?192.168.0.23?) (87.197.139.43) by ns0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-IVjwuGPDymRq+8gE2l0b" Date: Tue, 11 Apr 2006 22:03:47 +0200 Message-Id: <1144785828.5055.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.139.43 (adsl-d43.87-197-139.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.705 tagged_above=-999 required=2 tests=[AWL=-0.664, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.705 X-Spam-Level: Subject: [Banshee-List] Child sources patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 20:04:14 -0000 --=-IVjwuGPDymRq+8gE2l0b Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, Attached is a patch which adds support for child sources in Banshee. This means that all your playlists should now appear as children of the library source. This is our first small step to full DAP playlist support. Please test the code thoroughly, but I wasn't able to trigger any issues. Have fun! Lukas --=-IVjwuGPDymRq+8gE2l0b Content-Disposition: attachment; filename=banshee-childsource-0.2.patch Content-Type: text/x-patch; name=banshee-childsource-0.2.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlayerInterface.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 11 Apr 2006 20:02:17 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 11 Apr 2006 20:02:26 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 11 Apr 2006 20:02:30 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 11 Apr 2006 20:02:30 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 11 Apr 2006 20:02:36 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 11 Apr 2006 20:02:36 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 11 Apr 2006 20:02:36 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 11 Apr 2006 20:02:42 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-IVjwuGPDymRq+8gE2l0b-- From mattvermeulen@gmail.com Tue Apr 11 17:57:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54AB3B2F29 for ; Tue, 11 Apr 2006 17:57:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20312-01 for ; Tue, 11 Apr 2006 17:57:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id A7A043B2F15 for ; Tue, 11 Apr 2006 17:57:31 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1424418pyu for ; Tue, 11 Apr 2006 14:57:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VR01K87bXnURQrrO+NiDPLkx/hcTfWNtLzBWQz6CPALF9vig5ZwSf0ixstGZ1lAXbJRS0exGILJofWuLDMJFRQgY/ijdJLpewgM9/0vVFuQsym7mw/6TCJxyfP1jLK2aYXGEokybqVTPcdDlaWNJJ5ZU0AgJ3c6wuQv3UlwSJog= Received: by 10.35.36.13 with SMTP id o13mr669714pyj; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Message-ID: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> Date: Wed, 12 Apr 2006 05:57:30 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15061_30686339.1144792650909" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.412 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 21:57:47 -0000 ------=_Part_15061_30686339.1144792650909 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James... Thanks for the reply... Below is the output of hal-device hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdrive: udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' volume.unmount.valid_options =3D { 'lazy' } (string list) volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'iocharset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list= ) org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject' } (string list) org.freedesktop.Hal.Device.Volume.method_signatures =3D { 'ssas', 'as', '= as' } (string list) org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'Unmount', 'Eject' } (string list) info.interfaces =3D { 'org.freedesktop.Hal.Device.Volume' } (string list) volume.ignore =3D false (bool) volume.policy.desired_mount_point =3D 'MATTHEW' (string) volume.policy.mount_filesystem =3D 'vfat' (string) volume.policy.should_mount =3D true (bool) volume.policy.mount_option.quiet =3D true (bool) volume.policy.mount_option.iocharset=3Dutf8 =3D true (bool) info.udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' (string= ) volume.partition.msdos_part_table_type =3D 4 (0x4) (int) info.product =3D 'MATTHEW' (string) volume.size =3D 259506176 (0xf77c000) (uint64) volume.num_blocks =3D 506848 (0x7bbe0) (int) volume.block_size =3D 512 (0x200) (int) volume.partition.number =3D 1 (0x1) (int) info.capabilities =3D { 'volume', 'block' } (string list) info.category =3D 'volume' (string) volume.is_partition =3D true (bool) volume.is_disc =3D false (bool) volume.is_mounted =3D true (bool) volume.mount_point =3D '/media/MATTHEW' (string) volume.label =3D 'MATTHEW' (string) volume.uuid =3D '' (string) volume.fsversion =3D 'FAT16' (string) volume.fsusage =3D 'filesystem' (string) volume.fstype =3D 'vfat' (string) storage.model =3D '' (string) block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) block.is_volume =3D true (bool) block.minor =3D 1 (0x1) (int) block.major =3D 8 (0x8) (int) block.device =3D '/dev/sda1' (string) linux.hotplug_type =3D 3 (0x3) (int) info.parent =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) linux.sysfs_path_device =3D '/sys/block/sda/sda1' (string) linux.sysfs_path =3D '/sys/block/sda/sda1' (string) Thanks a lot Matt On 4/12/06, James Stembridge wrote: > > Hi Matt, > > On 4/10/06, Matthew Vermeulen wrote: > > I modified > > /usr/share/hal/fdi/information/10freedesktop/10- > > usb-music-players.fdi to detect the drive as a music device, which it > does. > > However, as best as I can tell, MassStorageDap fails when it gets to > if > > (volume =3D=3D null) and drops out. > > Could you send me the output of "hal-device"? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_15061_30686339.1144792650909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James...

Thanks for the reply... Below is the output of hal-devic= e hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdri= ve:

udi =3D '/org/freedesktop/Hal/= devices/volume_label_MATTHEW'
  volume.unmount.valid_options =3D { 'lazy' } (string list)
&nb= sp; volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'n= odiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'ioch= arset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-sy= stem-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-ejec= t' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signa= tures =3D { 'ssas', 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'U= nmount', 'Eject' } (string list)
  info.interfaces =3D { 'org.freed= esktop.Hal.Device.Volume' } (string list)
  volume.ignore =3D false=   (bool)
  volume.policy.desired_mount_point =3D 'MATTHEW'  (string)
  volume.policy.mount_filesystem =3D = 'vfat'  (string)
  volume.policy.should_mount =3D true  (= bool)
  volume.policy.mount_option.quiet =3D true  (bool)
&= nbsp; volume.policy.mount_option.iocharset=3Dutf8 =3D true  (bool)
  info.udi =3D '/org/freedesktop/Hal/devices= /volume_label_MATTHEW'  (string)
  volume.partition.msdos_part= _table_type =3D 4  (0x4)  (int)
  info.product =3D 'MATTH= EW'  (string)
  volume.size =3D 259506176  (0xf77c000)&nb= sp; (uint64)
  volume.num_blocks =3D 506848  (0x7bbe0)  (int)
&nbs= p; volume.block_size =3D 512  (0x200)  (int)
  volume.par= tition.number =3D 1  (0x1)  (int)
  info.capabilities =3D= { 'volume', 'block' } (string list)
  info.category =3D 'volume'  (string)
  volume.is_partition =3D true  (= bool)
  volume.is_disc =3D false  (bool)
  volume.is_m= ounted =3D true  (bool)
  volume.mount_point =3D '/media/MATTH= EW'  (string)
  volume.label =3D 'MATTHEW'  (string)
  volume.uuid =3D ''  (string)
  volume.fsversion =3D= 'FAT16'  (string)
  volume.fsusage =3D 'filesystem'  (st= ring)
  volume.fstype =3D 'vfat'  (string)
  storage.m= odel =3D ''  (string)
  block.storage_device =3D '/org/freedes= ktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702165336021204'=   (string)
  block.is_volume =3D true  (bool)
  block.minor =3D = 1  (0x1)  (int)
  block.major =3D 8  (0x8)  (in= t)
  block.device =3D '/dev/sda1'  (string)
  linux.ho= tplug_type =3D 3  (0x3)  (int)
  info.parent =3D '/org/fr= eedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E970216533602= 1204'  (string)
  linux.sysfs_path_device =3D '/sys/block/sda/sda1'  (string)=
  linux.sysfs_path =3D '/sys/block/sda/sda1'  (string)
Thanks a lot

Matt

On = 4/12/06, James Stembridge <jstembrid= ge@gmail.com> wrote:
Hi Matt,

On 4/10/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> I modified=
> /usr/share/hal/fdi/information/10freedesktop/10-
> usb-music= -players.fdi to detect the drive as a music device, which it does.
> However, as = best as I can tell, MassStorageDap fails when it gets to   if
= > (volume =3D=3D null) and drops out.

Could you send me the outpu= t of "hal-device"?

Cheers,
James.
______________________________________________= _
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_15061_30686339.1144792650909-- From jstembridge@gmail.com Wed Apr 12 06:06:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 104C93B0213 for ; Wed, 12 Apr 2006 06:06:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24581-02 for ; Wed, 12 Apr 2006 06:06:45 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id E2B9B3B0296 for ; Wed, 12 Apr 2006 06:06:42 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1126777wri for ; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e3ur1RGd1Sp4hQglWV7vzQjPDyupukbQppYPjpE/RXgiGHvH8LcIhZCAOOT+/SesuWaACWQTryBmOvm4utytcGz/w9tQ6aQfpLa8pihGzRZdSnUTXM5GbL+jhcgrEhqeX6iPyuuyJYEE9/5ntKoZLVM7NscWpwVz26/OckxLprY= Received: by 10.54.127.4 with SMTP id z4mr3057212wrc; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Message-ID: <18bc366d0604120306x65e49490y9a199c653b778089@mail.gmail.com> Date: Wed, 12 Apr 2006 11:06:42 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 10:06:52 -0000 Hi Matthew, On 4/11/06, Matthew Vermeulen wrote: > Thanks for the reply... Below is the output of hal-device hal-device > /org/freedesktop/Hal/devices/volume_label_MATTHEW , my > Jumpdrive: ... Could you send me the complete output (off-list if necessary), there should be several entries for the device and I can't see where you've added the portable audio player entries. Cheers, James. From jstembridge@gmail.com Wed Apr 12 09:25:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8943B3B01DE for ; Wed, 12 Apr 2006 09:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03287-05 for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 235113B010B for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1158581wri for ; Wed, 12 Apr 2006 06:25:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XmmxOQn1meWr/qjgsGauJ2zH4ml9fvo/asp04NJvH3WDjPt/qIdgegpfXUv9m02N8sUKuOf2N/YQXP869N+BufIMU9OCklnXSsyQ8RQQyJS7RaAL1vmbJO5KKT4y9uPz4Dn4mGklGwj6oulUCaDpOmRV+IcVdASPxdAvSa5ISD0= Received: by 10.54.144.17 with SMTP id r17mr4731297wrd; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Message-ID: <18bc366d0604120625u4e185342v459fd41f6408a329@mail.gmail.com> Date: Wed, 12 Apr 2006 14:25:55 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Last.fm plugin In-Reply-To: <1144702793.5424.24.camel@matari> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> <1144702793.5424.24.camel@matari> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 13:25:57 -0000 Hi Alex, On 4/10/06, Alexander Bubeck wrote: > I started writing a internet radio plugin and got some running code > already. After getting the tagging stuff to work I will post my code on > the list. I didn't know somebody else was working on this, so I'm also > interested in Sven's status. I appreciate it's not finished but I'd be interested to see your code anyway, there are some issues, particularly on the interface side of things, that I'd like to see your take on. Cheers, James. From gabriel.burt@gmail.com Wed Apr 12 13:27:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 093373B056C for ; Wed, 12 Apr 2006 13:27:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19072-02 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 4B31A3B0446 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1650379pyu for ; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XlDQEtKFQfZEVxerDwX5wsNV8W/w4LckM9PTtVArA1Q9ysl4A6TwDrTrXW71WoXbFxrHf8Vjv0+OMu/kReYihmudkDDRc46CTdF077Oq4q7gvfiUwmANXZU2xaDehW6/wxT3sCGLtELcKPXidwpWlnVJx9aCwgaoc5mQKdg1eSY= Received: by 10.35.121.2 with SMTP id y2mr263685pym; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Message-ID: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Date: Wed, 12 Apr 2006 12:27:32 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.074 tagged_above=-999 required=2 tests=[AWL=0.302, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.074 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:27:35 -0000 T24gNC8xMC8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBKdXN0IGEgaGVhZHMgdXAgdG8gYW55b25lIHdobydzIGludGVyZXN0ZWQgaW4gbWFzcyBz dG9yYWdlIGRhcAo+IHN1cHBvcnQuIEN1cnJlbnQgY3ZzIGFsb25nIHdpdGggdGhlIGZvbGxvd2lu ZyBwYXRjaGVzOgo+Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9 MzM3ODI5Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA4 Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA3Cj4gaHR0 cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODAwCj4KPiBJcyB3b3Jr aW5nIHZlcnkgd2VsbCBmb3IgbWUgaGVyZSB3aXRoIGEgVzgwMCB3YWxrbWFuIHBob25lIGxpa2Ug SSBoYXZlCj4gaGVyZSAoZmRpIGZpbGUgaXMgYXR0YWNoZWQpLiBJZiBhbnlvbmUgZWxzZSB3b3Vs ZCBsaWtlIHRvIGdpdmUgaXQgYQo+IHRyeSBJJ2QgYmUgaW50ZXJlc3RlZCB0byBoZXJlIGhvdyB0 aGV5IGdvdCBvbi4KCkhpIEphbWVzLAoKVGhhbmtzIGZvciBhbGwgdGhlIHBhdGNoZXMsIHRoZXkg bG9vayBncmVhdC4gIEkgaGF2ZSBhIGZhaXJseSBsYXJnZQpwYXRjaCB0aGF0IHJlcXVpcmVzIHNv bWUgYmFuc2hlZSBjb3JlIGNoYW5nZXMgc28gQWFyb24ncyBob2xkaW5nIG9mZgpvbiBpdC4gIEds YWQgdG8ga25vdyB0aGUgY29kZSBpdCBiZWluZyB1c2VkLiAgSSdsbCB0cnkgdG8gcmVjb25jaWxl CnlvdXIgcGF0Y2hlcyBhbmQgbWluZSBhbmQgZ2V0IHRoZW0gaW4gc29vbi4KCkdhYnJpZWwK From ruben@Lambda1.be Wed Apr 12 13:48:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1DD63B034C for ; Wed, 12 Apr 2006 13:48:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20051-08 for ; Wed, 12 Apr 2006 13:48:43 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 752DB3B0528 for ; Wed, 12 Apr 2006 13:48:42 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k3CHmdc29742 for ; Wed, 12 Apr 2006 19:48:39 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 79029460327; Wed, 12 Apr 2006 19:48:39 +0200 (CEST) Subject: Re: [Banshee-List] Mass storage status From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Apr 2006 19:48:38 +0200 Message-Id: <1144864119.19810.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:48:45 -0000 On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > On 4/10/06, James Stembridge wrote: > > Just a heads up to anyone who's interested in mass storage dap > > support. Current cvs along with the following patches: > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > Is working very well for me here with a W800 walkman phone like I have > > here (fdi file is attached). If anyone else would like to give it a > > try I'd be interested to here how they got on. > > Hi James, > > Thanks for all the patches, they look great. I have a fairly large > patch that requires some banshee core changes so Aaron's holding off > on it. Glad to know the code it being used. I'll try to reconcile > your patches and mine and get them in soon. If I might be curious for a second: which patch? :-) Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From abockover@novell.com Wed Apr 12 14:05:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57E4D3B056C for ; Wed, 12 Apr 2006 14:05:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20984-07 for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 3E3FB3B051E for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: (qmail 5748 invoked from network); 12 Apr 2006 18:05:54 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 12 Apr 2006 18:05:54 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144864119.19810.0.camel@localhost.localdomain> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 12 Apr 2006 14:02:15 -0400 Message-Id: <1144864935.5048.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 18:05:56 -0000 Gabreil, Would you gather all the necessary patches for the Mass Storage DAP stuff, make sure they're A-OK, and generate a single patch against HEAD? The core stuff can go in now, pending review, since I have branched for stable. Cheers, Aaron On Wed, 2006-04-12 at 19:48 +0200, Ruben Vermeersch wrote: > On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > > On 4/10/06, James Stembridge wrote: > > > Just a heads up to anyone who's interested in mass storage dap > > > support. Current cvs along with the following patches: > > > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > > > Is working very well for me here with a W800 walkman phone like I have > > > here (fdi file is attached). If anyone else would like to give it a > > > try I'd be interested to here how they got on. > > > > Hi James, > > > > Thanks for all the patches, they look great. I have a fairly large > > patch that requires some banshee core changes so Aaron's holding off > > on it. Glad to know the code it being used. I'll try to reconcile > > your patches and mine and get them in soon. > > > If I might be curious for a second: which patch? :-) > > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gabriel.burt@gmail.com Wed Apr 12 17:59:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3814E3B0E31 for ; Wed, 12 Apr 2006 17:59:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01817-01 for ; Wed, 12 Apr 2006 17:59:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 537023B0EFB for ; Wed, 12 Apr 2006 17:59:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1707002pyu for ; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YCsW8yAO/2spjRUQxqwvRyuLr1rm74Jde6NEpl8xWljqYOIgRVim8RjaBbWeX64LuYd/SjeTvBSoRxp86J8ad4Z6iFFq8qoJRrxQB5wBgxpttHKilIumjP5OsW70hJYa+8XX2lZnJJDTI5kccsr/3UNTWYwccVSgFE4qSXdCAQc= Received: by 10.35.119.11 with SMTP id w11mr587857pym; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Message-ID: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Date: Wed, 12 Apr 2006 16:59:11 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <1144864935.5048.1.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.1 tagged_above=-999 required=2 tests=[AWL=0.276, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.1 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 21:59:16 -0000 T24gNC8xMi8wNiwgQWFyb24gQm9ja292ZXIgPGFib2Nrb3ZlckBub3ZlbGwuY29tPiB3cm90ZToK PiBXb3VsZCB5b3UgZ2F0aGVyIGFsbCB0aGUgbmVjZXNzYXJ5IHBhdGNoZXMgZm9yIHRoZSBNYXNz IFN0b3JhZ2UgREFQCj4gc3R1ZmYsIG1ha2Ugc3VyZSB0aGV5J3JlIEEtT0ssIGFuZCBnZW5lcmF0 ZSBhIHNpbmdsZSBwYXRjaCBhZ2FpbnN0IEhFQUQ/Cj4gVGhlIGNvcmUgc3R1ZmYgY2FuIGdvIGlu IG5vdywgcGVuZGluZyByZXZpZXcsIHNpbmNlIEkgaGF2ZSBicmFuY2hlZCBmb3IKPiBzdGFibGUu CgpDZXJ0YWlubHkuICBJIHdvbid0IGJlIGFibGUgdG8gZ2V0IHRvIGl0IHVudGlsIEZyaWRheSB0 aG91Z2ggYmVjYXVzZQpvZiBhIG1pc3VuZGVyc3RhbmRpbmcgd2l0aCBHcmV5aG91bmQgdGhhdCBy ZXN1bHRlZCBpbiBteSBwb3dlciBjb3JkCmZvciBteSBsYXB0b3AgYmVpbmcgYSBmZXcgaHVuZHJl ZCBtaWxlcyBhd2F5LgoKR2FicmllbAo= From jstembridge@gmail.com Thu Apr 13 08:43:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E9E93B163B for ; Thu, 13 Apr 2006 08:43:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10921-05 for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.239]) by menubar.gnome.org (Postfix) with ESMTP id 4B1D33B15AB for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so83079wra for ; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kEQ0bn1jx1ewzLZLtWurxOx2MkTYtwK1SdYK0wKwBoU45j8EQUbOWX9h4qkxU7qWFkM3ddW3SzYX5lMdCUBWF4PH8kAAkVbhaW5XN8E2GVNQvo7soI+M7ltPb6gBCJHoCWhBgybhoxSb7/iinFKIcw2gO92fRsAmOz76ELFG0W8= Received: by 10.54.152.15 with SMTP id z15mr400592wrd; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Message-ID: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Date: Thu, 13 Apr 2006 13:43:39 +0100 From: "James Stembridge" To: banshee-list@gnome.org In-Reply-To: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10521_10354496.1144932219681" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Mass Storage Support X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 12:43:41 -0000 ------=_Part_10521_10354496.1144932219681 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Matthew, On 4/12/06, Matthew Vermeulen wrote: > I've attached the complete output of hal-device.. Thanks, it looks roughly equivalent to what I have here. Bit of a long shot, but could you try the attached patch? Cheers, James. ------=_Part_10521_10354496.1144932219681 Content-Type: text/x-patch; name=mass_storage_device.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elz32c4q Content-Disposition: attachment; filename="mass_storage_device.patch" Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 12:38:55 -0000 @@ -79,7 +79,7 @@ return InitializeResult.WaitForPropertyChange; - string block_device = volume_device ["block_device"]; + string block_device = volume_device ["block.device"]; foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { if (vol.DevicePath == block_device) { this.volume = vol; ------=_Part_10521_10354496.1144932219681-- From mattvermeulen@gmail.com Thu Apr 13 09:11:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D73F3B352E for ; Thu, 13 Apr 2006 09:11:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-10 for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 454BD3B182A for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1854022pyu for ; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BbMQ484Nstn6cGrBJFxa6THi870R5d3gI871EFbSqHil+3i39MIAk/cB9Kx8sKJ1Zgt0RkXHmj9uQOvIqDkFTghNANFz+49L87l5/+ckNG2GO0qyBs71SneFnIIsLnsr1M5rKNOmA9t+yEJNBzWgJuLRhWZI7+sEqxNTxTNGDX0= Received: by 10.35.37.18 with SMTP id p18mr889569pyj; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Message-ID: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> Date: Thu, 13 Apr 2006 21:11:18 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22855_6803105.1144933878646" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.257 tagged_above=-999 required=2 tests=[AWL=-0.154, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.257 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:11:21 -0000 ------=_Part_22855_6803105.1144933878646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens... If I start banshee (latest cvs with only your patch applied) with my drive plugged in banshee segfaults... If I start without the drive, starts normally, and nothing changes when I plug in the drive Btw, thankyou so much for the help, even if i cant fix it Matthew On 4/13/06, James Stembridge wrote: > > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_22855_6803105.1144933878646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens...

If I start banshee (lat= est cvs with only your patch applied) with my drive plugged in banshee segf= aults...
If I start without the drive, starts normally, and nothing chan= ges when I plug in the drive

Btw, thankyou so much for the help, even if i cant fix it

Ma= tthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:
Hi Matthew,

On 4/12/06, Matthew Vermeulen = < mattvermeulen@gmail.com> = wrote:
> I've attached the complete output of hal-device..

Tha= nks, it looks roughly equivalent to what I have here.

Bit of a long = shot, but could you try the attached patch?

Cheers,
James.


______________________________________= _________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_22855_6803105.1144933878646-- From jstembridge@gmail.com Thu Apr 13 09:48:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 20B9B3B3588 for ; Thu, 13 Apr 2006 09:48:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14705-02 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 4ED463B3581 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so93816wra for ; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pbDL/M9pL9bVHUUJTrNhkfkudE4UKmIMulkdB4ibPA/tLYFUDhEoXEyyCCG0BNhhc2ZhIiR6es4zgEDKSPRVQSVevU46N2k5z+svyOc7xvufJ6+tWXuEHCoBYpnpnbTsviC93+EH//O1lSgNUYVQUaOKTw2GnGRZ8n6PvNOZSTg= Received: by 10.54.152.15 with SMTP id z15mr469213wrd; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Message-ID: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> Date: Thu, 13 Apr 2006 14:48:12 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:48:16 -0000 On 4/13/06, Matthew Vermeulen wrote: > If I start banshee (latest cvs with only your patch applied) with my driv= e > plugged in banshee segfaults... If you don't have the other patches applied then that's to be expected. > If I start without the drive, starts normally, and nothing changes when I > plug in the drive Hmmm, is the device auto mounting when inserted? James. From mattvermeulen@gmail.com Thu Apr 13 09:57:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BEB83B141D for ; Thu, 13 Apr 2006 09:57:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-06 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 63AC43B0644 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1865071pyu for ; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hZ6VAig5DY9HhrUYMUTjbdDUdwjyqvjrJ68aH7oNv8SH08fDAJJgSsxrB8HpAJ2L9AURKmV8VLjhxyLkn2//rQ7/2HNYNPFNjFOb93dY08iCBni8PdGsjzezvXX12oP5ifrSYvlU8u0fnnjxIDzPDeIAGjtiFoCfZ4kpQvcupYs= Received: by 10.35.81.10 with SMTP id i10mr51526pyl; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Message-ID: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> Date: Thu, 13 Apr 2006 21:57:49 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23721_2581288.1144936669427" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.206 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.206 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:57:52 -0000 ------=_Part_23721_2581288.1144936669427 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > If I start banshee (latest cvs with only your patch applied) with my > drive > > plugged in banshee segfaults... > > If you don't have the other patches applied then that's to be expected. Thanks... I knew that, but it at least shows that some acknowledgement is made of the device's existence... > If I start without the drive, starts normally, and nothing changes when I > > plug in the drive > > Hmmm, is the device auto mounting when inserted? Yes, as it always had. The device functions perfectly, it just isn't displayed by banshee... James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > Thanks a lot Matthew -- matt ------=_Part_23721_2581288.1144936669427 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
=
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> If I start banshee (latest= cvs with only your patch applied) with my drive
> plugged in banshee= segfaults...

If you don't have the other patches applied then that's to be expec= ted.

Thanks... I knew that, but it at least shows that= some acknowledgement is made of the device's existence...

> If I start w= ithout the drive, starts normally, and nothing changes when I
> plug = in the drive

Hmmm, is the device auto mounting when inserted?
<= br>Yes, as it always had. The device functions perfectly, it just isn't dis= played by banshee...

James.
_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome= .org
http://mail.gnome.org/mailman/listinfo/banshee-list

Thanks a lot

Matthew

--
matt ------=_Part_23721_2581288.1144936669427-- From jstembridge@gmail.com Thu Apr 13 10:03:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AFEE3B17E7 for ; Thu, 13 Apr 2006 10:03:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15837-10 for ; Thu, 13 Apr 2006 10:03:06 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id D1E973B17B3 for ; Thu, 13 Apr 2006 10:03:05 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so96672wra for ; Thu, 13 Apr 2006 07:03:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c1YRsk/99C+rBjzTURvulPQCpO5Y+ORNTfWGnvP/5yvlE4+HRncnl+9PW6ovIqqcvNW0Eootb56BogNZEdtM9D/YqBzEFeH0RsUu4IkJpOt/ze4MaficHo4+lAjzqZKtKIfAyedvuAR4De6aCQbo+/sKQS3w8fHaUdRvXYJxLrI= Received: by 10.54.120.19 with SMTP id s19mr485941wrc; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Message-ID: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> Date: Thu, 13 Apr 2006 15:03:04 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:03:07 -0000 On 4/13/06, Matthew Vermeulen wrote: > Thanks... I knew that, but it at least shows that some acknowledgement is > made of the device's existence... Indeed. In fact thinking about it the crash would indicate that a scan of the device is being started. Could you try dap_ui_init.patch in combination with mass_storage_device.patch? From mattvermeulen@gmail.com Thu Apr 13 10:18:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B315A3B1849 for ; Thu, 13 Apr 2006 10:18:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16664-02 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 472893B1845 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1870316pyu for ; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hDRwaqmyRmcmWZ9KQENVtIlcktgNBIyERTuehbDsUtAu4ZWeCNO5kIk0yh6knKPhOi1SfjONhLJEn67EzYnDr8jsdkPryb9AUIOzOrgl/yPWbw52WYFJA0grsIJfHV8wwoKvrvVn/bAcFb+aDg96PheUwIIXLRCtPXLdr/V0uNk= Received: by 10.35.15.11 with SMTP id s11mr868222pyi; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Message-ID: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> Date: Thu, 13 Apr 2006 22:18:31 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24093_8968161.1144937911374" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.241 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.241 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:18:34 -0000 ------=_Part_24093_8968161.1144937911374 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!! It now works, if the device is plugged in when banshee is started... Thank you so much :) Now I just need to get it to work if i plug it in after starting banshee. Maybe applying other patches?? Thanks so much Matthew On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Thanks... I knew that, but it at least shows that some acknowledgement > is > > made of the device's existence... > > Indeed. In fact thinking about it the crash would indicate that a scan > of the device is being started. Could you try dap_ui_init.patch in > combination with mass_storage_device.patch? > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24093_8968161.1144937911374 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!!

It now works, if the device is plugged in when banshee is s= tarted... Thank you so much :)

Now I just need to get it to work if = i plug it in after starting banshee. Maybe applying other patches??

Thanks so much

Matthew

On 4/= 13/06, James Stembridge <jstembridge@gmail.com> wrote: On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Thanks... I knew that, but= it at least shows that some acknowledgement is
> made of the device'= s existence...

Indeed. In fact thinking about it the crash would indicate that a s= can
of the device is being started. Could you try dap_ui_init.patch incombination with mass_storage_device.patch?
__________________________= _____________________
Banshee-list mailing list
= Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>



--
matt ------=_Part_24093_8968161.1144937911374-- From mattvermeulen@gmail.com Thu Apr 13 10:21:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 250803B1808 for ; Thu, 13 Apr 2006 10:21:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16793-03 for ; Thu, 13 Apr 2006 10:21:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id CBC223B10A5 for ; Thu, 13 Apr 2006 10:21:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1871308pyu for ; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FI1zsJtt/jvyjmgbFOS6tyW+fPq8WKnZhR1p9DJPXHkYyqApahUMKxWpVRpHecZIPBYBXbT0WMaUTq8z1lJm3/s7jEteA3QqnR/u9g/tXlIO1zYNYtX6leYHFFzi9e2JgMn+g/mHg3Jadm6n7WmL2WjhouFns0bmoSob4FtavWA= Received: by 10.35.100.6 with SMTP id c6mr295372pym; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Message-ID: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> Date: Thu, 13 Apr 2006 22:21:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24137_7961626.1144938103015" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.358 tagged_above=-999 required=2 tests=[AWL=0.107, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.358 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:21:48 -0000 ------=_Part_24137_7961626.1144938103015 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up... Can I get transcoding to work on my device??? No synchronize button is shown, and banshee crashes on eject... although it does eject and copy the music over. Reason I ask is cause most of my music is ogg, while my player only supports mp3+wma.... Thanks Matthew On 4/13/06, Matthew Vermeulen wrote: > > Yahoo!!! > > It now works, if the device is plugged in when banshee is started... Than= k > you so much :) > > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? > > Thanks so much > > Matthew > > On 4/13/06, James Stembridge wrote: > > > On 4/13/06, Matthew Vermeulen wrote: > > > Thanks... I knew that, but it at least shows that some acknowledgemen= t > > is > > > made of the device's existence... > > > > Indeed. In fact thinking about it the crash would indicate that a scan > > of the device is being started. Could you try dap_ui_init.patch in > > combination with mass_storage_device.patch? > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > -- > matt > -- matt ------=_Part_24137_7961626.1144938103015 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up...

Can I get transcoding to work on my device??? No= synchronize button is shown, and banshee crashes on eject... although it d= oes eject and copy the music over. Reason I ask is cause most of my music i= s ogg, while my player only supports mp3+wma....

Thanks

Matthew

On 4/= 13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
Yahoo!!!

It now works, if the device = is plugged in when banshee is started... Thank you so much :)

Now I = just need to get it to work if i plug it in after starting banshee. Maybe a= pplying other patches??

Thanks so much

Matthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:



-- matt



--
matt ------=_Part_24137_7961626.1144938103015-- From abockover@novell.com Thu Apr 13 10:25:49 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BADC63B1823 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16841-09 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 668663B035D for ; Thu, 13 Apr 2006 10:25:48 -0400 (EDT) Received: (qmail 6336 invoked from network); 13 Apr 2006 14:25:47 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:25:47 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Content-Type: text/plain Date: Wed, 12 Apr 2006 19:14:11 -0400 Message-Id: <1144883651.3613.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.831 tagged_above=-999 required=2 tests=[AWL=-0.679, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -1.831 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:25:49 -0000 Ouch! No rush :) --Aaron On Wed, 2006-04-12 at 16:59 -0500, Gabriel Burt wrote: > On 4/12/06, Aaron Bockover wrote: > > Would you gather all the necessary patches for the Mass Storage DAP > > stuff, make sure they're A-OK, and generate a single patch against HEAD? > > The core stuff can go in now, pending review, since I have branched for > > stable. > > Certainly. I won't be able to get to it until Friday though because > of a misunderstanding with Greyhound that resulted in my power cord > for my laptop being a few hundred miles away. > > Gabriel > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From abockover@novell.com Thu Apr 13 10:26:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C0513B188F for ; Thu, 13 Apr 2006 10:26:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17258-01 for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 5A4053B185F for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: (qmail 6339 invoked from network); 13 Apr 2006 14:26:13 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:26:13 -0000 Subject: Re: [Banshee-List] Re: Mass Storage Support From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Content-Type: text/plain Date: Thu, 13 Apr 2006 09:43:07 -0400 Message-Id: <1144935787.18440.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.336 tagged_above=-999 required=2 tests=[AWL=0.063, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.336 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:26:16 -0000 I am guessing block_device was a typo (Gabriel?). The proper HAL property is in fact block.device. Whether this fixes the problem or not, this change needs to be made. --Aaron On Thu, 2006-04-13 at 13:43 +0100, James Stembridge wrote: > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 10:34:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A79DC3B1844 for ; Thu, 13 Apr 2006 10:34:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17461-03 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.229]) by menubar.gnome.org (Postfix) with ESMTP id 978063B17C8 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so102830wra for ; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R3JgCwX0z0JMq1UG0yWtoN6A6VjZLTTFU8/OiGtLQO1OIvwGGWjqHQ58cli4MP4czrk7ZcC+NUGKkpMPchefS4CsLqLFDluzfyrqxfijN1AeO/DORsw/aS1nKMZ4q4iuByn3uo2aX2pGoizrK79wEOE0KLabM3dRdgfukpFb1mw= Received: by 10.54.102.7 with SMTP id z7mr450290wrb; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:34:26 -0700 (PDT) Message-ID: <18bc366d0604130734l7af5f4f8y273f1cf2961f6782@mail.gmail.com> Date: Thu, 13 Apr 2006 15:34:26 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <1144935787.18440.0.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <1144935787.18440.0.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:34:28 -0000 On 4/13/06, Aaron Bockover wrote: > I am guessing block_device was a typo (Gabriel?). The proper HAL > property is in fact block.device. Whether this fixes the problem or not, > this change needs to be made. Agreed. I'll put it in bugzilla. From jstembridge@gmail.com Thu Apr 13 10:43:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C459B3B1861 for ; Thu, 13 Apr 2006 10:43:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18199-08 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 35E003B15D5 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so104574wra for ; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtSf7EdlVMkim2UnB8OA7ibepzYB/jfSE3RtVhFqcYx+LQ6PS292rtEA7eJj9PneIkCFQRAb5gIfCC5J5gQqZLH91X5TdHOFyY3x57FC/snxXl1zBhNUwP42xztTAbOjWP4m6gTWeZMZIQNv1d4Ba2g5LRxBMm8UyI+xcmcNmqE= Received: by 10.54.70.18 with SMTP id s18mr522143wra; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Message-ID: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> Date: Thu, 13 Apr 2006 15:43:16 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:43:18 -0000 On 4/13/06, Matthew Vermeulen wrote: > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? Don't think any of the other patches would make any difference here. I'd noticed that the devices passed to the dap classes is different if the dap is plugged in before rather than while banshee is running. On 4/13/06, Matthew Vermeulen wrote: > Can I get transcoding to work on my device??? No synchronize button is > shown, and banshee crashes on eject... although it does eject and copy th= e > music over. Reason I ask is cause most of my music is ogg, while my playe= r > only supports mp3+wma.... Yes I'd think so, I'll have a look at how the Ipod transcoding is done. I'll also have a look at the eject crash. James. From mattvermeulen@gmail.com Thu Apr 13 10:45:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3BF053B18B4 for ; Thu, 13 Apr 2006 10:45:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18360-05 for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 168323B18AB for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1877939pyu for ; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Bd929FUpt5WxZR4t3ly5kO8dj13Jwx6ofpxD++KdJ3NAlU08prv9asAGAby3zzHWOs2Ps2bTJyHSIHM2n4HZjJiVNoUnOx54+NoZ5/LKYXyNBzPspBUE7JEU1SCdSWkOqorw6BnFQDn7IeG+tLex45XIE54bvHNjHXuhUuMVEw0= Received: by 10.35.78.9 with SMTP id f9mr194887pyl; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Message-ID: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> Date: Thu, 13 Apr 2006 22:45:37 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24681_32328398.1144939537332" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.767 tagged_above=-999 required=2 tests=[AWL=-0.519, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.767 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:45:39 -0000 ------=_Part_24681_32328398.1144939537332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James, Thanks so much for all the help and assistence. I hope you can sort the res= t of the problems out :) Thanks Matt PS the eject crash was a segfault: (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion `GTK_IS_IMAGE (image)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed closing Segmentation fault On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Now I just need to get it to work if i plug it in after starting > banshee. > > Maybe applying other patches?? > > Don't think any of the other patches would make any difference here. > I'd noticed that the devices passed to the dap classes is different if > the dap is plugged in before rather than while banshee is running. > > On 4/13/06, Matthew Vermeulen wrote: > > Can I get transcoding to work on my device??? No synchronize button is > > shown, and banshee crashes on eject... although it does eject and copy > the > > music over. Reason I ask is cause most of my music is ogg, while my > player > > only supports mp3+wma.... > > Yes I'd think so, I'll have a look at how the Ipod transcoding is > done. I'll also have a look at the eject crash. > > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24681_32328398.1144939537332 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James,

Thanks so much for all the help and assistence. I hope you ca= n sort the rest of the problems out :)

Thanks

Matt

PS = the eject crash was a segfault:

(Banshee:32577): Gtk-CRITICAL **: gt= k_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOOSER (chooser)' fa= iled

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: asse= rtion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gtk-CR= ITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion = `GTK_IS_IMAGE (image)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk= _file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed
closing
Segmentation fault

O= n 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Now I just need to get it = to work if i plug it in after starting banshee.
> Maybe applying othe= r patches??

Don't think any of the other patches would make any difference here= .
I'd noticed that the devices passed to the dap classes is different if=
the dap is plugged in before rather than while banshee is running.

On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Can I get transcoding = to work on my device??? No synchronize button is
> shown, and banshee= crashes on eject... although it does eject and copy the
> music over. Reason I ask is cause most of my music is ogg, while m= y player
> only supports mp3+wma....

Yes I'd think so, I'll ha= ve a look at how the Ipod transcoding is
done. I'll also have a look at = the eject crash.

James.
_______________________________________________
Banshe= e-list mailing list
Banshee-li= st@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_24681_32328398.1144939537332-- From lukas@pmad.net Thu Apr 13 12:03:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 213BA3B18F4 for ; Thu, 13 Apr 2006 12:03:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22737-06 for ; Thu, 13 Apr 2006 12:03:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 59F3F3B1906 for ; Thu, 13 Apr 2006 12:00:59 -0400 (EDT) Received: (qmail 27049 invoked by uid 503); 13 Apr 2006 16:01:07 -0000 Received: (QMFILT: 1.0); 13 Apr 2006 16:01:07 -0000 Received: from b7.ovh.net (HELO mail147.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 13 Apr 2006 16:01:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:34 -0000 Received: from mail147.ha.ovh.net (10.0.50.147) by mail147.ha.ovh.net with SMTP; 13 Apr 2006 16:00:27 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 Received: from adsl-d91.87-197-143.telecom.sk (HELO ?192.168.0.23?) (87.197.143.91) by ns0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-9E0sff6pbaqTSqqCs08K" Date: Thu, 13 Apr 2006 18:00:30 +0200 Message-Id: <1144944031.5000.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.143.91 (adsl-d91.87-197-143.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.439 tagged_above=-999 required=2 tests=[AWL=0.160, BAYES_00=-2.599] X-Spam-Score: -2.439 X-Spam-Level: Subject: [Banshee-List] Child source v0.3 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:03:29 -0000 --=-9E0sff6pbaqTSqqCs08K Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Attached is an updated version of the patch that adds child source support to Banshee. This patch fixes some small issues that I found today. Best, Lukas --=-9E0sff6pbaqTSqqCs08K Content-Disposition: attachment; filename=banshee-childsource-0.3.patch Content-Type: text/x-patch; name=banshee-childsource-0.3.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlaylistView.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 13 Apr 2006 15:58:04 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 13 Apr 2006 15:58:04 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 13 Apr 2006 15:58:04 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 13 Apr 2006 15:58:07 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 13 Apr 2006 15:58:07 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 13 Apr 2006 15:58:14 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 13 Apr 2006 15:58:14 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 13 Apr 2006 15:58:22 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 13 Apr 2006 15:58:22 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-9E0sff6pbaqTSqqCs08K-- From abockover@novell.com Thu Apr 13 12:33:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF7113B1908 for ; Thu, 13 Apr 2006 12:33:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25177-08 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 6925A3B0676 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: (qmail 7065 invoked from network); 13 Apr 2006 16:33:48 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 16:33:48 -0000 Subject: Re: [Banshee-List] Child source v0.3 From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144944031.5000.1.camel@localhost.localdomain> References: <1144944031.5000.1.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 13 Apr 2006 12:30:30 -0400 Message-Id: <1144945831.17382.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.461 tagged_above=-999 required=2 tests=[AWL=0.138, BAYES_00=-2.599] X-Spam-Score: -2.461 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:33:51 -0000 Hi Lukas, I tested the previous version a few days ago and found some issues. Maybe you resolved them already with this version. I'll test this version tonight. In any regard, here is what I found with the previous version: a) Way too much empty space left of the source icon when a node doesn't have children b) Plugging in iPod with Banshee already running does not show the new source c) If library has no playlist children, adding a new playlist is confusing (the "New playlist" node becomes a child of library, which is not expanded and thus not visible) d) Can easily crash by dragging tracks to create a new playlist when there are no other playlists Cheers, Aaron On Thu, 2006-04-13 at 18:00 +0200, Lukas Lipka wrote: > Hey, > > Attached is an updated version of the patch that adds child source > support to Banshee. This patch fixes some small issues that I found > today. > > Best, > Lukas > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 12:50:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30C533B1936 for ; Thu, 13 Apr 2006 12:50:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26483-07 for ; Thu, 13 Apr 2006 12:50:34 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id D298E3B040E for ; Thu, 13 Apr 2006 12:50:33 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so128367wra for ; Thu, 13 Apr 2006 09:50:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rx/cTfFMVRvdCxwa0SWfBnUc/BcNlKSwhNeKKTGm8CYzMxTh8JwYDoGzFe3jgumv1S0yphmo/fNPn4mSNa79Lv7uBr/lDOR4CVuH+bKcPLZG2hAJMb+opttzgajnqinLBUA7XiaEOdRrttNF2J0cn2dpsskG/Rq+VXdjU39w/xs= Received: by 10.54.122.11 with SMTP id u11mr659618wrc; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Message-ID: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> Date: Thu, 13 Apr 2006 17:50:31 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13410_9419575.1144947031390" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.821 tagged_above=-999 required=2 tests=[AWL=-0.779, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.821 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:50:35 -0000 ------=_Part_13410_9419575.1144947031390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Matt: Give the attached patch a go against clean CVS. Eject is still broken (apparently in native code) but everything else should probably be OK. Gabriel: Is this a suitable format for you to incorporate or do you want functionally separated patches? Cheers, James. ------=_Part_13410_9419575.1144947031390 Content-Type: text/x-patch; name=mass_storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elzbtidm Content-Disposition: attachment; filename="mass_storage.patch" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 13 Apr 2006 16:39:52 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -192,7 +205,7 @@ { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.13 diff -u -r1.13 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 21:30:26 -0000 1.13 +++ src/Banshee.Dap/Ipod/IpodDap.cs 13 Apr 2006 16:39:53 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 16:39:53 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -77,31 +77,34 @@ if(!volume_device.PropertyExists ("volume.is_mounted") || !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } public override void Dispose() { @@ -110,7 +113,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); @@ -145,7 +148,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -170,6 +174,14 @@ return track; string new_path = GetTrackPath (track); + if(File.Exists(new_path)) { + if(File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) { + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + } else { + return null; + } + } + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); File.Copy (track.Uri.LocalPath, new_path); @@ -213,19 +225,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string escaped_artist = FileNamePattern.Escape(track.Artist); + string escaped_album = FileNamePattern.Escape(track.Album); + string escaped_track = FileNamePattern.Escape(track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", escaped_artist); + file_path = file_path.Replace ("%Album", escaped_album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, escaped_track); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", escaped_track); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (escaped_artist, escaped_album); + file_path = System.IO.Path.Combine (file_path, escaped_track); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -242,7 +259,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + (volume_device["volume.label"].Length > 0)) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 13 Apr 2006 16:39:53 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); Index: src/Banshee.Dap/Njb/NjbDapTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDapTrackInfo.cs,v retrieving revision 1.2 diff -u -r1.2 NjbDapTrackInfo.cs --- src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Feb 2006 22:18:11 -0000 1.2 +++ src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Apr 2006 16:39:53 -0000 @@ -74,7 +74,7 @@ private void LoadFromNjbSong(DapDevice dap) { - uri = new Uri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); + uri = new SafeUri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); album = song.Album == String.Empty ? null : song.Album; artist = song.Artist == String.Empty ? null : song.Artist; title = song.Title == String.Empty ? null : song.Title; ------=_Part_13410_9419575.1144947031390-- From mattvermeulen@gmail.com Thu Apr 13 19:38:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ECA0D3B085C for ; Thu, 13 Apr 2006 19:38:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16331-03 for ; Thu, 13 Apr 2006 19:38:07 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.180]) by menubar.gnome.org (Postfix) with ESMTP id 9D64A3B138C for ; Thu, 13 Apr 2006 19:38:06 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1981367pyu for ; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hPQ+roydDUZmvvz02u0W0zJBm86F57nDY+tf4T82Iul9uM4yqOAybAYhRNlOeQKrKPwtYJXCRwdXAweB1EVPiyRJUwvwaJoAPN5k1f4wyUTApXqAVJHWgNlQ6pZwzQVNKHvUx+/RWe1+wMiVvuwaKMT4I4X2PCCZyNt5Kk4VPa8= Received: by 10.35.82.15 with SMTP id j15mr695510pyl; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Message-ID: <950c7d180604131638u4f9277e8q3f7f486ba881ccc0@mail.gmail.com> Date: Fri, 14 Apr 2006 07:38:05 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3721_16673855.1144971485684" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.12 tagged_above=-999 required=2 tests=[AWL=-0.017, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.12 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 23:38:13 -0000 ------=_Part_3721_16673855.1144971485684 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James, Mass storage now works if the device is plugged in while banshee is running :) However, still no transcoding or synchronize, which i suppose wasn't in the patch... :) Thanks Matthew On 4/14/06, James Stembridge wrote: > > Matt: Give the attached patch a go against clean CVS. Eject is still > broken (apparently in native code) but everything else should probably > be OK. > > Gabriel: Is this a suitable format for you to incorporate or do you > want functionally separated patches? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_3721_16673855.1144971485684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James,

Mass storage now works if the device is plugged in whi= le banshee is running :) However, still no transcoding or synchronize, whic= h i suppose wasn't in the patch... :)

Thanks

Matthew

On 4/14/06, = James Stembridge <jstembrid= ge@gmail.com> wrote:
Matt: Give the attached patch a go against clean CVS. Eject is still
bro= ken (apparently in native code) but everything else should probably
be O= K.

Gabriel: Is this a suitable format for you to incorporate or do y= ou
want functionally separated patches?

Cheers,
James.

_______________________________________________
Banshee-list mailing l= ist
Banshee-list@gnome.org
http://= mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_3721_16673855.1144971485684-- From gabriel.burt@gmail.com Thu Apr 13 22:16:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9EE0A3B06CD for ; Thu, 13 Apr 2006 22:16:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22073-03 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id 5F2383B0669 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2003750pyu for ; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QeEPp3lwdwS2nyZiZ4U2jqGzZnlUd+TZtXWv/cQGxRAkUYzr70RAJLChHMrnq1lagXuIkmxPBeGTE+bwfe1PWMO3t8a7CRWxTWBAaEGRBZf4kizrjX9UQNzjFeJT46cs1cpJDNBOa7orORmKMWsqqMjchn7ci86gb1VUnVHPAQw= Received: by 10.35.105.18 with SMTP id h18mr383825pym; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Message-ID: <24348e0604131916y4e1413a2ref2f4dbacbce795d@mail.gmail.com> Date: Thu, 13 Apr 2006 21:16:39 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=0.254, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.122 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 02:16:41 -0000 T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpU aGUgd2F5IHlvdSBzZW50IGl0IGlzIGZpbmUuICBUaGFua3MhICBIb3BlZnVsbHkgZ2V0IHRoaXMg aW50byBIRUFEIHNvb24uCgpHYWJyaWVsCg== From lukas@pmad.net Fri Apr 14 08:06:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05FD53B0BBB for ; Fri, 14 Apr 2006 08:06:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19602-09 for ; Fri, 14 Apr 2006 08:06:20 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 0AC583B0F97 for ; Fri, 14 Apr 2006 08:06:18 -0400 (EDT) Received: (qmail 372 invoked by uid 503); 14 Apr 2006 12:06:27 -0000 Received: (QMFILT: 1.0); 14 Apr 2006 12:06:27 -0000 Received: from b7.ovh.net (HELO mail148.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 14 Apr 2006 12:06:27 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 12:05:54 -0000 Received: from mail148.ha.ovh.net (10.0.50.148) by mail148.ha.ovh.net with SMTP; 14 Apr 2006 12:05:46 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Received: from adsl-d56.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.56) by ns0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144945831.17382.2.camel@sledipus.rex> References: <1144944031.5000.1.camel@localhost.localdomain> <1144945831.17382.2.camel@sledipus.rex> Content-Type: multipart/mixed; boundary="=-LDBsFwPm/TmMwGQcPAgc" Date: Fri, 14 Apr 2006 12:47:47 +0200 Message-Id: <1145011668.10366.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.129.56 (adsl-d56.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=0.150, BAYES_00=-2.599] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 12:06:27 -0000 --=-LDBsFwPm/TmMwGQcPAgc Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > a) Way too much empty space left of the source icon when a node doesn't > have children I will have a look at this later but I'm afraid there is no way of fixing this, since this is what a TreeView always does. Any ideas? > b) Plugging in iPod with Banshee already running does not show the new > source You're right, I'm also seeing this. But what is much more interesting is that this doesn't work with a clean checkout of Banshee either. Therefor I don't think this is affected by the patch. > c) If library has no playlist children, adding a new playlist is > confusing (the "New playlist" node becomes a child of library, which is > not expanded and thus not visible) Fixed. > d) Can easily crash by dragging tracks to create a new playlist when > there are no other playlists I'm not able to reproduce this. Can you send me a stacktrace if you are still able to trigger it? Best, Lukas --=-LDBsFwPm/TmMwGQcPAgc Content-Disposition: attachment; filename=banshee-childsource-0.4.patch Content-Type: text/x-patch; name=banshee-childsource-0.4.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 14 Apr 2006 10:43:59 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 14 Apr 2006 10:43:59 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,51 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +241,19 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); } TreePath path; @@ -267,7 +319,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +343,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +539,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 14 Apr 2006 10:43:59 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 14 Apr 2006 10:44:00 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 14 Apr 2006 10:44:00 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 14 Apr 2006 10:44:04 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 14 Apr 2006 10:44:04 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 14 Apr 2006 10:44:04 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 14 Apr 2006 10:44:09 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-LDBsFwPm/TmMwGQcPAgc-- From doclivingston@gmail.com Fri Apr 14 22:13:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 251CE3B1FAC for ; Fri, 14 Apr 2006 22:13:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31050-09 for ; Fri, 14 Apr 2006 22:13:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id D217F3B0ABD for ; Fri, 14 Apr 2006 22:13:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so200870pyu for ; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=SJpTfP5wGT7M/QhAxE1wZQN4W6Zbxty17+u/qx1/UTFdJt4oWRBDpGfQJBQQUha3DEdqoY6SqU4nhdllOmYgw1o7hfpMgS32WCnQ6AD0HhI+7clF6fZUXemRIMHVbK0MQv8p8XL97H9Zxae8Lph2W8FicdIpd4c7loiKiHH9Tkc= Received: by 10.35.107.20 with SMTP id j20mr278118pym; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Received: from alyrion.local ( [144.139.79.240]) by mx.gmail.com with ESMTP id t5sm295032pyc.2006.04.14.19.13.09; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: "James \"Doc\" Livingston" To: banshee-list@gnome.org Content-Type: text/plain Date: Sat, 15 Apr 2006 12:13:07 +1000 Message-Id: <1145067187.5692.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.303 tagged_above=-999 required=2 tests=[AWL=0.297, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.303 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, doclivingston@gmail.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 02:13:15 -0000 On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > a) Way too much empty space left of the source icon when a node doesn't > > have children > > I will have a look at this later but I'm afraid there is no way of > fixing this, since this is what a TreeView always does. Any ideas? You need to create an empty column in the tree view, and make it invisible. Whenever a source is added/removed, determine if there are any sources with children; if so, set the tree view's expander-column to be the first column, if not set it to be the invisible column. Cheers, James "Doc" Livingston -- You wouldn't know a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing 'Subtle Plans Are Here Again' -- Lord Blackadder From gcgmb-banshee-list@m.gmane.org Sat Apr 15 03:35:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7A943B0A99 for ; Sat, 15 Apr 2006 03:35:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11279-03 for ; Sat, 15 Apr 2006 03:35:06 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 1861A3B0AB3 for ; Sat, 15 Apr 2006 03:35:05 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FUfJ8-0001gx-2U for banshee-list@gnome.org; Sat, 15 Apr 2006 09:35:02 +0200 Received: from 69-12-172-225.dsl.static.sonic.net ([69.12.172.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 Received: from eric.moret by 69-12-172-225.dsl.static.sonic.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: "Eric Moret" Date: Sat, 15 Apr 2006 00:24:11 -0700 Lines: 12 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 69-12-172-225.dsl.static.sonic.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.742 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.742 X-Spam-Level: Subject: [Banshee-List] hal-sharp documentation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 07:35:07 -0000 Hello all, I am looking for hal-sharp documentation and so far was not able to find much. Looking at banshee's source code, I see a mix of managed/unmanaged code to detect cd insertion. Is there any reason for using unmanaged code? Would it be possible to do it with 100% managed code instead? Best, __ Eric From lukas@pmad.net Sat Apr 15 07:06:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4FA203B20D3 for ; Sat, 15 Apr 2006 07:06:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22122-05 for ; Sat, 15 Apr 2006 07:06:04 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 647553B20C8 for ; Sat, 15 Apr 2006 07:06:03 -0400 (EDT) Received: (qmail 19881 invoked by uid 503); 15 Apr 2006 11:06:11 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 11:06:11 -0000 Received: from b7.ovh.net (HELO mail152.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 11:06:11 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:29 -0000 Received: from mail152.ha.ovh.net (10.0.50.152) by mail152.ha.ovh.net with SMTP; 15 Apr 2006 11:03:26 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Received: from adsl-d136.87-197-205.telecom.sk (HELO ?192.168.0.23?) (87.197.205.136) by ns0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145067187.5692.13.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-Cb7k/pk1SSJXB0ikDmxI" Date: Sat, 15 Apr 2006 13:03:19 +0200 Message-Id: <1145098999.8073.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.205.136 (adsl-d136.87-197-205.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.457 tagged_above=-999 required=2 tests=[AWL=0.142, BAYES_00=-2.599] X-Spam-Score: -2.457 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 11:06:15 -0000 --=-Cb7k/pk1SSJXB0ikDmxI Content-Type: text/plain Content-Transfer-Encoding: 7bit Thanks! That took care of it. I'm reposting an updated patch which should make everyone happy! Best, Lukas On Sat, 2006-04-15 at 12:13 +1000, James "Doc" Livingston wrote: > On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > > a) Way too much empty space left of the source icon when a node doesn't > > > have children > > > > I will have a look at this later but I'm afraid there is no way of > > fixing this, since this is what a TreeView always does. Any ideas? > > You need to create an empty column in the tree view, and make it > invisible. Whenever a source is added/removed, determine if there are > any sources with children; if so, set the tree view's expander-column to > be the first column, if not set it to be the invisible column. > > > Cheers, > > James "Doc" Livingston --=-Cb7k/pk1SSJXB0ikDmxI Content-Disposition: attachment; filename=banshee-childsource-0.5.patch Content-Type: text/x-patch; name=banshee-childsource-0.5.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 11:00:27 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 11:00:27 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool CheckChildren () + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + + CheckChildren (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + CheckChildren (); + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +270,20 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); + CheckChildren (); } TreePath path; @@ -230,6 +312,7 @@ if(newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + CheckChildren (); } } @@ -243,7 +326,7 @@ string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -267,7 +350,8 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); + CheckChildren (); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +375,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +571,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 11:00:27 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 11:00:31 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 11:00:31 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 11:00:39 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 11:00:39 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 11:00:48 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 11:00:48 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-Cb7k/pk1SSJXB0ikDmxI-- From lukas@pmad.net Sat Apr 15 11:19:23 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6158F3B108F for ; Sat, 15 Apr 2006 11:19:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02535-07 for ; Sat, 15 Apr 2006 11:19:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 01FD33B1066 for ; Sat, 15 Apr 2006 11:19:20 -0400 (EDT) Received: (qmail 21730 invoked by uid 503); 15 Apr 2006 15:19:29 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 15:19:29 -0000 Received: from b6.ovh.net (HELO mail55.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 15:19:29 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from mail55.ha.ovh.net (10.0.50.55) by mail55.ha.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145098999.8073.1.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> Content-Type: text/plain Date: Sat, 15 Apr 2006 17:18:38 +0200 Message-Id: <1145114318.14136.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.50001 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:19:23 -0000 Hi, So I found a bug in 0.5 today when you try to create playlist by dragging. The problem pops up when you try to drop the selection into the "New Playlist" row and there is another source below the music library. Something like: * Music Library + Other playlist + New playlist <= HERE * Music Store * Lukas' iPod What happens is that OnDragMotion the "New Playlist" row is created. After that, when you drop the selection onto it, OnDragLeave gets called at first! This is totally fucking absurdal[1], because in there we destroy the "New Playlist" row. After we have done all of this OnDragDataReceived is finally called. Here we try to get the row under the cursor, but since the "New Playlist" row is long gone, we just get the next row after it (that would be Music Store in the example above). So much for the miracles in GTK-Wonderland! I just thought I would share my fun with you. :-) Best, Lukas [1] MDK's words: http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > Thanks! That took care of it. I'm reposting an updated patch which > should make everyone happy! > > Best, > Lukas From abockover@novell.com Sat Apr 15 11:51:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348883B06FB for ; Sat, 15 Apr 2006 11:51:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04277-08 for ; Sat, 15 Apr 2006 11:51:24 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id EB8753B09A1 for ; Sat, 15 Apr 2006 11:51:23 -0400 (EDT) Received: from [192.168.0.100] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3FFpMU6016954 for ; Sat, 15 Apr 2006 11:51:22 -0400 (EDT) Subject: Re: [Banshee-List] hal-sharp documentation From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Sat, 15 Apr 2006 11:48:25 -0400 Message-Id: <1145116106.6921.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.575 tagged_above=-999 required=2 tests=[AWL=0.024, BAYES_00=-2.599] X-Spam-Score: -2.575 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:51:27 -0000 On Sat, 2006-04-15 at 00:24 -0700, Eric Moret wrote: > Hello all, > > I am looking for hal-sharp documentation and so far was not able to find > much. Looking at banshee's source code, I see a mix of managed/unmanaged > code to detect cd insertion. Is there any reason for using unmanaged code? > Would it be possible to do it with 100% managed code instead? http://banshee-project.org/files/documentation/banshee/Hal This is monodoc-generated documentation and it has not been filled in with details, but the API should be fairly straight forward. As for CD detection, yes, you can do this in managed. The detection in Banshee is fully managed. The only unmanaged code is GStreamer related, and a P/Invoke into an ioctl call to eject the disk. I need to add HAL method call support to hal-sharp, and when I do, you could even do ejecting in managed, however, it requires HAL 0.5.6 or better. --Aaron > Best, > __ > Eric > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From ruben@Lambda1.be Sat Apr 15 12:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50BF93B1085 for ; Sat, 15 Apr 2006 12:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06716-06 for ; Sat, 15 Apr 2006 12:42:23 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 9E78D3B0B1A for ; Sat, 15 Apr 2006 12:42:22 -0400 (EDT) Received: from ([62.235.114.77]) by guri.is.scarlet.be with ESMTP id k3FGgJc03233 for ; Sat, 15 Apr 2006 18:42:19 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id B7F02460118; Sat, 15 Apr 2006 18:42:18 +0200 (CEST) Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145114318.14136.10.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 15 Apr 2006 18:42:16 +0200 Message-Id: <1145119337.20262.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 16:42:29 -0000 It also seems to break the minimode plugin. Not sure which one would need fixing though. Ruben On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > Hi, > > So I found a bug in 0.5 today when you try to create playlist by > dragging. The problem pops up when you try to drop the selection into > the "New Playlist" row and there is another source below the music > library. > > Something like: > > * Music Library > + Other playlist > + New playlist <= HERE > * Music Store > * Lukas' iPod > > What happens is that OnDragMotion the "New Playlist" row is created. > After that, when you drop the selection onto it, OnDragLeave gets called > at first! This is totally fucking absurdal[1], because in there we > destroy the "New Playlist" row. After we have done all of this > OnDragDataReceived is finally called. Here we try to get the row under > the cursor, but since the "New Playlist" row is long gone, we just get > the next row after it (that would be Music Store in the example above). > > So much for the miracles in GTK-Wonderland! I just thought I would share > my fun with you. :-) > > Best, > Lukas > > > [1] MDK's words: > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > Thanks! That took care of it. I'm reposting an updated patch which > > should make everyone happy! > > > > Best, > > Lukas > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Sat Apr 15 13:08:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF663B0D50 for ; Sat, 15 Apr 2006 13:08:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08397-05 for ; Sat, 15 Apr 2006 13:07:56 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 3CD4F3B0724 for ; Sat, 15 Apr 2006 13:07:55 -0400 (EDT) Received: (qmail 15254 invoked by uid 503); 15 Apr 2006 17:08:03 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 17:08:03 -0000 Received: from b7.ovh.net (HELO mail138.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 17:08:03 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:22 -0000 Received: from mail138.ha.ovh.net (10.0.50.138) by mail138.ha.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145119337.20262.0.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> <1145119337.20262.0.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-eRYPIfpR9ZLXY0Xwz0jD" Date: Sat, 15 Apr 2006 19:07:27 +0200 Message-Id: <1145120847.5158.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.47 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599] X-Spam-Score: -2.47 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 17:08:02 -0000 --=-eRYPIfpR9ZLXY0Xwz0jD Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached is a patch which fixes this. It should be alright to check it in now, since it doesn't depend on the child source patch. Lukas On Sat, 2006-04-15 at 18:42 +0200, Ruben Vermeersch wrote: > It also seems to break the minimode plugin. Not sure which one would > need fixing though. > > Ruben > > On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > > Hi, > > > > So I found a bug in 0.5 today when you try to create playlist by > > dragging. The problem pops up when you try to drop the selection into > > the "New Playlist" row and there is another source below the music > > library. > > > > Something like: > > > > * Music Library > > + Other playlist > > + New playlist <= HERE > > * Music Store > > * Lukas' iPod > > > > What happens is that OnDragMotion the "New Playlist" row is created. > > After that, when you drop the selection onto it, OnDragLeave gets called > > at first! This is totally fucking absurdal[1], because in there we > > destroy the "New Playlist" row. After we have done all of this > > OnDragDataReceived is finally called. Here we try to get the row under > > the cursor, but since the "New Playlist" row is long gone, we just get > > the next row after it (that would be Music Store in the example above). > > > > So much for the miracles in GTK-Wonderland! I just thought I would share > > my fun with you. :-) > > > > Best, > > Lukas > > > > > > [1] MDK's words: > > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > > Thanks! That took care of it. I'm reposting an updated patch which > > > should make everyone happy! > > > > > > Best, > > > Lukas > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-eRYPIfpR9ZLXY0Xwz0jD Content-Disposition: inline; filename=banshee-minimode.patch Content-Type: text/x-patch; name=banshee-minimode.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -101,10 +101,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-eRYPIfpR9ZLXY0Xwz0jD-- From lukas@pmad.net Sat Apr 15 15:29:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D05F3B22A8 for ; Sat, 15 Apr 2006 15:29:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15335-01 for ; Sat, 15 Apr 2006 15:29:03 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C5BDB3B22AC for ; Sat, 15 Apr 2006 15:29:01 -0400 (EDT) Received: (qmail 31567 invoked by uid 503); 15 Apr 2006 19:29:10 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 19:29:10 -0000 Received: from b6.ovh.net (HELO mail54.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 19:29:10 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:32 -0000 Received: from mail54.ha.ovh.net (10.0.50.54) by mail54.ha.ovh.net with SMTP; 15 Apr 2006 19:28:29 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-1VydZuHNf7DrKSjSE6UG" Date: Sat, 15 Apr 2006 21:28:36 +0200 Message-Id: <1145129316.18680.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=0.123, BAYES_00=-2.599] X-Spam-Score: -2.476 X-Spam-Level: Subject: [Banshee-List] Child source final (v0.6) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 19:29:15 -0000 --=-1VydZuHNf7DrKSjSE6UG Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, The "gtk d&d is crack" version patch of child source support for Banshee is out! All the issues everyone pointed out should be fixed now. For the awesome minimode plugin users - a patch which makes minimode work with this has been sent to the list. Good luck & Have fun! Lukas --=-1VydZuHNf7DrKSjSE6UG Content-Disposition: attachment; filename=banshee-childsource-0.6.patch Content-Type: text/x-patch; name=banshee-childsource-0.6.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 19:22:36 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 19:22:36 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; - } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + // FIXME: We need to handle this nicer + //if(!((SourceManager.ActiveSource is LibrarySource) + //|| ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + // return true; + //} + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 19:22:37 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 19:22:37 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 19:22:37 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 19:22:40 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 19:22:40 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 19:22:42 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 19:22:42 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-1VydZuHNf7DrKSjSE6UG-- From teuf@gnome.org Sat Apr 15 19:10:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62DF63B0D16 for ; Sat, 15 Apr 2006 19:10:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25429-09 for ; Sat, 15 Apr 2006 19:10:42 -0400 (EDT) Received: from smTp.neuf.fr (sp604003mt.neufgp.fr [84.96.92.56]) by menubar.gnome.org (Postfix) with ESMTP id 0F6223B0885 for ; Sat, 15 Apr 2006 19:10:39 -0400 (EDT) Received: from [192.168.0.2] ([86.69.170.130]) by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IXS00AK4DPP9G92@sp604003mt.gpm.neuf.ld> for banshee-list@gnome.org; Sun, 16 Apr 2006 01:10:37 +0200 (CEST) Date: Sun, 16 Apr 2006 01:10:37 +0200 From: Christophe Fergeau To: banshee-list@gnome.org Message-id: <1145142637.6269.15.camel@localhost> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bZrh/Wa52c1Dvjr47M+j" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.409 tagged_above=-999 required=2 tests=[AWL=0.055, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.409 X-Spam-Level: Subject: [Banshee-List] libipoddevice patches X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 23:10:45 -0000 --=-bZrh/Wa52c1Dvjr47M+j Content-Type: multipart/mixed; boundary="=-EkK9V63M14Bw9vauXkCw" --=-EkK9V63M14Bw9vauXkCw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Here are two patches to fix 2 issues in libipoddevice: * endianess.diff should hopefully make it possible to parse the DeviceInfo file on big endian machines * list.diff fixes a warning from gcc about the return value of g_list_remove being ignored. I removed some seemingly useless code at the same time (g_list_length(l) is 0 if and only if l is NULL if I read glib code properly) (both patches are only compile tested, so there might be some obvious mistakes in them) Christophe --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=list.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=list.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS1ldmVudC1saXN0ZW5lci5jDQo9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg ZmlsZTogL2N2cy9nbm9tZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS1ldmVudC1saXN0 ZW5lci5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44DQpkaWZmIC11IC1yMS44IGlwb2QtZGV2 aWNlLWV2ZW50LWxpc3RlbmVyLmMNCi0tLSBzcmMvaXBvZC1kZXZpY2UtZXZlbnQtbGlzdGVuZXIu Ywk4IE5vdiAyMDA1IDIyOjA0OjUzIC0wMDAwCTEuOA0KKysrIHNyYy9pcG9kLWRldmljZS1ldmVu dC1saXN0ZW5lci5jCTE1IEFwciAyMDA2IDIzOjAzOjQyIC0wMDAwDQpAQCAtMTk5LDExICsxOTks NyBAQA0KICAgICANCiAgICAgZ19saXN0X2ZyZWUobGlzdGVuZXItPnByaXYtPmlwb2RVZGlzKTsN CiAgICAgDQotICAgIGdfbGlzdF9yZW1vdmUoaW5zdGFuY2VzLCBsaXN0ZW5lcik7DQotICAgIGlm KGdfbGlzdF9sZW5ndGgoaW5zdGFuY2VzKSA9PSAwKSB7DQotICAgICAgICBnX2xpc3RfZnJlZShp bnN0YW5jZXMpOw0KLSAgICAgICAgaW5zdGFuY2VzID0gTlVMTDsNCi0gICAgfQ0KKyAgICBpbnN0 YW5jZXMgPSBnX2xpc3RfcmVtb3ZlKGluc3RhbmNlcywgbGlzdGVuZXIpOw0KIH0NCiANCiBzdGF0 aWMgdm9pZCANCg== --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=endianess.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=endianess.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9nbm9t ZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS42MA0KZGlmZiAtdSAtcjEuNjAgaXBvZC1kZXZpY2UuYw0KLS0tIHNyYy9pcG9kLWRldmljZS5j CTEzIEFwciAyMDA2IDIzOjM4OjEzIC0wMDAwCTEuNjANCisrKyBzcmMvaXBvZC1kZXZpY2UuYwkx NSBBcHIgMjAwNiAyMzowMzoyMyAtMDAwMA0KQEAgLTgyNCwyMCArODI0LDI1IEBADQogICAgIGdz aG9ydCBsZW5ndGg7DQogICAgIGd1bmljaGFyMiAqdXRmMTY7DQogICAgIGdjaGFyICp1dGY4Ow0K LSAgICANCisgICAgdW5zaWduZWQgaW50IGk7DQorDQogICAgIGlmKGZyZWFkKCZsZW5ndGgsIDEs IHNpemVvZihnc2hvcnQpLCBmZCkgPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAg IH0gZWxzZSBpZihsZW5ndGggPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAgIH0N CiAgICAgDQorICAgIGxlbmd0aCA9IEdJTlQxNl9GUk9NX0xFIChsZW5ndGgpOw0KKw0KICAgICB1 dGYxNiA9IChndW5pY2hhcjIgKilnX21hbGxvYyhsZW5ndGggKiBzaXplb2YoZ3VuaWNoYXIyKSk7 DQogICAgIGlmKHV0ZjE2ID09IE5VTEwpIHsNCiAgICAgICAgIHJldHVybiBOVUxMOw0KICAgICB9 IGVsc2UgaWYoZnJlYWQodXRmMTYsIHNpemVvZihndW5pY2hhcjIpLCBsZW5ndGgsIGZkKSA8PSAw KSB7DQogICAgICAgICByZXR1cm4gTlVMTDsNCiAgICAgfQ0KLSAgICANCisgICAgZm9yIChpID0g MDsgaSA8IGxlbmd0aDsgaSsrKSB7DQorCXV0ZjE2W2ldID0gR0lOVDE2X0ZST01fTEUgKHV0ZjE2 W2ldKTsNCisgICAgfQ0KICAgICB1dGY4ID0gZ191dGYxNl90b191dGY4KHV0ZjE2LCBsZW5ndGgs IE5VTEwsIE5VTEwsIE5VTEwpOw0KICAgICANCiAgICAgZ19mcmVlKHV0ZjE2KTsNCkBAIC04NTAs MTggKzg1NSwyNSBAQA0KIGlwb2RfZGV2aWNlX3dyaXRlX2RldmljZV9pbmZvX3N0cmluZyhnY2hh ciAqc3RyLCBGSUxFICpmZCkNCiB7DQogICAgIGd1bmljaGFyMiAqdW5pc3RyOw0KLSAgICBnc2hv cnQgbGVuZ3RoOw0KKyAgICBnbG9uZyBsZW5ndGg7DQorICAgIGdzaG9ydCBsZW5ndGhfbGU7DQor ICAgIHVuc2lnbmVkIGludCBpOw0KIA0KICAgICBpZihzdHIgPT0gTlVMTCkgew0KICAgICAgICAg cmV0dXJuOw0KICAgICB9DQogICAgIA0KLSAgICBsZW5ndGggPSBzdHJsZW4oc3RyKTsNCi0gICAg dW5pc3RyID0gZ191dGY4X3RvX3V0ZjE2KHN0ciwgbGVuZ3RoLCBOVUxMLCBOVUxMLCBOVUxMKTsN Ci0gICAgDQorICAgIHVuaXN0ciA9IGdfdXRmOF90b191dGYxNihzdHIsIC0xLCBOVUxMLCAmbGVu Z3RoLCBOVUxMKTsNCisgICAgaWYgKHVuaXN0ciA9PSBOVUxMKSB7DQorCXJldHVybjsNCisgICAg fQ0KKyAgICBmb3IgKGkgPSAwOyBpIDwgbGVuZ3RoOyBpKyspIHsNCisJdW5pc3RyW2ldID0gR0lO VDE2X1RPX0xFICh1bmlzdHJbaV0pOw0KKyAgICB9DQorICAgIGxlbmd0aCAqPSBzaXplb2YgKGd1 bmljaGFyMik7DQogICAgIGxlbmd0aCA9IGxlbmd0aCA+IDB4MTk4ID8gMHgxOTggOiBsZW5ndGg7 DQotDQotICAgIGlmKGZ3cml0ZSgmbGVuZ3RoLCAyLCAxLCBmZCkgPD0gMCANCisgICAgbGVuZ3Ro X2xlID0gR0lOVDE2X1RPX0xFIChsZW5ndGgpOw0KKyAgICBpZihmd3JpdGUoJmxlbmd0aF9sZSwg MiwgMSwgZmQpIDw9IDAgDQogICAgICAgICB8fCBmd3JpdGUodW5pc3RyLCAyLCBsZW5ndGgsIGZk KSA8PSAwKSB7DQogICAgICAgICBnX3dhcm5pbmcoIkNvdWxkIG5vdCB3cml0ZSB0byBEZXZpY2VJ bmZvIGZpbGUiKTsNCiAgICAgfQ0K --=-EkK9V63M14Bw9vauXkCw-- --=-bZrh/Wa52c1Dvjr47M+j Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQX1t+13jZzlzSs4RApzBAJ0XvjsgdPcDbyYRytRc3NYGi8cjMwCeMzKL XDiwGXNnj/dKelq1S/QT3N8= =DuVJ -----END PGP SIGNATURE----- --=-bZrh/Wa52c1Dvjr47M+j-- From lukas@pmad.net Sun Apr 16 08:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 291933B15CE for ; Sun, 16 Apr 2006 08:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06694-03 for ; Sun, 16 Apr 2006 08:13:15 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C394F3B1519 for ; Sun, 16 Apr 2006 08:13:13 -0400 (EDT) Received: (qmail 8117 invoked by uid 503); 16 Apr 2006 12:13:21 -0000 Received: (QMFILT: 1.0); 16 Apr 2006 12:13:21 -0000 Received: from b6.ovh.net (HELO mail51.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 16 Apr 2006 12:13:21 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:37 -0000 Received: from mail51.ha.ovh.net (10.0.50.51) by mail51.ha.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from adsl-d74.87-197-130.telecom.sk (HELO ?192.168.0.23?) (87.197.130.74) by ns0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-MIftsI8pDW7HXQVLyMKT" Date: Sun, 16 Apr 2006 14:04:38 +0200 Message-Id: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.130.74 (adsl-d74.87-197-130.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.110, BAYES_00=-2.599] X-Spam-Score: -2.489 X-Spam-Level: Subject: [Banshee-List] Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 12:13:18 -0000 --=-MIftsI8pDW7HXQVLyMKT Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Hopefully the final version of the child source patch. I figured I forgot to commment out some lines in the previous one, so here is the fixed version. Please test it and if you still do find any issues please report them. Thanks, Lukas --=-MIftsI8pDW7HXQVLyMKT Content-Disposition: attachment; filename=banshee-childsource-0.8.patch Content-Type: text/x-patch; name=banshee-childsource-0.8.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 16 Apr 2006 12:01:53 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 16 Apr 2006 12:01:53 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 16 Apr 2006 12:01:56 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 16 Apr 2006 12:01:58 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 16 Apr 2006 12:01:58 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 16 Apr 2006 12:02:03 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 16 Apr 2006 12:02:03 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 16 Apr 2006 12:02:10 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 16 Apr 2006 12:02:10 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-MIftsI8pDW7HXQVLyMKT-- From benjy.grogan@gmail.com Sun Apr 16 17:31:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A8D5D3B1B02 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32719-06 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id E344A3B1A46 for ; Sun, 16 Apr 2006 17:31:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so476908pyu for ; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=C1Tpo2UpOBSSC/TuLLjgmeICDHJqSUulYNco7GxoW6rUOGc+yOBhUW4GYAkzo1/HWBS4MeZNDQ85RFcUZQj/TzhJbGGvAMiINYo5zbW6p8lThbKMfSSsIm6b7GrIIelEZ8ZslsrnSqXYna2BdWC0thb+ZAHzsUjqIc0LJyVGkws= Received: by 10.35.15.11 with SMTP id s11mr1929318pyi; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Received: by 10.35.109.12 with HTTP; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Message-ID: Date: Sun, 16 Apr 2006 17:31:30 -0400 From: "Benjy Grogan" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.604 tagged_above=-999 required=2 tests=[AWL=-0.562, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.604 X-Spam-Level: Subject: [Banshee-List] Banshee Slow to Re-Load Music Library After Clearing Search X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 21:31:31 -0000 Hello I'm using Banshee 0.10.9 on FC5 and enjoying it. Though, now that I've been able to import my entire music collection (over 3000 songs) I find the search box has become a pain. If I do a search for an artist, and then clear that search it will take approximately 20 seconds or so of 100% CPU usage to load up the original list of some 3000 songs. There should be some kind of a cache to take care of loading the Music Library, because clearly this is a problem that will only get worse. I've also got a question. If I'm scrolling through my list of songs, and then the next song plays, the list will slingshot to that song, interrupting my scrolling. Is there a way to disable this? I always found this annoying on Windows Media Player. I'm sure others do too.=20 Could be a good Advanced Preference: the option to disable slingshotting to the next song playing. But liking Banshee so far. Thanks. Benjy From gabriel.burt@gmail.com Mon Apr 17 13:47:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D46293B0566 for ; Mon, 17 Apr 2006 13:47:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28600-09 for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.178]) by menubar.gnome.org (Postfix) with ESMTP id 15C193B272D for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so682825pyu for ; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dbUwY6OGmzHWyfkqP9SyD3IUSi89a7M16y/VF3G6Hx48rUJ2CjF3j9i4k3efT6in3d1MB8Q4YuvKm2QMbzNwpQ4onwxMgYZ6PHZVNh3ccYWk8S6170W3tA7anHtIZzZPv2iNdwYtPvoli16W9eCJUGy5JtiK1mRnIycs2xocBGU= Received: by 10.35.96.11 with SMTP id y11mr1637128pyl; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Message-ID: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> Date: Mon, 17 Apr 2006 12:47:17 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18786_27847866.1145296037209" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.138 tagged_above=-999 required=2 tests=[AWL=0.238, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.138 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:47:32 -0000 ------=_Part_18786_27847866.1145296037209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpP aywgSSdtIGF0dGFjaGluZyB0aGUgY29tYmluZWQgcGF0Y2gsIGEgbGl0dGxlIGxhdGVyIHRoYW4g cHJvbWlzZWQsCnNvcnJ5LiA6KQoKR2FicmllbAo= ------=_Part_18786_27847866.1145296037209 Content-Type: text/x-patch; name=mass-storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em53nzmo Content-Disposition: attachment; filename="mass-storage.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.450 diff -u -r1.450 ChangeLog --- ChangeLog 17 Apr 2006 14:50:37 -0000 1.450 +++ ChangeLog 17 Apr 2006 17:32:34 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: When adding a song to + the device, overwrite it if it is out of date. Don't use the volume + label for the Name if it's blank. If the volume for a new device isn't + yet mounted, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * entagged-sharp/Mp4/Mp4FileReader.cs: Added audio/mp4, audio/m4a mime Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 17 Apr 2006 17:32:35 -0000 @@ -93,6 +93,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:32:35 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,11 +188,11 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -521,6 +521,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 17 Apr 2006 17:32:35 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,37 +78,52 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + + // FIXME should probably reload the tracks.. + } + } + public override void Dispose() { // FIXME anything else to do here? volume = null; base.Dispose(); } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } private void ReloadDatabase() { @@ -145,7 +160,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +179,49 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; + + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + + // If it already is on the device but it's out of date, remove it + if (File.Exists (new_path) && File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + + if (!File.Exists (new_path)) { + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + } - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +261,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +287,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +310,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 17 Apr 2006 17:32:36 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 12:40:38.000000000 -0500 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 11:35:47.000000000 -0500 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_18786_27847866.1145296037209-- From jstembridge@gmail.com Mon Apr 17 15:26:00 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B8C63B0349 for ; Mon, 17 Apr 2006 15:26:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01600-03 for ; Mon, 17 Apr 2006 15:25:53 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id EC0953B27F0 for ; Mon, 17 Apr 2006 15:25:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1323902wri for ; Mon, 17 Apr 2006 12:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ad6kGBc6N2U1lh28qfH5pnidbDGBNTgLskdI7iwZBsXFfUjbc/fokWJ0Xeu/POGlgbDPwgFtgi3Z+Y4doap5+4WDVR7+eRRvNlsJ7+J3O4lo3jYLs/hSCUr+7lh3odS6fZd75vss/pF8thKvbb5zK/4iOXeV6JQceqLMJfyCM+w= Received: by 10.54.122.17 with SMTP id u17mr267737wrc; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Message-ID: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> Date: Mon, 17 Apr 2006 20:25:01 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.54 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.54 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 19:26:00 -0000 Hi Gabriel, On 4/17/06, Gabriel Burt wrote: > Ok, I'm attaching the combined patch, a little later than promised, > sorry. :) Thanks for incorporating my patches, a couple of things: 1) There's now a conflict in Dap.cs against latest CVS. 2) With regard to the "If the volume for a new device isn't yet mounted, wait for it." The problem isn't that the device isn't mounted, as hal is correctly telling us that it is via volume.is_mounted. The actual issue is that at this point the list of mounted volumes coming from the Gnome VFS monitor doesn't contain our device. I don't know why this is, but I guess it would be the case if hal events are fired of synchronously and we get the mount event before gnome vfs does. Cheers, James. From jstembridge@gmail.com Mon Apr 17 18:11:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 310043B0D37 for ; Mon, 17 Apr 2006 18:11:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11728-04 for ; Mon, 17 Apr 2006 18:11:03 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.232]) by menubar.gnome.org (Postfix) with ESMTP id D47883B0BBF for ; Mon, 17 Apr 2006 18:11:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1355067wri for ; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KhssVVMmiKBMNNEhfwCwm90jpBUHvEJQSlqZ8yBRELaiLBD1d60QP6/L8xzc0E607cWQ0F/E939hJgddsKPdzam9/vCEI1Xzls66oBOGz+cfpmg8ZuE0VDBoCf2tB8589cs75FkqhV6BmUOUFlbCGcAkMEVgbEDxZ2jGZikF/mU= Received: by 10.54.66.15 with SMTP id o15mr427567wra; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Message-ID: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> Date: Mon, 17 Apr 2006 23:11:02 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8988_6161796.1145311862126" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.057, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 22:11:14 -0000 ------=_Part_8988_6161796.1145311862126 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/17/06, James Stembridge wrote: > Thanks for incorporating my patches, a couple of things: ... Fixed up patch attached. ------=_Part_8988_6161796.1145311862126 Content-Type: text/x-patch; name="mass-storage2.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mass-storage2.patch" X-Attachment-Id: f_em5d3dxv SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2JhbnNoZWUv Q2hhbmdlTG9nLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQ1MQpkaWZmIC11IC1yMS40NTEgQ2hh bmdlTG9nCi0tLSBDaGFuZ2VMb2cJMTcgQXByIDIwMDYgMTc6NDQ6MDkgLTAwMDAJMS40NTEKKysr IENoYW5nZUxvZwkxNyBBcHIgMjAwNiAxOToxMDoyNSAtMDAwMApAQCAtMSwzICsxLDMxIEBACisy MDA2LTA0LTE3ICBKYW1lcyBTdGVtYnJpZGdlICA8anN0ZW1icmlkZ2VAZ21haWwuY29tPgorCisJ KiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3M6IFdoZW4gYWRk aW5nIGEgc29uZyB0bworCXRoZSBkZXZpY2UsIG92ZXJ3cml0ZSBpdCBpZiBpdCBpcyBvdXQgb2Yg ZGF0ZS4gRG9uJ3QgdXNlIHRoZSB2b2x1bWUKKwlsYWJlbCBmb3IgdGhlIE5hbWUgaWYgaXQncyBi bGFuay4gSWYgbW91bnRlZCB2b2x1bWUgaXNuJ3QgYXZhaWxhYmxlCisJZnJvbSBWRlMgeWV0LCB3 YWl0IGZvciBpdC4KKworMjAwNi0wNC0xNyAgR2FicmllbCBCdXJ0ICA8Z2FicmllbC5idXJ0QGdt YWlsLmNvbT4KKworCSogc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbTogYWRkIFF1ZXVlZE9w ZXJhdGlvbk1hbmFnZXIuY3MuCisKKwkqIHNyYy9CYW5zaGVlLkJhc2UvUXVldWVkT3BlcmF0aW9u TWFuYWdlci5jczogTmV3IGZpbGUsIGFsbG93cyBmb3IgZ2VuZXJpYworCWFzeW5jaHJvbm91cyBl dmVudHMgbGlrZSBjb3B5aW5nIGZpbGVzIHRvIGEgVVNCIERBUCwgZXRjLgorCisJKiBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3M6IEFkZCBFbWl0VHJhY2tBZGRlZCBtZXRob2QgYW5kIGFsbG93 CisJc3ViLWNsYXNzZXMgdG8gb3ZlcnJpZGUgQWRkVHJhY2suCisKKwkqIHNyYy9CYW5zaGVlLkRh cC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jczogRml4IHRoZSBidWcgd2hlcmUgdGhlIERB UAorCWNvdWxkbid0IGJlIHBsdWdnZWQgaW4gd2hlbiBCYW5zaGVlIHN0YXJ0ZWQsIGhhbmRsZSBj b3B5aW5nIGZpbGVzIHRvIHRoZQorCWRldmljZSBhc3luY2hyb25vdXNseSB1c2luZyBhIFF1ZXVl ZE9wZXJhdGlvbk1hbmFnZXIgdGhhdCBwb3BzIHVwIGEKKwlBY3RpdmVVc2VyRXZlbnQgaWYgdGhl IHRyYW5zZmVyIGlzIHNsb3cuICBFc2NhcGUgYXJ0aXN0L2FsYnVtL3RpdGxlIHdoZW4KKwljcmVh dGluZyB0aGUgZGVzdGluYXRpb24gZmlsZW5hbWUuICBDYXRjaCBleGNlcHRpb25zIGluIHRoZSBj b3B5LgorCisJKiBzcmMvQmFuc2hlZS5XaWRldHMvQWN0aXZlVXNlckV2ZW50LmNzOiBBZGQgYW4g b3B0aW9uIGZvciBoYXZpbmcgdGhlIHVzZXIKKwlldmVudCBub3QgcmVnaXN0ZXIgaXRzZWxmIChh bmQgdGhlcmVmb3JlIG5vdCBzaG93IGl0c2VsZikgdW50aWwgYXQgbGVhc3QgYQorCXNlY29uZCBo YXMgcGFzc2VkLCBhdCB3aGljaCB0aW1lIGlmIHRoZSBvcGVyYXRpb24gaXMgbGVzcyB0aGFuIDMz JSBkb25lLAorCWl0IGlzIHJlZ2lzdGVyZWQgYW5kIHNob3duIChhbmQgb3RoZXJ3aXNlIGl0IGlz IG5vdCkuCisKIDIwMDYtMDQtMTcgIEFhcm9uIEJvY2tvdmVyICA8YWFyb25AYWJvY2sub3JnPgog CiAJKiBjb25maWd1cmUuYWM6IFJlcXVpcmUgbmpiLXNoYXJwIDAuMy4wKwpJbmRleDogc3JjL0Jh bnNoZWUuQmFzZS9NYWtlZmlsZS5hbQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2Jh bnNoZWUvc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbSx2CnJldHJpZXZpbmcgcmV2aXNpb24g MS4yOApkaWZmIC11IC1yMS4yOCBNYWtlZmlsZS5hbQotLS0gc3JjL0JhbnNoZWUuQmFzZS9NYWtl ZmlsZS5hbQk5IEFwciAyMDA2IDIxOjMwOjIzIC0wMDAwCTEuMjgKKysrIHNyYy9CYW5zaGVlLkJh c2UvTWFrZWZpbGUuYW0JMTcgQXByIDIwMDYgMTk6MTA6MjYgLTAwMDAKQEAgLTkzLDYgKzkzLDcg QEAKIAkkKHNyY2RpcikvTGlicmFyeVRyYWNrSW5mby5jcyBcCiAJJChzcmNkaXIpL0ZpbGVUcmFj a0luZm8uY3MgXAogCSQoc3JjZGlyKS9EQnVzUmVtb3RlLmNzIFwKKwkkKHNyY2RpcikvUXVldWVk T3BlcmF0aW9uTWFuYWdlci5jcyBcCiAJJChzcmNkaXIpL1F1ZXVlZFNxbGl0ZURhdGFiYXNlLmNz IFwKIAkkKHNyY2RpcikvQXVkaW9DZFJpcHBlci5jcyBcCiAJJChzcmNkaXIpL0lJbXBvcnRTb3Vy Y2UuY3MgXApJbmRleDogc3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNT IGZpbGU6IC9jdnMvZ25vbWUvYmFuc2hlZS9zcmMvQmFuc2hlZS5CYXNlL0RhcC9EYXAuY3Msdgpy ZXRyaWV2aW5nIHJldmlzaW9uIDEuMTYKZGlmZiAtdSAtcjEuMTYgRGFwLmNzCi0tLSBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3MJMTcgQXByIDIwMDYgMTc6NDQ6MTAgLTAwMDAJMS4xNgorKysg c3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBA IC0xMjMsNyArMTIzLDcgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZhdGUgdWludCB1aWQ7CiAg ICAgICAgIHByaXZhdGUgUHJvcGVydHlUYWJsZSBwcm9wZXJ0aWVzID0gbmV3IFByb3BlcnR5VGFi bGUoKTsKLSAgICAgICAgcHJpdmF0ZSBBcnJheUxpc3QgdHJhY2tzID0gbmV3IEFycmF5TGlzdCgp OyAKKyAgICAgICAgcHJvdGVjdGVkIEFycmF5TGlzdCB0cmFja3MgPSBuZXcgQXJyYXlMaXN0KCk7 IAogICAgICAgICBwcml2YXRlIEFjdGl2ZVVzZXJFdmVudCBzYXZlX3JlcG9ydF9ldmVudDsKICAg ICAgICAgcHJpdmF0ZSBib29sIGlzX3N5bmNpbmcgPSBmYWxzZTsKICAgICAgICAgcHJpdmF0ZSBi b29sIGNhbl9jYW5jZWxfc2F2ZSA9IHRydWU7CkBAIC0xODgsNyArMTg4LDcgQEAKICAgICAgICAg ICAgIE9uUHJvcGVydGllc0NoYW5nZWQoKTsKICAgICAgICAgfQogICAgICAgICAKLSAgICAgICAg cHVibGljIHZvaWQgQWRkVHJhY2soVHJhY2tJbmZvIHRyYWNrKQorICAgICAgICBwdWJsaWMgdmly dHVhbCB2b2lkIEFkZFRyYWNrKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAg ICAgVHJhY2tJbmZvIGRhcF90cmFjayA9IE9uVHJhY2tBZGRlZCh0cmFjayk7CiAgICAgICAgICAg ICAKQEAgLTUzNyw2ICs1MzcsMTIgQEAKICAgICAgICAgICAgIAogICAgICAgICAgICAgcmV0dXJu IG5ldyBTYWZlVXJpKGRpciArIFBhdGguRGlyZWN0b3J5U2VwYXJhdG9yQ2hhciAKICAgICAgICAg ICAgICAgICArICIuYmFuc2hlZS1kYXAtIiArIGZpbGUgKyAiLiIgKyBuZXdleHQpOworICAgICAg ICB9CisKKyAgICAgICAgcHJvdGVjdGVkIHZvaWQgRW1pdFRyYWNrQWRkZWQgKFRyYWNrSW5mbyB0 cmFjaykKKyAgICAgICAgeworICAgICAgICAgICAgaWYoVHJhY2tBZGRlZCAhPSBudWxsKQorICAg ICAgICAgICAgICAgIFRyYWNrQWRkZWQodGhpcywgbmV3IERhcFRyYWNrTGlzdFVwZGF0ZWRBcmdz KHRyYWNrKSk7CiAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICBwdWJsaWMgdmlydHVhbCBH ZGsuUGl4YnVmIEdldEljb24oaW50IHNpemUpCkluZGV4OiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0 b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9i YW5zaGVlL3NyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcyx2CnJl dHJpZXZpbmcgcmV2aXNpb24gMS42CmRpZmYgLXUgLXIxLjYgTWFzc1N0b3JhZ2VEYXAuY3MKLS0t IHNyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcwk5IEFwciAyMDA2 IDIxOjMwOjI2IC0wMDAwCTEuNgorKysgc3JjL0JhbnNoZWUuRGFwL01hc3NTdG9yYWdlL01hc3NT dG9yYWdlRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBAIC02Myw3ICs2Myw3IEBA CiAgICAgICAgICAgICAgICAgcGxheWVyX2RldmljZSA9IEhhbC5EZXZpY2UuVWRpc1RvRGV2aWNl cyAodm9sdW1lX2RldmljZS5Db250ZXh0LCBuZXcgc3RyaW5nIFtdIHt2b2x1bWVfZGV2aWNlIFsi aW5mby5wYXJlbnQiXX0pIFswXTsKICAgICAgICAgICAgICAgICB1c2JfZGV2aWNlID0gSGFsLkRl dmljZS5VZGlzVG9EZXZpY2VzIChwbGF5ZXJfZGV2aWNlLkNvbnRleHQsIG5ldyBzdHJpbmcgW10g e3BsYXllcl9kZXZpY2UgWyJzdG9yYWdlLnBoeXNpY2FsX2RldmljZSJdfSkgWzBdOwogICAgICAg ICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKLSAgICAgICAgICAgICAgICAgICAgcmV0dXJu IEluaXRpYWxpemVSZXN1bHQuSW52YWxpZDsKKyAgICAgICAgICAgICAgICByZXR1cm4gSW5pdGlh bGl6ZVJlc3VsdC5JbnZhbGlkOwogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBpZiAoIXBs YXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMgKCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuYWNjZXNz X21ldGhvZCIpIHx8CkBAIC03OCwzNyArNzgsNTIgQEAKICAgICAgICAgICAgICAgICAgICAgIXZv bHVtZV9kZXZpY2UuR2V0UHJvcGVydHlCb29sKCJ2b2x1bWUuaXNfbW91bnRlZCIpKQogICAgICAg ICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LldhaXRGb3JQcm9wZXJ0eUNoYW5nZTsK IAkgICAgCi0KLSAgICAgICAgICAgIHN0cmluZyBibG9ja19kZXZpY2UgPSB2b2x1bWVfZGV2aWNl IFsiYmxvY2tfZGV2aWNlIl07Ci0gICAgICAgICAgICBmb3JlYWNoIChHbm9tZS5WZnMuVm9sdW1l IHZvbCBpbiBtb25pdG9yLk1vdW50ZWRWb2x1bWVzKSB7Ci0gICAgICAgICAgICAgICAgaWYgKHZv bC5EZXZpY2VQYXRoID09IGJsb2NrX2RldmljZSkgewotICAgICAgICAgICAgICAgICAgICB0aGlz LnZvbHVtZSA9IHZvbDsKLSAgICAgICAgICAgICAgICAgICAgYnJlYWs7Ci0gICAgICAgICAgICAg ICAgfQorICAgICAgICAgICAgdm9sdW1lID0gbW9uaXRvci5HZXRWb2x1bWVGb3JQYXRoKE1vdW50 UG9pbnQpOworICAgICAgICAgICAgaWYodm9sdW1lID09IG51bGwpIHsKKyAgICAgICAgICAgICAg ICAvLyBHbm9tZSBWRlMgZG9lc24ndCBrbm93IHZvbHVtZSBpcyBtb3VudGVkIHlldAorICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCArPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdHJ1ZTsKKyAgICAgICAgICAgIH0gZWxzZSB7Cisg ICAgICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdm9sdW1lLklzUmVhZE9ubHk7CiAgICAgICAg ICAgICB9CiAKLSAgICAgICAgICAgIGlmICh2b2x1bWUgPT0gbnVsbCkKLSAgICAgICAgICAgICAg ICByZXR1cm4gSW5pdGlhbGl6ZVJlc3VsdC5JbnZhbGlkOwotCi0gICAgICAgICAgICBpc19yZWFk X29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKLQogICAgICAgICAgICAgYmFzZS5Jbml0aWFsaXpl ICh1c2JfZGV2aWNlKTsKICAKICAgICAgICAgICAgIEluc3RhbGxQcm9wZXJ0eSgiVmVuZG9yIiwg dXNiX2RldmljZVsidXNiLnZlbmRvciJdKTsKIAotICAgICAgICAgICAgUmVsb2FkRGF0YWJhc2Uo KTsKKyAgICAgICAgICAgIGlmKCFHbG9iYWxzLlVJTWFuYWdlci5Jc0luaXRpYWxpemVkKSB7Cisg ICAgICAgICAgICAgICAgR2xvYmFscy5VSU1hbmFnZXIuSW5pdGlhbGl6ZWQgKz0gT25VSU1hbmFn ZXJJbml0aWFsaXplZDsKKyAgICAgICAgICAgIH0gZWxzZSB7CisgICAgICAgICAgICAgICAgUmVs b2FkRGF0YWJhc2UoKTsKKyAgICAgICAgICAgIH0KICAgICAgICAgICAgIAogICAgICAgICAgICAg Ly8gRklYTUUgcHJvYmFibHkgc2hvdWxkIGJlIGFibGUgdG8gY2FuY2VsIGF0IHNvbWUgcG9pbnQg d2hlbiB5b3UgY2FuIGFjdHVhbGx5IHN5bmMKICAgICAgICAgICAgIENhbkNhbmNlbFNhdmUgPSBm YWxzZTsKICAgICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LlZhbGlkOwogICAgICAg ICB9CiAKKyAgICAgICAgcHVibGljIHZvaWQgT25Wb2x1bWVNb3VudGVkKG9iamVjdCBvLCBHbm9t ZS5WZnMuVm9sdW1lTW91bnRlZEFyZ3MgYXJncykgeworICAgICAgICAgICAgaWYoYXJncy5Wb2x1 bWUuRGV2aWNlUGF0aCA9PSB2b2x1bWVfZGV2aWNlWyJibG9jay5kZXZpY2UiXSkgeworICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCAtPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAKKyAgICAgICAgICAgICAgICB2b2x1bWUgPSBhcmdzLlZvbHVtZTsKKyAgICAgICAg ICAgICAgICBpc19yZWFkX29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKKworICAgICAgICAgICAg ICAgIC8vIEZJWE1FIHNob3VsZCBwcm9iYWJseSByZWxvYWQgdGhlIHRyYWNrcy4uCisgICAgICAg ICAgICB9CisgICAgICAgIH0KKwogICAgICAgICBwdWJsaWMgb3ZlcnJpZGUgdm9pZCBEaXNwb3Nl KCkKICAgICAgICAgewogICAgICAgICAgICAgLy8gRklYTUUgYW55dGhpbmcgZWxzZSB0byBkbyBo ZXJlPwogICAgICAgICAgICAgdm9sdW1lID0gbnVsbDsKICAgICAgICAgICAgIGJhc2UuRGlzcG9z ZSgpOwogICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSB2b2lkIE9uVUlNYW5hZ2VySW5pdGlh bGl6ZWQob2JqZWN0IG8sIEV2ZW50QXJncyBhcmdzKQorICAgICAgICB7CisgICAgICAgICAgICBS ZWxvYWREYXRhYmFzZSAoKTsKKyAgICAgICAgfQogIAogICAgICAgICBwcml2YXRlIHZvaWQgUmVs b2FkRGF0YWJhc2UoKQogICAgICAgICB7CkBAIC0xNDUsNyArMTYwLDggQEAKIAogICAgICAgICBw dWJsaWMgb3ZlcnJpZGUgdm9pZCBFamVjdCAoKQogICAgICAgICB7Ci0gICAgICAgICAgICB2b2x1 bWUuVW5tb3VudCAoVW5tb3VudENhbGxiYWNrKTsKKyAgICAgICAgICAgIGlmKHZvbHVtZSAhPSBu dWxsKQorICAgICAgICAgICAgICAgIHZvbHVtZS5Vbm1vdW50IChVbm1vdW50Q2FsbGJhY2spOwog ICAgICAgICB9CiAKICAgICAgICAgcHJpdmF0ZSB2b2lkIFVubW91bnRDYWxsYmFjayAoYm9vbCBz dWNjZWVkZWQsIHN0cmluZyBlcnJvciwgc3RyaW5nIGRldGFpbGVkX2Vycm9yKQpAQCAtMTYzLDE3 ICsxNzksNDkgQEAKICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBDb25zb2xlLldy aXRlTGluZSAoIkZhaWxlZCB0byBlamVjdC4gIHsxfSB7Mn0iLCBlcnJvciwgZGV0YWlsZWRfZXJy b3IpOwogICAgICAgICB9CisKKyAgICAgICAgcHVibGljIG92ZXJyaWRlIHZvaWQgQWRkVHJhY2so VHJhY2tJbmZvIHRyYWNrKQorICAgICAgICB7CisgICAgICAgICAgICBpZiAodHJhY2sgPT0gbnVs bCB8fCBJc1JlYWRPbmx5KQorICAgICAgICAgICAgICAgIHJldHVybjsKKworICAgICAgICAgICAg Ly8gSWYgd2UncmUgImFkZGluZyIgaXQgd2hlbiBpdCdzIGFscmVhZHkgb24gdGhlIGRldmljZSwg dGhlbgorICAgICAgICAgICAgLy8gd2UgZG9uJ3QgbmVlZCB0byBjb3B5IGl0CisgICAgICAgICAg ICBpZiAodHJhY2sgaXMgTWFzc1N0b3JhZ2VUcmFja0luZm8pIHsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKHRyYWNrKTsKKyAgICAgICAgICAgICAgICBFbWl0VHJhY2tBZGRlZCh0cmFjayk7 CisgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgIENvcGllci5FbnF1ZXVlICh0 cmFjayk7CisgICAgICAgICAgICB9CisgICAgICAgIH0KICAgICAgICAgCi0gICAgICAgIHByb3Rl Y3RlZCBvdmVycmlkZSBUcmFja0luZm8gT25UcmFja0FkZGVkKFRyYWNrSW5mbyB0cmFjaykKKyAg ICAgICAgcHJpdmF0ZSB2b2lkIEhhbmRsZUNvcHlSZXF1ZXN0ZWQgKG9iamVjdCBvLCBRdWV1ZWRP cGVyYXRpb25BcmdzIGFyZ3MpCiAgICAgICAgIHsKLSAgICAgICAgICAgIGlmICh0cmFjayBpcyBN YXNzU3RvcmFnZVRyYWNrSW5mbyB8fCBJc1JlYWRPbmx5KQotICAgICAgICAgICAgICAgIHJldHVy biB0cmFjazsKKyAgICAgICAgICAgIFRyYWNrSW5mbyB0cmFjayA9IGFyZ3MuT2JqZWN0IGFzIFRy YWNrSW5mbzsKKworICAgICAgICAgICAgaWYgKHRyYWNrID09IG51bGwpCisgICAgICAgICAgICAg ICAgcmV0dXJuOworICAgICAgICAgICAgCisgICAgICAgICAgICB0cnkgeworICAgICAgICAgICAg ICAgIHN0cmluZyBuZXdfcGF0aCA9IEdldFRyYWNrUGF0aCAodHJhY2spOworCisgICAgICAgICAg ICAgICAgLy8gSWYgaXQgYWxyZWFkeSBpcyBvbiB0aGUgZGV2aWNlIGJ1dCBpdCdzIG91dCBvZiBk YXRlLCByZW1vdmUgaXQKKyAgICAgICAgICAgICAgICBpZiAoRmlsZS5FeGlzdHMgKG5ld19wYXRo KSAmJiBGaWxlLkdldExhc3RXcml0ZVRpbWUodHJhY2suVXJpLkxvY2FsUGF0aCkgPiBGaWxlLkdl dExhc3RXcml0ZVRpbWUobmV3X3BhdGgpKQorICAgICAgICAgICAgICAgICAgICBSZW1vdmVUcmFj ayhuZXcgTWFzc1N0b3JhZ2VUcmFja0luZm8obmV3IFNhZmVVcmkobmV3X3BhdGgpKSk7CisKKyAg ICAgICAgICAgICAgICBpZiAoIUZpbGUuRXhpc3RzIChuZXdfcGF0aCkpIHsKKyAgICAgICAgICAg ICAgICAgICAgICAgIERpcmVjdG9yeS5DcmVhdGVEaXJlY3RvcnkgKFBhdGguR2V0RGlyZWN0b3J5 TmFtZSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICAgICAgICAgIEZpbGUuQ29weSAodHJh Y2suVXJpLkxvY2FsUGF0aCwgbmV3X3BhdGgpOworICAgICAgICAgICAgICAgIH0KIAotICAgICAg ICAgICAgc3RyaW5nIG5ld19wYXRoID0gR2V0VHJhY2tQYXRoICh0cmFjayk7Ci0gICAgICAgICAg ICBEaXJlY3RvcnkuQ3JlYXRlRGlyZWN0b3J5IChQYXRoLkdldERpcmVjdG9yeU5hbWUgKG5ld19w YXRoKSk7Ci0gICAgICAgICAgICBGaWxlLkNvcHkgKHRyYWNrLlVyaS5Mb2NhbFBhdGgsIG5ld19w YXRoKTsKKyAgICAgICAgICAgICAgICBUcmFja0luZm8gbmV3X3RyYWNrID0gbmV3IE1hc3NTdG9y YWdlVHJhY2tJbmZvIChuZXcgU2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKG5ld190cmFjayk7CisgICAgICAgICAgICAgICAgRW1pdFRyYWNrQWRkZWQodHJh Y2spOwogCi0gICAgICAgICAgICByZXR1cm4gbmV3IE1hc3NTdG9yYWdlVHJhY2tJbmZvIChuZXcg U2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICBhcmdzLlJldHVybk1lc3NhZ2Ug PSBTdHJpbmcuRm9ybWF0KCJ7MH0gLSB7MX0iLCB0cmFjay5BcnRpc3QsIHRyYWNrLlRpdGxlKTsK KyAgICAgICAgICAgIH0gY2F0Y2ggKEV4Y2VwdGlvbiBlKSB7CisgICAgICAgICAgICAgICAgYXJn cy5SZXR1cm5NZXNzYWdlID0gU3RyaW5nLkZvcm1hdCgiU2tpcHBpbmcgU29uZyIsIHRyYWNrLkFy dGlzdCwgdHJhY2suVGl0bGUpOworICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgIAog ICAgICAgICBwcm90ZWN0ZWQgb3ZlcnJpZGUgdm9pZCBPblRyYWNrUmVtb3ZlZChUcmFja0luZm8g dHJhY2spCkBAIC0yMTMsMTkgKzI2MSwyNCBAQAogICAgICAgICBwcml2YXRlIHN0cmluZyBHZXRU cmFja1BhdGggKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAgICAgc3RyaW5n IGZpbGVfcGF0aCA9ICIiOworCisgICAgICAgICAgICBzdHJpbmcgYXJ0aXN0ID0gRmlsZU5hbWVQ YXR0ZXJuLkVzY2FwZSAodHJhY2suQXJ0aXN0KTsKKyAgICAgICAgICAgIHN0cmluZyBhbGJ1bSA9 IEZpbGVOYW1lUGF0dGVybi5Fc2NhcGUgKHRyYWNrLkFsYnVtKTsKKyAgICAgICAgICAgIHN0cmlu ZyBudW1iZXJfdGl0bGUgPSBGaWxlTmFtZVBhdHRlcm4uRXNjYXBlICh0cmFjay5UcmFja051bWJl clRpdGxlKTsKKwogICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMg KCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuZmlsZXBhdGhfZm9ybWF0IikpIHsKICAgICAgICAgICAg ICAgICBmaWxlX3BhdGggPSBwbGF5ZXJfZGV2aWNlLkdldFByb3BlcnR5U3RyaW5nICgicG9ydGFi bGVfYXVkaW9fcGxheWVyLmZpbGVwYXRoX2Zvcm1hdCIpOwotICAgICAgICAgICAgICAgIGZpbGVf cGF0aCA9IGZpbGVfcGF0aC5SZXBsYWNlICgiJUFydGlzdCIsIHRyYWNrLkFydGlzdCk7Ci0gICAg ICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2UgKCIlQWxidW0iLCB0cmFj ay5BbGJ1bSk7CisgICAgICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2Ug KCIlQXJ0aXN0IiwgYXJ0aXN0KTsKKyAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3Bh dGguUmVwbGFjZSAoIiVBbGJ1bSIsIGFsYnVtKTsKIAogICAgICAgICAgICAgICAgIGlmIChmaWxl X3BhdGguSW5kZXhPZiAoIiVUcmFjayIpID09IC0xKSB7Ci0gICAgICAgICAgICAgICAgICAgIGZp bGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgdHJhY2suVHJhY2tO dW1iZXJUaXRsZSk7CisgICAgICAgICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5Q YXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgICAgICB9 IGVsc2UgewotICAgICAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFj ZSAoIiVUcmFjayIsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFjZSAoIiVUcmFjayIsIG51bWJlcl90aXRsZSk7 CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lICh0cmFjay5BcnRpc3QsIHRyYWNr LkFsYnVtKTsKLSAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21i aW5lIChmaWxlX3BhdGgsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAg IGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGFydGlzdCwgYWxidW0pOworICAg ICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0 aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgZmlsZV9wYXRo ICs9IFBhdGguR2V0RXh0ZW5zaW9uICh0cmFjay5VcmkuTG9jYWxQYXRoKTsKQEAgLTIzNCw2ICsy ODcsMjEgQEAKICAgICAgICAgICAgIHJldHVybiBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lIChNb3Vu dFBvaW50LCBmaWxlX3BhdGgpOwogICAgICAgICB9CiAKKyAgICAgICAgcHJpdmF0ZSBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyIGNvcGllcjsKKyAgICAgICAgcHVibGljIFF1ZXVlZE9wZXJhdGlvbk1h bmFnZXIgQ29waWVyIHsKKyAgICAgICAgICAgIGdldCB7CisgICAgICAgICAgICAgICAgaWYgKGNv cGllciA9PSBudWxsKSB7CisgICAgICAgICAgICAgICAgICAgIGNvcGllciA9IG5ldyBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyICgpOworICAgICAgICAgICAgICAgICAgICBjb3BpZXIuQWN0aW9uTWVz c2FnZSA9IENhdGFsb2cuR2V0U3RyaW5nICgiQ29weWluZyBTb25ncyIpOworICAgICAgICAgICAg ICAgICAgICBjb3BpZXIuUHJvZ3Jlc3NNZXNzYWdlID0gQ2F0YWxvZy5HZXRTdHJpbmcgKCJDb3B5 aW5nIHswfSBvZiB7MX0iKTsKKyAgICAgICAgICAgICAgICAgICAgY29waWVyLk9wZXJhdGlvblJl cXVlc3RlZCArPSBIYW5kbGVDb3B5UmVxdWVzdGVkOworICAgICAgICAgICAgICAgIH0KKworICAg ICAgICAgICAgICAgIHJldHVybiBjb3BpZXI7CisgICAgICAgICAgICB9CisgICAgICAgICAgICBz ZXQgeyBjb3BpZXIgPSB2YWx1ZTsgfQorICAgICAgICB9CisKICAgICAgICAgcHVibGljIHZpcnR1 YWwgc3RyaW5nIEljb25JZCB7CiAgICAgICAgICAgICBnZXQgewogICAgICAgICAgICAgICAgIHJl dHVybiBudWxsOwpAQCAtMjQyLDcgKzMxMCw4IEBACiAgCiAgICAgICAgIHB1YmxpYyBvdmVycmlk ZSBzdHJpbmcgTmFtZSB7CiAgICAgICAgICAgICBnZXQgewotICAgICAgICAgICAgICAgIGlmICh2 b2x1bWVfZGV2aWNlLlByb3BlcnR5RXhpc3RzKCJ2b2x1bWUubGFiZWwiKSkKKyAgICAgICAgICAg ICAgICBpZiAodm9sdW1lX2RldmljZS5Qcm9wZXJ0eUV4aXN0cygidm9sdW1lLmxhYmVsIikgJiYK KyAgICAgICAgICAgICAgICAgICAgdm9sdW1lX2RldmljZVsidm9sdW1lLmxhYmVsIl0uTGVuZ3Ro ID4gMCkKICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZvbHVtZV9kZXZpY2VbInZvbHVtZS5s YWJlbCJdOwogCiAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlz dHMoImluZm8ucHJvZHVjdCIpKQpJbmRleDogc3JjL0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2Vy RXZlbnQuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9iYW5zaGVlL3NyYy9CYW5z aGVlLldpZGdldHMvQWN0aXZlVXNlckV2ZW50LmNzLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjcK ZGlmZiAtdSAtcjEuNyBBY3RpdmVVc2VyRXZlbnQuY3MKLS0tIHNyYy9CYW5zaGVlLldpZGdldHMv QWN0aXZlVXNlckV2ZW50LmNzCTEzIEZlYiAyMDA2IDIyOjE4OjE0IC0wMDAwCTEuNworKysgc3Jj L0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2VyRXZlbnQuY3MJMTcgQXByIDIwMDYgMTk6MTA6Mjgg LTAwMDAKQEAgLTQ5LDYgKzQ5LDcgQEAKICAgICAgICAgcHJpdmF0ZSBzdHJpbmcgaGVhZGVyOwog ICAgICAgICAKICAgICAgICAgcHJpdmF0ZSB1aW50IHRpbWVvdXRfaWQgPSAwOworICAgICAgICBw cml2YXRlIHVpbnQgc2xvd190aW1lb3V0X2lkID0gMDsKICAgICAgICAgcHJpdmF0ZSBib29sIGRp c3Bvc2VkID0gZmFsc2U7CiAgICAgICAgIAogICAgICAgICBwdWJsaWMgZXZlbnQgRXZlbnRIYW5k bGVyIERpc3Bvc2VkOwpAQCAtNTYsOCArNTcsMTAgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZh dGUgYm9vbCBjYW5jZWxfcmVxdWVzdGVkOwogICAgICAgICBwcml2YXRlIGJvb2wgY2FuX2NhbmNl bDsKLSAgICAgCi0gICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIAor CisgICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIDogdGhpcyAobmFt ZSwgZmFsc2UpIHt9CisKKyAgICAgICAgcHVibGljIEFjdGl2ZVVzZXJFdmVudChzdHJpbmcgbmFt ZSwgYm9vbCBkZWxheV9zaG93KQogICAgICAgICB7CiAgICAgICAgICAgICB0aXBzID0gbmV3IFRv b2x0aXBzKCk7CiAgICAgICAgICAgICAKQEAgLTExNyw3ICsxMjAsMTEgQEAKICAgICAgICAgICAg IAogICAgICAgICAgICAgdGFibGUuU2hvd0FsbCgpOwogICAgICAgICAgICAgCi0gICAgICAgICAg ICBBY3RpdmVVc2VyRXZlbnRzTWFuYWdlci5JbnN0YW5jZS5SZWdpc3Rlcih0aGlzKTsKKyAgICAg ICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGVsYXkgc2hvdyA9IHswfSIsIGRlbGF5X3Nob3cp OworICAgICAgICAgICAgaWYgKGRlbGF5X3Nob3cpCisgICAgICAgICAgICAgICAgc2xvd190aW1l b3V0X2lkID0gR0xpYi5UaW1lb3V0LkFkZCgxMDAwLCBPbkNoZWNrRm9yRGlzcGxheSk7CisgICAg ICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgQWN0aXZlVXNlckV2ZW50c01hbmFnZXIuSW5z dGFuY2UuUmVnaXN0ZXIodGhpcyk7CiAgICAgICAgIH0KICAgICAgICAgCiAgICAgICAgIHB1Ymxp YyB2b2lkIENhbmNlbCgpCkBAIC0xMzgsMTAgKzE0NSwzNCBAQAogICAgICAgICAgICAgICAgIEdM aWIuU291cmNlLlJlbW92ZSh0aW1lb3V0X2lkKTsKICAgICAgICAgICAgICAgICB0aW1lb3V0X2lk ID0gMDsKICAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYoc2xvd190aW1lb3V0X2lkID4g MCkgeworICAgICAgICAgICAgICAgIEdMaWIuU291cmNlLlJlbW92ZShzbG93X3RpbWVvdXRfaWQp OworICAgICAgICAgICAgICAgIHNsb3dfdGltZW91dF9pZCA9IDA7CisgICAgICAgICAgICB9CiAg ICAgICAgICAgICAKICAgICAgICAgICAgIGlmKERpc3Bvc2VkICE9IG51bGwpIHsKICAgICAgICAg ICAgICAgICBEaXNwb3NlZCh0aGlzLCBuZXcgRXZlbnRBcmdzKCkpOwogICAgICAgICAgICAgfQor ICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSBib29sIE9uQ2hlY2tGb3JEaXNwbGF5KCkKKyAg ICAgICAgeworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCJPbkNoZWNrRm9yRGlzcGxh eSBjYWxsZWQuLiIpOworICAgICAgICAgICAgaWYgKGRpc3Bvc2VkKQorICAgICAgICAgICAgICAg IHJldHVybiBmYWxzZTsKKworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCIuLi5hbmQg bm90IGRpc3Bvc2VkLi4iKTsKKworICAgICAgICAgICAgLy8gSWYgdGhlIGV2ZW50IGhhcyBub3Qg bWFkZSBlbm91Z2ggcHJvZ3Jlc3MsIHNob3cgdGhpcyBldmVudAorICAgICAgICAgICAgaWYgKFBy b2dyZXNzIDwgMC4zMykgeworICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGlk bid0IG1ha2UgZW5vdWdoIHByb2dyZXNzLCBzaG93aW5nIGFjdGlvbiBldmVudCIpOworICAgICAg ICAgICAgICAgIEFjdGl2ZVVzZXJFdmVudHNNYW5hZ2VyLkluc3RhbmNlLlJlZ2lzdGVyKHRoaXMp OworICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGlu ZSAoIk1hZGUgZW5vdWdoIHByb2dyZXNzLCBub3Qgc2hvd2luZyBhY3Rpb24gZXZlbnQiKTsKKyAg ICAgICAgICAgIH0KKworICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICB9CiAgICAg ICAgIAogICAgICAgICBwcml2YXRlIGJvb2wgT25UaW1lb3V0KCkK ------=_Part_8988_6161796.1145311862126-- From florin@andrei.myip.org Tue Apr 18 01:35:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C8C23B1449 for ; Tue, 18 Apr 2006 01:35:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29878-04 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.200.83]) by menubar.gnome.org (Postfix) with ESMTP id 7CF603B1480 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from andrei.myip.org ([24.6.189.81]) by comcast.net (sccrmhc13) with ESMTP id <200604180535430130020jk5e>; Tue, 18 Apr 2006 05:35:43 +0000 Received: from localhost (andrei.myip.org [127.0.0.1]) by andrei.myip.org (Postfix) with ESMTP id 1C574E4DA for ; Mon, 17 Apr 2006 22:35:43 -0700 (PDT) Received: from andrei.myip.org ([127.0.0.1]) by localhost (andrei.myip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29548-01 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) Received: from rivendell.home.local (rivendell.home.local [192.168.0.12]) by andrei.myip.org (Postfix) with ESMTP id 33CC9E4D5 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) From: Florin Andrei To: banshee-list@gnome.org Content-Type: text/plain Date: Mon, 17 Apr 2006 22:35:39 -0700 Message-Id: <1145338540.7850.1.camel@rivendell.home.local> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at andrei.myip.org X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.58 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599] X-Spam-Score: -2.58 X-Spam-Level: Subject: [Banshee-List] lame presets X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 05:35:52 -0000 I was pleasantly surprised to discover that Banshee can use lame to encode songs, but there are only options for CBR encoding. Would it be possible to add an option to use the Standard VBR preset? lame --preset standard song.wav song.mp3 -- Florin Andrei http://florin.myip.org/ From jstembridge@gmail.com Tue Apr 18 08:11:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D77503B2A0F for ; Tue, 18 Apr 2006 08:11:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21709-01 for ; Tue, 18 Apr 2006 08:11:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.225]) by menubar.gnome.org (Postfix) with ESMTP id B8BF13B0685 for ; Tue, 18 Apr 2006 08:11:10 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1473829wri for ; Tue, 18 Apr 2006 05:11:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QOCHnaYn1W8HnzTHdBEvWuNLCHN3rMrtKODOxN36O1lnaqjeyvTzWB26uIa0LK1lmU9Zch1vC1/z7UR/GKAj9hMBKDpilYo+KCHI7LvIzwXlhcT0fxy3AKCEhd8hCAdcOZZFNe5sU7o3qjSBNUu3hZ7ziY/AyYr4BM1a7pgcKoI= Received: by 10.54.117.10 with SMTP id p10mr3925935wrc; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Message-ID: <18bc366d0604180511s1db23ce6od6fb909fe238444d@mail.gmail.com> Date: Tue, 18 Apr 2006 13:11:09 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14604_3604805.1145362269787" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.768 tagged_above=-999 required=2 tests=[AWL=-0.726, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.768 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 12:11:28 -0000 ------=_Part_14604_3604805.1145362269787 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another update, duplicate detection done via tags rather than filename as it's more reliable. Cheers, James. ------=_Part_14604_3604805.1145362269787 Content-Type: text/x-patch; name=mass-storage3.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em672y5z Content-Disposition: attachment; filename="mass-storage3.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.452 diff -u -r1.452 ChangeLog --- ChangeLog 18 Apr 2006 03:25:33 -0000 1.452 +++ ChangeLog 18 Apr 2006 12:07:10 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device. Don't use the volumel label for the + Name if it's blank. If the volume for a new device isn't yet available + from VFS, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * banshee.mdp: Updated MonoDevelop project Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 18 Apr 2006 12:07:11 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 18 Apr 2006 12:07:12 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 18 Apr 2006 12:07:12 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,31 +78,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +158,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +177,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +252,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +278,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +301,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 18 Apr 2006 12:07:13 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 18:40:38.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_14604_3604805.1145362269787-- From abockover@novell.com Tue Apr 18 11:32:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5BBF73B2A92 for ; Tue, 18 Apr 2006 11:32:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01121-06 for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 8B2073B18CF for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3IFWn8i024935 for ; Tue, 18 Apr 2006 11:32:50 -0400 (EDT) Subject: Re: [Banshee-List] lame presets From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145338540.7850.1.camel@rivendell.home.local> References: <1145338540.7850.1.camel@rivendell.home.local> Content-Type: text/plain Date: Tue, 18 Apr 2006 11:29:50 -0400 Message-Id: <1145374190.12396.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.077, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.476 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 15:32:52 -0000 Take a look at the lame options exposed by the gstreamer plugin: gst-inspect-0.10 lame Then edit the lame profile for Banshee in gconf: gconf-editor /apps/Banshee and browse to "EncoderProfiles," edit the value for that key and choose the 'lame' entry and edit the string, adding the options you want. --Aaron On Mon, 2006-04-17 at 22:35 -0700, Florin Andrei wrote: > I was pleasantly surprised to discover that Banshee can use lame to > encode songs, but there are only options for CBR encoding. > Would it be possible to add an option to use the Standard VBR preset? > > lame --preset standard song.wav song.mp3 > From c.travis.bradshaw@gmail.com Tue Apr 18 23:00:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 057813B1AF1 for ; Tue, 18 Apr 2006 23:00:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05516-01 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 6E9473B1538 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1099498pyu for ; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cf3W9wli+Ze1cAayQaFS15QAVvaQl1I6TnABaiOOc29iJYns1ZV/fiEy1oCWhPvugDpO9+sKIhkAbw9litcPKHZWndhRfBpBLejtdVKvh6chzma4CRUwZUJrWTF8zSYHLiQZ8F6gdbfkZ4DKstPE9g2GwHH6gbbznqEL+UXEDPU= Received: by 10.35.66.13 with SMTP id t13mr2324489pyk; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2006 22:00:10 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Help Reproducing a Bug - fuzzy searching (#333893) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 03:00:13 -0000 Hey guys and gals, I was wondering if anyone would be interested in helping me test a patch. On bug #333893 "searches should be fuzzy", I've submitted a patch to add fuzzy searching and a NOT operator to the simple search on the main interface. Everything seems to be working great--completely implementing Dave Rodgman's suggestions--and Aaron tested the patch. He found a couple issues with the patch and I'm very eager to get both issues handled for a clean patch. The catch is that I can't seem to reproduce the behavior he describes. If anyone would be willing to help me out and try the patch on bug #333893, I would greatly appreciate it. (And I think you'll like the fuzzy searching as well.) http://bugzilla.gnome.org/show_bug.cgi?id=3D333893 Thanks everyone, Travis Bradshaw From c.travis.bradshaw@gmail.com Wed Apr 19 05:07:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F219F3B115B for ; Wed, 19 Apr 2006 05:07:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24087-01 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id A7E973B09B2 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1167003pyu for ; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BqfIuopjY+7gr3hj8ItswDg3xFprHp3XoRM6TBR/ZSNpiN8ph95ZsBHUQE7BDUsE1ThNSiT1tV4l3/NJadTaNMDYVeZQnmcPzcdlFMFmFRYzII336ff8dCvIJptpvtA9MFf7r6kjFDs8zerNoj+uXlxv/JqZNzp2q1hGHWG+YWQ= Received: by 10.35.98.6 with SMTP id a6mr785072pym; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2006 04:07:35 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Trouble Building after cvs update X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:07:38 -0000 Just today I did a quick cvs update, and now I can't seem to get through an entire build. Everything is going great until I get: make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' make[3]: *** No rule to make target `IO/IOProxy.cs', needed by `Banshee.Base.dll'. Stop. Any idea what I've got wrong? Thanks, Travis Bradshaw travis@tbradshaw.net From jstembridge@gmail.com Wed Apr 19 05:22:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 128113B2EE1 for ; Wed, 19 Apr 2006 05:22:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24849-06 for ; Wed, 19 Apr 2006 05:22:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id B507B3B2EE8 for ; Wed, 19 Apr 2006 05:22:00 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 69so819510wra for ; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxdhQ36+eBF2urpxK5sBDRo0aYykKM76xppuq2CkdekEN7+2W0W9lEAigwcYPkmybezeV0IF1/iDyiFCFBG7iVEnACSR9aE+/M5pmH/4e+TA/HCjx8UGhmlHpYmIysQGjcumJCNL1iQjVWQZBhCBNYTlPVRYxUYNbgaHPshe67k= Received: by 10.54.102.9 with SMTP id z9mr5687243wrb; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Received: by 10.54.99.5 with HTTP; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Message-ID: <18bc366d0604190222u699f43e2wbe56283edaeee0f8@mail.gmail.com> Date: Wed, 19 Apr 2006 10:22:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Trouble Building after cvs update In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.093, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:22:02 -0000 On 4/19/06, Travis Bradshaw wrote: > Just today I did a quick cvs update, and now I can't seem to get > through an entire build. Everything is going great until I get: > > make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' > make[3]: *** No rule to make target `IO/IOProxy.cs', needed by > `Banshee.Base.dll'. Stop. Try "cvs up -d". The "-d" asks cvs to create any directories present in the repository that you don't have locally. James. From pat@thepatsite.com Wed Apr 19 12:57:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C4BB63B00B1 for ; Wed, 19 Apr 2006 12:57:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22600-01 for ; Wed, 19 Apr 2006 12:57:05 -0400 (EDT) Received: from f04n01.cac.psu.edu (f04s01.cac.psu.edu [128.118.141.31]) by menubar.gnome.org (Postfix) with ESMTP id 080A93B000F for ; Wed, 19 Apr 2006 12:57:04 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f04n01.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3JGuxcl155350 for ; Wed, 19 Apr 2006 12:56:59 -0400 From: Pat Rondon To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 19 Apr 2006 12:57:42 -0400 Message-Id: <1145465862.563.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Shuffle playlist plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:57:07 -0000 I've put together a shuffle playlist plugin that works like the dynamic mode in Amarok or (I assume) party shuffle in iTunes - it maintains a playlist of 20 randomly-chosen songs, automatically removing the ones that have been played. It may be a little hackish. Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 - Pat From julien.marbach@gmail.com Fri Apr 21 12:20:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 86AEE3B2011 for ; Fri, 21 Apr 2006 12:20:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20034-02 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id B66433B1F98 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so378302wxd for ; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cqBsk/SZ45xZgITyr5J5lSy5HJVETCTXvuTJiUaLdDOVa6rexVDSvrmNJ/69T2UoCEaFbsGR6FPXf+xX1OvNg0MsL2Ca1AcaGkI5oVd1qX03tHcr4ODWYWGKd0ubcdnjKCu4L+ukfaeF3CaXVXPrg+ol8nmatv4idsenS4RDPGo= Received: by 10.70.94.4 with SMTP id r4mr374257wxb; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Received: by 10.70.97.18 with HTTP; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Message-ID: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Date: Fri, 21 Apr 2006 12:20:54 -0400 From: "Julien Marbach" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25915_12204578.1145636454183" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.315 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.315 X-Spam-Level: Subject: [Banshee-List] iCal 2 iPod plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:20:55 -0000 ------=_Part_25915_12204578.1145636454183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, I've started to use google calendar since a few days and am already addicted. As a iPod user I like to have my calendar synchronised to my iPod= , and as a Banshee user I like to use Banshee to synchronise my iPod... So after writing a quick and dirty C#/mono standalone app to synchronize my google iCal to my iPod I would like to try to write a banshee plugin to do the job. Firstly I would like to be sure that no one else is working on the same idea. And secondly, do you think this is something that can be done as a banshee plugin? I've no idea at the moment of what I can/cannot do in a banshee plugin so I'm asking you... I believe i would need to use the ipod-sharp library but I don't know how t= o use its documentation (in xml format). Do I have to use monodoc or another tool to display it? Thanks, Julien ------=_Part_25915_12204578.1145636454183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there,
I've started to use google calendar since a few days and am al= ready addicted. As a iPod user I like to have my calendar synchronised to m= y iPod, and as a Banshee user I like to use Banshee to synchronise my iPod.= .. So after writing a quick and dirty C#/mono standalone app to synchronize= my google iCal to my iPod I would like to try to write a banshee plugin to= do the job.=20

Firstly I would like to be sure that no one else is working on the = same idea. And secondly, do you think this is something that can be done as= a banshee plugin? I've no idea at the moment of what I can/cannot do in a = banshee plugin so I'm asking you...

I believe i would need to use the ipod-sharp library but I don't kn= ow how to use its documentation (in xml format). Do I have to use monodoc o= r another tool to display it?

Thanks,

Julien
------=_Part_25915_12204578.1145636454183-- From lukasz.halman@gmail.com Fri Apr 21 12:38:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 557C73B2174 for ; Fri, 21 Apr 2006 12:38:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21075-01 for ; Fri, 21 Apr 2006 12:38:18 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8D6A63B10A3 for ; Fri, 21 Apr 2006 12:38:17 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so278931nfc for ; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=JKuSkcKpBhkzQd7Y8ofgJwzYwUT0W/Ur35w5F+5s+Wy5InC9zQB/1E39bsOYk8WoA+70m8YTuvfw/NLjxzVD13Zky53MJOXv0wty/AR5Ho1gEFRu+2MgE/BbYZETYS3D6FhlkH7AZNz6AxhIAelGJI0F29sfeD6a56jqO9h0Vhs= Received: by 10.48.211.17 with SMTP id j17mr1513821nfg; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Received: from lukasz ( [83.25.220.107]) by mx.gmail.com with ESMTP id q28sm41526nfc.2006.04.21.09.38.15; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Lukasz Halman To: banshee-list@gnome.org In-Reply-To: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Content-Type: text/plain Date: Fri, 21 Apr 2006 18:38:26 +0200 Message-Id: <1145637506.21876.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.57 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.57 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:38:19 -0000 Hi I think you should get in touch with evolution team. As far as I know they are working on getting evolution and google calendars syncing to work. If that's done then syncing ipod with evolution is very easy. That way not only it would be easier to do, but it'll provide better system integration. Since evolution-data-server is THE SOURCE of information in gnome, you should sync with it, not with google directly. That's my opinion. I have somewhere on my disk gtk2 application which used to sync evolution contacts/calendar with ipod. Give me a sign if you're interested in those sources. L. From abockover@novell.com Fri Apr 21 13:10:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AF453B15FA for ; Fri, 21 Apr 2006 13:10:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23144-03 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from ms-smtp-04.southeast.rr.com (unknown [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 4AA7F3B1CC5 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3LHAWZ4005019 for ; Fri, 21 Apr 2006 13:10:32 -0400 (EDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145637506.21876.4.camel@localhost.localdomain> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> <1145637506.21876.4.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 21 Apr 2006 13:07:30 -0400 Message-Id: <1145639250.21317.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.538 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.538 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 17:10:50 -0000 If you're looking to do this in C#, then I would use ipod-sharp for getting the device handle and events. If you want to use C, then use libipoddevice (which ipod-sharp uses for device access). While I guess this could be done in Banshee, I second the motion that it's probably better in Evolution. You could probably do it in C# with EDS bindings. It doesn't need to be *in* Evolution, rather Evolution does the calendar syncing, and then using EDS you request those calendars and sync them to the iPod. However, if you're looking for a quick route, I'd probably just write a standalone C# app that uses ipod-sharp and fetch your iCal calendars directly from Google and sync them. As for ipod-sharp docs, they are in the monodoc format. James also has them online at: http://www.snorp.net/docs/ipod-sharp/ ... not sure if they're 100% current, but the API has changed very little in quite a few months. Anyway, let us know your progress :) Cheers, Aaron On Fri, 2006-04-21 at 18:38 +0200, Lukasz Halman wrote: > Hi > > I think you should get in touch with evolution team. As far as I know > they are working on getting evolution and google calendars syncing to > work. If that's done then syncing ipod with evolution is very easy. That > way not only it would be easier to do, but it'll provide better system > integration. Since evolution-data-server is THE SOURCE of information in > gnome, you should sync with it, not with google directly. That's my > opinion. > > I have somewhere on my disk gtk2 application which used to sync > evolution contacts/calendar with ipod. Give me a sign if you're > interested in those sources. > > L. > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gcgmb-banshee-list@m.gmane.org Mon Apr 24 03:04:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B147C3B18DA for ; Mon, 24 Apr 2006 03:04:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24601-02 for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 2CF473B13BF for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FXv7B-0002ae-9a for banshee-list@gnome.org; Mon, 24 Apr 2006 09:04:09 +0200 Received: from 136.red-213-96-98.staticip.rima-tde.net ([213.96.98.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 Received: from knocte by 136.red-213-96-98.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses=22?= Date: Mon, 24 Apr 2006 09:03:53 +0200 Lines: 19 Message-ID: <444C7859.1000407@gmail.com> References: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 136.red-213-96-98.staticip.rima-tde.net User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.799 X-Spam-Level: Subject: [Banshee-List] Re: Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 07:04:20 -0000 Lukas Lipka escribió: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. Hello. I am very interested in this patch, which besides I think is a pre-requisite for the ipod-playlists patch (am I right?), so, any chances for it to be commited? Thanks in advance. Andrew -- From ruben@Lambda1.be Thu Apr 27 08:06:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E93363B2034 for ; Thu, 27 Apr 2006 08:06:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00930-02 for ; Thu, 27 Apr 2006 08:06:44 -0400 (EDT) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by menubar.gnome.org (Postfix) with ESMTP id C45F93B2015 for ; Thu, 27 Apr 2006 08:06:43 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 84BC14D203 for ; Thu, 27 Apr 2006 14:06:42 +0200 (CEST) Received: from smtp03.kuleuven.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id DEE104CF6D for ; Thu, 27 Apr 2006 14:06:41 +0200 (CEST) Received: from localhost.localdomain (10-91-21-117.kotnet.org [10.91.21.117]) by smtp03.kuleuven.be (Postfix) with ESMTP id 014E733278C for ; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id B23C6460149; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Subject: Re: [Banshee-List] Child Source patch v0.8 From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> References: <1145189078.6791.1.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 27 Apr 2006 14:06:40 +0200 Message-Id: <1146139600.4260.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by KULeuven Antivirus Cluster X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 12:06:46 -0000 On Sun, 2006-04-16 at 14:04 +0200, Lukas Lipka wrote: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. I'm not sure if this is known, but doing "Music -> New Playlist" with no other playlists around seems to position them wrongly. I'm not sure if I'm using the latest patch though. Kind Regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Thu Apr 27 14:13:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBEF33B0378 for ; Thu, 27 Apr 2006 14:13:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21923-06 for ; Thu, 27 Apr 2006 14:12:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 8A70C3B21B3 for ; Thu, 27 Apr 2006 14:12:51 -0400 (EDT) Received: (qmail 9173 invoked by uid 503); 27 Apr 2006 18:12:57 -0000 Received: (QMFILT: 1.0); 27 Apr 2006 18:12:57 -0000 Received: from b6.ovh.net (HELO mail46.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 27 Apr 2006 18:12:57 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:35 -0000 Received: from mail46.ha.ovh.net (10.0.50.46) by mail46.ha.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from adsl-d140.87-197-209.telecom.sk (HELO ?192.168.0.23?) (87.197.209.140) by ns0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-aPt7HjTvvfCZ8ZipkXG3" Date: Thu, 27 Apr 2006 20:12:28 +0200 Message-Id: <1146161548.8120.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.209.140 (adsl-d140.87-197-209.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.089, BAYES_00=-2.599] X-Spam-Score: -2.51 X-Spam-Level: Subject: [Banshee-List] Child sources patch v0.10 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:13:02 -0000 --=-aPt7HjTvvfCZ8ZipkXG3 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, attached are patches to get child source support working in Banshee. The minimode patch also fixes the random and shuffle play buttons bug. Lukas --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-childsource-0.10.patch Content-Type: text/x-patch; name=banshee-childsource-0.10.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 27 Apr 2006 18:06:16 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 27 Apr 2006 18:06:17 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource(args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource(args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,96 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + UpdateView (); + }; + + source.ChildSourceRemoved += delegate(SourceEventArgs e) { + RemoveSource(e.Source); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + + private void RefreshList() + { + store.Clear(); + foreach(Source source in SourceManager.Sources) { + AddSource (source); + } + } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,14 +239,6 @@ source.Rename(text); } - private void RefreshList() - { - store.Clear(); - foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); - } - } - private void OnCursorChanged(object o, EventArgs args) { if(currentTimeout < 0) { @@ -188,62 +269,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +350,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -281,24 +379,22 @@ public Source GetSource(TreePath path) { TreeIter iter; - + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +585,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 27 Apr 2006 18:06:17 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 27 Apr 2006 18:06:21 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 27 Apr 2006 18:06:21 -0000 @@ -41,6 +41,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 27 Apr 2006 18:06:29 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 27 Apr 2006 18:06:29 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 27 Apr 2006 18:06:37 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 27 Apr 2006 18:06:37 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-19 11:48:42.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-25 20:26:01.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-minimode-0.1.patch Content-Type: text/x-patch; name=banshee-minimode-0.1.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: src/MiniModeWindow.cs =================================================================== --- src/MiniModeWindow.cs (revision 84) +++ src/MiniModeWindow.cs (working copy) @@ -113,6 +113,7 @@ Globals.ActionManager["ShuffleAction"] as ToggleAction); shuffle_toggle_button.Relief = ReliefStyle.None; shuffle_toggle_button.ShowLabel = false; + shuffle_toggle_button.ActiveStateIndex = (int)Globals.Configuration.Get(GConfKeys.PlaylistRepeat); shuffle_toggle_button.ShowAll(); MultiStateToggleButton repeat_toggle_button = new MultiStateToggleButton(); @@ -124,8 +125,8 @@ Globals.ActionManager["RepeatSingleAction"] as ToggleAction); repeat_toggle_button.Relief = ReliefStyle.None; repeat_toggle_button.ShowLabel = false; + repeat_toggle_button.ActiveStateIndex = (bool)Globals.Configuration.Get(GConfKeys.PlaylistShuffle) ? 1 : 0; repeat_toggle_button.ShowAll(); - LowerButtonsBox.PackEnd(repeat_toggle_button, false, false, 0); LowerButtonsBox.PackEnd(shuffle_toggle_button, false, false, 0); Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -25,6 +25,9 @@ Clear(); foreach(Source source in SourceManager.Sources) { SetSource(Append(), source); + + foreach (ChildSource child in source.Children) + SetSource (Append(), child); } // Be prepared for other sources @@ -101,10 +104,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-aPt7HjTvvfCZ8ZipkXG3-- From trick@vanstaveren.us Thu Apr 27 14:41:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 235B13B022E for ; Thu, 27 Apr 2006 14:41:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25164-03 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id CFD5B3B03A5 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZBQy-0003nJ-ED; Thu, 27 Apr 2006 11:41:48 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Thu, 27 Apr 2006 14:41:48 -0400 Message-ID: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Date: Thu, 27 Apr 2006 14:41:48 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Pat Rondon Subject: Re: [Banshee-List] Shuffle playlist plugin References: <1145465862.563.36.camel@localhost.localdomain> In-Reply-To: <1145465862.563.36.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.588 tagged_above=-999 required=2 tests=[AWL=0.011, BAYES_00=-2.599] X-Spam-Score: -2.588 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:41:55 -0000 Pat, This looks cool - it kinda works for me but it doesn't remove tracks from the playlist after played. It also double-adds when I remove a single track. The code looks good...maybe the PlayerEngineCore has changed in my cvs version and that's why the automatic removal doesn't work. I haven't looked. The code looks good tho (this is how I'd implement it if I were you). I've actually been thinking lately about writing something similar to this. What I'd like to do (and I think other plugins for itunes or amarok probably do this) is set it up so it's not actually pseudo random, but "intelligent random" so that it will pick music that is "similar" to it (eg by maybe picking two or three songs by a single artist and then finding the next by picking songs from the same genre. It could get really advanced and choose tracks based on a service like last.fm or something (but that might be a bit much for now!). Maybe I'll hack at this sometime and see if I can hack up something on the intelligent random stuff I talked about. I'll also see if I can figure out the problem with not removing tracks... Good stuff! LMK if you make any more changes, I'd be curious to see :) -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from pat@thepatsite.com --------- Date: Wed, 19 Apr 2006 12:57:42 -0400 From: Pat Rondon Reply-To: banshee-list@gnome.org Subject: [Banshee-List] Shuffle playlist plugin To: banshee-list@gnome.org > I've put together a shuffle playlist plugin that works like the dynamic > mode in Amarok or (I assume) party shuffle in iTunes - it maintains a > playlist of 20 randomly-chosen songs, automatically removing the ones > that have been played. It may be a little hackish. > > Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 > > - Pat > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from pat@thepatsite.com ----- From trick@vanstaveren.us Fri Apr 28 03:33:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49A103B237A for ; Fri, 28 Apr 2006 03:33:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06229-08 for ; Fri, 28 Apr 2006 03:33:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 553963B2388 for ; Fri, 28 Apr 2006 03:33:00 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZNTH-0004BG-D6 for banshee-list@gnome.org; Fri, 28 Apr 2006 00:32:59 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 03:32:59 -0400 Message-ID: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> Date: Fri, 28 Apr 2006 03:32:59 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 07:33:04 -0000 Howdy folks, Everyone likes screenshots, so I'll start with the screenie: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png I was reading the feature requests page, and I've noticed that as far back as I can remember, someone requested that banshee show artist information from wikipedia. At first I thought it was silly. Banshee is a music player, not a web browser! Well, needless to say, I've found myself such an addict to wikipedia for artist information, that earlier today I thought it'd be a neat idea to implement. Thus, the banshee-wikipedia-plugin was born. It's simple right now (and I plan to keep it as simple as possible). It's a Gecko widget dropped right below the library view. (Gecko == firefoz/mozilla rendering engine). It has a fixed size (for now). It can be hidden/shown from the View menu (CTRL+I as well - is this an logical shortcut mapping?). It automatically queries wikipedia (english) for a page with the same title as the artist that you're playing. Changes with the track you're playing. I'm very tired. This is accurate probably about 80% of the time...you'll usually find a disambiguation page wherever it's lacking. I'm also telling it to use the mediawiki "simple" skin to make it load faster. In the future I'll figure out how to remove the nav bar on the left as it's pretty much useless (if you want to browse, use a web browser). Note the debug output in the console - it shows the actual URL you're looking at. A few hours of hacking, and here you have it: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshee SVN at some point so you can track progress (abock - do you mind me adding this?) MAJOR credit goes out to Fredrik Hedberg - more than half the code was based on the banshee-recommendation-plugin. I'll rewrite some of it in the future to fit my situation, but it provided a GREAT starting point for me as I barely had to think twice about how to create the frame, enable/disable it with a toggle menu item, etc. Thanks Fredrik! Enjoy! Reply to the list or snag me on IRC (nick: trick) Patrick -- Patrick "Trick" van Staveren Western Michigan University http://www.trick.vanstaveren.us/ From pat@thepatsite.com Fri Apr 28 08:40:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98A163B05AE for ; Fri, 28 Apr 2006 08:40:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23505-03 for ; Fri, 28 Apr 2006 08:40:12 -0400 (EDT) Received: from f05n03.cac.psu.edu (f05s03.cac.psu.edu [128.118.141.46]) by menubar.gnome.org (Postfix) with ESMTP id CB88E3B0463 for ; Fri, 28 Apr 2006 08:40:11 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f05n03.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3SCe4Lk059298; Fri, 28 Apr 2006 08:40:08 -0400 Subject: Re: [Banshee-List] Shuffle playlist plugin From: Pat Rondon To: Trick van Staveren In-Reply-To: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> References: <1145465862.563.36.camel@localhost.localdomain> <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Content-Type: text/plain Date: Fri, 28 Apr 2006 08:39:16 -0400 Message-Id: <1146227956.8845.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 12:40:16 -0000 On Thu, 2006-04-27 at 14:41 -0400, Trick van Staveren wrote: > This looks cool - it kinda works for me but it doesn't remove tracks > from the playlist > after played. It also double-adds when I remove a single track. The > code looks > good...maybe the PlayerEngineCore has changed in my cvs version and > that's why the > automatic removal doesn't work. I haven't tested much against CVS, but I had at least the first problem the last time I did. > I've actually been thinking lately about writing something similar to > this. What I'd > like to do (and I think other plugins for itunes or amarok probably do > this) is set it > up so it's not actually pseudo random, but "intelligent random" so that > it will pick > music that is "similar" to it (eg by maybe picking two or three songs > by a single > artist and then finding the next by picking songs from the same genre. Yeah, I think this is what Amarok does. What I really wanted to do, and just didn't get around to yet, was use the random track function that Banshee already uses for shuffle mode. That function is already weighted in favor of songs in the same genre and, in the future, it's possible it could be enhanced in other ways that would make it really convenient to use that function instead of duplicating it (e.g. user preferences about the randomization style, album shuffle, etc.). > Good stuff! LMK if you make any more changes, I'd be curious to see :) Just some code cleanups and other boring stuff so far. I'll probably hack on getting it to work with CVS this weekend now that classes are over. I'm glad you liked it - BTW, the Wikipedia plugin is really neat. - Pat From jstembridge@gmail.com Fri Apr 28 14:35:05 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 922483B1658 for ; Fri, 28 Apr 2006 14:35:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09510-03 for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id 17BED3B06DA for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so186392wra for ; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JvmoRFyztPFDwwlHaG52xEopONqBDaI+/aNPIAaqdDb5s8BRMZ9OAUhzHlidKPVMTKoqHEmlQf1louXlOMeyrvVPTt/V0VmooGkCy9PzMj8Eag09xIG0xuMDVS8McuSHKyRBVj2UYXpuO0WGfqY6EbSQAA5oVajMAOLmq80C7O0= Received: by 10.54.101.18 with SMTP id y18mr1088909wrb; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Message-ID: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> Date: Fri, 28 Apr 2006 19:34:58 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4491_30228987.1146249298310" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.512 tagged_above=-999 required=2 tests=[AWL=0.088, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.512 X-Spam-Level: Subject: [Banshee-List] Updated mass storage patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:35:05 -0000 ------=_Part_4491_30228987.1146249298310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Couple more minor changes. I've added to check to see if Gnome VFS has already been initialized before initializing it, and (more importantly) tried to prevent the mass storage plugin accepting non-generic devices like iPods. Cheers, James. ------=_Part_4491_30228987.1146249298310 Content-Type: text/x-patch; name=mass-storage4.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkv7vv0 Content-Disposition: attachment; filename="mass-storage4.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 18:29:04 -0000 @@ -1,3 +1,33 @@ +2006-04-28 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; check that the device is a generic + audio player and not something with a defined access method such as + an iPod; don't initialize Gnome VFS if it's already been initialized + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 18:29:05 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 18:29:06 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 18:29:06 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize (); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,13 +65,12 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || + player_device ["portable_audio_player.type"] != "generic" || !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } @@ -78,31 +79,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +159,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +178,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +253,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +279,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +302,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 18:29:07 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_4491_30228987.1146249298310-- From ghaefbgtk@gmail.com Fri Apr 28 14:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54E43B20F2 for ; Fri, 28 Apr 2006 14:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09787-05 for ; Fri, 28 Apr 2006 14:42:15 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id B77073B24EB for ; Fri, 28 Apr 2006 14:42:11 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i28so1982972nzi for ; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKNt1RA4UfdLauKLf6SESV9jd9wxjBNRM1GfaLtJR6osLxbMa5rza3BYH8TaadzK8q4gb6Q7/3nQlsiFUfguAVDbr9AVmCgJ+6HU5lkMFBP/OE5Dq0RsOIcARm8T7bsN9upNmiClBP54impKngAFd7qBYyY57b0I2F0EuzkDqZM= Received: by 10.36.43.6 with SMTP id q6mr804831nzq; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Received: by 10.36.135.1 with HTTP; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 20:42:11 +0200 From: "Nil Gradisnik" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:42:29 -0000 Looking good. I'm getting an error when using this plugin on Banshee 0.10.9 The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck Any suggestions ? On 4/28/06, Trick van Staveren wrote: > Howdy folks, > > Everyone likes screenshots, so I'll start with the screenie: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > > I was reading the feature requests page, and I've noticed that as far bac= k as I can > remember, someone requested that banshee show artist information from wik= ipedia. At > first I thought it was silly. Banshee is a music player, not a web brows= er! Well, > needless to say, I've found myself such an addict to wikipedia for artist= information, > that earlier today I thought it'd be a neat idea to implement. > > Thus, the banshee-wikipedia-plugin was born. > It's simple right now (and I plan to keep it as simple as possible). > It's a Gecko widget dropped right below the library view. (Gecko =3D=3D f= irefoz/mozilla > rendering engine). > It has a fixed size (for now). > It can be hidden/shown from the View menu (CTRL+I as well - is this an lo= gical shortcut > mapping?). > It automatically queries wikipedia (english) for a page with the same tit= le as the > artist that you're playing. Changes with the track you're playing. > I'm very tired. > This is accurate probably about 80% of the time...you'll usually find a d= isambiguation > page wherever it's lacking. > I'm also telling it to use the mediawiki "simple" skin to make it load fa= ster. > In the future I'll figure out how to remove the nav bar on the left as it= 's pretty much > useless (if you want to browse, use a web browser). > Note the debug output in the console - it shows the actual URL you're loo= king at. > > A few hours of hacking, and here you have it: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > > Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshe= e SVN at some > point so you can track progress (abock - do you mind me adding this?) > > MAJOR credit goes out to Fredrik Hedberg - more than half the code was ba= sed on the > banshee-recommendation-plugin. I'll rewrite some of it in the future to = fit my > situation, but it provided a GREAT starting point for me as I barely had = to think > twice about how to create the frame, enable/disable it with a toggle menu= item, etc. > Thanks Fredrik! > > Enjoy! Reply to the list or snag me on IRC (nick: trick) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From gabriel.burt@gmail.com Fri Apr 28 14:51:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F4633B18C8 for ; Fri, 28 Apr 2006 14:51:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10234-04 for ; Fri, 28 Apr 2006 14:51:24 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id D7D353B186D for ; Fri, 28 Apr 2006 14:51:23 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2394914pyu for ; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ip5uVHFHFKXlfT9XbGzeQ/F8w1zEb5d6ULSax4AtIptiWWuI8xZl+6Qw3q9iB2wHr1WOJ+/DAikPCFs/blI3Ot6+DQ1FUWcnw2NGeUi4gX8JfX8YuugFQHuB/KKp7jJs2WE8qfGaG3KvaDU5Q7Ot7tyfrhsivpkC7v+q3GrrhXk= Received: by 10.35.14.1 with SMTP id r1mr1960767pyi; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Fri, 28 Apr 2006 11:51:22 -0700 (PDT) Message-ID: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Date: Fri, 28 Apr 2006 13:51:23 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.154 tagged_above=-999 required=2 tests=[AWL=0.222, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.154 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:51:25 -0000 SGkgSmFtZXMsCgpPbiA0LzI4LzA2LCBKYW1lcyBTdGVtYnJpZGdlIDxqc3RlbWJyaWRnZUBnbWFp bC5jb20+IHdyb3RlOgo+IENvdXBsZSBtb3JlIG1pbm9yIGNoYW5nZXMuIEkndmUgYWRkZWQgdG8g Y2hlY2sgdG8gc2VlIGlmIEdub21lIFZGUyBoYXMKPiBhbHJlYWR5IGJlZW4gaW5pdGlhbGl6ZWQg YmVmb3JlIGluaXRpYWxpemluZyBpdCwgYW5kIChtb3JlCgpJJ20gbm90IHN1cmUgaWYgdGhlcmUn cyBhIHBlbmFsdHkgYXQgYWxsLCBidXQgdGhlIGRvY3Mgc2F5IGNhbGxpbmcKSW5pdGlhbGl6ZSBt dWx0aXBsZSB0aW1lcyBkb2Vzbid0IG1hdHRlciAtIGJ1dCB0aGlzIGlzIHRpbnkgcG9pbnQgbm90 CndvcnRoIHRhbGtpbmcgYWJvdXQuIDopCgo+IGltcG9ydGFudGx5KSB0cmllZCB0byBwcmV2ZW50 IHRoZSBtYXNzIHN0b3JhZ2UgcGx1Z2luIGFjY2VwdGluZwo+IG5vbi1nZW5lcmljIGRldmljZXMg bGlrZSBpUG9kcy4KCldlcmUgeW91IGhhdmluZyBhIHByb2JsZW0gd2l0aCBpdCB1c2luZyB0aGUg bWFzcyBzdG9yYWdlIHR5cGUgZm9yCmhhbmRsaW5nIGFuIGlQb2Q/ICBUaGF0IHNob3VsZCBub3Qg aGFwcGVuIGJlY2F1c2UgdGhlIG1hc3Mgc3RvcmFnZQpzdXBwb3J0IGlzIGxpc3RlZCBhcyBhIGdl bmVyaWMgRGFwVHlwZSwgYW5kIGRldmljZXMgYXJlIGNoZWNrZWQKYWdhaW5zdCBub24tZ2VuZXJp YyB0eXBlcyBmaXJzdC4KCkFsc28sIHdoZXJlIGRpZCB5b3UgZ2V0IHRoZSBwb3J0YWJsZV9hdWRp b19wbGF5ZXIudHlwZSBoYWwga2V5IGZyb20/IApJIGRvbid0IHNlZSBpdCBpbiB0aGUgc3BlYyBb MV0uCgpBbnkgd2F5LCB0aGFua3MgZm9yIHJldmlld2luZyB0aGUgY29kZSBhbmQgZm9yIHRoZSBo ZWxwIQoKR2FicmllbAoKWzFdIGh0dHA6Ly93ZWJjdnMuZnJlZWRlc2t0b3Aub3JnLypjaGVja291 dCovaGFsL2hhbC9kb2Mvc3BlYy9oYWwtc3BlYy5odG1sI2RldmljZS1wcm9wZXJ0aWVzLXBvcnRh YmxlX2F1ZGlvX3BsYXllcgo= From jstembridge@gmail.com Fri Apr 28 14:59:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F57B3B1986 for ; Fri, 28 Apr 2006 14:59:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10485-09 for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 2EACA3B222E for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so191504wra for ; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lg2hqVRaE1K092ouZ1RP/49L8tgTuDOPpIVk7vN3uXGfMYTHWq1khg+5cIpH+9v+QNhXSxElRanJx6GnIzWP1UqH4SHHr0/d0dzgwld0j7AEyvGUxKZHSb/N0C/M0mbkAow3DpZFFerC7qiVHvLC1N3dtihOPD3I/vPb9BR0cc0= Received: by 10.54.72.8 with SMTP id u8mr6840888wra; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Message-ID: <18bc366d0604281159u42bc56cdu76e21364fee5e54c@mail.gmail.com> Date: Fri, 28 Apr 2006 19:59:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.083, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:59:04 -0000 Hi Gabriel, On 4/28/06, Gabriel Burt wrote: > I'm not sure if there's a penalty at all, but the docs say calling > Initialize multiple times doesn't matter - but this is tiny point not > worth talking about. :) OK, I spotted it somewhere else in passing and thought it might be a good i= dea. > Were you having a problem with it using the mass storage type for > handling an iPod? That should not happen because the mass storage > support is listed as a generic DapType, and devices are checked > against non-generic types first. Ah OK, I hadn't caught that subtlety. I just noticed the type hal key and thought we should probably check it. > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. Dapper fdi files, e.g. portable_audio_player portable_audio_playe= r storage ipod ... Cheers, James. From trick@vanstaveren.us Fri Apr 28 15:36:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57BA03B09D1 for ; Fri, 28 Apr 2006 15:36:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12212-03 for ; Fri, 28 Apr 2006 15:36:39 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id DB6373B07B9 for ; Fri, 28 Apr 2006 15:36:38 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZYlZ-00085y-VM for banshee-list@gnome.org; Fri, 28 Apr 2006 12:36:37 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 15:36:37 -0400 Message-ID: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> Date: Fri, 28 Apr 2006 15:36:37 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.009, BAYES_00=-2.599] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:36:46 -0000 Interesting. It looks almost like you have the gecko-sharp libraries but not the underlying mozilla libraries (or your gecko-sharp library is pointing to the wrong location). Maybe I need to do something in my package to point to the proper location of a mozilla library. I don't know. I looked on my system for the library, and I found that it's libgtkembedmoz.so: trick@mc /usr/lib $ find | grep gtkembedmoz.so ./mozilla/libgtkembedmoz.so ./gecko-sdk/lib/libgtkembedmoz.so ./mozilla-firefox/libgtkembedmoz.so From the looks of it, your installation of gecko-sharp just doesn't have the library reference set up (properly). Maybe I need to include gecko-sharp.dll.config in the plugin install. trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat gecko-sharp.dll.config If I were you, I'd drop a copy of your gecko-sharp.dll.config into ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) LMK if you make any progress! Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from ghaefbgtk@gmail.com --------- Date: Fri, 28 Apr 2006 20:42:11 +0200 From: Nil Gradisnik Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Looking good. > > I'm getting an error when using this plugin on Banshee 0.10.9 > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck > > Any suggestions ? > > On 4/28/06, Trick van Staveren wrote: >> Howdy folks, >> >> Everyone likes screenshots, so I'll start with the screenie: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> I was reading the feature requests page, and I've noticed that as >> far back as I can >> remember, someone requested that banshee show artist information >> from wikipedia. At >> first I thought it was silly. Banshee is a music player, not a web >> browser! Well, >> needless to say, I've found myself such an addict to wikipedia for >> artist information, >> that earlier today I thought it'd be a neat idea to implement. >> >> Thus, the banshee-wikipedia-plugin was born. >> It's simple right now (and I plan to keep it as simple as possible). >> It's a Gecko widget dropped right below the library view. (Gecko == >> firefoz/mozilla >> rendering engine). >> It has a fixed size (for now). >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> an logical shortcut >> mapping?). >> It automatically queries wikipedia (english) for a page with the >> same title as the >> artist that you're playing. Changes with the track you're playing. >> I'm very tired. >> This is accurate probably about 80% of the time...you'll usually >> find a disambiguation >> page wherever it's lacking. >> I'm also telling it to use the mediawiki "simple" skin to make it >> load faster. >> In the future I'll figure out how to remove the nav bar on the left >> as it's pretty much >> useless (if you want to browse, use a web browser). >> Note the debug output in the console - it shows the actual URL >> you're looking at. >> >> A few hours of hacking, and here you have it: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> Banshee SVN at some >> point so you can track progress (abock - do you mind me adding this?) >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> was based on the >> banshee-recommendation-plugin. I'll rewrite some of it in the >> future to fit my >> situation, but it provided a GREAT starting point for me as I barely >> had to think >> twice about how to create the frame, enable/disable it with a toggle >> menu item, etc. >> Thanks Fredrik! >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> http://www.trick.vanstaveren.us/ >> >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from ghaefbgtk@gmail.com ----- From abockover@novell.com Fri Apr 28 15:42:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCF6D3B16A7 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12409-06 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id DB8733B0920 for ; Fri, 28 Apr 2006 15:42:55 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3SJgsfg010601 for ; Fri, 28 Apr 2006 15:42:54 -0400 (EDT) Subject: Re: [Banshee-List] Updated mass storage patch From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Content-Type: text/plain Date: Fri, 28 Apr 2006 15:39:47 -0400 Message-Id: <1146253187.2629.29.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.475 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.475 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:42:56 -0000 On Fri, 2006-04-28 at 13:51 -0500, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. I think portable_audio_player.type is now portable_audio_player.access_method. Either way, we sort of have an issue here. I guess the Mass Storage DAP should be forward-thinking and work only with the new spec (HEAD). But currently distros are shipping the old spec. NJB and iPod support in Banshee is based off keys from the old spec. These need to be forward-adapted for the new spec. --Aaron > Any way, thanks for reviewing the code and for the help! > > Gabriel > > [1] http://webcvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-spec.html#device-properties-portable_audio_player > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From m.j.hutchinson@gmail.com Fri Apr 28 16:03:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB33B158C for ; Fri, 28 Apr 2006 16:03:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13216-06 for ; Fri, 28 Apr 2006 16:03:43 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id AD23C3B04A8 for ; Fri, 28 Apr 2006 16:03:42 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so215777nfc for ; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bm1zIi0HyHPZNr3FQDVyf8fJWHBpYhLp/RktRZFjXhMtLlllKik6U/jThKxgLi7+MjIgYsghgt2TxRFykK5HB+YjvLNpPGG54tP3cX0vrtb5mPBG8ttJy1sNoA9Y+Aaj3dA/dHp94jZg1VPv4+VgTaFdi6eikbtjvcteg/pC/fQ= Received: by 10.48.12.19 with SMTP id 19mr6209526nfl; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Received: by 10.49.40.1 with HTTP; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 21:03:41 +0100 From: "Michael Hutchinson" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.483 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.483 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:03:44 -0000 On 4/28/06, Trick van Staveren wrote: > Interesting. It looks almost like you have the gecko-sharp libraries > but not the > underlying mozilla libraries (or your gecko-sharp library is pointing > to the wrong > location). Maybe I need to do something in my package to point to the > proper location > of a mozilla library. I don't know. Yes, this is something you have to do in your package (though whether you should have to do it is another question...) The Mozilla libraries are often not in the library loader's path, for example in Debian and Ubuntu. This is because of the way they are versioned. Mono projects that use Gecko# often have a wrapper script that runs something like $LD_LIBRARY_PATH:/usr/lib/mozilla /path/to/actual/program.exe You can see an example of this at http://svn.myrealbox.com/viewcvs/trunk/aspeditor/script.in?view=3Dmarkup Note that it detects the mozilla path in the configure script. MonoDevelop has a more robust (and more complicated) method: http://svn.myrealbox.com/viewcvs/trunk/monodevelop/monodevelop.in?view=3Dma= rkup Michael From jstembridge@gmail.com Fri Apr 28 16:10:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 354A73B158C for ; Fri, 28 Apr 2006 16:10:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13907-05 for ; Fri, 28 Apr 2006 16:10:37 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.235]) by menubar.gnome.org (Postfix) with ESMTP id 5877D3B17E0 for ; Fri, 28 Apr 2006 16:10:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so205719wra for ; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eksCIMim9SOcTZp+kQMRtqJhd5zSSmi9qLAqUSLyKvWwHYm+jpvlBH/XYV5e56uFhIveocwHIKc/RlIZU0Kscl6yegwEf2Ly3EzJYQgfRSZHXr9OhFpTW9X8SkN2geRdVwSEkbawlucv1TYSnzEc2a68QuJzcAKFPuFEQNKh94U= Received: by 10.54.112.16 with SMTP id k16mr2303711wrc; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Message-ID: <18bc366d0604281310w26cd92b9q3283aa223461f0f3@mail.gmail.com> Date: Fri, 28 Apr 2006 21:10:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5479_24399094.1146255032170" References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[AWL=0.079, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.521 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:10:44 -0000 ------=_Part_5479_24399094.1146255032170 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/28/06, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. OK, I've dropped the check as it doesn't seem necessary due to the priority given to non-generic plugins. The attached patch also adds support for players not recognised by hal at all, following the method used by rhythmbox of putting a file .is_audio_player in the root of the device. This change monkeys around with the device loading at startup, so I may well have inadvertently broken iPod/NJB support, but my best guess is that I haven't :-) Cheers, James. ------=_Part_5479_24399094.1146255032170 Content-Type: text/x-patch; name=mass-storage5.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkymw86 Content-Disposition: attachment; filename="mass-storage5.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 20:04:43 -0000 @@ -1,3 +1,37 @@ +2006-04-28 James Stembridge + + * src/Banshee.Base/Dap/DapCore.cs: Include all volumes when performing + initial scan for DAP devices, not just those that are children of + devices tagged by hal with portable_audio_player + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; don't initialize Gnome VFS if it's + already been initialized; accept devices with a file .is_audio_player + in the root + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 20:04:44 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 20:04:45 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Base/Dap/DapCore.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/DapCore.cs,v retrieving revision 1.11 diff -u -r1.11 DapCore.cs --- src/Banshee.Base/Dap/DapCore.cs 3 Mar 2006 07:46:54 -0000 1.11 +++ src/Banshee.Base/Dap/DapCore.cs 28 Apr 2006 20:04:45 -0000 @@ -149,23 +149,17 @@ private static void BuildDeviceTable() { + // All volume devices, should cover all storage based players foreach(Device device in Device.FindByStringMatch(HalCore.Context, + "info.category", "volume")) { + AddDevice(device); + } + + // None storage based players + foreach(Device device in Device.FindByStringMatch(HalCore.Context, "info.category", "portable_audio_player")) { - // Find the actual storage device that is mountable; - // this should probably just be possible by accessing - // portable_audio_player.storage_device, but for me - // as of HAL 0.5.6, this property just points to its own UDI - if(device["portable_audio_player.access_method"] == "storage" && - !device.GetPropertyBool("block.is_volume")) { - foreach(Device storage_device in Hal.Device.FindByStringMatch(device.Context, - "info.parent", device.Udi)) { - if(AddDevice(storage_device)) { - break; - } - } - } else { + if(device["portable_audio_player.access_method"] != "storage") AddDevice(device); - } } } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 20:04:46 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize(); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,46 +65,60 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; - } - - if (!player_device.PropertyExists ("portable_audio_player.access_method") || - player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || - !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } - if(!volume_device.PropertyExists ("volume.is_mounted") || - !volume_device.GetPropertyBool("volume.is_mounted")) + if (!volume_device.PropertyExists("block.device")) + return InitializeResult.Invalid; + + if (!volume_device.PropertyExists ("volume.is_mounted") || + !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } - } - - if (volume == null) + // Detect player via HAL property or presence of .is_audo_player in root + if (player_device["portable_audio_player.access_method"] != "storage" && + !File.Exists(Path.Combine(MountPoint, ".is_audio_player"))) { return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; + } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; + } base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +161,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +180,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +255,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +281,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +304,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 20:04:46 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_5479_24399094.1146255032170-- From trick@vanstaveren.us Sat Apr 29 14:15:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DEA4C3B0187 for ; Sat, 29 Apr 2006 14:15:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07090-06 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 909733B0380 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZtyw-0004Ar-B0; Sat, 29 Apr 2006 11:15:50 -0700 Received: from 24-247-125-4.dhcp.klmz.mi.charter.com (24-247-125-4.dhcp.klmz.mi.charter.com [24.247.125.4]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 29 Apr 2006 14:15:50 -0400 Message-ID: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> Date: Sat, 29 Apr 2006 14:15:50 -0400 From: Trick van Staveren To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> In-Reply-To: <1146319138.6018.4.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 24.247.125.4 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 18:15:56 -0000 Excellent! This is what OSS is all about :) Patches are more than just welcome - they're encouraged. If you've got a better way of doing this, don't hesitate to contribute :) I haven't changed it much since 0.0.1, other than I've been experimenting with using google searches of wikipedia to better find the right pages - for instance, when I play a song by Kansas, I get info about the state. Searching google for 'kansas band' returns only results with both words in it, and I use the auto-redirect to push it to wikipedia. It seems to return better results (about 95% of the time I get the correct page, versus right now probably only 75%). Aside that, patch away my friend! I will be putting this in the banshee SVN or my personal SVN (which I'm setting up this weekend) and we can work together better :) I look forward to it! -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from indecent@picle.org --------- Date: Sat, 29 Apr 2006 15:58:58 +0200 From: indecent Reply-To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin To: trick@vanstaveren.us > Hello, > My Name is David Schneider, I#m a cs student from Germany. > Some time ago i started writing a similar plugin for muine, but for > differtent reasons i never finished it. I had used a x-path based > aproach to parse the wikipedia pages. So if you don't mind i'd love to > contribute to the banshee-wikipedia plugin. > > David > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> Interesting. It looks almost like you have the gecko-sharp libraries >> but not the >> underlying mozilla libraries (or your gecko-sharp library is pointing >> to the wrong >> location). Maybe I need to do something in my package to point to the >> proper location >> of a mozilla library. I don't know. >> I looked on my system for the library, and I found that it's >> libgtkembedmoz.so: >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> ./mozilla/libgtkembedmoz.so >> ./gecko-sdk/lib/libgtkembedmoz.so >> ./mozilla-firefox/libgtkembedmoz.so >> >> From the looks of it, your installation of gecko-sharp just doesn't >> have the library >> reference set up (properly). Maybe I need to include >> gecko-sharp.dll.config in the >> plugin install. >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) >> >> LMK if you make any progress! >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> From: Nil Gradisnik >> Reply-To: banshee-list@gnome.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: banshee-list@gnome.org >> >> >> > Looking good. >> > >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck >> > >> > Any suggestions ? >> > >> > On 4/28/06, Trick van Staveren wrote: >> >> Howdy folks, >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> far back as I can >> >> remember, someone requested that banshee show artist information >> >> from wikipedia. At >> >> first I thought it was silly. Banshee is a music player, not a web >> >> browser! Well, >> >> needless to say, I've found myself such an addict to wikipedia for >> >> artist information, >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> firefoz/mozilla >> >> rendering engine). >> >> It has a fixed size (for now). >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> an logical shortcut >> >> mapping?). >> >> It automatically queries wikipedia (english) for a page with the >> >> same title as the >> >> artist that you're playing. Changes with the track you're playing. >> >> I'm very tired. >> >> This is accurate probably about 80% of the time...you'll usually >> >> find a disambiguation >> >> page wherever it's lacking. >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> load faster. >> >> In the future I'll figure out how to remove the nav bar on the left >> >> as it's pretty much >> >> useless (if you want to browse, use a web browser). >> >> Note the debug output in the console - it shows the actual URL >> >> you're looking at. >> >> >> >> A few hours of hacking, and here you have it: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> Banshee SVN at some >> >> point so you can track progress (abock - do you mind me adding this?) >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> was based on the >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> future to fit my >> >> situation, but it provided a GREAT starting point for me as I barely >> >> had to think >> >> twice about how to create the frame, enable/disable it with a toggle >> >> menu item, etc. >> >> Thanks Fredrik! >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > _______________________________________________ >> > Banshee-list mailing list >> > Banshee-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> > >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > > ----- End message from indecent@picle.org ----- From jasl8r@gmail.com Sat Apr 29 17:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DAAF3B02DF for ; Sat, 29 Apr 2006 17:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15587-06 for ; Sat, 29 Apr 2006 17:45:29 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 10B5D3B0255 for ; Sat, 29 Apr 2006 17:45:28 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so367226wra for ; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DlCKFLg9qkAWjVHgBqB9S48InVj3sHHUNgcdm1AlYDb9lFQ6nnFFfO7EQAka/b0x00NxGc4fFmVGIMfwsFDOTEYXxIZ0nsvguGirn3/qSBy8bxNrPYkTLivU8OBqNV79ovFBpFjud5n/siKOIga+Pk5zh1E+WOFxvXcIQMsFX5k= Received: by 10.54.91.16 with SMTP id o16mr1256135wrb; Sat, 29 Apr 2006 14:43:58 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) Message-ID: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> Date: Sat, 29 Apr 2006 17:45:28 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14006_24167613.1146347128392" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.028 tagged_above=-999 required=2 tests=[AWL=0.197, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.028 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 21:45:38 -0000 ------=_Part_14006_24167613.1146347128392 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to go to the band specific page with the attached "_(band)" in the url which exists when disambiguation is needed. Then if that page "does not have an article" or whatnot you can go to the page without the attached "_(band)" i= n the url. I don't know if that would be more accurate than google or not. Jeremy On 4/29/06, Trick van Staveren wrote: > > Excellent! This is what OSS is all about :) > > Patches are more than just welcome - they're encouraged. If you've got > a better way of > doing this, don't hesitate to contribute :) > > I haven't changed it much since 0.0.1, other than I've been > experimenting with using > google searches of wikipedia to better find the right pages - for > instance, when I > play a song by Kansas, I get info about the state. Searching google > for 'kansas band' > returns only results with both words in it, and I use the auto-redirect > to push it to > wikipedia. It seems to return better results (about 95% of the time I > get the correct > page, versus right now probably only 75%). Aside that, patch away my > friend! > > I will be putting this in the banshee SVN or my personal SVN (which I'm > setting up this > weekend) and we can work together better :) > > I look forward to it! > > -Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from indecent@picle.org --------- > Date: Sat, 29 Apr 2006 15:58:58 +0200 > From: indecent > Reply-To: indecent@picle.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: trick@vanstaveren.us > > > > Hello, > > My Name is David Schneider, I#m a cs student from Germany. > > Some time ago i started writing a similar plugin for muine, but > for > > differtent reasons i never finished it. I had used a x-path based > > aproach to parse the wikipedia pages. So if you don't mind i'd love to > > contribute to the banshee-wikipedia plugin. > > > > David > > > > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> Interesting. It looks almost like you have the gecko-sharp libraries > >> but not the > >> underlying mozilla libraries (or your gecko-sharp library is pointing > >> to the wrong > >> location). Maybe I need to do something in my package to point to the > >> proper location > >> of a mozilla library. I don't know. > >> I looked on my system for the library, and I found that it's > >> libgtkembedmoz.so: > >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> ./mozilla/libgtkembedmoz.so > >> ./gecko-sdk/lib/libgtkembedmoz.so > >> ./mozilla-firefox/libgtkembedmoz.so > >> > >> From the looks of it, your installation of gecko-sharp just doesn't > >> have the library > >> reference set up (properly). Maybe I need to include > >> gecko-sharp.dll.config in the > >> plugin install. > >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat > >> gecko-sharp.dll.config > >> > >> > >> > >> > >> > >> > >> > >> > >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you > :) > >> > >> LMK if you make any progress! > >> > >> Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from ghaefbgtk@gmail.com --------- > >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> From: Nil Gradisnik > >> Reply-To: banshee-list@gnome.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: banshee-list@gnome.org > >> > >> > >> > Looking good. > >> > > >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > found. > >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > luck > >> > > >> > Any suggestions ? > >> > > >> > On 4/28/06, Trick van Staveren wrote: > >> >> Howdy folks, > >> >> > >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> > >> >> I was reading the feature requests page, and I've noticed that as > >> >> far back as I can > >> >> remember, someone requested that banshee show artist information > >> >> from wikipedia. At > >> >> first I thought it was silly. Banshee is a music player, not a web > >> >> browser! Well, > >> >> needless to say, I've found myself such an addict to wikipedia for > >> >> artist information, > >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> > >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> It's simple right now (and I plan to keep it as simple as possible)= . > >> >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D > >> >> firefoz/mozilla > >> >> rendering engine). > >> >> It has a fixed size (for now). > >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this > >> >> an logical shortcut > >> >> mapping?). > >> >> It automatically queries wikipedia (english) for a page with the > >> >> same title as the > >> >> artist that you're playing. Changes with the track you're playing. > >> >> I'm very tired. > >> >> This is accurate probably about 80% of the time...you'll usually > >> >> find a disambiguation > >> >> page wherever it's lacking. > >> >> I'm also telling it to use the mediawiki "simple" skin to make it > >> >> load faster. > >> >> In the future I'll figure out how to remove the nav bar on the left > >> >> as it's pretty much > >> >> useless (if you want to browse, use a web browser). > >> >> Note the debug output in the console - it shows the actual URL > >> >> you're looking at. > >> >> > >> >> A few hours of hacking, and here you have it: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> > >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in > >> >> Banshee SVN at some > >> >> point so you can track progress (abock - do you mind me adding > this?) > >> >> > >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code > >> >> was based on the > >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> future to fit my > >> >> situation, but it provided a GREAT starting point for me as I barel= y > >> >> had to think > >> >> twice about how to create the frame, enable/disable it with a toggl= e > >> >> menu item, etc. > >> >> Thanks Fredrik! > >> >> > >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > _______________________________________________ > >> > Banshee-list mailing list > >> > Banshee-list@gnome.org > >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > >> > >> > >> ----- End message from ghaefbgtk@gmail.com ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > > > ----- End message from indecent@picle.org ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_14006_24167613.1146347128392 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to = go to the band specific page with the attached "_(band)" in the u= rl which exists when disambiguation is needed.  Then if that page &quo= t;does not have an article" or whatnot you can go to the page without = the attached "_(band)" in the url.  I don't know if that wou= ld be more accurate than google or not.

Jeremy

On 4/29/06, Trick van Staveren <trick@vanstaveren.us> wrote:
Excellent!  This is what OSS is all about :)

Patches are m= ore than just welcome - they're encouraged.  If you've got
a b= etter way of
doing this, don't hesitate to contribute :)

I haven'= t changed it much since=20 0.0.1, other than I've been
experimenting with using
google searches = of wikipedia to better find the right pages - for
instance, when I
pl= ay a song by Kansas, I get info about the state.  Searching googl= e
for 'kansas band'
returns only results with both words in it, and I use the auto-redirect=
to push it to
wikipedia.  It seems to return better result= s (about 95% of the time I
get the correct
page, versus right now pro= bably only 75%).  Aside that, patch away my friend!

I will be putting this in the banshee SVN or my personal SVN (which= I'm
setting up this
weekend) and we can work together better :)
<= br>I look forward to it!

-Patrick

--
Patrick "Trick&q= uot; van Staveren
Western Michigan University
AIM: goofyassmoose
Cell: 269.267.6008=
http://www.trick.vanstaver= en.us/


----- Message from indecent@picle.org ---------
    Date: Sat, 29 A= pr 2006 15:58:58 +0200
    From: indecent <indecent@picle.org>
Reply-To: indecent@picle.org
Subject: Re: [Banshee-List] Wikipedia plugin
   &= nbsp;  To: trick@vanstave= ren.us


> Hello,
> My Name is David Schneider, I#m a= cs student from Germany.
>       Some time ago i started writing a = similar plugin for muine, but for
> differtent reasons i never finish= ed it. I had used a x-path based
> aproach to parse the wikipedia pag= es. So if you don't mind i'd love to
> contribute to the banshee-wikipedia plugin.
>
> David<= br>>
>
> Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Tri= ck van Staveren:
>> Interesting.  It looks almost like y= ou have the gecko-sharp libraries
>> but not the
>> underlying mozilla libraries (or your = gecko-sharp library is pointing
>> to the wrong
>> locati= on).  Maybe I need to do something in my package to point to the<= br>>> proper location
>> of a mozilla library.  I don't know.
>> I l= ooked on my system for the library, and I found that it's
>> libgt= kembedmoz.so:
>> trick@mc /usr/lib $ find | grep gtkembedmoz.so>> ./mozilla/libgtkembedmoz.so
>> ./gecko-sdk/lib/libgtkembedmoz.so
>> ./mozilla-firefo= x/libgtkembedmoz.so
>>
>>  From the looks of it= , your installation of gecko-sharp just doesn't
>> have the librar= y
>> reference set up (properly).  Maybe I need to inclu= de
>> gecko-sharp.dll.config in the
>> plugin install.
&= gt;> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ = cat
>> gecko-sharp.dll.config
>> <configuration>
>>   <dllmap dll=3D"libglib-2.0-0.dll" tar= get=3D"libglib-2.0.so.0"/>
>>   <dllmap = dll=3D"libgobject-2.0-0.dll" target=3D"libgobject-2.0.so.0&q= uot;/>
>>   <dllmap dll=3D" libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>
>>= ;   <dllmap dll=3D"libgtk-win32-2.0-0.dll" target=3D= "libgtk-x11-2.0.so.0"/>
>>   <dllmap dll= =3D"gtkembedmoz.dll " target=3D"libgtkembedmoz.so"/>
>> </configu= ration>
>>
>> If I were you, I'd drop a copy of your g= ecko-sharp.dll.config into
>> ~/.gnome2/banshee/plugins and see wh= at happens!  Might fix it for you :)
>>
>> LMK if you make any progress!
>>
>&= gt; Patrick
>>
>> --
>> Patrick "Trick"= ; van Staveren
>> Western Michigan University
>> AIM: goo= fyassmoose
>> Cell: 269.267.6008
>> http://www.trick.vanstaveren.us/
>>
>><= br>>> ----- Message from ghaef= bgtk@gmail.com ---------
>>     Date: Fri, 28 Apr 2006 2= 0:42:11 +0200
>>     From: Nil Gradisnik <<= a href=3D"mailto:ghaefbgtk@gmail.com">ghaefbgtk@gmail.com>
>&g= t; Reply-To: banshee-list@gnome.org
>> Subject: Re: [Banshee-List] Wikipedi= a plugin
>>       To: banshee-list@gnome.org
>>
>&= gt;
>> > Looking good.
>> >
>> > I'm getting an error when using this plu= gin on Banshee 0.10.9
>> > The exception is thrown by Gecko.Web= Control -> gtkembedmoz.so not found.
>> > I linked the mozil= las=20 libgtkembedmoz.so to /usr/lib/ and still no luck
>> >
>&g= t; > Any suggestions ?
>> >
>> > On 4/28/06, Tri= ck van Staveren <trick@vanstaver= en.us > wrote:
>> >> Howdy folks,
>> >>
&= gt;> >> Everyone likes screenshots, so I'll start with the screeni= e:
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png<= /a>
>> >>
>> >> I was reading the feature req= uests page, and I've noticed that as
>> >> far back as I can
>> >> remember, someone requested that banshee show artist = information
>> >> from wikipedia.  At
>> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> browser!  Well,
>> >> needless to say, I've found myself such an addict to = wikipedia for
>> >> artist information,
>> >>= that earlier today I thought it'd be a neat idea to implement.
>>= >>
>> >> Thus, the banshee-wikipedia-plugin was born.
>&= gt; >> It's simple right now (and I plan to keep it as simple as poss= ible).
>> >> It's a Gecko widget dropped right below the lib= rary view. (Gecko =3D=3D
>> >> firefoz/mozilla
>> >> rendering engine= ).
>> >> It has a fixed size (for now).
>> >>= It can be hidden/shown from the View menu (CTRL+I as well - is this
>> >> an logical shortcut
>> >> mapping?).
&g= t;> >> It automatically queries wikipedia (english) for a page wit= h the
>> >> same title as the
>> >> artist th= at you're playing.  Changes with the track you're playing.
>> >> I'm very tired.
>> >> This is accurate= probably about 80% of the time...you'll usually
>> >> find = a disambiguation
>> >> page wherever it's lacking.
>&g= t; >> I'm also telling it to use the mediawiki "simple" ski= n to make it
>> >> load faster.
>> >> In the future I'll = figure out how to remove the nav bar on the left
>> >> as it= 's pretty much
>> >> useless (if you want to browse, use a w= eb browser).
>> >> Note the debug output in the console - it shows the a= ctual URL
>> >> you're looking at.
>> >>
&= gt;> >> A few hours of hacking, and here you have it:
>> = >>
>>
http://www.trick.vanstaveren.us/banshee/banshe= e-wikipedia-plugin-0.0.1.tar.bz2
>> >>
>> >&= gt; Feedback is welcome, appreciated, and encouraged!  I'll drop = it in
>> >> Banshee SVN at some
>> >> point so you= can track progress (abock - do you mind me adding this?)
>> >&= gt;
>> >> MAJOR credit goes out to Fredrik Hedberg - more th= an half the code
>> >> was based on the
>> >> banshee-recomme= ndation-plugin.  I'll rewrite some of it in the
>> >&= gt; future to fit my
>> >> situation, but it provided a GREA= T starting point for me as I barely
>> >> had to think
>> >> twice about how to = create the frame, enable/disable it with a toggle
>> >> menu= item, etc.
>> >> Thanks Fredrik!
>> >>
>> >> Enjoy!  Reply to the list or snag me on IRC (ni= ck: trick)
>> >>
>> >> Patrick
>> &g= t;>
>> >> --
>> >> Patrick "Trick&quo= t; van Staveren
>> >> Western Michigan University
>> >> http://www.trick.vanstaveren.us/
>> >>
>> >>
>> >>
>&g= t; >>
>> >> _______________________________________________
&g= t;> >> Banshee-list mailing list
>> >>
Banshee-list@gnome.org
>> >&g= t;=20 http://mail= .gnome.org/mailman/listinfo/banshee-list
>> >>
>&g= t; > _______________________________________________
>> > Ba= nshee-list mailing list
>> > Banshee-list@gn= ome.org
>> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >
>>
>>
>> ----- End message from ghaefbgtk@gmail.com -----
>&= gt;
>>
>>
>> ___________________________________= ____________
>> Banshee-list mailing list
>> Banshee-list@gnome.org
>> http://mail.gnome.org/mailman= /listinfo/banshee-list
>>
>
>


----- End message from indecent@picle.org -----



= _______________________________________________
Banshee-list mailing lis= t
Banshee-list@gnome.orghttp://mai= l.gnome.org/mailman/listinfo/banshee-list

------=_Part_14006_24167613.1146347128392-- From trick@vanstaveren.us Sun Apr 30 02:37:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 657613B0324 for ; Sun, 30 Apr 2006 02:37:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01852-07 for ; Sun, 30 Apr 2006 02:37:23 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 0B5353B0099 for ; Sun, 30 Apr 2006 02:37:22 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5YY-00083x-0d for banshee-list@gnome.org; Sat, 29 Apr 2006 23:37:22 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:37:21 -0400 Message-ID: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:37:21 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin, v0.0.2 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:37:26 -0000 Hey folks, Been working on it a bit and just wanted to publish :) http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 Changelog: 2006-04-30 Patrick van Staveren * Google search mode - uses the "i'm feeling lucky" feature of Google to direct to the closes match using Google, adding the keyword "band". I know, this isn't the best way, but it is much much more accurate than just searching for the artist keyword. * Experimenting with stuff like a status bar and progress bar for loading. * Progress bar is way too buggy and causes segfaults - commented out :) * Opens to about:blank, not google on init. Faster. * Made default size a bit bigger. Maybe this should be a percentage someday. Someone patch this for me! * Bunch of attempts to create a HPaned between the track listing and this, but I can't find a widget. Big chunk of commented code for now. * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) * Debug info is copied in, so you can easily trace Enjoy, and send feedback :) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From trick@vanstaveren.us Sun Apr 30 02:40:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DAEB3B0401 for ; Sun, 30 Apr 2006 02:40:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02027-02 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 6CAEB3B0409 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5b6-0008B5-OP for banshee-list@gnome.org; Sat, 29 Apr 2006 23:40:00 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:40:00 -0400 Message-ID: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:40:00 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> In-Reply-To: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.592 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599] X-Spam-Score: -2.592 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:40:04 -0000 I'd be totally game for that if I can (easily) detect disambiguation pages somehow. I haven't really tried...but I can't think of any other way than to look right at the source of the page, parse it all up, and hope I'm doing it right and that wikipedia never changes their skin format. Sounds like a lot of work to me :/ I'm using the google search right now which has proven really nice, and I'm going to research some of the external indexes to wikipedia...maybe there's one that indexes music groups only that we could search thru - that'd be superb :) Thanks for the suggestion! LMK if you have any idea how to detect disambiguation/no-result pages (code wise, even if you don't know C#, anything's good!) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from jasl8r@gmail.com --------- Date: Sat, 29 Apr 2006 17:45:28 -0400 From: Jeremy Slater Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Not sure if this is a good suggestion or not, but what if you first try to > go to the band specific page with the attached "_(band)" in the url which > exists when disambiguation is needed. Then if that page "does not have an > article" or whatnot you can go to the page without the attached "_(band)" in > the url. I don't know if that would be more accurate than google or not. > > Jeremy > > On 4/29/06, Trick van Staveren wrote: >> >> Excellent! This is what OSS is all about :) >> >> Patches are more than just welcome - they're encouraged. If you've got >> a better way of >> doing this, don't hesitate to contribute :) >> >> I haven't changed it much since 0.0.1, other than I've been >> experimenting with using >> google searches of wikipedia to better find the right pages - for >> instance, when I >> play a song by Kansas, I get info about the state. Searching google >> for 'kansas band' >> returns only results with both words in it, and I use the auto-redirect >> to push it to >> wikipedia. It seems to return better results (about 95% of the time I >> get the correct >> page, versus right now probably only 75%). Aside that, patch away my >> friend! >> >> I will be putting this in the banshee SVN or my personal SVN (which I'm >> setting up this >> weekend) and we can work together better :) >> >> I look forward to it! >> >> -Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from indecent@picle.org --------- >> Date: Sat, 29 Apr 2006 15:58:58 +0200 >> From: indecent >> Reply-To: indecent@picle.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: trick@vanstaveren.us >> >> >> > Hello, >> > My Name is David Schneider, I#m a cs student from Germany. >> > Some time ago i started writing a similar plugin for muine, but >> for >> > differtent reasons i never finished it. I had used a x-path based >> > aproach to parse the wikipedia pages. So if you don't mind i'd love to >> > contribute to the banshee-wikipedia plugin. >> > >> > David >> > >> > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> >> Interesting. It looks almost like you have the gecko-sharp libraries >> >> but not the >> >> underlying mozilla libraries (or your gecko-sharp library is pointing >> >> to the wrong >> >> location). Maybe I need to do something in my package to point to the >> >> proper location >> >> of a mozilla library. I don't know. >> >> I looked on my system for the library, and I found that it's >> >> libgtkembedmoz.so: >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> >> ./mozilla/libgtkembedmoz.so >> >> ./gecko-sdk/lib/libgtkembedmoz.so >> >> ./mozilla-firefox/libgtkembedmoz.so >> >> >> >> From the looks of it, your installation of gecko-sharp just doesn't >> >> have the library >> >> reference set up (properly). Maybe I need to include >> >> gecko-sharp.dll.config in the >> >> plugin install. >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you >> :) >> >> >> >> LMK if you make any progress! >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> AIM: goofyassmoose >> >> Cell: 269.267.6008 >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> >> From: Nil Gradisnik >> >> Reply-To: banshee-list@gnome.org >> >> Subject: Re: [Banshee-List] Wikipedia plugin >> >> To: banshee-list@gnome.org >> >> >> >> >> >> > Looking good. >> >> > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not >> found. >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no >> luck >> >> > >> >> > Any suggestions ? >> >> > >> >> > On 4/28/06, Trick van Staveren wrote: >> >> >> Howdy folks, >> >> >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> >> far back as I can >> >> >> remember, someone requested that banshee show artist information >> >> >> from wikipedia. At >> >> >> first I thought it was silly. Banshee is a music player, not a web >> >> >> browser! Well, >> >> >> needless to say, I've found myself such an addict to wikipedia for >> >> >> artist information, >> >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> >> firefoz/mozilla >> >> >> rendering engine). >> >> >> It has a fixed size (for now). >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> >> an logical shortcut >> >> >> mapping?). >> >> >> It automatically queries wikipedia (english) for a page with the >> >> >> same title as the >> >> >> artist that you're playing. Changes with the track you're playing. >> >> >> I'm very tired. >> >> >> This is accurate probably about 80% of the time...you'll usually >> >> >> find a disambiguation >> >> >> page wherever it's lacking. >> >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> >> load faster. >> >> >> In the future I'll figure out how to remove the nav bar on the left >> >> >> as it's pretty much >> >> >> useless (if you want to browse, use a web browser). >> >> >> Note the debug output in the console - it shows the actual URL >> >> >> you're looking at. >> >> >> >> >> >> A few hours of hacking, and here you have it: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> >> Banshee SVN at some >> >> >> point so you can track progress (abock - do you mind me adding >> this?) >> >> >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> >> was based on the >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> >> future to fit my >> >> >> situation, but it provided a GREAT starting point for me as I barely >> >> >> had to think >> >> >> twice about how to create the frame, enable/disable it with a toggle >> >> >> menu item, etc. >> >> >> Thanks Fredrik! >> >> >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> >> >> Patrick >> >> >> >> >> >> -- >> >> >> Patrick "Trick" van Staveren >> >> >> Western Michigan University >> >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Banshee-list mailing list >> >> >> Banshee-list@gnome.org >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> >> >> > _______________________________________________ >> >> > Banshee-list mailing list >> >> > Banshee-list@gnome.org >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >> > >> >> >> >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > >> > >> >> >> ----- End message from indecent@picle.org ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > ----- End message from jasl8r@gmail.com ----- From indecent@picle.org Sun Apr 30 11:17:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D9763B0903 for ; Sun, 30 Apr 2006 11:17:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08239-08 for ; Sun, 30 Apr 2006 11:17:32 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id B4F9F3B0908 for ; Sun, 30 Apr 2006 11:17:31 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 23A0920CFB7 for ; Sun, 30 Apr 2006 17:17:29 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Content-Type: multipart/mixed; boundary="=-9FrJ4BBEwohT68RTNwby" Date: Sun, 30 Apr 2006 17:17:26 +0200 Message-Id: <1146410246.6015.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:17:40 -0000 --=-9FrJ4BBEwohT68RTNwby Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, here comes a little patch for the wikipedia plugin, i added a parser for the wikipedia pages to remove information that is not needed, for now the bar left, header and footer. Also I added a class to manage the querys an request the pages using httpwebrequest, this could also help tho find pages that didn't match match the search. I used the httpwebresponse.Host to detect results not from wikipedia. Further i started a cache for the downloaded pages, these are stored in the plungindir/wikipedia David Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > Hey folks, > > Been working on it a bit and just wanted to publish :) > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > Changelog: > 2006-04-30 Patrick van Staveren > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > to the closes match using Google, adding the keyword "band". I know, this isn't the > best way, but it is much much more accurate than just searching for the artist > keyword. > * Experimenting with stuff like a status bar and progress bar for loading. > * Progress bar is way too buggy and causes segfaults - commented out :) > * Opens to about:blank, not google on init. Faster. > * Made default size a bit bigger. Maybe this should be a percentage someday. > Someone patch this for me! > * Bunch of attempts to create a HPaned between the track listing and this, but > I can't find a widget. Big chunk of commented code for now. > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > * Debug info is copied in, so you can easily trace > > Enjoy, and send feedback :) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=banshee_wikipedia.patch Content-Type: text/x-patch; name=banshee_wikipedia.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./WikipediaPane.cs 2006-04-30 08:28:46.000000000 +0200 +++ ../../new/WikipediaPane.cs 2006-04-30 16:42:39.000000000 +0200 @@ -19,13 +19,14 @@ namespace Banshee.Plugins.Wikipedia private VBox main; private HBox bot; private ProgressBar pb; - private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; - + + // set url + web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); @@ -109,15 +110,27 @@ namespace Banshee.Plugins.Wikipedia slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page - */ - web.LoadUrl( - "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+" + - + "%22" + current_artist + "%22" - + "band" + - + "&btnI=asdf" - ); - + */ + string temp; + WikipediaQuery w_query = new WikipediaQuery(current_artist); + WikipediaPage w_page = w_query.PerformLookUp(); + if ( w_page != null ) { + web.OpenStream(w_page.BaseUri,"text/html"); + web.AppendData(w_page.Header); + web.AppendData("

"+current_artist+"

"); + //Console.WriteLine(w_page.Header); + while ( (temp = w_page.ReadBodyLine())!= null ) { + web.AppendData(temp); + //Console.WriteLine(temp); + } + web.AppendData(w_page.Footer); + web.CloseStream(); + web.Show(); + Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); + } else { + Visible = false; + } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. @@ -130,7 +143,7 @@ namespace Banshee.Plugins.Wikipedia ); */ - Console.WriteLine("Wikipedia plugin debug: URL=" + web.Location); + } // --------------------------------------------------------------- // @@ -149,7 +162,7 @@ namespace Banshee.Plugins.Wikipedia Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { - ShowArtist(null, null); + //ShowArtist(null, null); Visible = true; return; } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { //ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaParser.cs Content-Type: text/x-csharp; name=WikipediaParser.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using System.Xml; using System.Xml.XPath; using Mono.Unix; namespace Banshee.Plugins.Wikipedia { public sealed class WikipediaParser { private string title; private MemoryStream body; private Stream target; public MemoryStream Body { get { return body; } } public StreamReader BodyReader { get { if ( this.body == null ) { this.body = new MemoryStream(); } return new StreamReader(this.body,Encoding.UTF8); } } public string Title { get { return this.title; } } public WikipediaParser(Stream s) { this.target = s; } public bool GetWikipediaInfo(string query) { if ( query == "" ) { return false; } else { // Stream response_stream = this.SendRequest(query); // this.Parse(response_stream); // response_stream.Close(); return true; } } public void Parse() { XmlDocument html = new XmlDocument(); StreamReader sr = new StreamReader(target, Encoding.UTF8); sr.ReadLine(); sr.ReadLine(); StringBuilder sb = new StringBuilder(); sb.Insert(0,""); sb.Append(sr.ReadToEnd()); sr.Close(); html.LoadXml(sb.ToString()); XPathNavigator nav = html.CreateNavigator(); try { XPathNodeIterator iter = nav.Select("//div[@id='bodyContent']"); iter.MoveNext(); XmlNode node = ((IHasXmlNode)iter.Current ).GetNode(); if ( node != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); } /*try { XPathNodeIterator iter = nav.Select("//h1[@class='firstHeading']/text()"); iter.MoveNext(); XmlNode node = (iter.Current as IHasXmlNode).GetNode(); if ( node != null ) { this.title = node.Value; } else { this.title = Catalog.GetString("Not found"); } } catch ( Exception e ) { Console.WriteLine("Error retrieving title "+e.Message); this.title = Catalog.GetString("An error ocurred")+" "+e.Message; } // maybe perform some cleanup on the html // get body try { XPathNodeIterator iter2 = nav.Select("//div[@id='bodyContent']"); iter2.MoveNext(); XmlNode node2 = ((IHasXmlNode)iter2.Current ).GetNode(); if ( node2 != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node2.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); }*/ } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaQuery.cs Content-Type: text/x-csharp; name=WikipediaQuery.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using Mono.Posix; using Banshee.Base; namespace Banshee.Plugins.Wikipedia { public class WikipediaQuery { private string query; private const string url = "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+%22{0}%22%20band&btnI=asdf";// private const string wiki_host = "en.wikipedia.org";// private static string CACHE_PATH = System.IO.Path.Combine (Paths.UserPluginDirectory, "wikipedia"); public string QueryUrl { get { Console.WriteLine(string.Format(url,this.query)); return string.Format(url,this.query); } } public string Query { get { return this.query; } set { this.query = value; } } public WikipediaQuery(string query) { this.query = query; if (!Directory.Exists (CACHE_PATH)) Directory.CreateDirectory (CACHE_PATH); } public WikipediaPage LoadInformation() { return PerformLookUp(); } public WikipediaPage PerformLookUp() { string filename = this.GetCachedPath(); HttpWebRequest c_req = GetRequest(); WikipediaPage wp; if (File.Exists (filename)) { // check if we have a cached veriosn DateTime last_updated_time = File.GetLastWriteTime (filename); if (DateTime.Compare(last_updated_time, c_req.IfModifiedSince) < 0) { // the cached verion is ok Console.WriteLine("Opening from cache"); wp = LoadFromCache(); } else { Console.WriteLine("In cache but to old"); wp = DownloadWikipedia(c_req); } } else { Console.WriteLine("Opening from wikipedia"); wp = DownloadWikipedia(c_req); } if ( wp != null ) wp.BaseUri = "http://en.wikipedia.org/wiki/"; return wp; } private HttpWebRequest GetRequest() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.QueryUrl); request.KeepAlive = false; request.AllowAutoRedirect = true; request.UserAgent = "Mozilla (Banshee-wikipedia plugin)"; return request; } private WikipediaPage DownloadWikipedia(HttpWebRequest req) { HttpWebResponse response = (HttpWebResponse) req.GetResponse(); Console.WriteLine(response.ResponseUri); if ( response.ResponseUri.Host.Equals(wiki_host) ) { Stream s = response.GetResponseStream (); WikipediaParser wparser = new WikipediaParser(s); wparser.Parse(); MemoryStream body = wparser.Body; response.Close(); try { SaveToCache(body); } catch(Exception e ) { Console.WriteLine("Could not cache file because: {0}",e.Message); // Console.WriteLine(e.StackTrace); } return new WikipediaPage(body); } else { return null; } } private WikipediaPage LoadFromCache() { string f_name = GetCachedPath(); FileStream fs = File.OpenRead(f_name); return new WikipediaPage(fs); } private void SaveToCache(MemoryStream body) { string f_name = GetCachedPath(); FileStream fs = File.OpenWrite(f_name); BufferedStream buffered_stream = new BufferedStream (fs); //buffered_stream.Write(body.GetBuffer(),0,(int)body.Length); byte [] buffer = new byte [8192]; int read; do { read = body.Read (buffer, 0, buffer.Length); if (read > 0) buffered_stream.Write (buffer, 0, read); } while (read > 0); buffered_stream.Close(); fs.Close(); body.Position = 0; } private string GetCachedPath() { return System.IO.Path.Combine (CACHE_PATH, Math.Abs(this.query.ToLower().GetHashCode()).ToString()); } } } --=-9FrJ4BBEwohT68RTNwby-- From indecent@picle.org Sun Apr 30 11:29:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 985493B094A for ; Sun, 30 Apr 2006 11:29:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08769-07 for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id 11F043B093C for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 76F0620BD1E for ; Sun, 30 Apr 2006 17:29:09 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <1146410246.6015.8.camel@localhost.localdomain> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> <1146410246.6015.8.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-js8RkJd1Mb70m6Kb0B4s" Date: Sun, 30 Apr 2006 17:29:07 +0200 Message-Id: <1146410947.6015.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:29:16 -0000 --=-js8RkJd1Mb70m6Kb0B4s Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, i'm sorry i forgot one file, and i found an error i introduced in wikipediapane.cs Am Sonntag, den 30.04.2006, 17:17 +0200 schrieb indecent: > Hello, > > here comes a little patch for the wikipedia plugin, i added a parser > for the wikipedia pages to remove information that is not needed, for > now the bar left, header and footer. > Also I added a class to manage the querys an request the pages using > httpwebrequest, this could also help tho find pages that didn't match > match the search. I used the httpwebresponse.Host to detect results not > from wikipedia. > Further i started a cache for the downloaded pages, these are stored in > the plungindir/wikipedia > > David > > Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > > Hey folks, > > > > Been working on it a bit and just wanted to publish :) > > > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > > > Changelog: > > 2006-04-30 Patrick van Staveren > > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > > to the closes match using Google, adding the keyword "band". I know, this isn't the > > best way, but it is much much more accurate than just searching for the artist > > keyword. > > * Experimenting with stuff like a status bar and progress bar for loading. > > * Progress bar is way too buggy and causes segfaults - commented out :) > > * Opens to about:blank, not google on init. Faster. > > * Made default size a bit bigger. Maybe this should be a percentage someday. > > Someone patch this for me! > > * Bunch of attempts to create a HPaned between the track listing and this, but > > I can't find a widget. Big chunk of commented code for now. > > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > > * Debug info is copied in, so you can easily trace > > > > Enjoy, and send feedback :) > > > > Patrick > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPage.cs Content-Type: text/x-csharp; name=WikipediaPage.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Text; namespace Banshee.Plugins.Wikipedia { public class WikipediaPage { private static string header = " "+ ""+ ""+ ""+ ""; private static string footer = ""; //public Stream body; private StreamReader body_reader; private string base_url; public string BaseUri { get { return base_url; } set { this.base_url = value; } } public string Header { get { return header; } } public string Footer { get { return footer; } } public WikipediaPage(Stream body) { body_reader = new StreamReader(body,System.Text.Encoding.UTF8); } ~WikipediaPage() { body_reader.Close(); //body.Close(); } public string ReadBodyLine() { return body_reader.ReadLine(); } } } --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-js8RkJd1Mb70m6Kb0B4s-- From jasl8r@gmail.com Sun Apr 30 12:15:17 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE6D53B0967 for ; Sun, 30 Apr 2006 12:15:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11583-01 for ; Sun, 30 Apr 2006 12:15:15 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id BD8453B0971 for ; Sun, 30 Apr 2006 12:15:14 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i34so2171290wra for ; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I+QXPZNF/D7ut55I8HfQr8RcMhBGuF+9tWBeWFahIBv5NVjYhqoNy6HtSsMBFlHiocwgEKFRYkNNyIipS1vUrx62wM4dVMpLnAnGpGFeJX/Rl1bfMR4zdbnJ29Ia/pjv8evooi3Kj8zlOrtAcdcCKBbxbMn4nQKgZHkpFEsXJjE= Received: by 10.54.119.11 with SMTP id r11mr1825205wrc; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Message-ID: <3e5be67b0604300915o415bc9cepa5652f9107f26dd@mail.gmail.com> Date: Sun, 30 Apr 2006 12:15:13 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3133_27860369.1146413713519" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.037 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -2.037 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 16:15:17 -0000 ------=_Part_3133_27860369.1146413713519 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page. The following meta tag comes from the missing page: I imagine this is to prevent google from indexing tons of missing pages. I= t looks like you could fetch a page such as /Kansas_(band) first and check fo= r a robots meta tag. In the case of /Kansas_(band) it won't be there and you will have your requested page. However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you coul= d then load /Collective_Soul which is the real page for this band. I imagine as long as the band exists in wikipedia, one of these pages should exist. Jeremy On 4/30/06, Trick van Staveren wrote: > > I'd be totally game for that if I can (easily) detect disambiguation > pages somehow. I > haven't really tried...but I can't think of any other way than to look > right at the > source of the page, parse it all up, and hope I'm doing it right and > that wikipedia > never changes their skin format. Sounds like a lot of work to me :/ > > I'm using the google search right now which has proven really nice, and > I'm going to > research some of the external indexes to wikipedia...maybe there's one > that indexes > music groups only that we could search thru - that'd be superb :) > > Thanks for the suggestion! LMK if you have any idea how to detect > disambiguation/no-result pages (code wise, even if you don't know C#, > anything's > good!) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from jasl8r@gmail.com --------- > Date: Sat, 29 Apr 2006 17:45:28 -0400 > From: Jeremy Slater > Reply-To: banshee-list@gnome.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: banshee-list@gnome.org > > > > Not sure if this is a good suggestion or not, but what if you first try > to > > go to the band specific page with the attached "_(band)" in the url > which > > exists when disambiguation is needed. Then if that page "does not have > an > > article" or whatnot you can go to the page without the attached > "_(band)" in > > the url. I don't know if that would be more accurate than google or > not. > > > > Jeremy > > > > On 4/29/06, Trick van Staveren wrote: > >> > >> Excellent! This is what OSS is all about :) > >> > >> Patches are more than just welcome - they're encouraged. If you've go= t > >> a better way of > >> doing this, don't hesitate to contribute :) > >> > >> I haven't changed it much since 0.0.1, other than I've been > >> experimenting with using > >> google searches of wikipedia to better find the right pages - for > >> instance, when I > >> play a song by Kansas, I get info about the state. Searching google > >> for 'kansas band' > >> returns only results with both words in it, and I use the auto-redirec= t > >> to push it to > >> wikipedia. It seems to return better results (about 95% of the time I > >> get the correct > >> page, versus right now probably only 75%). Aside that, patch away my > >> friend! > >> > >> I will be putting this in the banshee SVN or my personal SVN (which I'= m > >> setting up this > >> weekend) and we can work together better :) > >> > >> I look forward to it! > >> > >> -Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from indecent@picle.org --------- > >> Date: Sat, 29 Apr 2006 15:58:58 +0200 > >> From: indecent > >> Reply-To: indecent@picle.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: trick@vanstaveren.us > >> > >> > >> > Hello, > >> > My Name is David Schneider, I#m a cs student from Germany. > >> > Some time ago i started writing a similar plugin for muine, bu= t > >> for > >> > differtent reasons i never finished it. I had used a x-path based > >> > aproach to parse the wikipedia pages. So if you don't mind i'd love > to > >> > contribute to the banshee-wikipedia plugin. > >> > > >> > David > >> > > >> > > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> >> Interesting. It looks almost like you have the gecko-sharp > libraries > >> >> but not the > >> >> underlying mozilla libraries (or your gecko-sharp library is > pointing > >> >> to the wrong > >> >> location). Maybe I need to do something in my package to point to > the > >> >> proper location > >> >> of a mozilla library. I don't know. > >> >> I looked on my system for the library, and I found that it's > >> >> libgtkembedmoz.so: > >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> >> ./mozilla/libgtkembedmoz.so > >> >> ./gecko-sdk/lib/libgtkembedmoz.so > >> >> ./mozilla-firefox/libgtkembedmoz.so > >> >> > >> >> From the looks of it, your installation of gecko-sharp just doesn'= t > >> >> have the library > >> >> reference set up (properly). Maybe I need to include > >> >> gecko-sharp.dll.config in the > >> >> plugin install. > >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ > cat > >> >> gecko-sharp.dll.config > >> >> > >> >> > >> >> > >> >> > >> >> "/> > >> >> > >> >> > >> >> > >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for > you > >> :) > >> >> > >> >> LMK if you make any progress! > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> AIM: goofyassmoose > >> >> Cell: 269.267.6008 > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> ----- Message from ghaefbgtk@gmail.com --------- > >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> >> From: Nil Gradisnik > >> >> Reply-To: banshee-list@gnome.org > >> >> Subject: Re: [Banshee-List] Wikipedia plugin > >> >> To: banshee-list@gnome.org > >> >> > >> >> > >> >> > Looking good. > >> >> > > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > >> found. > >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > >> luck > >> >> > > >> >> > Any suggestions ? > >> >> > > >> >> > On 4/28/06, Trick van Staveren wrote: > >> >> >> Howdy folks, > >> >> >> > >> >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> >> > >> >> >> I was reading the feature requests page, and I've noticed that a= s > >> >> >> far back as I can > >> >> >> remember, someone requested that banshee show artist information > >> >> >> from wikipedia. At > >> >> >> first I thought it was silly. Banshee is a music player, not a > web > >> >> >> browser! Well, > >> >> >> needless to say, I've found myself such an addict to wikipedia > for > >> >> >> artist information, > >> >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> >> > >> >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> >> It's simple right now (and I plan to keep it as simple as > possible). > >> >> >> It's a Gecko widget dropped right below the library view. (Gecko > =3D=3D > >> >> >> firefoz/mozilla > >> >> >> rendering engine). > >> >> >> It has a fixed size (for now). > >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is > this > >> >> >> an logical shortcut > >> >> >> mapping?). > >> >> >> It automatically queries wikipedia (english) for a page with the > >> >> >> same title as the > >> >> >> artist that you're playing. Changes with the track you're > playing. > >> >> >> I'm very tired. > >> >> >> This is accurate probably about 80% of the time...you'll usually > >> >> >> find a disambiguation > >> >> >> page wherever it's lacking. > >> >> >> I'm also telling it to use the mediawiki "simple" skin to make i= t > >> >> >> load faster. > >> >> >> In the future I'll figure out how to remove the nav bar on the > left > >> >> >> as it's pretty much > >> >> >> useless (if you want to browse, use a web browser). > >> >> >> Note the debug output in the console - it shows the actual URL > >> >> >> you're looking at. > >> >> >> > >> >> >> A few hours of hacking, and here you have it: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> >> > >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it > in > >> >> >> Banshee SVN at some > >> >> >> point so you can track progress (abock - do you mind me adding > >> this?) > >> >> >> > >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the > code > >> >> >> was based on the > >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> >> future to fit my > >> >> >> situation, but it provided a GREAT starting point for me as I > barely > >> >> >> had to think > >> >> >> twice about how to create the frame, enable/disable it with a > toggle > >> >> >> menu item, etc. > >> >> >> Thanks Fredrik! > >> >> >> > >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> >> > >> >> >> Patrick > >> >> >> > >> >> >> -- > >> >> >> Patrick "Trick" van Staveren > >> >> >> Western Michigan University > >> >> >> http://www.trick.vanstaveren.us/ > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> _______________________________________________ > >> >> >> Banshee-list mailing list > >> >> >> Banshee-list@gnome.org > >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> >> > >> >> > _______________________________________________ > >> >> > Banshee-list mailing list > >> >> > Banshee-list@gnome.org > >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > > >> >> > >> >> > >> >> ----- End message from ghaefbgtk@gmail.com ----- > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > > >> > > >> > >> > >> ----- End message from indecent@picle.org ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > ----- End message from jasl8r@gmail.com ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_3133_27860369.1146413713519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page.  The following meta tag comes from the missing page:
<meta name=3D"robots" content=3D"noinde= x,nofollow" />
I imagine this is to prevent google from indexing tons of missing pages.  It looks like you could fetch a page such as /Kansas_(band) first and check for a robots meta tag.  In the case of /Kansas_(band) it won't be there and you will have your requested page.  However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you could then load /Collective_Soul which is the real page for this band.  I imagine as long as the band exists in wikipedia, one of these pages should exist.

Jeremy

On 4/30/06, Trick van Staveren <tric= k@vanstaveren.us> wrote:
I'd be totally game for that if I can (easily) detect disambiguation
pag= es somehow.  I
haven't really tried...but I can't think of any= other way than to look
right at the
source of the page, parse it all= up, and hope I'm doing it right and
that wikipedia
never changes their skin format.  Sounds li= ke a lot of work to me :/

I'm using the google search right now whic= h has proven really nice, and
I'm going to
research some of the exter= nal indexes to wikipedia...maybe there's one
that indexes
music groups only that we could search thru - that'd be= superb :)

Thanks for the suggestion!  LMK if you have any= idea how to detect
disambiguation/no-result pages (code wise, even if y= ou don't know C#,
anything's
good!)

Patrick

--
Patrick "Trick&qu= ot; van Staveren
Western Michigan University
AIM: goofyassmoose
Ce= ll: 269.267.6008
http://www= .trick.vanstaveren.us/


----- Message from jasl= 8r@gmail.com ---------
    Date: Sat, 29 Apr 200= 6 17:45:28 -0400
    From: Jeremy Slater <jasl8r@gmail.com >
Reply-To: banshee-lis= t@gnome.org
Subject: Re: [Banshee-List] Wikipedia plugin
 &n= bsp;    To: b= anshee-list@gnome.org


> Not sure if this is a good suggestion or not, but what if you firs= t try to
> go to the band specific page with the attached "_(ban= d)" in the url which
> exists when disambiguation is needed.&nbs= p; Then if that page "does not have an
> article" or whatnot you can go to the page without the attach= ed "_(band)" in
> the url.  I don't know if that = would be more accurate than google or not.
>
> Jeremy
>> On 4/29/06, Trick van Staveren < trick@vanstaveren.us> wrote:=
>>
>> Excellent!  This is what OSS is all abou= t :)
>>
>> Patches are more than just welcome - they're e= ncouraged.  If you've got
>> a better way of
>> doing this, don't hesitate to cont= ribute :)
>>
>> I haven't changed it much since 0.0.1, ot= her than I've been
>> experimenting with using
>> google = searches of wikipedia to better find the right pages - for
>> instance, when I
>> play a song by Kansas, I get info= about the state.  Searching google
>> for 'kansas band'=
>> returns only results with both words in it, and I use the auto= -redirect
>> to push it to
>> wikipedia.  It seems to re= turn better results (about 95% of the time I
>> get the correct>> page, versus right now probably only 75%).  Aside that,= patch away my
>> friend!
>>
>> I will be putting this in the bans= hee SVN or my personal SVN (which I'm
>> setting up this
>&g= t; weekend) and we can work together better :)
>>
>> I lo= ok forward to it!
>>
>> -Patrick
>>
>> --
>> Pa= trick "Trick" van Staveren
>> Western Michigan Universit= y
>> AIM: goofyassmoose
>> Cell: 269.267.6008
>>= =20 http://www.trick.vanstaveren.u= s/
>>
>>
>> ----- Message from indecent@picle.org ---------
>> =     Date: Sat, 29 Apr 2006 15:58:58 +0200
>>     From: indecent <indecent@picle.org>
>> Reply-To: indecent@picle.org
>> Subject: = Re: [Banshee-List] Wikipedia plugin
>>       To: trick@vanstaveren.us
>>
>>
>&= gt; > Hello,
>> > My Name is David Schneider, I#m a cs stude= nt from Germany.
>> >       Some = time ago i started writing a similar plugin for muine, but
>> for
>> > differtent reasons i never finished it. I= had used a x-path based
>> > aproach to parse the wikipedia pa= ges. So if you don't mind i'd love to
>> > contribute to the ba= nshee-wikipedia plugin.
>> >
>> > David
>> >
>> ><= br>>> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van = Staveren:
>> >> Interesting.  It looks almost like= you have the gecko-sharp libraries
>> >> but not the
>> >> underlying mozilla l= ibraries (or your gecko-sharp library is pointing
>> >> to t= he wrong
>> >> location).  Maybe I need to do some= thing in my package to point to the
>> >> proper location
>> >> of a mozilla lib= rary.  I don't know.
>> >> I looked on my system f= or the library, and I found that it's
>> >> libgtkembedmoz.s= o:
>> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so
>>= ; >> ./mozilla/libgtkembedmoz.so
>> >> ./gecko-sdk/lib= /libgtkembedmoz.so
>> >> ./mozilla-firefox/libgtkembedmoz.so
>> >>
>> >>  From the looks of it,= your installation of gecko-sharp just doesn't
>> >> have th= e library
>> >> reference set up (properly).  Mayb= e I need to include
>> >> gecko-sharp.dll.config in the
>> >> pl= ugin install.
>> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2= .0.0.0__ccf7d78a55e9f021 $ cat
>> >> gecko-sharp.dll.config
>> >> <configuration>
>> >>  = ; <dllmap dll=3D"libglib-2.0-0.dll" target=3D"libglib-2.0= .so.0"/>
>> >>   <dllmap dll=3D"li= bgobject-2.0-0.dll" target=3D" libgobject-2.0.so.0"/>
>> >>   <dllmap = dll=3D"libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>= ;
>> >>   <dllmap dll=3D"libgtk-win32-2.0-= 0.dll" target=3D" libgtk-x11-2.0.so.0"/>
>> >>   <dllmap = dll=3D"gtkembedmoz.dll" target=3D"libgtkembedmoz.so"/&g= t;
>> >> </configuration>
>> >>
>= > >> If I were you, I'd drop a copy of your=20 gecko-sharp.dll.config into
>> >> ~/.gnome2/banshee/plugins = and see what happens!  Might fix it for you
>> :)
>= ;> >>
>> >> LMK if you make any progress!
>&g= t; >>
>> >> Patrick
>> >>
>> >> --<= br>>> >> Patrick "Trick" van Staveren
>> >= ;> Western Michigan University
>> >> AIM: goofyassmoose
>> >> Cell: 269.267.6008
>> >> http://www.trick.vanstaveren.us/
>= ;> >>
>> >>
>> >> ----- Message from= =20 ghaefbgtk@gmail.com --------->> >>     Date: Fri, 28 Apr 2006 20:42:11 = +0200
>> >>     From: Nil Gradisnik <= ghaefbgtk@gmail.com >
>> >> Reply-To: banshee-list@gnome.org
>> >> Subject: Re: [Banshe= e-List] Wikipedia plugin
>> >>     =   To: banshee-list@gnome.org
>> >>
>> >>
>= ;> >> > Looking good.
>> >> >
>> >= ;> > I'm getting an error when using this plugin on Banshee 0.10.9
>> >> > The exception is thrown by Gecko.WebControl ->= ; gtkembedmoz.so not
>> found.
>> >> > I linked = the mozillas libgtkembedmoz.so to /usr/lib/ and still no
>> luck
>> >> >
>> >> > Any suggestions ?
&= gt;> >> >
>> >> > On 4/28/06, Trick van Stave= ren <trick@vanstaveren.us>= ; wrote:
>> >> >> Howdy folks,
>> >> >>>> >> >> Everyone likes screenshots, so I'll start with= the screenie:
>> >> >>
>> >>
>&g= t;=20 http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugi= n-0.0.1.png
>> >> >>
>> >> >>= I was reading the feature requests page, and I've noticed that as
>> >> >> far back as I can
>> >> >&= gt; remember, someone requested that banshee show artist information
>= ;> >> >> from wikipedia.  At
>> >> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> >> browser!  Well,
>> >&g= t; >> needless to say, I've found myself such an addict to wikipedia = for
>> >> >> artist information,
>> >> = >> that earlier today I thought it'd be a neat idea to implement.
>> >> >>
>> >> >> Thus, the bans= hee-wikipedia-plugin was born.
>> >> >> It's simple ri= ght now (and I plan to keep it as simple as possible).
>> >>= >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D
>> >> >> firefoz/mozilla
>> >> >>= ; rendering engine).
>> >> >> It has a fixed size (for= now).
>> >> >> It can be hidden/shown from the View m= enu (CTRL+I as well - is this
>> >> >> an logical shortcut
>> >> >= ;> mapping?).
>> >> >> It automatically queries wik= ipedia (english) for a page with the
>> >> >> same tit= le as the
>> >> >> artist that you're playing.  Chang= es with the track you're playing.
>> >> >> I'm very ti= red.
>> >> >> This is accurate probably about 80% of t= he time...you'll usually
>> >> >> find a disambiguation
>> >> &= gt;> page wherever it's lacking.
>> >> >> I'm also = telling it to use the mediawiki "simple" skin to make it
>&= gt; >> >> load faster.
>> >> >> In the future I'll figure out how to remove = the nav bar on the left
>> >> >> as it's pretty much>> >> >> useless (if you want to browse, use a web brow= ser).
>> >> >> Note the debug output in the console - it sh= ows the actual URL
>> >> >> you're looking at.
>= > >> >>
>> >> >> A few hours of hacking= , and here you have it:
>> >> >>
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1= .tar.bz2
>> >> >>
>> >> >> Feedback i= s welcome, appreciated, and encouraged!  I'll drop it in
>&= gt; >> >> Banshee SVN at some
>> >> >> poi= nt so you can track progress (abock - do you mind me adding
>> this?)
>> >> >>
>> >> >= > MAJOR credit goes out to Fredrik Hedberg - more than half the code
= >> >> >> was based on the
>> >> >> b= anshee-recommendation-plugin.  I'll rewrite some of it in the
>> >> >> future to fit my
>> >> >&g= t; situation, but it provided a GREAT starting point for me as I barely
= >> >> >> had to think
>> >> >> twice= about how to create the frame, enable/disable it with a toggle
>> >> >> menu item, etc.
>> >> >>= ; Thanks Fredrik!
>> >> >>
>> >> >&g= t; Enjoy!  Reply to the list or snag me on IRC (nick: trick)
&= gt;> >> >>
>> >> >> Patrick
>> >> >>
>= ;> >> >> --
>> >> >> Patrick "Tric= k" van Staveren
>> >> >> Western Michigan Univers= ity
>> >> >> http://www.trick.vanstaveren.us/
>> >> >>
>= > >> >>
>> >> >>
>> >> &= gt;>
>> >> >> ____________________________________________= ___
>> >> >> Banshee-list mailing list
>> >= ;> >> Banshee-list@gnome= .org
>> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list=
>> >> >>
>> >> > ______________= _________________________________
>> >> > Banshee-list mailing list
>> >> &= gt; Banshee-list@gnome.org>> >> > http://mail.gnome.org/mailman/listinfo/banshee-list
>> >>= ; >
>> >>
>> >>
>> >> -----= End message from ghaefbgtk@gmail.co= m -----
>> >>
>> >>
>> >>>> >> _______________________________________________
>= > >> Banshee-list mailing list
>> >> Banshee-list@gnome.org
>> >> http://mail.gnome.org/mailman/listinfo= /banshee-list
>> >>
>> >
>> > >>
>>
>> ----- End message from indecent@picle.org -----
>>
>>
= >>
>> _______________________________________________
>= ;> Banshee-list mailing list
>> Banshee-list@gnome.o= rg
>> http://mail.gnome.org/mailman/listinfo/banshee-list
>>
>


----- End message from jasl8r@gmail.com -----



_____________________________= __________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_3133_27860369.1146413713519-- From pcolijn@gmail.com Sun Apr 30 18:13:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 322D93B0A96 for ; Sun, 30 Apr 2006 18:13:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27714-01 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 509683B0AA1 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i2so891317wra for ; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Iv4YAyFeUcfCspas7ktPQXNpJXe++MVAqFF08CXmGdrmw8LTCdrLB4n+/H26GSpCJDHqnBWHPYPCQPTV+SG0k9KSNl6gI9mXoJ0n2fXJ6s4zYT8/L+D2G3+UPilXz06EAWvz4ibdmG2QkG+4jrV+yJpWTSk2HtmN2qd7xBVJikQ= Received: by 10.54.110.13 with SMTP id i13mr180047wrc; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Message-ID: <7c35b00e0604301513w424a2d63s7d7f57a4531a61cb@mail.gmail.com> Date: Sun, 30 Apr 2006 18:13:03 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin, v0.0.2 In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.59 tagged_above=-999 required=2 tests=[AWL=-0.772, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 22:13:06 -0000 T24gNC8zMC8wNiwgVHJpY2sgdmFuIFN0YXZlcmVuIDx0cmlja0B2YW5zdGF2ZXJlbi51cz4gd3Jv dGU6Cj4gICAgICAgICAqIEdvb2dsZSBzZWFyY2ggbW9kZSAtIHVzZXMgdGhlICJpJ20gZmVlbGlu ZyBsdWNreSIgZmVhdHVyZSBvZiBHb29nbGUgdG8gZGlyZWN0Cj4gdG8gdGhlIGNsb3NlcyBtYXRj aCB1c2luZyBHb29nbGUsIGFkZGluZyB0aGUga2V5d29yZCAiYmFuZCIuICBJIGtub3csIHRoaXMg aXNuJ3QgdGhlCj4gYmVzdCB3YXksIGJ1dCBpdCBpcyBtdWNoIG11Y2ggbW9yZSBhY2N1cmF0ZSB0 aGFuIGp1c3Qgc2VhcmNoaW5nIGZvciB0aGUgYXJ0aXN0Cj4ga2V5d29yZC4KCmhhdmUgeW91IHRo b3VnaHQgYWJvdXQgdXNpbmcgR29vZ2xlIE11c2ljIFNlYXJjaCBmb3IgdGhpcz8gZWcuCmh0dHA6 Ly93d3cuZ29vZ2xlLmNvbS9tdXNpY3NlYXJjaD9xPXUyCgpUaGF0IG1pZ2h0IHdvcmsgYSBiaXQg YmV0dGVyIHRoYW4gZG9pbmcgdGhlICJJJ20gZmVlbGluZyBsdWNreSIgdGhpbmcuCgpIYXZlIGZ1 biwKClBldGVyCg== From vamsee.krishna@gmail.com Sat Apr 1 18:41:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0ACF63B008B for ; Sat, 1 Apr 2006 18:41:33 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03585-04 for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id 579443B007D for ; Sat, 1 Apr 2006 18:41:31 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3129274nzf for ; Sat, 01 Apr 2006 15:41:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fmHZaKDxRWKbqRg8MAssoa1KNvuFSXGH11TSmtyDBr+yTNWHDAdQjVTITQRuo9zdYD0ETotRkngvo7mSQuECj1OszqMW8HgOxursXlJNjv4AUdiFPVKl0vbvfavE1ZAi2sfZ1PNSKQBFGpKj0t/4voBKFdh9rl2pjzSBuMaPR4s= Received: by 10.35.99.5 with SMTP id b5mr1439412pym; Sat, 01 Apr 2006 15:41:30 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 15:41:30 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:11:30 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Smart Playlist plugin In-Reply-To: <1143655553.7081.12.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2612_30251453.1143934890438" References: <1143655553.7081.12.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.235 tagged_above=-999 required=2 tests=[AWL=0.990, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.235 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 23:41:33 -0000 ------=_Part_2612_30251453.1143934890438 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt wrote: > > Lukas' e-mail reminded me I should let you all know that I'm working on > a smart playlist plugin. I would say it's about 60% done - you can make > a new playlist and define the query it uses and it will run it, but it > doesn't handle the track database changing yet (scanning new/changed > tracks). If anybody wants to try it out or help me develop it, let me > know. Sounds interesting. I've recently shifted from Rhythmbox to Banshee and thi= s is one feature I'd love to see in Banshee. Please let me know the location where I can get your plugin. Would love to test it out. GVK ------=_Part_2612_30251453.1143934890438 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/29/06, Gabriel Burt <gabriel.burt@gmail.com> wrote:
Lukas' e-mail reminded me I should let you all know that I'm working on
= a smart playlist plugin.  I would say it's about 60% done - you c= an make
a new playlist and define the query it uses and it will run it, = but it
doesn't handle the track database changing yet (scanning new/changedtracks).  If anybody wants to try it out or help me develop it, = let me
know.

Sounds interesting. I've recently shif= ted from Rhythmbox to Banshee and this is one feature I'd love to see in Ba= nshee.  Please let me know the location where I can get your plugin. W= ould love to test it out.

GVK

------=_Part_2612_30251453.1143934890438-- From vamsee.krishna@gmail.com Sat Apr 1 19:16:36 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A6B0D3B00EA for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05543-01 for ; Sat, 1 Apr 2006 19:16:36 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id B77033B007D for ; Sat, 1 Apr 2006 19:16:35 -0500 (EST) Received: by zproxy.gmail.com with SMTP id n1so3152433nzf for ; Sat, 01 Apr 2006 16:16:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LtG2XeAF/It9i7ZRN5WrRp4XVhWrTjOSdpC3/GJDvGvD8RVGXRPXPYUaIjU2Bt4mz0YltT+LSGjHzmm5hcN2A4jPU2BseHBgPMfvsWF+KiLX6qybt0WU7cFjbkI9d2mP/8Rw64619oW0YElfHRXZ5v0PzKisV5bDmDmoi6Lvcfw= Received: by 10.35.36.13 with SMTP id o13mr477120pyj; Sat, 01 Apr 2006 16:16:35 -0800 (PST) Received: by 10.35.15.9 with HTTP; Sat, 1 Apr 2006 16:16:35 -0800 (PST) Message-ID: Date: Sun, 2 Apr 2006 05:46:35 +0530 From: "Vamsee Krishna Gomatam" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2868_14676714.1143936995115" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.985 tagged_above=-999 required=2 tests=[AWL=0.186, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_SV=0.077] X-Spam-Score: -0.985 X-Spam-Level: Subject: [Banshee-List] Smart-playlists-plugin: Select songs by rating X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 00:16:36 -0000 ------=_Part_2868_14676714.1143936995115 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, I've checked out the smart-playlists-plugin from svn and after loading it, I'm trying to create a _smart playlist of songs with rating greater than 3_= . Here's the message printed to the terminal: Name =3D Smart Playlist, Cond =3D Rating < '3' , OrderAndLimit =3D Adding smart playlist Smart Playlist, id 6 Refreshing smart playlist Smart Playlist with condition Rating < '3' I don't think this is the correct behaviour. This can be changed to behave correctly by interchanging the '>' and '<' symbols on lines 162 and 164 of QueryBuilderModel.cs. Sorry for the crude report. Can someone patch it up? GVK ------=_Part_2868_14676714.1143936995115 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,
I've checked out the smart-playlists-plugin from svn and after lo= ading it, I'm trying to create a _smart playlist of songs with rating great= er than 3_. Here's the message printed to the terminal:

Name =3D Sma= rt Playlist, Cond =3D  Rating < '3' , OrderAndLimit =3D
Adding smart playlist Smart Playlist, id 6
Refreshing smart playlist= Smart Playlist with condition  Rating < '3'

I don't think t= his is the correct behaviour. This can be changed to behave correctly by in= terchanging the '>' and '<' symbols on lines 162 and 164 of=20 QueryBuilderModel.cs.

Sorry for the crude report. Can someone patch = it up?

GVK


------=_Part_2868_14676714.1143936995115-- From abockover@novell.com Sun Apr 2 18:15:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 035D13B15E9 for ; Sun, 2 Apr 2006 18:15:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13902-05 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by menubar.gnome.org (Postfix) with ESMTP id 39D4E3B14D1 for ; Sun, 2 Apr 2006 18:15:47 -0400 (EDT) Received: from [192.168.0.105] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-02-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k32MFha9021588 for ; Sun, 2 Apr 2006 18:15:43 -0400 (EDT) From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Sun, 02 Apr 2006 18:13:02 -0400 Message-Id: <1144015982.30733.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.438 tagged_above=-999 required=2 tests=[AWL=-0.116, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, TW_SV=0.077] X-Spam-Score: -2.438 X-Spam-Level: Subject: [Banshee-List] Banshee Subversion X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 22:15:50 -0000 If you have an SSH account on svn.banshee-project.org, you may get a "host name changed" message from SSH. I rebuild my linode on which I host the Banshee SVN repo. No need to be alarmed, just remove the old host entry from your ~/.ssh/known_hosts. Also, please verify that you can actually connect/check out over svn +ssh. Everything should be okay though. Thanks, --Aaron From bertrand.lorentz@free.fr Mon Apr 3 12:12:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 563C23B1882 for ; Mon, 3 Apr 2006 12:12:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08632-06 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by menubar.gnome.org (Postfix) with ESMTP id 6495E3B1B96 for ; Mon, 3 Apr 2006 12:12:22 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp1-g19.free.fr (Postfix) with ESMTP id 632149AE05 for ; Mon, 3 Apr 2006 18:12:21 +0200 (CEST) From: Bertrand Lorentz To: banshee-list@gnome.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BKPtsZ2EQVIvrBBRMYpg" Date: Mon, 03 Apr 2006 18:12:18 +0200 Message-Id: <1144080739.22083.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Nomad Jukebox and Banshee X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 16:12:24 -0000 --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi everybody, I'm a happy owner of a Creative Nomad Jukebox 1 (Product ID 0x0222), and I've been having some trouble to get it working with banshee. When I connect my NJB to my PC, it shows up in banshee, but no tracks are shown. The following exception is thrown : System.ApplicationException: Frame data is not uint16 in <0x00051> Njb.SongFrame:get_DataShort () in <0x00025> Njb.Song:GetFrameShort (System.String label) in <0x00010> Njb.Song:get_IsProtected () in <0x0028a> Banshee.Dap.Njb.NjbDapTrackInfo:LoadFromNjbSong (Banshee.Dap.DapDevice dap) in <0x0001f> Banshee.Dap.Njb.NjbDapTrackInfo:.ctor (Njb.Song song, Banshee.Dap.DapDevice dap) in <0x0008c> Banshee.Dap.Njb.NjbDap:ReloadDatabase () in <0x00598> Banshee.Dap.Njb.NjbDap:Initialize (Hal.Device halDevice) in <0x0004c> Banshee.Dap.DapCore:AddDevice (Hal.Device device, System.Type type) After some investigations, here's what I found : In njb-sharp, the frames containing the "Year" and the "PlayOnly" data are supposed to be UInt16 frames. After playing around with the njb-test program, I found out that on my NJB these frames are String frames. I don't know if that's the case with all NJB 1, or if my library is messed up. I'm not quite sure how to fix this, without being too permissive on the frame types or breaking anything... Thanks for any input or suggestion... --=20 Bertrand Lorentz --=-BKPtsZ2EQVIvrBBRMYpg Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMUlib1pl4loRymARAkBqAKDK3cXxoN9xQy7qKIbEUtaKWGOmzACfUxTX gFeGYW88W0DKCyCzng5Axxg= =WFvF -----END PGP SIGNATURE----- --=-BKPtsZ2EQVIvrBBRMYpg-- From doktorn@sub.nu Mon Apr 3 14:54:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DDA3C3B1CFB for ; Mon, 3 Apr 2006 14:54:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19828-01 for ; Mon, 3 Apr 2006 14:54:35 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id F35BC3B1CBB for ; Mon, 3 Apr 2006 14:54:34 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k33IsYVA000488 for ; Mon, 3 Apr 2006 20:54:35 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id B1CE0AB13B for ; Mon, 3 Apr 2006 20:54:32 +0200 (CEST) Message-ID: <44316F67.6080408@sub.nu> Date: Mon, 03 Apr 2006 20:54:31 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: [Banshee-List] How to update/re-scan library X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 18:54:37 -0000 Hello, I've added some music to my library, but it doesn't show up in the list. Is there some way to force a re-scan of the library or how am I suppose to handle this? Best regards Rickard Borgmäster From sjoeboo@sjoeboo.com Mon Apr 3 15:41:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 53A613B1CBC for ; Mon, 3 Apr 2006 15:41:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22778-05 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 356803B1CB5 for ; Mon, 3 Apr 2006 15:41:47 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 4E43110B2B for ; Mon, 3 Apr 2006 15:41:13 -0400 (EDT) MIME-Version: 1.0 Date: Mon, 3 Apr 2006 15:41:13 -0400 From: Matthew Nicholson To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library Organization: sjoeboo.com In-Reply-To: <44316F67.6080408@sub.nu> References: <44316F67.6080408@sub.nu> Message-ID: <8b843aef824487e1799668c668f45a51@localhost> X-Sender: sjoeboo@sjoeboo.com User-Agent: RoundCube Webmail/0.1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.411 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046] X-Spam-Score: -0.411 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:41:48 -0000 i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? > > Best regards > Rickard Borgmäster > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list -- Matthew Nicholson sjoeboo@sjoeboo.com sjoeboo.com From ken@vandine.org Mon Apr 3 15:46:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 241C53B1CE5 for ; Mon, 3 Apr 2006 15:46:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23196-06 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id 79DE13B1CF9 for ; Mon, 3 Apr 2006 15:46:34 -0400 (EDT) Received: from foobar.rdu.rpath.com (rdu-nat.rpath.com [24.172.59.42]) by ms-smtp-03-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k33JkWgA006659; Mon, 3 Apr 2006 15:46:32 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Ken VanDine To: banshee-list@gnome.org, sjoeboo@sjoeboo.com In-Reply-To: <8b843aef824487e1799668c668f45a51@localhost> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Apr 2006 15:46:37 -0400 Message-Id: <1144093597.1033.9.camel@foobar> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.561 tagged_above=-999 required=2 tests=[AWL=-0.038, BAYES_00=-2.599, TW_TM=0.077] X-Spam-Score: -2.561 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 19:46:38 -0000 Using 0.10.9, inotify has been working fine adding music to my library. I don't use rhytmbox at all, so can't compare. --Ken On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > i have had issues like this as well. inotify IS working, because new music will show up in rhythmbox. banshee does not pick up the changes. shutdown/re-open banshee, and it still doesn't see the new files. this happens with rythmbox open, and closed, so its not conflicts on both of them watching the same place. so far, with banshee, i still have to add new things manually..... > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgmäster wrote: > > Hello, > > > > I've added some music to my library, but it doesn't show up in the list. > > Is there some way to force a re-scan of the library or how am I > > suppose to handle this? > > > > Best regards > > Rickard Borgmäster > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list From zachtib@gmail.com Mon Apr 3 16:02:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C7EBC3B1D37 for ; Mon, 3 Apr 2006 16:02:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24218-10 for ; Mon, 3 Apr 2006 16:02:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by menubar.gnome.org (Postfix) with ESMTP id F3DDB3B2634 for ; Mon, 3 Apr 2006 16:02:01 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so112378nzf for ; Mon, 03 Apr 2006 13:02:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=XlyV3q1Gv7rLNcbpv5K2GJIsPLf3XrffI6Qh8Gd2waMYQpx09AbsIzD7Lmgk7jr//3HzKzG9t6SPSgxvjVblnXOkFHo2sicEJQkxD1ihH8s0SBNgtrkaPi3HAu6sp7BCYJDXsdm4jmk9UW9b+Wc67t9c+uzxCKH8YELvBU9l4XU= Received: by 10.35.121.2 with SMTP id y2mr1372988pym; Mon, 03 Apr 2006 13:01:59 -0700 (PDT) Received: by 10.35.34.12 with HTTP; Mon, 3 Apr 2006 13:01:59 -0700 (PDT) Message-ID: <5f2bbff20604031301y4493ebfamf43cfd925dcc5974@mail.gmail.com> Date: Mon, 3 Apr 2006 16:01:59 -0400 From: "Zach Tibbitts" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18649_27581749.1144094519786" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.71 tagged_above=-999 required=2 tests=[AWL=0.094, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.71 X-Spam-Level: Subject: [Banshee-List] New build problems X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2006 20:02:07 -0000 ------=_Part_18649_27581749.1144094519786 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this error: ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert from `Banshee.Base.ArtistInfo' to `string' Compilation failed: 2 error(s), 0 warnings make[3]: *** [Banshee.Base.dll] Error 1 make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/zach/banshee/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/zach/banshee' make: *** [all] Error 2 this is using oscars normalized patch ------=_Part_18649_27581749.1144094519786 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the first time ive tried to build 10.9 on Dapper, and i get this er= ror:

./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot c= onvert from `Banshee.Base.ArtistInfo' to `string'
Compilation failed: 2 = error(s), 0 warnings
make[3]: *** [Banshee.Base.dll] Error 1
make[3]: Leaving directory `= /home/zach/banshee/src/Banshee.Base'
make[2]: *** [all-recursive] Error = 1
make[2]: Leaving directory `/home/zach/banshee/src'
make[1]: *** [a= ll-recursive] Error 1
make[1]: Leaving directory `/home/zach/banshee'
make: *** [all] Erro= r 2

this is using oscars normalized patch
------=_Part_18649_27581749.1144094519786-- From oivind.hoel@gmail.com Mon Apr 3 22:35:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 36E8D3B06A1 for ; Mon, 3 Apr 2006 22:35:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14269-04 for ; Mon, 3 Apr 2006 22:35:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id 03F323B06EF for ; Mon, 3 Apr 2006 22:35:37 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 14so1860799nzn for ; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tI8UHDcQIlWrgZkTjH5De8gDrjF0wJLqJf35+x96upcbKxaBtDskcgNLazcpefe4VIC/NaaipuiDmmkRNZRaFte1fyozdUGevKvUIeUP6qLHJNNMjPsvpDiSFsqBAuAmPipdUrbwQ+zST1Ky0DCk15v7yy9yV6Ovo16EUlJ63Yc= Received: by 10.64.143.11 with SMTP id q11mr40421qbd; Mon, 03 Apr 2006 19:35:37 -0700 (PDT) Received: by 10.65.183.2 with HTTP; Mon, 3 Apr 2006 19:35:37 -0700 (PDT) Message-ID: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Date: Tue, 4 Apr 2006 04:35:37 +0200 From: "=?ISO-8859-1?Q?=D8ivind_Hoel?=" To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library In-Reply-To: <44316F67.6080408@sub.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44316F67.6080408@sub.nu> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 02:35:41 -0000 On 4/3/06, Rickard Borgm=E4ster wrote: > Hello, > > I've added some music to my library, but it doesn't show up in the list. > Is there some way to force a re-scan of the library or how am I > suppose to handle this? Have you enabled the filesystem watcher plugin? From oforero@novell.com Tue Apr 4 03:24:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 941423B2784 for ; Tue, 4 Apr 2006 03:24:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28026-07 for ; Tue, 4 Apr 2006 03:24:23 -0400 (EDT) Received: from emea1-mh.id2.novell.com (public.id2-vpn.continvity.gns.novell.com [195.33.99.129]) by menubar.gnome.org (Postfix) with ESMTP id 91CA93B0A7F for ; Tue, 4 Apr 2006 03:24:22 -0400 (EDT) Received: from EMEA1-MTA by emea1-mh.id2.novell.com with Novell_GroupWise; Tue, 04 Apr 2006 08:24:17 +0200 Message-Id: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Beta Date: Tue, 04 Apr 2006 09:23:58 +0200 From: "Oscar Forero" To: Subject: Re: [Banshee-List] New build problems References: <44318D640200007400007602@emea1-mh.id2.novell.com> <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> In-Reply-To: <44322D1E0200002D00009C7E@emea1-mh.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 07:24:25 -0000 Hi, I insist the patch is not apply it properly, that is one of the changes that has to be make, go to that line and change the reference to ti.Artist to ti.Artist.Name; also please check the PlaylistModel.cs because i think the variable call sort is set to be a TreeModelSort and that is the root of all evil. regards, Oscar. On Mon, 2006-04-03 at 20:02 +0000, zachtib@gmail.com wrote: > This is the first time ive tried to build 10.9 on Dapper, and i get > this error: > > ./AudioCdRipper.cs(126,13): error CS1503: Argument 4: Cannot convert > from `Banshee.Base.ArtistInfo' to `string' > Compilation failed: 2 error(s), 0 warnings > make[3]: *** [Banshee.Base.dll] Error 1 > make[3]: Leaving directory `/home/zach/banshee/src/Banshee.Base' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/zach/banshee/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/zach/banshee' > make: *** [all] Error 2 > > this is using oscars normalized patch From sjoeboo@sjoeboo.com Tue Apr 4 13:28:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 454F03B2941 for ; Tue, 4 Apr 2006 13:28:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02273-10 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 5E53A3B2062 for ; Tue, 4 Apr 2006 13:28:44 -0400 (EDT) Received: from vader (vader.sjoeboo.com [192.168.1.104]) by skywalker.sjoeboo.com (Postfix) with ESMTP id 9799410B2A; Tue, 4 Apr 2006 13:28:09 -0400 (EDT) Subject: Re: [Banshee-List] How to update/re-scan library From: Matthew Nicholson To: Ken VanDine In-Reply-To: <1144093597.1033.9.camel@foobar> References: <44316F67.6080408@sub.nu> <8b843aef824487e1799668c668f45a51@localhost> <1144093597.1033.9.camel@foobar> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BoiBoCnNSIxMDyMHygYH" Organization: sjoeboo.com Date: Tue, 04 Apr 2006 13:28:42 -0400 Message-Id: <1144171723.14660.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.373 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, RCVD_IN_SORBS_DUL=2.046, TW_TM=0.077] X-Spam-Score: -0.373 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, sjoeboo@sjoeboo.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Apr 2006 17:28:45 -0000 --=-BoiBoCnNSIxMDyMHygYH Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable acctually, its working fine. i must have been mistaken, for i just moved some files, and both application, running at the same time, picked them up. excelent. On Mon, 2006-04-03 at 15:46 -0400, Ken VanDine wrote: > Using 0.10.9, inotify has been working fine adding music to my library. > I don't use rhytmbox at all, so can't compare. =20 >=20 > --Ken >=20 > On Mon, 2006-04-03 at 15:41 -0400, Matthew Nicholson wrote: > > i have had issues like this as well. inotify IS working, because new mu= sic will show up in rhythmbox. banshee does not pick up the changes. shutdo= wn/re-open banshee, and it still doesn't see the new files. this happens wi= th rythmbox open, and closed, so its not conflicts on both of them watching= the same place. so far, with banshee, i still have to add new things manua= lly..... > >=20 > > On Mon, 03 Apr 2006 20:54:31 +0200, Rickard Borgm=C3=A4ster wrote: > > > Hello, > > >=20 > > > I've added some music to my library, but it doesn't show up in the li= st. > > > Is there some way to force a re-scan of the library or how am I > > > suppose to handle this? > > >=20 > > > Best regards > > > Rickard Borgm=C3=A4ster > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list --=-BoiBoCnNSIxMDyMHygYH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEMqzKs9/XCuaG1WkRAjfiAKCAAjL7PHUKiGfr4w9TVk1XXeAOKACeMfp5 v2m9AByCd+7dN2EeUptCWkE= =atus -----END PGP SIGNATURE----- --=-BoiBoCnNSIxMDyMHygYH-- From doktorn@sub.nu Tue Apr 4 21:31:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58B9D3B083D for ; Tue, 4 Apr 2006 21:31:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26571-01 for ; Tue, 4 Apr 2006 21:31:21 -0400 (EDT) Received: from relay-smtp01.wtnord.net (relay-smtp01.wtnord.net [81.8.233.120]) by menubar.gnome.org (Postfix) with ESMTP id 7628E3B07FA for ; Tue, 4 Apr 2006 21:31:20 -0400 (EDT) Received: from studsboll.realworld.kanin (212-214-143-231.sol.wtnord.net [212.214.143.231]) by relay-smtp01.wtnord.net (8.13.4/8.13.4) with ESMTP id k351VIoU011859 for ; Wed, 5 Apr 2006 03:31:19 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by studsboll.realworld.kanin (Postfix) with ESMTP id E9443AE297 for ; Wed, 5 Apr 2006 03:31:17 +0200 (CEST) Message-ID: <44331DE5.8090701@sub.nu> Date: Wed, 05 Apr 2006 03:31:17 +0200 From: =?ISO-8859-1?Q?Rickard_Borgm=E4ster?= User-Agent: Mail/News 1.5 (X11/20060310) MIME-Version: 1.0 To: banshee-list@gnome.org Subject: Re: [Banshee-List] How to update/re-scan library References: <44316F67.6080408@sub.nu> <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> In-Reply-To: <8f29652a0604031935ufdba8f3y2456df6b0f237f92@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 01:31:41 -0000 Øivind Hoel wrote: > On 4/3/06, Rickard Borgmäster wrote: >> Hello, >> >> I've added some music to my library, but it doesn't show up in the list. >> Is there some way to force a re-scan of the library or how am I >> suppose to handle this? > > Have you enabled the filesystem watcher plugin? Yes, but it hasn't detected the new music. Best regards Rickard Borgmäster From ncjeffgus@zimage.com Wed Apr 5 04:19:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADBB63B2AF9 for ; Wed, 5 Apr 2006 04:19:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13405-07 for ; Wed, 5 Apr 2006 04:19:27 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id DF0E53B2AEC for ; Wed, 5 Apr 2006 04:19:26 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id 866ED1C2AC4 for ; Wed, 5 Apr 2006 01:19:25 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00568-03 for ; Wed, 5 Apr 2006 01:19:08 -0700 (PDT) Received: from polly.zimage.com (polly.zimage.com [216.86.199.26]) by alpha.zimage.com (Postfix) with ESMTP id CEF061C2A7D for ; Wed, 5 Apr 2006 01:19:02 -0700 (PDT) From: Jeff Gustafson To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 05 Apr 2006 01:18:48 -0700 Message-Id: <1144225128.7088.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.601 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.601 X-Spam-Level: Subject: [Banshee-List] banshee and iTunes X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 08:19:29 -0000 Is it just me or did the new plug-in stop working? Sharpmusique isn't working either. 404 not found error. ...Jeff From lukas@pmad.net Wed Apr 5 06:31:53 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CABAB3B0CB0 for ; Wed, 5 Apr 2006 06:31:53 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20860-01 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 321813B0C73 for ; Wed, 5 Apr 2006 06:31:52 -0400 (EDT) Received: (qmail 27414 invoked by uid 503); 5 Apr 2006 10:28:54 -0000 Received: (QMFILT: 1.0); 05 Apr 2006 10:28:54 -0000 Received: from b7.ovh.net (HELO mail1.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 5 Apr 2006 10:28:54 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:28:27 -0000 Received: from mail145.ha.ovh.net (HELO mail1.ha.ovh.net) (10.0.50.145) by mail145.ha.ovh.net with SMTP; 5 Apr 2006 10:28:23 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Received: from adsl-d200.87-197-131.telecom.sk (HELO ?192.168.0.23?) (87.197.131.200) by ns0.ovh.net with SMTP; 5 Apr 2006 10:25:36 -0000 Subject: Re: [Banshee-List] banshee and iTunes From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:25:33 +0200 Message-Id: <1144232733.5059.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.131.200 (adsl-d200.87-197-131.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.741 tagged_above=-999 required=2 tests=[AWL=-0.700, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.741 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:31:54 -0000 Hi, On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. The plugin hasn't been touched in ages, and yes, IMS have changed something yet again. Lukas From fredrik.hedberg@avafan.com Wed Apr 5 06:55:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7CFEE3B2A7E for ; Wed, 5 Apr 2006 06:55:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21953-07 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by menubar.gnome.org (Postfix) with ESMTP id 237243B2A56 for ; Wed, 5 Apr 2006 06:55:12 -0400 (EDT) Received: from [172.14.11.116] (217.210.3.62) by pne-smtpout1-sn2.hy.skanova.net (7.2.070) id 44311E3A000923BE for banshee-list@gnome.org; Wed, 5 Apr 2006 12:55:10 +0200 Subject: Re: [Banshee-List] banshee and iTunes From: Fredrik Hedberg To: banshee-list@gnome.org In-Reply-To: <1144225128.7088.2.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 12:55:09 +0200 Message-Id: <1144234509.5656.7.camel@lovemachine.hedbergs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 10:55:15 -0000 Hi, Purchasing music from Banshee works great here. There is however, a small issue. If you ever used iTunes 6 to purchase music with you account, your account gets flagged. This will essentially block you from using the store with either the Banshee plugin or with Sharpmusique (and any older version of iTunes i presume). I'm sure either Aaron or Jon can elaborate more on this issue. Fredrik On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > Is it just me or did the new plug-in stop working? Sharpmusique isn't > working either. 404 not found error. > > ...Jeff > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From mattisking@gmail.com Wed Apr 5 10:55:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 76D153B2C5C for ; Wed, 5 Apr 2006 10:55:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05591-10 for ; Wed, 5 Apr 2006 10:55:00 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id 35CED3B0D50 for ; Wed, 5 Apr 2006 10:54:59 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n29so306884nzf for ; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qMILgVPiuTEcDqYKv8eABZfFlZ4W6w3grKMH/Tp9eENz/LGhceFIEj/30bEHCXmE1SQtmtJgIwLtFxG+A8pDs+ZEDWcxEEYAU7WVg0QWC9Z1ZPvH5DMCAvdzZLFHqcKDq44clq/t/bb3751NiwjBroRmN/xW/KK+ngYKmk5egcU= Received: by 10.35.37.18 with SMTP id p18mr789032pyj; Wed, 05 Apr 2006 07:54:58 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Wed, 5 Apr 2006 07:54:58 -0700 (PDT) Message-ID: <39efb3860604050754o7c914de6jb7a630061243bdfb@mail.gmail.com> Date: Wed, 5 Apr 2006 10:54:58 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] banshee and iTunes In-Reply-To: <1144234509.5656.7.camel@lovemachine.hedbergs.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30503_17740251.1144248898549" References: <1144225128.7088.2.camel@localhost.localdomain> <1144234509.5656.7.camel@lovemachine.hedbergs.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.014 tagged_above=-999 required=2 tests=[AWL=0.211, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.014 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 14:55:13 -0000 ------=_Part_30503_17740251.1144248898549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never use it against iTunes 6. I've finally admitted to myself that the Fairkey thing resulting in applications like iOpener and Jhymn just isn't getting updated any time soon. :( Personally, I've moved to using allofmp3.com All the same music (more or less) for a fraction of the cost, and at this point at least, still legal. Matt Philmon On 4/5/06, Fredrik Hedberg wrote: > > Hi, > > Purchasing music from Banshee works great here. There is however, a > small issue. > > If you ever used iTunes 6 to purchase music with you account, your > account gets flagged. This will essentially block you from using the > store with either the Banshee plugin or with Sharpmusique (and any older > version of iTunes i presume). > > I'm sure either Aaron or Jon can elaborate more on this issue. > > Fredrik > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique > isn't > > working either. 404 not found error. > > > > ...Jeff > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_30503_17740251.1144248898549 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline All you need to do, however, is open a new account using iTunes 5 and never= use it against iTunes 6. I've finally admitted to myself that the Fairkey = thing resulting in applications like iOpener and Jhymn just isn't getting u= pdated any time soon. :(

Personally, I've moved to using all= ofmp3.com All the same music (more or less) for a fraction of the cost,= and at this point at least, still legal.

Matt Philmon

On 4/5/06, Fredri= k Hedberg <fredrik.hed= berg@avafan.com> wrote:
Hi,

Purchasing music from Banshee works great here. There is however= , a
small issue.

If you ever used iTunes 6 to purchase music with= you account, your
account gets flagged. This will essentially block you= from using the
store with either the Banshee plugin or with Sharpmusique (and any olde= r
version of iTunes i presume).

I'm sure either Aaron or Jon can = elaborate more on this issue.

      &n= bsp; Fredrik

On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson = wrote:
>       Is it just me or did the new p= lug-in stop working?  Sharpmusique isn't
> working either.&= nbsp; 404 not found error.
>
>    &nbs= p;            &= nbsp;     ...Jeff
>
> _____________________= __________________________
> Banshee-list mailing list
> Banshee-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/ba= nshee-list

_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_30503_17740251.1144248898549-- From abockover@novell.com Wed Apr 5 11:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B1923B2CBA for ; Wed, 5 Apr 2006 11:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09160-08 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 77F583B2CB8 for ; Wed, 5 Apr 2006 11:45:35 -0400 (EDT) Received: (qmail 32543 invoked from network); 5 Apr 2006 15:45:34 -0000 Received: from outbound.ximian.com (HELO 164-99-120-28.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 5 Apr 2006 15:45:34 -0000 From: Aaron Bockover To: "banshee-list@gnome.org" Content-Type: text/plain Date: Wed, 05 Apr 2006 11:42:23 -0400 Message-Id: <1144251743.8729.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.399 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.399 X-Spam-Level: Subject: [Banshee-List] Bug Help Requested X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 15:45:38 -0000 I am noticing that there are currently at least 114 new bug comments on Banshee in Gnome Bugzilla, and I am not going to have the time to look at many of them for a maybe another week. Right now my priority is fixing our internal set of bugs, which will without a doubt knock out many in Gnome Bugzilla. However, just glancing at the bug summaries many look like dupes or ones easy to resolve or at least start commenting on. If anyone is willing, I would appreciate some help in whittling these down a bit until I can give them more attention. I know Ruben has been doing his best when he has time, but it'd be lovely to get some more hands in the stew :) Also, I am going to create a banshee-devel-list. I'll post a message when it is up. Thanks! Cheers, Aaron From ncjeffgus@zimage.com Wed Apr 5 14:49:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7732F3B0C3E for ; Wed, 5 Apr 2006 14:49:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20105-07 for ; Wed, 5 Apr 2006 14:49:55 -0400 (EDT) Received: from alpha.zimage.com (alpha.zimage.com [216.86.199.5]) by menubar.gnome.org (Postfix) with ESMTP id 0655C3B0A2E for ; Wed, 5 Apr 2006 14:49:53 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by alpha.zimage.com (Postfix) with ESMTP id D74F11C2567 for ; Wed, 5 Apr 2006 11:49:47 -0700 (PDT) Received: from alpha.zimage.com ([127.0.0.1]) by localhost (alpha.zimage.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05050-08 for ; Wed, 5 Apr 2006 11:49:33 -0700 (PDT) Received: from polly.idc.local (mail.idc-global.com [66.92.217.130]) by alpha.zimage.com (Postfix) with ESMTP id DFF241C255B for ; Wed, 5 Apr 2006 11:49:31 -0700 (PDT) Subject: Re: [Banshee-List] banshee and iTunes From: Jeff Gustafson To: banshee-list@gnome.org In-Reply-To: <1144232733.5059.0.camel@localhost.localdomain> References: <1144225128.7088.2.camel@localhost.localdomain> <1144232733.5059.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 05 Apr 2006 11:49:28 -0700 Message-Id: <1144262969.3260.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.466 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -2.466 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 18:49:56 -0000 On Wed, 2006-04-05 at 12:25 +0200, Lukas Lipka wrote: > Hi, > > On Wed, 2006-04-05 at 01:18 -0700, Jeff Gustafson wrote: > > Is it just me or did the new plug-in stop working? Sharpmusique isn't > > working either. 404 not found error. > > The plugin hasn't been touched in ages, and yes, IMS have changed > something yet again. They must be changing stuff. :) I've installed iTunes 6 on the Windows side, but never purchased anything with it. Just used it to install some Audible books. On Monday I tried the plugin and purchased a couple of songs. On Tuesday I got the 404 Not Found message. Today I get: Unhandled Exception: System.Net.WebException: The remote server returned an error: (502) Bad Gateway. in <0x003de> System.Net.HttpWebRequest:CheckFinalStatus (System.Net.WebAsyncResult result) in <0x00216> System.Net.HttpWebRequest:SetResponseData (System.Net.WebConnectionData data) Bummer. ...Jeff From silwenae@gmail.com Wed Apr 5 21:42:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F04933B0A4B for ; Wed, 5 Apr 2006 21:42:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07128-06 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by menubar.gnome.org (Postfix) with ESMTP id 70E863B07F8 for ; Wed, 5 Apr 2006 21:42:02 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so35227nzf for ; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=n0h2ms6nv7ixk3+OmrawjQdW6acM3O78XHRSOJa7so+G2D1w4Pk4nNYF8Mh7oBEaqCbrYK8QkkB/YhRFveEYKWK2kQXNVeAa+sMp0uZr6URmaOXZks8aqWMLx3NX1UgMQbcgtcf/v18NKWvn1pFhqali+GO0hB7mJWOfPf2S6sA= Received: by 10.36.39.6 with SMTP id m6mr341671nzm; Wed, 05 Apr 2006 18:42:01 -0700 (PDT) Received: by 10.36.129.16 with HTTP; Wed, 5 Apr 2006 18:42:01 -0700 (PDT) Message-ID: <4c4ad4df0604051842t1b82a719sa1d44bfb376aa0fa@mail.gmail.com> Date: Wed, 5 Apr 2006 20:42:01 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8408_8905771.1144287721697" References: <1144251743.8729.6.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 01:42:04 -0000 ------=_Part_8408_8905771.1144287721697 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or could not duplicate some of the bugs. There are a ton of bugs that are feature enhancements. Some are labeled a= s such, but a number are labeled under Normal or such. Any recommendations o= n what to do with feature enhancements? Add a comment to post on the wiki, leave them be, or something else, especially ones marked as normal? Paul On 4/5/06, Aaron Bockover wrote: > > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. > > Thanks! > > Cheers, > Aaron > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_8408_8905771.1144287721697 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I took a shot at triaging some of the bugs, adding comments that I could or= could not duplicate some of the bugs.

There are a ton of bugs that = are feature enhancements.   Some are labeled as such, but a numbe= r are labeled under Normal or such.  Any recommendations on what to do= with feature enhancements?  Add a comment to post on the wiki, leave = them be, or something else, especially ones marked as normal?

Paul

On 4/5/06, Aaron Bockover <abockover@novell.com> wrote:
I am noticing that there are currently at least 114 new bug comments on
= Banshee in Gnome Bugzilla, and I am not going to have the time to look
a= t many of them for a maybe another week. Right now my priority is
fixing= our internal set of bugs, which will without a doubt knock out
many in Gnome Bugzilla.

However, just glancing at the bug summar= ies many look like dupes or ones
easy to resolve or at least start comme= nting on.

If anyone is willing, I would appreciate some help in whit= tling these
down a bit until I can give them more attention.

I know Ruben ha= s been doing his best when he has time, but it'd be
lovely to get some m= ore hands in the stew :)

Also, I am going to create a banshee-devel-= list. I'll post a message
when it is up.

Thanks!

Cheers,
Aaron


______= _________________________________________
Banshee-list mailing list
<= a href=3D"mailto:Banshee-list@gnome.org">Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

------=_Part_8408_8905771.1144287721697-- From gpoo@ubiobio.cl Wed Apr 5 23:00:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4E7E53B0AC4 for ; Wed, 5 Apr 2006 23:00:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10137-07 for ; Wed, 5 Apr 2006 23:00:53 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 986603B0C17 for ; Wed, 5 Apr 2006 23:00:52 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id ABFAF400127 for ; Wed, 5 Apr 2006 23:00:03 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 00800-81 for ; Wed, 5 Apr 2006 23:00:02 -0400 (CLT) Received: from mimos.local (pc-158-109-120-200.cm.vtr.net [200.120.109.158]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 985D628002A1 for ; Wed, 5 Apr 2006 23:00:44 -0400 (CLT) Subject: Re: [Banshee-List] Bug Help Requested From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 05 Apr 2006 23:00:38 -0400 Message-Id: <1144292438.8258.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.374 tagged_above=-999 required=2 tests=[AWL=0.090, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.374 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 03:00:57 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) > > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. I also been triaging, reviewing some patches and commented on bugs in a minimal proportion anyway. But, at the end, you must to checked them. I would like to suggest to you to check the bugs that has patches included. There are only 14 of those bugs (6 reviewed, 8 with no comments at all). http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=commented-on http://bugzilla.gnome.org/reports/patch-report.cgi?product=banshee&patch-status=none Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From ruben@Lambda1.be Thu Apr 6 03:23:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41BB23B13A0 for ; Thu, 6 Apr 2006 03:23:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20801-02 for ; Thu, 6 Apr 2006 03:23:56 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 70C6C3B1118 for ; Thu, 6 Apr 2006 03:23:55 -0400 (EDT) Received: from ([62.235.112.218]) by oola.is.scarlet.be with ESMTP id k367NrA17167 for ; Thu, 6 Apr 2006 09:23:53 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 5DD46460202; Thu, 6 Apr 2006 09:23:51 +0200 (CEST) Subject: Re: [Banshee-List] Bug Help Requested From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1144251743.8729.6.camel@sledipus.rex> References: <1144251743.8729.6.camel@sledipus.rex> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Apr 2006 09:23:50 +0200 Message-Id: <1144308230.5325.11.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.598 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 07:23:59 -0000 On Wed, 2006-04-05 at 11:42 -0400, Aaron Bockover wrote: > I am noticing that there are currently at least 114 new bug comments on > Banshee in Gnome Bugzilla, and I am not going to have the time to look > at many of them for a maybe another week. Right now my priority is > fixing our internal set of bugs, which will without a doubt knock out > many in Gnome Bugzilla. > > However, just glancing at the bug summaries many look like dupes or ones > easy to resolve or at least start commenting on. > > If anyone is willing, I would appreciate some help in whittling these > down a bit until I can give them more attention. > > I know Ruben has been doing his best when he has time, but it'd be > lovely to get some more hands in the stew :) And I plan to keep on doing that. I'd really love to be able to write big new features on banshee but currently time does not permit it. That's why I've chosen to concentrate on bug bitching, mainly getting as much bugs as possible ready for merging into CVS (there's quite a lot of those already, which just require a "curl | patch -p0"). What bugs me mostly are those "long term maybe"-feature requests, they're bringing us awefully close to the buggiest top-15 without a direct way to close them ;-). > Also, I am going to create a banshee-devel-list. I'll post a message > when it is up. Wonderful! I'm thinking of organising some collective-triage sessions to tackle longstanding bugs, but it's still an early idea and we need people interested in them. Cheers, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From cpfiles@gmail.com Thu Apr 6 10:01:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D0723B15A6 for ; Thu, 6 Apr 2006 10:01:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14756-07 for ; Thu, 6 Apr 2006 10:01:39 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id A48F03B2FED for ; Thu, 6 Apr 2006 10:01:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so170807nzf for ; Thu, 06 Apr 2006 07:01:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Y5JVfjRhhUPOKMWVguVMF/lV3Pk0vJXilfYjnTdoEUqzsd/UVDS15qRJT4jFUTk2pdIAjuSvIGXmUndpYM8pHqSqmlJrfoFdg6Kl4L0HetXmk60dg9xCrDWAP6MVEi2S86ZRaSjBGkqId+iTEancpjqPrVIn//rV0p6agMj9VWE= Received: by 10.36.80.5 with SMTP id d5mr1079002nzb; Thu, 06 Apr 2006 07:01:37 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 07:01:37 -0700 (PDT) Message-ID: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Date: Thu, 6 Apr 2006 09:01:37 -0500 From: "Chad Files" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Poor Playback X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:01:42 -0000 I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad From benjfitz@yahoo.com Thu Apr 6 10:48:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C9FC53B3019 for ; Thu, 6 Apr 2006 10:48:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17687-07 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: from web37904.mail.mud.yahoo.com (web37904.mail.mud.yahoo.com [209.191.124.99]) by menubar.gnome.org (Postfix) with SMTP id 6B9C03B3005 for ; Thu, 6 Apr 2006 10:48:24 -0400 (EDT) Received: (qmail 88407 invoked by uid 60001); 6 Apr 2006 14:48:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qb8GW+o5aBy6xF1S1fV7Tp0Zh6F/mSfwtLT+H0PNkmSPvkFeOaaJf+QBoaGkU5wtsFIyQ2HU6BbdT1MXwFDBl7u2tgoiNMN9ql0QfLdseMW7vCMIq1cEjOTzarpL0CN9+/BqTFMIyH951/EUmz5gw1nCOzC8J9e7/0ybr8R6QcI= ; Message-ID: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> Received: from [140.110.206.107] by web37904.mail.mud.yahoo.com via HTTP; Thu, 06 Apr 2006 07:48:23 PDT Date: Thu, 6 Apr 2006 07:48:23 -0700 (PDT) From: Benj FitzPatrick Subject: Re: [Banshee-List] Poor Playback To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-121702021-1144334903=:87901" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.981 tagged_above=-999 required=2 tests=[AWL=-1.381, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_WHOIS=1.447, HTML_10_20=1.351, HTML_MESSAGE=0.001] X-Spam-Score: -0.981 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 14:48:26 -0000 --0-121702021-1144334903=:87901 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it. I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom). I added the below commands: alsasink period-size=1024 buffer-size=4096 That seemed to clean up playback for me. Benj Chad Files wrote: I am running banshee 0.10.9 on gentoo with all the latest and greatest gstreamer packages. Everything looks and functions great except for the playback. I get a lot of popping when the tracks are played. I have played the same tracks it totem (also uses gstreamer) and there is no popping. I have tried several other things but all to no avail. This issue also bleeds over into CD burning. I burned a CD with banshee and the popping was transfered onto the CD. I am almost certain that this is an issue with the gstreamer bindings in banshee. Has anybody else had this issue? Does anybody have a solution? Thanks -- Chad _______________________________________________ Banshee-list mailing list Banshee-list@gnome.org http://mail.gnome.org/mailman/listinfo/banshee-list --0-121702021-1144334903=:87901 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I also ran into this on gentoo, and the devs were nice enough to help me through it.  I made a custom output sink for gstreamer using gstreamer-properties (go to alsasink and then to custom).  I added the below commands:

alsasink period-size=1024 buffer-size=4096

That seemed to clean up playback for me.
Benj

Chad Files <cpfiles@gmail.com> wrote:
I am running banshee 0.10.9 on gentoo with all the latest and greatest
gstreamer packages. Everything looks and functions great except for
the playback. I get a lot of popping when the tracks are played.

I have played the same tracks it totem (also uses gstreamer) and there
is no popping. I have tried several other things but all to no avail.
This issue also bleeds over into CD burning. I burned a CD with
banshee and the popping was transfered onto the CD.

I am almost certain that this is an issue with the gstreamer bindings
in banshee. Has anybody else had this issue? Does anybody have a
solution?

Thanks

-- Chad
_______________________________________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list

--0-121702021-1144334903=:87901-- From database1@qualitycareforchildren.org Thu Apr 6 11:01:09 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19A943B225A for ; Thu, 6 Apr 2006 11:01:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18884-05 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from www.qualitycareforchildren.org (qualitycareforchildren.org [168.215.70.173]) by menubar.gnome.org (Postfix) with ESMTP id 396B23B2FC0 for ; Thu, 6 Apr 2006 11:01:07 -0400 (EDT) Received: from [10.10.10.111] ([66.162.21.62]) by www.qualitycareforchildren.org (8.10.2/8.10.2) with ESMTP id k36F14C27036 for ; Thu, 6 Apr 2006 11:01:04 -0400 From: John Moore To: banshee-list@gnome.org Content-Type: multipart/alternative; boundary="=-9HUXicvlPFj1cQqn3+7I" Message-Id: <1141747243.25631.6.camel@linux.site> Mime-Version: 1.0 X-Mailer: Evolution 2.4.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.075 tagged_above=-999 required=2 tests=[AWL=-0.871, BAYES_00=-2.599, DATE_IN_PAST_96_XX=2.02, HTML_30_40=0.374, HTML_MESSAGE=0.001] X-Spam-Score: -1.075 X-Spam-Level: Subject: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 06 Apr 2006 15:01:09 -0000 X-Original-Date: Tue, 07 Mar 2006 11:00:43 -0500 X-List-Received-Date: Thu, 06 Apr 2006 15:01:09 -0000 --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/plain Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below): A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine. I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error: E: Couldn't find package gstreamer0.8-plugins-multiverse Any suggestions? Thanks. --=-9HUXicvlPFj1cQqn3+7I Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted the mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstreamer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'll be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  However, when attempting to install gstreamer0.8-plugins-multiverse I got the following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.


--=-9HUXicvlPFj1cQqn3+7I-- From mattisking@gmail.com Thu Apr 6 11:11:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 662B73B2236 for ; Thu, 6 Apr 2006 11:11:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19375-07 for ; Thu, 6 Apr 2006 11:11:46 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id E3D1E3B14A2 for ; Thu, 6 Apr 2006 11:11:45 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id i49so213796pye for ; Thu, 06 Apr 2006 08:11:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Na9O+B/1nNLaL57gPxKYaw2K978E/mlbPcqwURGk6FXym7hZEeY0KWEsuvwzOqcixBhxlDEkTO0HWEruaDMxxd8/jIyLNXjyBp9zHEV6kFhwalXL4xsbO9xo/cXetixqJ4EnFPz0PrYHUJjpbJK5AUMglodq5IQ+zpK0DLWkzd8= Received: by 10.35.49.4 with SMTP id b4mr529764pyk; Thu, 06 Apr 2006 08:11:44 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Thu, 6 Apr 2006 08:11:43 -0700 (PDT) Message-ID: <39efb3860604060811k183530e3w2fd1f9d9fbabb8fe@mail.gmail.com> Date: Thu, 6 Apr 2006 11:11:43 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse In-Reply-To: <1141747243.25631.6.camel@linux.site> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4236_23280367.1144336303978" References: <1141747243.25631.6.camel@linux.site> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.067 tagged_above=-999 required=2 tests=[AWL=0.158, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.067 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:11:52 -0000 ------=_Part_4236_23280367.1144336303978 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you'll want to enable it along with universe. Do enable multiverse just add it to the end of the lines that contain universe. Then use synaptic to search for gstreamer0.8. You'll find TONS of packages. Just install most or all of them. Matt On 3/7/06, John Moore wrote: > > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted the > mp3 problem in the Banshee FAQ (see the site response below): > > *A:* This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends *sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg* and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I got > the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_4236_23280367.1144336303978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Is the multiverse repository enabled in your sources.list file? If not, you= 'll want to enable it along with universe. Do enable multiverse just add it= to the end of the lines that contain universe.

Then use synaptic to= search for=20 gstreamer0.8. You'll find TONS of packages. Just install most or all of the= m.

Matt

On 3/7/06, John Moore < database1@qualitycareforchildren.org> wrote:
=20 =20 I have Ubuntu 5.10 (Breezy) installed.  Installed Banshee and noted th= e mp3 problem in the Banshee FAQ (see the site response below):

A: This is caused by not having MP3 support in your version of gstre= amer. For our Ubuntu Breezy friends sudo apt-get install gstreamer0.8-pl= ugins gstreamer0.8-plugins-multiverse and gstreamer0.8-ffmpeg and you'l= l be fine.

I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg.  Ho= wever, when attempting to install gstreamer0.8-plugins-multiverse I got the= following error:

E:  Couldn't find package gstreamer0.8-plugins-multiverse

Any suggestions?  Thanks.



_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



------=_Part_4236_23280367.1144336303978-- From gpoo@ubiobio.cl Thu Apr 6 11:15:11 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ACEB73B303C for ; Thu, 6 Apr 2006 11:15:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19757-01 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from relay.ubiobio.cl (atlas.dci.ubiobio.cl [146.83.195.21]) by menubar.gnome.org (Postfix) with ESMTP id 6CCBE3B3023 for ; Thu, 6 Apr 2006 11:15:08 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by forward.ubiobio.cl (Postfix) with ESMTP id D772D4003E4 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from pegasus.dci.ubiobio.cl ([146.83.195.11]) by localhost (antivirus.dci.ubiobio.cl [146.83.195.21]) (amavisd-new, port 10024) with ESMTP id 31704-12 for ; Thu, 6 Apr 2006 11:14:23 -0400 (CLT) Received: from dhcp-120.dci.ubiobio.cl (dhcp-120.dci.ubiobio.cl [146.83.195.120]) by pegasus.dci.ubiobio.cl (Postfix) with ESMTP id 2AA6628002AB for ; Thu, 6 Apr 2006 11:15:06 -0400 (CLT) Subject: Re: [Banshee-List] Problem installing gstreamer0.8-plugins-multiverse From: =?ISO-8859-1?Q?Germ=E1n_Po=F3_Caama=F1o?= To: banshee-list@gnome.org In-Reply-To: <1141747243.25631.6.camel@linux.site> References: <1141747243.25631.6.camel@linux.site> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 06 Apr 2006 11:15:01 -0400 Message-Id: <1144336501.9888.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ubiobio.cl X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.42 tagged_above=-999 required=2 tests=[AWL=0.044, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.42 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 15:15:11 -0000 On Tue, 2006-03-07 at 11:00 -0500, John Moore wrote: > I have Ubuntu 5.10 (Breezy) installed. Installed Banshee and noted > the mp3 problem in the Banshee FAQ (see the site response below): > > A: This is caused by not having MP3 support in your version of > gstreamer. For our Ubuntu Breezy friends sudo apt-get install > gstreamer0.8-plugins gstreamer0.8-plugins-multiverse and > gstreamer0.8-ffmpeg and you'll be fine. > > I managed to install gstreamer0.8-plugins and gstreamer0.8-ffmpeg. > However, when attempting to install gstreamer0.8-plugins-multiverse I > got the following error: > > E: Couldn't find package gstreamer0.8-plugins-multiverse > > Any suggestions? Thanks. This is an Ubuntu question more than an specific about banshee. You should read the documentation about how to solve this issues at https://wiki.ubuntu.com/RestrictedFormats In particular, the section related to MP3: https://wiki.ubuntu.com/RestrictedFormats#head-a57167a3ce442dc52d9b05e46a14503330d4e970 Regards, -- Germán Poó-Caamaño http://www.ubiobio.cl/~gpoo/ Concepción - Chile From cpfiles@gmail.com Thu Apr 6 12:22:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BB3473B0889 for ; Thu, 6 Apr 2006 12:22:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24395-02 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 87BEC3B0586 for ; Thu, 6 Apr 2006 12:22:05 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so228587nzf for ; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ia0WzG/128nvQPkwWZ1znnDwDlgOVURb5gexnobdUZ7eIe+gRSayLHpRrZu5B+olpXWclx2vt/UEaG5MQ/sp3i6c+8o9Hmpc1OhL3sVRPRCBPe1e8YfYGbIDbVFLhaQGlZ+64bB9VnweOX25elhzkfCPss0ixTj/6TKWMteY0Mo= Received: by 10.37.12.23 with SMTP id p23mr1338483nzi; Thu, 06 Apr 2006 09:22:04 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Thu, 6 Apr 2006 09:22:04 -0700 (PDT) Message-ID: <9735eb9b0604060922n686a5b7bm3cc2f3130582a230@mail.gmail.com> Date: Thu, 6 Apr 2006 11:22:04 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <20060406144823.88405.qmail@web37904.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 16:22:06 -0000 On 4/6/06, Benj FitzPatrick wrote: > I also ran into this on gentoo, and the devs were nice enough to help me > through it. I made a custom output sink for gstreamer using > gstreamer-properties (go to alsasink and then to custom). I added the be= low > commands: > > alsasink period-size=3D1024 buffer-size=3D4096 Thanks, but no dice. I still get the popping during playback. -- Chad From abockover@novell.com Thu Apr 6 15:31:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A2743B226E for ; Thu, 6 Apr 2006 15:31:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03375-08 for ; Thu, 6 Apr 2006 15:31:18 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 064BE3B3023 for ; Thu, 6 Apr 2006 15:31:17 -0400 (EDT) Received: (qmail 9151 invoked from network); 6 Apr 2006 19:31:17 -0000 Received: from outbound.ximian.com (HELO 164-99-120-99.boston.ximian.com) (130.57.170.250) by peabody.ximian.com with SMTP; 6 Apr 2006 19:31:17 -0000 Subject: Re: [Banshee-List] Poor Playback From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> Content-Type: text/plain Date: Thu, 06 Apr 2006 15:27:59 -0400 Message-Id: <1144351679.21194.8.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.485 tagged_above=-999 required=2 tests=[AWL=-0.086, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.485 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 19:31:19 -0000 On Thu, 2006-04-06 at 09:01 -0500, Chad Files wrote: > I am running banshee 0.10.9 on gentoo with all the latest and greatest > gstreamer packages. Everything looks and functions great except for > the playback. I get a lot of popping when the tracks are played. What happens in Rhythmbox? > I have played the same tracks it totem (also uses gstreamer) and there > is no popping. I have tried several other things but all to no avail. > This issue also bleeds over into CD burning. I burned a CD with > banshee and the popping was transfered onto the CD. > > I am almost certain that this is an issue with the gstreamer bindings > in banshee. Has anybody else had this issue? Does anybody have a > solution? No, the problem would not be in bindings. The GStreamer stuff in Banshee is all in C, and a binding wouldn't make your audio pop. There may be something missing from the pipeline, or it could easily be hardware or output sink related. Cheers, Aaron > Thanks > > -- Chad > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From silwenae@gmail.com Thu Apr 6 20:02:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B80583B0096 for ; Thu, 6 Apr 2006 20:02:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17730-02 for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id A29353B00AC for ; Thu, 6 Apr 2006 20:02:38 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so338083nzf for ; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fKFqrEMSalWHa6l88i17Y0KVGLs5oOoIlaqAO+8tsPHvQnbzQEikcSK7bIUetSHU3gFAQz4vS1Z3lFTe/ktB93hrQFlPySIqR2Yq7jFAOj1OCgGMdtjT0//4IWbdqt2vUvoapHRmo5r01ydFfE6DZnHbccFyxUOIRrMkWFYpdOE= Received: by 10.37.13.16 with SMTP id q16mr547499nzi; Thu, 06 Apr 2006 17:02:38 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Thu, 6 Apr 2006 17:02:38 -0700 (PDT) Message-ID: <4c4ad4df0604061702j2d05fee6w6ab5a2d3eb23c495@mail.gmail.com> Date: Thu, 6 Apr 2006 19:02:38 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Bug Help Requested In-Reply-To: <1144308230.5325.11.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2950_7040387.1144368158030" References: <1144251743.8729.6.camel@sledipus.rex> <1144308230.5325.11.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.344 tagged_above=-999 required=2 tests=[AWL=-0.119, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.344 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 00:02:42 -0000 ------=_Part_2950_7040387.1144368158030 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/6/06, Ruben Vermeersch wrote: What bugs me mostly are those "long term maybe"-feature requests, > they're bringing us awefully close to the buggiest top-15 without a > direct way to close them ;-). > > > Cheers, > Ruben Is there any reason we can't mark feature requests filed as bugs as closed if we add them to the wiki? Or is that just not the way things are done? If the person commenting on the bug (or closing it) marks the date and time added to the wiki, and maybe we add a * after the request as noted on the wiki, or even add a section on the Features Request page as a section "Feature Requests from Bugzilla", it would go a long way to reducing the overall bug list. Currently 45 out of 121 total bugs are marked as feature enhancement. Paul ------=_Part_2950_7040387.1144368158030 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 4/6/06, Ruben Vermeersch <ruben@l= ambda1.be> wrote:

<snip>

What bugs me mostly are those "long term maybe"-feature requests,=
they're bringing us awefully close to the buggiest top-15 without a
= direct way to close them ;-).


Cheers,
   Ruben

Is there any reason we can't mark feature requests filed as bugs a= s closed if we add them to the wiki?  Or is that just not the way thin= gs are done?  If the person commenting on the bug (or closing it) mark= s the date and time added to the wiki, and maybe we add a * after the reque= st as noted on the wiki, or even add a section on the Features Request page= as a section "Feature Requests from Bugzilla", it would go a lon= g way to reducing the overall bug list.

Currently 45 out of 121 total bugs are marked as feature enhancemen= t.

Paul


------=_Part_2950_7040387.1144368158030-- From trick@vanstaveren.us Fri Apr 7 04:07:24 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 60F363B0252 for ; Fri, 7 Apr 2006 04:07:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06528-09 for ; Fri, 7 Apr 2006 04:07:18 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 039DD3B0230 for ; Fri, 7 Apr 2006 04:07:16 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FRlzv-0003yV-Ur for banshee-list@gnome.org; Fri, 07 Apr 2006 01:07:15 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 07 Apr 2006 04:07:15 -0400 Message-ID: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Date: Fri, 07 Apr 2006 04:07:15 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Plugin in the works: Alarm Clock X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 08:07:24 -0000 Hey folks, I've been starting to work on a new plugin for Banshee - an Alarm Clock plugin. Has anyone worked on this? If so, LMK, so we're not duplicating efforts :) Features I'm working on: Sleep timer: * ability to set a timer that when it's up, will pause playback. Great for when you're loving your tunes but don't want to hear them ALL night. Alarm timer: * will start playback at the given time. * "recur" option - if enabled, will set the timer again for the next day at that same time. * volume setting - will change the volume to a certain level before playing. This way you don't have to set it before you go to sleep. Future ideas: * sleep timer - make it so it fades out the song, or stops at the end of the song rather than just pausing in the middle of it. * alarm timer - volume change will be gradual. will set the volume when the alarm first goes off, and will gradually increase it to another value over a span of seconds or minutes. All three values will be settable. Anyone have any other ideas/suggestions for me? Like I said, this plugin is more in the concept stage (I have more pencil sketches than actual code)...so I'm open to ideas :) Thanks all! Patrick (irc as trick) -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From thijsvermeir@telenet.be Fri Apr 7 08:43:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED8A23B03A5 for ; Fri, 7 Apr 2006 08:43:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23842-08 for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from assei2bl6.telenet-ops.be (assei2bl6.telenet-ops.be [195.130.133.69]) by menubar.gnome.org (Postfix) with ESMTP id 651233B036B for ; Fri, 7 Apr 2006 08:43:18 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by assei2bl6.telenet-ops.be (Postfix) with SMTP id E7352F00A2 for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Received: from [192.168.1.4] (d51A40E46.access.telenet.be [81.164.14.70]) by assei2bl6.telenet-ops.be (Postfix) with ESMTP id D8032F007D for ; Fri, 7 Apr 2006 14:43:16 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> Content-Transfer-Encoding: 7bit From: Thijs Vermeir Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock Date: Fri, 7 Apr 2006 14:39:11 +0200 To: banshee-list@gnome.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.006, BAYES_00=-2.599] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:43:20 -0000 On 7-apr-06, at 10:07, Trick van Staveren wrote: > Hey folks, Hey, > > I've been starting to work on a new plugin for Banshee - an Alarm > Clock plugin. Has > anyone worked on this? If so, LMK, so we're not duplicating > efforts :) > > ... > > Anyone have any other ideas/suggestions for me? Like I said, this > plugin is more in > the concept stage (I have more pencil sketches than actual > code)...so I'm open to > ideas :) Looks nice, Need suggestions? ;-) I like to see integrated support for shutdown/wakeup the PC. > Thanks all! > > Patrick > > (irc as trick) > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From cpfiles@gmail.com Fri Apr 7 08:49:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F23263B03E9 for ; Fri, 7 Apr 2006 08:49:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24722-01 for ; Fri, 7 Apr 2006 08:49:04 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by menubar.gnome.org (Postfix) with ESMTP id 083363B32C0 for ; Fri, 7 Apr 2006 08:48:53 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so431851nzf for ; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WsU8SLPgB7IEnIIbBWXyFeT6UL0krV8RBh+sxXfOiTNl+ClzE/rvuEjK6BelLdxgmZiksLBxCTiCSphQ7sbCbN+TcIj5LDLcEQ+5nwFQnjbjgDjZw1n6IfRU/0vq8cl+6LwnhcQu4JLmNbVlOwdMubbl5SSZDydSMFjJCf3UUxY= Received: by 10.36.250.48 with SMTP id x48mr2049921nzh; Fri, 07 Apr 2006 05:48:53 -0700 (PDT) Received: by 10.36.61.6 with HTTP; Fri, 7 Apr 2006 05:48:53 -0700 (PDT) Message-ID: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> Date: Fri, 7 Apr 2006 07:48:53 -0500 From: "Chad Files" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <1144351679.21194.8.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 12:49:07 -0000 On 4/6/06, Aaron Bockover wrote: > What happens in Rhythmbox? Everything plays fine. > No, the problem would not be in bindings. The GStreamer stuff in Banshee > is all in C, and a binding wouldn't make your audio pop. There may be > something missing from the pipeline, or it could easily be hardware or > output sink related. After reading the above I wondered if it had anything to do with the media format, and it does. The popping only happens when playing ogg files, mp3 and CD playback work fine. Is there something that need to change in the way ogg is read and played? By the way, before it is asked, I have been using the same ogg file in all of the other applications during my troubleshooting. Banshee is the only one that I can hear the popping with. -- Chad From thijsvermeir@telenet.be Fri Apr 7 09:04:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D2453B0394 for ; Fri, 7 Apr 2006 09:04:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25898-03 for ; Fri, 7 Apr 2006 09:04:53 -0400 (EDT) Received: from hoefnix.telenet-ops.be (hoefnix.telenet-ops.be [195.130.132.54]) by menubar.gnome.org (Postfix) with ESMTP id 978D83B3292 for ; Fri, 7 Apr 2006 09:04:52 -0400 (EDT) Received: from nocme1bl6.telenet-ops.be (nocme1bl6.telenet-ops.be [195.130.136.37]) by hoefnix.telenet-ops.be (Postfix) with ESMTP id 04F1CA03AA for ; Fri, 7 Apr 2006 15:04:16 +0200 (CEST) Received: from nocme1bl6.telenet-ops.be (localhost.localdomain [127.0.0.1]) by nocme1bl6.telenet-ops.be (Postfix) with ESMTP id E2E6B388052 for ; Fri, 7 Apr 2006 15:04:15 +0200 (CEST) From: "thijsvermeir@pandora.be" To: banshee-list@gnome.org Importance: Normal Sensitivity: Normal Message-ID: X-Originating-IP: [81.164.14.70] X-Forwarded-For: [(null)] Date: Fri, 07 Apr 2006 13:04:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Error while compiling cvs (Mono.Unix) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 13:04:56 -0000 Hello, I get this error when I try to compile Banshee from source. --- ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous reference between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' --- I'm using mono 1.1.13 from the Ubuntu Breezy archive. How can I fix this? Thanks, Thijs From wpoland@gmail.com Fri Apr 7 11:18:37 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 320383B0474 for ; Fri, 7 Apr 2006 11:18:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03468-09 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.193]) by menubar.gnome.org (Postfix) with ESMTP id 7F2353B0473 for ; Fri, 7 Apr 2006 11:18:34 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id t4so319004wxc for ; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cDSyTYYBau30SPmJl9fe839LULir1wczTl6RLadjRdvB6OhWBVYYcw5zHO7DCinc9aStQ6fiiWmkZcT1EB6yWs3JCPPHqML7siM5jVzbf7hcX2sog0j349m712sJWA4Q67RyVBn8xMWDqjz/lv/xTBYj3SSUY6fXI0C0ddzWPdw= Received: by 10.70.27.6 with SMTP id a6mr2854231wxa; Fri, 07 Apr 2006 08:18:33 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 08:18:33 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 08:18:33 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.579 tagged_above=-999 required=2 tests=[AWL=0.021, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.579 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 15:18:37 -0000 On 4/7/06, Thijs Vermeir wrote: > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > Hey folks, > Hey, > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > Clock plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating > > efforts :) > > > > ... > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > plugin is more in > > the concept stage (I have more pencil sketches than actual > > code)...so I'm open to > > ideas :) > > Looks nice, > Need suggestions? ;-) > I like to see integrated support for shutdown/wakeup the PC. > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > This is great, I've been looking forward to a feature like this for a while. I've been using a bash script and banshee's command line options of "--play" and "--pause" to accomplish this lately. Nothing like waking to "Here Comes the Sun" every morning. ;) Best of luck. From josiah.ritchie@gmail.com Fri Apr 7 13:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E36A3B182C for ; Fri, 7 Apr 2006 13:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11539-08 for ; Fri, 7 Apr 2006 13:13:13 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 152B93B33C7 for ; Fri, 7 Apr 2006 13:13:10 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so484612nzf for ; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TcT2qzrO9xWB6tfR0qLlvGaVRe0u2NICrSvHIroIpNQR2YMMK39hAGFXEGTGXnXMoVcISIoouKwGh3x6hbMqJQ8N+SXuDE3+foAWcIkGkj6J9fjNvWIxnHsdPYhzS1VL4037Me9A9wiBl3SxoG4H7NHmkB5HTLi+8Z9I8paJiY4= Received: by 10.36.33.4 with SMTP id g4mr2134703nzg; Fri, 07 Apr 2006 10:13:09 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Fri, 7 Apr 2006 10:13:09 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 13:13:09 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.474 tagged_above=-999 required=2 tests=[AWL=0.126, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.474 X-Spam-Level: Subject: [Banshee-List] How's the podcast plugin coming? X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:13:18 -0000 How is the podcast plugin coming? Mostly I'm asking to make sure I didn't miss an announcement. :-) JSR/ -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From mattisking@gmail.com Fri Apr 7 13:54:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 52F7E3B09E1 for ; Fri, 7 Apr 2006 13:54:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14464-01 for ; Fri, 7 Apr 2006 13:54:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id A62A13B0617 for ; Fri, 7 Apr 2006 13:54:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so514528pyu for ; Fri, 07 Apr 2006 10:54:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iw45thcdgy7nuLGDiN/kP02ylrQIIC2912Q3PU5Vu+mTMSoRhvgQ0ImDvhRL1tJcoRVQrqKisZ3SYbnma8OMhkOO5TmH2e3kb6fNrfl5PKbg1gRpXWkG1nz+PnA2lZaP9Necp8V/A14X9wBzfzrq9pnij/ihz9lfly+hJREcqPc= Received: by 10.35.60.15 with SMTP id n15mr2383799pyk; Fri, 07 Apr 2006 10:54:29 -0700 (PDT) Received: by 10.35.116.16 with HTTP; Fri, 7 Apr 2006 10:54:29 -0700 (PDT) Message-ID: <39efb3860604071054l74153655lee7cbf726d87ff92@mail.gmail.com> Date: Fri, 7 Apr 2006 13:54:29 -0400 From: "Matt Philmon" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27780_12765770.1144432469951" References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <572D3E98-05F0-4AA0-B52F-259012DFCC1C@telenet.be> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.098 tagged_above=-999 required=2 tests=[AWL=0.127, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.098 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 17:54:34 -0000 ------=_Part_27780_12765770.1144432469951 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have. Matt Philmon On 4/7/06, Byron Poland wrote: > > On 4/7/06, Thijs Vermeir wrote: > > > > On 7-apr-06, at 10:07, Trick van Staveren wrote: > > > > > Hey folks, > > Hey, > > > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm > > > Clock plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating > > > efforts :) > > > > > > ... > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this > > > plugin is more in > > > the concept stage (I have more pencil sketches than actual > > > code)...so I'm open to > > > ideas :) > > > > Looks nice, > > Need suggestions? ;-) > > I like to see integrated support for shutdown/wakeup the PC. > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > > > > > > > _______________________________________________ > > > Banshee-list mailing list > > > Banshee-list@gnome.org > > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > This is great, I've been looking forward to a feature like this for a > while. I've been using a bash script and banshee's command line > options of "--play" and "--pause" to accomplish this lately. Nothing > like waking to "Here Comes the Sun" every morning. ;) > > Best of luck. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_27780_12765770.1144432469951 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is a great idea. I'll think on it. I am going to put a small PC on my = nightstand... was hoping to get a touchscreen interface for an LCD I alread= y have.

Matt Philmon

On 4/7/= 06,=20 Byron Poland <wpoland@gmail.com> wrote:
On 4/7/06, Thijs Vermeir <thi= jsvermeir@telenet.be> wrote:
>
> On 7-apr-06, at 10:07, = Trick van Staveren wrote:
>
> > Hey folks,
> Hey,
>
> >
> > I've been starting to work on a new plugin f= or Banshee - an Alarm
> > Clock plugin.  Has
> >= ; anyone worked on this?  If so, LMK, so we're not duplicating> > efforts :)
> >
> > ...
> >
> > Anyone have any ot= her ideas/suggestions for me?  Like I said, this
> > plu= gin is more in
> > the concept stage (I have more pencil sketches = than actual
> > code)...so I'm open to
> > ideas :)
>
> = Looks nice,
> Need suggestions? ;-)
> I like to see integrated = support for shutdown/wakeup the PC.
>
> > Thanks all!
> >
> > Patrick
> >
> > (irc as trick)
= > >
> > --
> > Patrick "Trick" van Staver= en
> > Western Michigan University
> > AIM: goofyassmoose
> > Cell: 269.267.6008
> > http://www.trick.vanstaveren.us/
> >
> &= gt;
> >
> >
> > ________________________________= _______________
> > Banshee-list mailing list
> > Banshee-list@gnome.org
> > http://mail.gnome.org/mail= man/listinfo/banshee-list
> >


This is great, I've been looking forward to a = feature like this for a
while.  I've been using a bash script = and banshee's command line
options of "--play" and "--pau= se" to accomplish this lately.  Nothing
like waking to "Here Comes the Sun" every morning. ;)

= Best of luck.
_______________________________________________
Banshee= -list mailing list
Banshee-lis= t@gnome.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list
=
------=_Part_27780_12765770.1144432469951-- From silwenae@gmail.com Fri Apr 7 14:31:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 877493B33E5 for ; Fri, 7 Apr 2006 14:31:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17225-10 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by menubar.gnome.org (Postfix) with ESMTP id 3297C3B07F0 for ; Fri, 7 Apr 2006 14:31:40 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so500194nzf for ; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=jq009RPMtpj+5D6fTnxkonZJo+vN5cwzrNJRXp7MQeq6/0HIV1tpZGakDFbawhRhnLWCUaGMluPsaRRM7cYpmDs+WUn35pED6KntMeIeuQ/WRU8oYt9bQO25nNk3rh+OeKZgs6FvURYSUJKmaV8N3W2mGrPy/kZnvSX24Anyx/o= Received: by 10.36.247.73 with SMTP id u73mr1736898nzh; Fri, 07 Apr 2006 11:31:39 -0700 (PDT) Received: by 10.36.129.13 with HTTP; Fri, 7 Apr 2006 11:31:39 -0700 (PDT) Message-ID: <4c4ad4df0604071131v3ea4823br1020552e5e6c4018@mail.gmail.com> Date: Fri, 7 Apr 2006 13:31:39 -0500 From: "Paul Cutler" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Error while compiling cvs (Mono.Unix) In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12908_3660691.1144434699567" References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.236 tagged_above=-999 required=2 tests=[AWL=-0.133, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.236 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 18:31:42 -0000 ------=_Part_12908_3660691.1144434699567 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to need an updated Mono (among other things) on Breezy if you don't want to update to Dapper. See the Ubuntu page on the wiki: http://www.banshee-project.org/Distributions/Ubuntu Paul On 4/7/06, thijsvermeir@pandora.be wrote: > > Hello, > > I get this error when I try to compile Banshee from source. > --- > ./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referenc= e > between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat' > --- > I'm using mono 1.1.13 from the Ubuntu Breezy archive. > > How can I fix this? > > Thanks, > Thijs > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_12908_3660691.1144434699567 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You may need to add the repository and build-dep it first, you're going to = need an updated Mono (among other things) on Breezy if you don't want to up= date to Dapper.

See the Ubuntu page on the wiki:

http://www.banshee-project.org/Distributions/Ubuntu

Paul

=
On 4/7/06, <= a href=3D"mailto:thijsvermeir@pandora.be">thijsvermeir@pandora.be &= lt; thijsvermeir@telenet.be> = wrote:
Hell= o,

I get this error when I try to compile Banshee from source.
---<= br>./ImportManager.cs(193,17): error CS0104: `Stat' is an ambiguous referen= ce between `Mono.Unix.Stat' and `Mono.Unix.Native.Stat'
---
I'm using= mono=20 1.1.13 from the Ubuntu Breezy archive.

How can I fix this?

Th= anks,
Thijs



_____________________________________________= __
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_12908_3660691.1144434699567-- From bertrand.lorentz@free.fr Fri Apr 7 15:47:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 12AE93B0C23 for ; Fri, 7 Apr 2006 15:47:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22282-01 for ; Fri, 7 Apr 2006 15:46:55 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 1B32C3B088C for ; Fri, 7 Apr 2006 15:46:48 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 90E3C6D231 for ; Fri, 7 Apr 2006 21:46:46 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-nZ0gXIa8jpype9b/iPe6" Date: Fri, 07 Apr 2006 21:46:44 +0200 Message-Id: <1144439204.517.58.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 19:47:02 -0000 --=-nZ0gXIa8jpype9b/iPe6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > Hey folks, >=20 > I've been starting to work on a new plugin for Banshee - an Alarm Clock p= lugin. Has > anyone worked on this? If so, LMK, so we're not duplicating efforts :) Hi, I've been working on something similar. I'm trying to replicate the features from the xmms-alarm plugin for XMMS and beep media player. I've got some working code, but it still needs some work. I'm still waking up with beep media player... > Features I'm working on: >=20 > Sleep timer: > * ability to set a timer that when it's up, will pause playback. Great = for when > you're loving your tunes but don't want to hear them ALL night. >=20 > Alarm timer: > * will start playback at the given time. > * "recur" option - if enabled, will set the timer again for the next day= at that same > time. > * volume setting - will change the volume to a certain level before play= ing. This way > you don't have to set it before you go to sleep. >=20 > Future ideas: > * sleep timer - make it so it fades out the song, or stops at the end of= the song > rather than just pausing in the middle of it. > * alarm timer - volume change will be gradual. will set the volume when= the alarm > first goes off, and will gradually increase it to another value over a sp= an of seconds > or minutes. All three values will be settable. >=20 > Anyone have any other ideas/suggestions for me? Like I said, this plugin= is more in > the concept stage (I have more pencil sketches than actual code)...so I'm= open to > ideas :) What is working in my code : - Start playback at a given time - Set the volume before playing What is implemented but doesn't work - Gradually change the volume while playing over a period of time. The volume just gets stuck at the first value. The configuration options need some UI love. For now it's just a bunch of SpinButtons. Things I'd like to have : - Set different alarm times for each day of the week. I don't want to be waken up at 7am on a Sunday morning because I left banshee running... The sleep timer is a good idea, and should be easy to do once the alarm stuff is done. I planned to put the code out when I have a working plugin, but I'd be happy to share the code now. I just need to find a place to host it. (Looking towards the banshee subversion repository. If the admin is reading this... ;) > Thanks all! >=20 > Patrick >=20 > (irc as trick) >=20 > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ >=20 --=20 Bertrand Lorentz --=-nZ0gXIa8jpype9b/iPe6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE +THmUT47WTYvpwVUSC5JFA0= =ZY2f -----END PGP SIGNATURE----- --=-nZ0gXIa8jpype9b/iPe6-- From pcolijn@gmail.com Fri Apr 7 18:02:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 01ED33B0266 for ; Fri, 7 Apr 2006 18:02:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28937-09 for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.228]) by menubar.gnome.org (Postfix) with ESMTP id 32FFF3B106F for ; Fri, 7 Apr 2006 18:02:23 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so505799wra for ; Fri, 07 Apr 2006 15:02:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tvl3ZtWt8Y5PWoBRJimlhbzyxFyuk3bRwuc6gKA3kFySGlECzVCU5PhsuEYKiehhjIdiIyD59NT2j/Yz31OcknejPCyzV4yv60VeS+NRjBXBe1YQLZ/mJ33ag93XneFXnMJraiV4GI3jLnSYrx5pBHk2XaoFp82bwW41knCFO+c= Received: by 10.54.100.3 with SMTP id x3mr307724wrb; Fri, 07 Apr 2006 15:02:21 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Fri, 7 Apr 2006 15:02:21 -0700 (PDT) Message-ID: <7c35b00e0604071502r454ac03yed32876ee1cd2139@mail.gmail.com> Date: Fri, 7 Apr 2006 18:02:21 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Poor Playback In-Reply-To: <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <9735eb9b0604060701q2c16c250we05f882dce172491@mail.gmail.com> <1144351679.21194.8.camel@sledipus.rex> <9735eb9b0604070548q1a2b46cx5c090e901e2440f4@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.363 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.363 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:02:25 -0000 SGksCgpPbiA0LzcvMDYsIENoYWQgRmlsZXMgPGNwZmlsZXNAZ21haWwuY29tPiB3cm90ZToKPiBB ZnRlciByZWFkaW5nIHRoZSBhYm92ZSBJIHdvbmRlcmVkIGlmIGl0IGhhZCBhbnl0aGluZyB0byBk byB3aXRoIHRoZQo+IG1lZGlhIGZvcm1hdCwgYW5kIGl0IGRvZXMuIFRoZSBwb3BwaW5nIG9ubHkg aGFwcGVucyB3aGVuIHBsYXlpbmcgb2dnCj4gZmlsZXMsIG1wMyBhbmQgQ0QgcGxheWJhY2sgd29y ayBmaW5lLiBJcyB0aGVyZSBzb21ldGhpbmcgdGhhdCBuZWVkIHRvCj4gY2hhbmdlIGluIHRoZSB3 YXkgb2dnIGlzIHJlYWQgYW5kIHBsYXllZD8KCkkga25vdyAibWUgdG9vIiByZXBsaWVzIGFyZSBu b3QgdGhhdCB1c2VmdWwsIGJ1dCBJIGhhdmUgZXhwZXJpZW5jZSBhCnNpbWlsYXIgKGJ1dCBub3Qg ZXhhY3RseSB0aGUgc2FtZSkgcHJvYmxlbS4gWWVzdGVyZGF5IEkgY29waWVkIHNvbWUKb2dncyB0 byBteSBpcG9kIHVzaW5nIEJhbnNoZWUsIGFuZCB0aGV5IHNvdW5kIGFsbCBwb3BweSBvbiB0aGUg aXBvZC4KV2hhdCdzIGludGVyZXN0aW5nIGFib3V0IHRoYXQgaXMgdGhhdCBJIGFzc3VtZSB0aGUg dHJhbnNjb2RlciBoYXMKbm90aGluZyB0byBkbyB3aXRoIHRoZSBhdWRpbyBoYXJkd2FyZSBvciBB TFNBIGNvbmZpZ3VyYXRpb24sIHNvIHRob3NlCmNhbiBwcm9iYWJseSBiZSBydWxlZCBvdXQuCgpI YXZlIGZ1biwKClBldGVyCg== From wpoland@gmail.com Fri Apr 7 18:10:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB043B0A42 for ; Fri, 7 Apr 2006 18:10:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29555-07 for ; Fri, 7 Apr 2006 18:10:23 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by menubar.gnome.org (Postfix) with ESMTP id 58D233B05DC for ; Fri, 7 Apr 2006 18:10:22 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so461766wxd for ; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UfOyLWKYIUQunrMKQD3b53u5vEZ4RKnRDx2780mnViKqF+wHyRVNnICwoBfC6KnDNN+4avh0m6HKciY8saBpvU9sasE9viPP4mfEYoUnmkmKxz+0iSXQZnivY4T0nxLCWJ7Giq2WbUjc90QeFYhArZPuLM30Os8IjS2OvgwcKJU= Received: by 10.70.73.6 with SMTP id v6mr2321606wxa; Fri, 07 Apr 2006 15:10:20 -0700 (PDT) Received: by 10.70.72.7 with HTTP; Fri, 7 Apr 2006 15:10:20 -0700 (PDT) Message-ID: Date: Fri, 7 Apr 2006 15:10:20 -0700 From: "Byron Poland" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.587 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.587 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2006 22:10:26 -0000 On 4/7/06, Bertrand Lorentz wrote: > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > Hey folks, > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clock= plugin. Has > > anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > > > Features I'm working on: > > > > Sleep timer: > > * ability to set a timer that when it's up, will pause playback. Grea= t for when > > you're loving your tunes but don't want to hear them ALL night. > > > > Alarm timer: > > * will start playback at the given time. > > * "recur" option - if enabled, will set the timer again for the next d= ay at that same > > time. > > * volume setting - will change the volume to a certain level before pl= aying. This way > > you don't have to set it before you go to sleep. > > > > Future ideas: > > * sleep timer - make it so it fades out the song, or stops at the end = of the song > > rather than just pausing in the middle of it. > > * alarm timer - volume change will be gradual. will set the volume wh= en the alarm > > first goes off, and will gradually increase it to another value over a = span of seconds > > or minutes. All three values will be settable. > > > > Anyone have any other ideas/suggestions for me? Like I said, this plug= in is more in > > the concept stage (I have more pencil sketches than actual code)...so I= 'm open to > > ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > > > Thanks all! > > > > Patrick > > > > (irc as trick) > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > -- > Bertrand Lorentz > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2.2 (GNU/Linux) > > iD8DBQBENsGkb1pl4loRymARAq3lAJwImv1MlvcYx05+aErJveJItwg5HQCgtHxE > +THmUT47WTYvpwVUSC5JFA0=3D > =3DZY2f > -----END PGP SIGNATURE----- > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > How about a UI element that gives you a countdown clock for either the sleep timer or the time until the alarm goes off? From bertrand.lorentz@free.fr Sat Apr 8 04:08:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22A743B0467 for ; Sat, 8 Apr 2006 04:08:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20914-10 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 7B7D03B0447 for ; Sat, 8 Apr 2006 04:08:10 -0400 (EDT) Received: from neu67-1-82-231-75-129.fbx.proxad.net (neu67-1-82-231-75-129.fbx.proxad.net [82.231.75.129]) by smtp2-g19.free.fr (Postfix) with ESMTP id 661C273184 for ; Sat, 8 Apr 2006 10:08:09 +0200 (CEST) Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock From: Bertrand Lorentz To: banshee-list@gnome.org In-Reply-To: References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-FnO6LSDuTF7Rtiurrljp" Date: Sat, 08 Apr 2006 10:08:08 +0200 Message-Id: <1144483688.517.69.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 08:08:14 -0000 --=-FnO6LSDuTF7Rtiurrljp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-04-07 at 15:10 -0700, Byron Poland wrote: > On 4/7/06, Bertrand Lorentz wrote: > > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: > > > Hey folks, > > > > > > I've been starting to work on a new plugin for Banshee - an Alarm Clo= ck plugin. Has > > > anyone worked on this? If so, LMK, so we're not duplicating efforts = :) > > > > Hi, > > > > I've been working on something similar. I'm trying to replicate the > > features from the xmms-alarm plugin for XMMS and beep media player. > > I've got some working code, but it still needs some work. > > I'm still waking up with beep media player... > > > > > Features I'm working on: > > > > > > Sleep timer: > > > * ability to set a timer that when it's up, will pause playback. Gr= eat for when > > > you're loving your tunes but don't want to hear them ALL night. > > > > > > Alarm timer: > > > * will start playback at the given time. > > > * "recur" option - if enabled, will set the timer again for the next= day at that same > > > time. > > > * volume setting - will change the volume to a certain level before = playing. This way > > > you don't have to set it before you go to sleep. > > > > > > Future ideas: > > > * sleep timer - make it so it fades out the song, or stops at the en= d of the song > > > rather than just pausing in the middle of it. > > > * alarm timer - volume change will be gradual. will set the volume = when the alarm > > > first goes off, and will gradually increase it to another value over = a span of seconds > > > or minutes. All three values will be settable. > > > > > > Anyone have any other ideas/suggestions for me? Like I said, this pl= ugin is more in > > > the concept stage (I have more pencil sketches than actual code)...so= I'm open to > > > ideas :) > > > > What is working in my code : > > - Start playback at a given time > > - Set the volume before playing > > > > What is implemented but doesn't work > > - Gradually change the volume while playing over a period of time. > > The volume just gets stuck at the first value. > > > > The configuration options need some UI love. For now it's just a bunch > > of SpinButtons. > > > > Things I'd like to have : > > - Set different alarm times for each day of the week. I don't want to b= e > > waken up at 7am on a Sunday morning because I left banshee running... > > > > The sleep timer is a good idea, and should be easy to do once the alarm > > stuff is done. > > > > I planned to put the code out when I have a working plugin, but I'd be > > happy to share the code now. > > I just need to find a place to host it. (Looking towards the banshee > > subversion repository. If the admin is reading this... ;) > > > > > Thanks all! > > > > > > Patrick > > > > > > (irc as trick) > > > > > > -- > > > Patrick "Trick" van Staveren > > > Western Michigan University > > > AIM: goofyassmoose > > > Cell: 269.267.6008 > > > http://www.trick.vanstaveren.us/ > > > > > > > > > -- > > Bertrand Lorentz > > >=20 > How about a UI element that gives you a countdown clock for either the > sleep timer or the time until the alarm goes off? Good idea, I think knowing that I only have 5 hours of sleep left might help me to go to bed earlier... I think it would be better to have that UI element integrated in the banshee main window. I wonder how we can do that from a plugin... Has any plugin already done something similiar ? --=20 Bertrand Lorentz --=-FnO6LSDuTF7Rtiurrljp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEN29ob1pl4loRymARAtiCAJ45r7mnpYCxpkEzDi+ENe+moYUogwCcC4Ad wQ3UPPt1GLcwAxVNENdSiCU= =hBqc -----END PGP SIGNATURE----- --=-FnO6LSDuTF7Rtiurrljp-- From trick@vanstaveren.us Sat Apr 8 05:26:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA7E63B03D6 for ; Sat, 8 Apr 2006 05:26:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25286-08 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id BCD3C3B02A4 for ; Sat, 8 Apr 2006 05:26:45 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FS9iM-0006r1-Br; Sat, 08 Apr 2006 02:26:43 -0700 Received: from d107097.dynamic.cmich.edu (d107097.dynamic.cmich.edu [141.209.107.97]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 08 Apr 2006 05:26:40 -0400 Message-ID: <20060408052640.s91dhph69ns4skgo@www.vanstaveren.us> Date: Sat, 08 Apr 2006 05:26:40 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Bertrand Lorentz Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock References: <20060407040715.2fohtyfqmn4g8ksg@www.vanstaveren.us> <1144439204.517.58.camel@localhost> In-Reply-To: <1144439204.517.58.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.209.107.97 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2006 09:26:47 -0000 Bertrand, Glad to hear you've been working on this as well :) Could you maybe post the code here on banshee-list? It can't be too big...just post the main .cs file that you're using. I'll focus on getting the sleep timer to work, and if you want to post your code, we can wrap them together into a single plugin. I left Aaron a message and he can probably get us SVN access here soon. As for adding a UI element, I'm sure it's possible thru a plugin...look at what minimode has done thru a plugin - totally reshaped the UI. We'll keep this one in mind :) Great work! From the sound of it, you've already got the basics of a plugin ready...good work! If you're ever around irc, bug me (trick). Thanks for the suggestions everyone...i'm tired of my sleep timer'd bash scripts, I'm sure we'll have this plugin put together in no time :) If anyone has any more feature requests for this plugin, do post them! Cheers Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from bertrand.lorentz@free.fr --------- Date: Fri, 07 Apr 2006 21:46:44 +0200 From: Bertrand Lorentz Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Plugin in the works: Alarm Clock To: banshee-list@gnome.org > On Fri, 2006-04-07 at 04:07 -0400, Trick van Staveren wrote: >> Hey folks, >> >> I've been starting to work on a new plugin for Banshee - an Alarm >> Clock plugin. Has >> anyone worked on this? If so, LMK, so we're not duplicating efforts :) > > Hi, > > I've been working on something similar. I'm trying to replicate the > features from the xmms-alarm plugin for XMMS and beep media player. > I've got some working code, but it still needs some work. > I'm still waking up with beep media player... > >> Features I'm working on: >> >> Sleep timer: >> * ability to set a timer that when it's up, will pause playback. >> Great for when >> you're loving your tunes but don't want to hear them ALL night. >> >> Alarm timer: >> * will start playback at the given time. >> * "recur" option - if enabled, will set the timer again for the >> next day at that same >> time. >> * volume setting - will change the volume to a certain level before >> playing. This way >> you don't have to set it before you go to sleep. >> >> Future ideas: >> * sleep timer - make it so it fades out the song, or stops at the >> end of the song >> rather than just pausing in the middle of it. >> * alarm timer - volume change will be gradual. will set the volume >> when the alarm >> first goes off, and will gradually increase it to another value over >> a span of seconds >> or minutes. All three values will be settable. >> >> Anyone have any other ideas/suggestions for me? Like I said, this >> plugin is more in >> the concept stage (I have more pencil sketches than actual >> code)...so I'm open to >> ideas :) > > What is working in my code : > - Start playback at a given time > - Set the volume before playing > > What is implemented but doesn't work > - Gradually change the volume while playing over a period of time. > The volume just gets stuck at the first value. > > The configuration options need some UI love. For now it's just a bunch > of SpinButtons. > > Things I'd like to have : > - Set different alarm times for each day of the week. I don't want to be > waken up at 7am on a Sunday morning because I left banshee running... > > The sleep timer is a good idea, and should be easy to do once the alarm > stuff is done. > > I planned to put the code out when I have a working plugin, but I'd be > happy to share the code now. > I just need to find a place to host it. (Looking towards the banshee > subversion repository. If the admin is reading this... ;) > >> Thanks all! >> >> Patrick >> >> (irc as trick) >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> > > > -- > Bertrand Lorentz > ----- End message from bertrand.lorentz@free.fr ----- From abockover@novell.com Sat Apr 8 23:59:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C165B3B0871 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10247-09 for ; Sat, 8 Apr 2006 23:59:39 -0400 (EDT) Received: from abock.org (aaronbock.net [67.18.92.43]) by menubar.gnome.org (Postfix) with ESMTP id 035F43B0879 for ; Sat, 8 Apr 2006 23:59:38 -0400 (EDT) Received: from [192.168.1.129] aaron [66.30.115.152] by abock.org with NetMail SMTP Agent $Revision: 1.7 $; Sat, 08 Apr 2006 23:59:38 -0400 Subject: Re: [Banshee-List] How's the podcast plugin coming? From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 07 Apr 2006 21:43:00 -0400 Message-Id: <1144460581.4437.20.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.384 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DATE_IN_PAST_24_48=0.88, DNS_FROM_RFC_ABUSE=0.2, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.384 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 03:59:39 -0000 I have been trying to get hold of Mike since the deadline he set for this past Monday. No announcements missed, and you're not alone in wondering what's going on ;) Cheers, Aaron On Fri, 2006-04-07 at 13:13 -0400, Josiah Ritchie wrote: > How is the podcast plugin coming? Mostly I'm asking to make sure I > didn't miss an announcement. :-) > > JSR/ > > -- > Our Mission > Technology and Hospitality for God's Workmen > http://missions.ritchietribe.net > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Sun Apr 9 07:50:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 869673B1C6C for ; Sun, 9 Apr 2006 07:50:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12857-10 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 79AAD3B1CA0 for ; Sun, 9 Apr 2006 07:50:18 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so701841wra for ; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=GiQth52y+BSxy0cAWd35+7LObJofI2VpYKOnQq7/5rwCMO3cspbct93mnmMMM4HeTBiw+UJrskLN5fPUdmtaDeEXD/Z7BS3FUDrXKrCo7Odt6CuTU8dbE4FdQWIqI7OvbFWl01z3e4c7Uah2TMYjcUj5m4025kCbUrY3mQQch5k= Received: by 10.54.67.11 with SMTP id p11mr2420146wra; Sun, 09 Apr 2006 04:50:17 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 04:50:17 -0700 (PDT) Message-ID: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Date: Sun, 9 Apr 2006 12:50:17 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_476_30259549.1144583417871" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] [Patch] DAP UI Initialisation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 11:50:21 -0000 ------=_Part_476_30259549.1144583417871 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch fixes the issue with starting banshee with a mass storage dap plugged in. Rather than loading the track database during Initialisation of the dap class it is now delayed until the UI has been initialised, allowing the reading of the database to use the UI. Cheers, James. ------=_Part_476_30259549.1144583417871 Content-Type: plain/text; name=dap-ui-init.diff Content-Transfer-Encoding: 7bit X-Attachment-Id: f_eltb0vif Content-Disposition: attachment; filename="dap-ui-init.diff" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.14 diff -u -r1.14 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 10 Mar 2006 17:25:12 -0000 1.14 +++ src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 11:34:18 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.12 diff -u -r1.12 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 13 Feb 2006 22:18:10 -0000 1.12 +++ src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 11:34:18 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.5 diff -u -r1.5 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Mar 2006 07:52:42 -0000 1.5 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 11:34:19 -0000 @@ -95,8 +95,6 @@ base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; @@ -110,7 +108,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 9 Apr 2006 11:34:19 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); ------=_Part_476_30259549.1144583417871-- From ruben@Lambda1.be Sun Apr 9 08:56:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4639F3B1D53 for ; Sun, 9 Apr 2006 08:56:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17300-10 for ; Sun, 9 Apr 2006 08:56:19 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 04FD33B1D3C for ; Sun, 9 Apr 2006 08:56:18 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k39CuGc07339 for ; Sun, 9 Apr 2006 14:56:16 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id E77EE4608DA; Sun, 9 Apr 2006 14:56:15 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 14:56:15 +0200 Message-Id: <1144587375.9734.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 12:56:26 -0000 On Sun, 2006-04-09 at 12:50 +0100, James Stembridge wrote: > Hi, > > Attached patch fixes the issue with starting banshee with a mass > storage dap plugged in. > > Rather than loading the track database during Initialisation of the > dap class it is now delayed until the UI has been initialised, > allowing the reading of the database to use the UI. Haven't tested it, but patch looks good at first sight. Don't forget to post it to the bugzilla, else it might get lost in the process. Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Sun Apr 9 09:01:34 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4C5F3B1D56 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17740-07 for ; Sun, 9 Apr 2006 09:01:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.238]) by menubar.gnome.org (Postfix) with ESMTP id BC3863B1D53 for ; Sun, 9 Apr 2006 09:01:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so706599wra for ; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JqAtr2QRhcDuj5tSXTYg+XkTGr3BqO0PY9dowRSSsZDbG49B+loWQTfIp27FNE2WqMGyEYhhtIFf5Pv0itAehAD9pwv3NgvtOnIATFumbmd/b6CH8yTy0TrXadQjZaBsIS13XVdmZ07/rsZjVeTc7dFqRCUzB6Q+0HNn49/qobE= Received: by 10.54.140.6 with SMTP id n6mr2386636wrd; Sun, 09 Apr 2006 06:01:32 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Sun, 9 Apr 2006 06:01:32 -0700 (PDT) Message-ID: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Date: Sun, 9 Apr 2006 14:01:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation In-Reply-To: <1144587375.9734.1.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:01:34 -0000 On 4/9/06, Ruben Vermeersch wrote: > Haven't tested it, but patch looks good at first sight. Don't forget to > post it to the bugzilla, else it might get lost in the process. Sure will do. What's the preference for posting patches? Mailing list, bugzilla or both? James. From ruben@Lambda1.be Sun Apr 9 09:17:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1A543B1D5F for ; Sun, 9 Apr 2006 09:17:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18512-07 for ; Sun, 9 Apr 2006 09:17:03 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id EAA603B1D68 for ; Sun, 9 Apr 2006 09:17:02 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k39DH0A32760 for ; Sun, 9 Apr 2006 15:17:01 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 681584608DA; Sun, 9 Apr 2006 15:16:58 +0200 (CEST) Subject: Re: [Banshee-List] [Patch] DAP UI Initialisation From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> References: <18bc366d0604090450m6b1a4f51r5efe4cdd3585c712@mail.gmail.com> <1144587375.9734.1.camel@localhost.localdomain> <18bc366d0604090601u78441599k2c5038f5b791a601@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 09 Apr 2006 15:16:58 +0200 Message-Id: <1144588618.11205.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.591 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 13:17:05 -0000 On Sun, 2006-04-09 at 14:01 +0100, James Stembridge wrote: > On 4/9/06, Ruben Vermeersch wrote: > > Haven't tested it, but patch looks good at first sight. Don't forget to > > post it to the bugzilla, else it might get lost in the process. > > Sure will do. What's the preference for posting patches? Mailing list, > bugzilla or both? There's no strict rules on that, but I'd like to give the advice of posting every patch to bugzilla, they can't get lost there. If your patch needs review / you'd like to get feedback, post them to the list too. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From trick@vanstaveren.us Mon Apr 10 05:29:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 888E73B07B1 for ; Mon, 10 Apr 2006 05:29:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13794-04 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 2EBA53B09A6 for ; Mon, 10 Apr 2006 05:29:37 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FSsiG-0002jh-0z for banshee-list@gnome.org; Mon, 10 Apr 2006 02:29:36 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Mon, 10 Apr 2006 05:29:35 -0400 Message-ID: <20060410052935.ugeratbs2mv4wosg@www.vanstaveren.us> Date: Mon, 10 Apr 2006 05:29:35 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.554 tagged_above=-999 required=2 tests=[AWL=-0.032, BAYES_00=-2.599, TW_SV=0.077] X-Spam-Score: -2.554 X-Spam-Level: Subject: [Banshee-List] Alarm Plugin is in SVN X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 09:29:40 -0000 Howdy folks, I took Bertrand's working code for the alarm timer, and combined it with my sleep timer code and some scraps that I had written, and put it together in a single plugin. It's available on the banshee svn now...just run: svn co svn://svn.banshee-project.org/trunk/banshee-alarm-plugin. Please read the TODO and BUGS files - this plugin is far from complete, but it's a start :) Feel free to send suggestions for the TODO file ;) Please note - if you were using Bertrand's plugin previously, make sure to delete banshee-alarm.dll from your plugins directory. The new plugin renames the dll and I don't want you to find plugin loading failures b/c of duplicate class names... Please also note - if you have somewhere to be in the morning and you rely on this plugin to wake you up, and it fails to do so - don't blame us, just remember it's beta :) Many thanks to Bertrand for his original code! (Bertrand - if you want SVN access to make commits, all you have to do is ask Aaron :)) Cheers, Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From jstembridge@gmail.com Mon Apr 10 15:59:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2001A3B105D for ; Mon, 10 Apr 2006 15:59:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26219-07 for ; Mon, 10 Apr 2006 15:59:33 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id 2FC9C3B11B4 for ; Mon, 10 Apr 2006 15:59:32 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so935140wra for ; Mon, 10 Apr 2006 12:59:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=s0DNfst2vdk+d7Z3d0Ek/C1x33uxQNOyGpIHMtDfgb+fh/4AEPH8Wxtw0phP/YM/aUW/R//V804HBKTiu7pD2mchoDv19u3bfSgkJAU9+jegCL7laCXJVSQ8VN6gJ7v0JbFfoX5no4Eul6pe1ESxql59OQlTRSMhK3XxnyNaxvE= Received: by 10.54.107.17 with SMTP id f17mr4274692wrc; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 12:59:29 -0700 (PDT) Message-ID: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> Date: Mon, 10 Apr 2006 20:59:29 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8480_21443799.1144699169761" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Mass storage status X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 19:59:41 -0000 ------=_Part_8480_21443799.1144699169761 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Just a heads up to anyone who's interested in mass storage dap support. Current cvs along with the following patches: http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 Is working very well for me here with a W800 walkman phone like I have here (fdi file is attached). If anyone else would like to give it a try I'd be interested to here how they got on. Cheers, James. ------=_Part_8480_21443799.1144699169761 Content-Type: application/octet-stream; name=10-sony-erricsson.fdi Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elv89uzs Content-Disposition: attachment; filename="10-sony-erricsson.fdi" portable_audio_player portable_audio_player generic storage MP3/%Artist/%Album/%Track MP3/ audio/mpeg audio/aac ------=_Part_8480_21443799.1144699169761-- From jstembridge@gmail.com Mon Apr 10 16:06:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1CE83B12A0 for ; Mon, 10 Apr 2006 16:06:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26899-07 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id ABA103B1291 for ; Mon, 10 Apr 2006 16:06:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so936592wra for ; Mon, 10 Apr 2006 13:06:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SK+q7qEi1sk9WYCnqRVzfRFoQMAZRG9WMdSa1JIsCEBoYMkTuPCdgbBLDNUDIGnnZMlqWU3Mdq16Yw9xJixI13Hv9fFYm2EuP5V8LkapVhDI3pxLsCifeVoRgH33OPpFOHJ6WwbuY2jToK+TMG14GZY3ZZ2bk5W5qd3TuumakSk= Received: by 10.54.93.7 with SMTP id q7mr161599wrb; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 10 Apr 2006 13:06:35 -0700 (PDT) Message-ID: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Date: Mon, 10 Apr 2006 21:06:35 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Last.fm plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:06:39 -0000 Hi, Second heads up for the evening. I thought I'd have a look at writing a Last.fm plugin, as mentioned on thethe feature request page. Is anyone else out there in internet land working on this? Cheers, James. From ruben@Lambda1.be Mon Apr 10 16:10:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5520E3B2608 for ; Mon, 10 Apr 2006 16:10:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27126-06 for ; Mon, 10 Apr 2006 16:10:57 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 794A73B1DA3 for ; Mon, 10 Apr 2006 16:10:56 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3AKAsA27572 for ; Mon, 10 Apr 2006 22:10:54 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 0EF2A4601E7; Mon, 10 Apr 2006 22:10:51 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Apr 2006 22:10:51 +0200 Message-Id: <1144699851.20263.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-DCC-scarlet.be-Metrics: oola 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.593 tagged_above=-999 required=2 tests=[AWL=0.005, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.593 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:11:00 -0000 On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > Hi, > > Second heads up for the evening. I thought I'd have a look at writing > a Last.fm plugin, as mentioned on thethe feature request page. Is > anyone else out there in internet land working on this? You might want to look into combining this with the internet radio plugin Sven is (was?) writing. Sven, if you're reading this, drop us a line. Kind regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From ml@cybernotic.org Mon Apr 10 16:59:59 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F7A13B28A0 for ; Mon, 10 Apr 2006 16:59:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31164-03 for ; Mon, 10 Apr 2006 16:59:56 -0400 (EDT) Received: from dd1622.kasserver.com (dd1622.kasserver.com [81.209.148.229]) by menubar.gnome.org (Postfix) with ESMTP id EDD483B28A4 for ; Mon, 10 Apr 2006 16:59:55 -0400 (EDT) Received: from [10.14.1.100] (port-212-202-36-218.dynamic.qsc.de [212.202.36.218]) by dd1622.kasserver.com (Postfix) with ESMTP id 689A9B6C41 for ; Mon, 10 Apr 2006 22:59:54 +0200 (CEST) Subject: Re: [Banshee-List] Last.fm plugin From: Alexander Bubeck To: banshee-list@gnome.org In-Reply-To: <1144699851.20263.0.camel@localhost.localdomain> References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> Content-Type: text/plain Date: Mon, 10 Apr 2006 22:59:53 +0200 Message-Id: <1144702793.5424.24.camel@matari> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 20:59:59 -0000 Hi, I started writing a internet radio plugin and got some running code already. After getting the tagging stuff to work I will post my code on the list. I didn't know somebody else was working on this, so I'm also interested in Sven's status. The last.fm radio stuff would also be good in the banshee-recommendation-plugin, where last.fm is used anyway. Cheers, Alex Am Montag, den 10.04.2006, 22:10 +0200 schrieb Ruben Vermeersch: > On Mon, 2006-04-10 at 21:06 +0100, James Stembridge wrote: > > Hi, > > > > Second heads up for the evening. I thought I'd have a look at writing > > a Last.fm plugin, as mentioned on thethe feature request page. Is > > anyone else out there in internet land working on this? > > You might want to look into combining this with the internet radio > plugin Sven is (was?) writing. > > Sven, if you're reading this, drop us a line. > > Kind regards, > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From jasl8r@gmail.com Mon Apr 10 17:48:22 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 41CB13B133B for ; Mon, 10 Apr 2006 17:48:22 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01333-02 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.236]) by menubar.gnome.org (Postfix) with ESMTP id 398133B1350 for ; Mon, 10 Apr 2006 17:48:20 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i6so955949wra for ; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ittiZJO2GwhxY6dVhSMXnJ/x11UZcdh8+44UoW/IVFpWoEFTn5J084VylKePOz0kEjIV7fYBo75cNz4Fe5EQgWA6fUZ85b6XfwmEgZ8trAOJDKCCKlx90owILMNoU7xQQRSl9lwa3T3TY4CPDsEIy1CBlkx7KUnc5f4/3NFAJyo= Received: by 10.54.118.8 with SMTP id q8mr3440634wrc; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Received: by 10.54.125.12 with HTTP; Mon, 10 Apr 2006 14:48:19 -0700 (PDT) Message-ID: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> Date: Mon, 10 Apr 2006 17:48:19 -0400 From: "Jeremy Slater" To: "Banshee List" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_948_5761833.1144705699537" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.866 tagged_above=-999 required=2 tests=[AWL=-0.062, BAYES_00=-2.599, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.866 X-Spam-Level: Subject: [Banshee-List] Daap Startup Crash X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 21:48:22 -0000 ------=_Part_948_5761833.1144705699537 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an accessible daap share on my network. If I stop the avahi service, then banshee starts just fine. I am running 10.9 and I noticed that this was supposedly a fixed issue in 10.7. I was wondering if anyone else is having this problem or if there is an available patch. Jeremy ------=_Part_948_5761833.1144705699537 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy ------=_Part_948_5761833.1144705699537-- From mattvermeulen@gmail.com Mon Apr 10 18:13:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 92C9E3B127C for ; Mon, 10 Apr 2006 18:13:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03202-01 for ; Mon, 10 Apr 2006 18:13:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id DBD8A3B12F4 for ; Mon, 10 Apr 2006 18:13:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1132104pyu for ; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=g8KkZ+Yv2U8Yie3YRgyVertpcIzH/wVU9izkrhGj6IDHPwZqxljmIAdLTMG8UPmB8Wjk0iOseUYOKd8Hx6ZEwUlPP3AsAgTWluuo6UEbZe2UsV/HPxaZMBvwn3xjeL9N9Y3aU5dYD9pG93X8VJa4IO57ZL+WWO6WqI3zdoFGjX4= Received: by 10.35.22.17 with SMTP id z17mr1610827pyi; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Mon, 10 Apr 2006 15:13:43 -0700 (PDT) Message-ID: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> Date: Tue, 11 Apr 2006 06:13:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13667_22538061.1144707223075" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.225 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.225 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 22:13:48 -0000 ------=_Part_13667_22538061.1144707223075 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Lexar Jumpdrive Sport, which is just a generic sort of usb memory stick, an= d I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi to detect the drive as a music device, which it does. However, as best as I ca= n tell, MassStorageDap fails when it gets to if (volume =3D=3D null) and dr= ops out. As of date, I have not been able to get the device showing up in banshee... On 4/11/06, James Stembridge wrote: > > Hi, > > Just a heads up to anyone who's interested in mass storage dap > support. Current cvs along with the following patches: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D337829 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337808 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337807 > http://bugzilla.gnome.org/show_bug.cgi?id=3D337800 > > Is working very well for me here with a W800 walkman phone like I have > here (fdi file is attached). If anyone else would like to give it a > try I'd be interested to here how they got on. > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_13667_22538061.1144707223075 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I've been trying very hard to get the mass storage dap working. I have a Le= xar Jumpdrive Sport, which is just a generic sort of usb memory stick, and = I've been trying to get it to work with banshee as it doubles as storage fo= r my Jumpgear MP3 Player. I modified /usr/share/hal/fdi/information/10freed= esktop/10- usb-music-players.fdi to detect the drive as a music device, which it does.= However, as best as I can tell, MassStorageDap fails when it gets to =   if (volume =3D=3D null) and drops out. As of date, I have not been a= ble to get the device showing up in banshee...

On 4/11/06, James Stembridge <j= stembridge@gmail.com> wrote:
Hi,

Just a heads up to anyone who's interested in mass storage dapsupport. Current cvs along with the following patches:

http://bugzilla.gnome.o= rg/show_bug.cgi?id=3D337829
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337808
http://bugzilla.gnome.org/show_bu= g.cgi?id=3D337807
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D337800

Is working very w= ell for me here with a W800 walkman phone like I have
here (fdi file is = attached). If anyone else would like to give it a
try I'd be interested to here how they got on.

Cheers,
James.=


_______________________________________________
Banshee-list= mailing list
Banshee-list@gno= me.org
htt= p://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_13667_22538061.1144707223075-- From kmf@fischer.org.za Tue Apr 11 05:45:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 024E93B2A6B for ; Tue, 11 Apr 2006 05:45:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04886-10 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from water.securenet-server.net (water.securenet-server.net [65.254.38.146]) by menubar.gnome.org (Postfix) with ESMTP id 315ED3B29F7 for ; Tue, 11 Apr 2006 05:45:38 -0400 (EDT) Received: from [196.25.70.97] (helo=[10.50.130.37]) by water.securenet-server.net with esmtp (Exim 4.52) id 1FTFRE-00018F-DQ for banshee-list@gnome.org; Tue, 11 Apr 2006 05:45:36 -0400 From: Karl Fischer To: banshee-list@gnome.org Content-Type: text/plain Date: Tue, 11 Apr 2006 11:44:53 +0200 Message-Id: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - water.securenet-server.net X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - fischer.org.za X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.181 tagged_above=-999 required=2 tests=[AWL=0.418, BAYES_00=-2.599] X-Spam-Score: -2.181 X-Spam-Level: Subject: [Banshee-List] Bounties Page X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, kmf@fischer.org.za List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 09:45:40 -0000 Hi There, Perhaps we should have a Bounties Page for Plugins and Features ? Karl -- ----------------------------------------- Karl Fischer Drone, Human and Gnome User I support 10x10. Email : kmf@fischer.org.za Jabber : kmf@jabber.org Personal Site : http://fischer.org.za ----------------------------------------- From pascalhos@gmail.com Tue Apr 11 06:53:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C7543B152E for ; Tue, 11 Apr 2006 06:53:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08835-05 for ; Tue, 11 Apr 2006 06:53:19 -0400 (EDT) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.172]) by menubar.gnome.org (Postfix) with ESMTP id DC9C93B151D for ; Tue, 11 Apr 2006 06:53:18 -0400 (EDT) Received: by uproxy.gmail.com with SMTP id y2so706681uge for ; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kxFIlGJhMicRvYReZBHwGSaC4Tjb3u2XW7WqlIog4S0SX3Jt5Ml4+7ZX6bx9kl9w1eGmM/z+W9iJ9IRwQEP1UF1IfHP1w/7jhQbh7hD6D3CubgjLPm2eMuE2l/XEJ5JNXaoODOTt33KcSFgvWJlOCIlPeJsR+oOIFNmB+FHqC00= Received: by 10.78.31.18 with SMTP id e18mr85801hue; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Received: by 10.78.27.3 with HTTP; Tue, 11 Apr 2006 03:53:11 -0700 (PDT) Message-ID: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> Date: Tue, 11 Apr 2006 12:53:11 +0200 From: "Pascal Hos" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3279_10417146.1144752791716" References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.907 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -0.907 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 10:53:20 -0000 ------=_Part_3279_10417146.1144752791716 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy, I'm experiencing the same problem running up-to-date ubuntu Dapper. This bu= g has been reported: http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 Pascal On 4/10/06, Jeremy Slater wrote: > > Hi, Banshee crashes for me whenever I start with daap enabled and have an > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is > having this problem or if there is an available patch. > > Jeremy > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > ------=_Part_3279_10417146.1144752791716 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jeremy,

I'm experiencing the same problem running up-to-date ubun= tu Dapper. This bug has been reported:

http://bugzilla.gnome.org/show_bug.cgi?id= =3D334174
http= ://bugzilla.gnome.org/show_bug.cgi?id=3D334980

Pascal

On 4/10/06, Jer= emy Slater <jasl8r@gmail.com> wrote= :
Hi, Banshee crashes for me whenever I start with daap enabled and have an a= ccessible daap share on my network.  If I stop the avahi service, then= banshee starts just fine.  I am running 10.9 and I noticed that this = was supposedly a fixed issue in=20 10.7.  I was wondering if anyone else is having this problem or if the= re is an available patch.

Jeremy

_______________________________________________
Banshee= -list mailing list
Banshee-list@gnome.org http://mail= .gnome.org/mailman/listinfo/banshee-list


=
------=_Part_3279_10417146.1144752791716-- From sjoeboo@sjoeboo.com Tue Apr 11 08:33:42 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40B0D3B2AF7 for ; Tue, 11 Apr 2006 08:33:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14652-08 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: from skywalker.sjoeboo.com (c-24-131-187-162.hsd1.ma.comcast.net [24.131.187.162]) by menubar.gnome.org (Postfix) with ESMTP id 807533B2AD8 for ; Tue, 11 Apr 2006 08:33:39 -0400 (EDT) Received: by skywalker.sjoeboo.com (Postfix, from userid 1000) id CD2A110DB3; Tue, 11 Apr 2006 08:32:57 -0400 (EDT) Date: Tue, 11 Apr 2006 08:32:57 -0400 To: banshee-list@gnome.org, kmf@fischer.org.za Subject: Re: [Banshee-List] Bounties Page Message-ID: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1144748693.8278.8.camel@localhost.localdomain> User-Agent: Mutt/1.5.9i From: sjoeboo@sjoeboo.com (matt nicholson) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.432 tagged_above=-999 required=2 tests=[AWL=1.032, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.432 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 12:33:42 -0000 I second this. even if its not $$ based. I really liked what aaron did before with the mini-mode etc, to help people learn and get some new features in there. as soon as school calm down i would love to get involved like this. matt nicholson On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > Hi There, > > Perhaps we should have a Bounties Page > for Plugins and Features ? > > Karl > -- > ----------------------------------------- > Karl Fischer > Drone, Human and Gnome User > I support 10x10. > Email : kmf@fischer.org.za > Jabber : kmf@jabber.org > Personal Site : http://fischer.org.za > ----------------------------------------- > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From josiah.ritchie@gmail.com Tue Apr 11 09:32:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 99B413B20A2 for ; Tue, 11 Apr 2006 09:32:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18795-07 for ; Tue, 11 Apr 2006 09:32:56 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by menubar.gnome.org (Postfix) with ESMTP id 0A76B3B1CE2 for ; Tue, 11 Apr 2006 09:32:55 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id n1so1780985nzf for ; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rt142c9kVFVPmZiQJNR/Z08Qm9aKXzvPSznKGTfNBKDYUI9RaVO8i6t3JV7vcO4VxYq8JiD7pPsUh+2nVaoKM6/1nGol5gp3QgHuwBWFAZZIowSxu3QjIJkrKlQ3tIMK6CJviL78uT+qiCjrKIaO9Wg0Un7M53uAXbadhkmozLE= Received: by 10.37.18.76 with SMTP id v76mr5394264nzi; Tue, 11 Apr 2006 06:32:55 -0700 (PDT) Received: by 10.36.221.9 with HTTP; Tue, 11 Apr 2006 06:32:54 -0700 (PDT) Message-ID: Date: Tue, 11 Apr 2006 09:32:54 -0400 From: "Josiah Ritchie" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Daap Startup Crash In-Reply-To: <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3e5be67b0604101448m6d285ef5yc7b65c1d06c503bd@mail.gmail.com> <1a719ed10604110353w11cb4214qfe11d6feeff811cb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.111, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.489 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:32:57 -0000 I've also duplicated these problem on a Dapper machine. JSR/ On 4/11/06, Pascal Hos wrote: > Hi Jeremy, > > I'm experiencing the same problem running up-to-date ubuntu Dapper. This = bug > has been reported: > > http://bugzilla.gnome.org/show_bug.cgi?id=3D334174 > http://bugzilla.gnome.org/show_bug.cgi?id=3D334980 > > Pascal > > > On 4/10/06, Jeremy Slater wrote: > > > > Hi, Banshee crashes for me whenever I start with daap enabled and have a= n > accessible daap share on my network. If I stop the avahi service, then > banshee starts just fine. I am running 10.9 and I noticed that this was > supposedly a fixed issue in 10.7. I was wondering if anyone else is havi= ng > this problem or if there is an available patch. > > Jeremy > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > -- Our Mission Technology and Hospitality for God's Workmen http://missions.ritchietribe.net From ruben@Lambda1.be Tue Apr 11 09:36:43 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2AB303B2B56 for ; Tue, 11 Apr 2006 09:36:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19069-02 for ; Tue, 11 Apr 2006 09:36:39 -0400 (EDT) Received: from oola.is.scarlet.be (oola.is.scarlet.be [193.74.71.23]) by menubar.gnome.org (Postfix) with ESMTP id 0967B3B1CE2 for ; Tue, 11 Apr 2006 09:36:38 -0400 (EDT) Received: from ([62.235.112.11]) by oola.is.scarlet.be with ESMTP id k3BDaXA04673; Tue, 11 Apr 2006 15:36:33 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 697BA674002; Tue, 11 Apr 2006 15:36:32 +0200 (CEST) Subject: Re: [Banshee-List] Bounties Page From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <20060411123257.GA1092@sjoeboo.com> References: <1144748693.8278.8.camel@localhost.localdomain> <20060411123257.GA1092@sjoeboo.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Apr 2006 15:36:31 +0200 Message-Id: <1144762592.9646.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: oola 2020; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 13:36:43 -0000 For those interested: I'm working on getting a task list up, a place where can be tracked who does what and where new tasks can be found, implementation ideas etc. So, there's being worked on something, no worries :-). On Tue, 2006-04-11 at 08:32 -0400, matt nicholson wrote: > I second this. even if its not $$ based. I really liked what aaron did > before with the mini-mode etc, to help people learn and get some new > features in there. as soon as school calm down i would love to get > involved like this. > > matt nicholson > > On Tue, Apr 11, 2006 at 11:44:53AM +0200, Karl Fischer wrote: > > Hi There, > > > > Perhaps we should have a Bounties Page > > for Plugins and Features ? > > > > Karl > > -- > > ----------------------------------------- > > Karl Fischer > > Drone, Human and Gnome User > > I support 10x10. > > Email : kmf@fischer.org.za > > Jabber : kmf@jabber.org > > Personal Site : http://fischer.org.za > > ----------------------------------------- > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From jstembridge@gmail.com Tue Apr 11 13:30:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A496D3B11D0 for ; Tue, 11 Apr 2006 13:30:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03796-03 for ; Tue, 11 Apr 2006 13:30:48 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.231]) by menubar.gnome.org (Postfix) with ESMTP id E31EE3B1379 for ; Tue, 11 Apr 2006 13:30:47 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i13so1011076wra for ; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l8YbnCfFIb8XQhC+8J8a8tSu7hhWQiRn9SVV3b4cow/NdkUcf+790wlSIEynNcYVTv8tz02dhSlCtmCX2axhRSmVw5odCvsRKMo5ARUwjziQxDf9FRwJbumvgBBUKbe/vccVV4K3JJhoiOMgyEdSf5qInxuNmoz4DTEadaftm/0= Received: by 10.54.72.15 with SMTP id u15mr583413wra; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 11 Apr 2006 10:30:46 -0700 (PDT) Message-ID: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> Date: Tue, 11 Apr 2006 18:30:46 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 17:30:56 -0000 Hi Matt, On 4/10/06, Matthew Vermeulen wrote: > I modified > /usr/share/hal/fdi/information/10freedesktop/10- > usb-music-players.fdi to detect the drive as a music device, which it doe= s. > However, as best as I can tell, MassStorageDap fails when it gets to if > (volume =3D=3D null) and drops out. Could you send me the output of "hal-device"? Cheers, James. From lukas@pmad.net Tue Apr 11 16:04:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CEA33B16F3 for ; Tue, 11 Apr 2006 16:04:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13163-03 for ; Tue, 11 Apr 2006 16:04:02 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 15E943B157C for ; Tue, 11 Apr 2006 16:04:00 -0400 (EDT) Received: (qmail 23753 invoked by uid 503); 11 Apr 2006 20:04:07 -0000 Received: (QMFILT: 1.0); 11 Apr 2006 20:04:07 -0000 Received: from b7.ovh.net (HELO mail142.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 11 Apr 2006 20:04:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:04:00 -0000 Received: from mail142.ha.ovh.net (10.0.50.142) by mail142.ha.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 Received: from adsl-d43.87-197-139.telecom.sk (HELO ?192.168.0.23?) (87.197.139.43) by ns0.ovh.net with SMTP; 11 Apr 2006 20:03:58 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-IVjwuGPDymRq+8gE2l0b" Date: Tue, 11 Apr 2006 22:03:47 +0200 Message-Id: <1144785828.5055.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.139.43 (adsl-d43.87-197-139.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.705 tagged_above=-999 required=2 tests=[AWL=-0.664, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558] X-Spam-Score: -1.705 X-Spam-Level: Subject: [Banshee-List] Child sources patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 20:04:14 -0000 --=-IVjwuGPDymRq+8gE2l0b Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, Attached is a patch which adds support for child sources in Banshee. This means that all your playlists should now appear as children of the library source. This is our first small step to full DAP playlist support. Please test the code thoroughly, but I wasn't able to trigger any issues. Have fun! Lukas --=-IVjwuGPDymRq+8gE2l0b Content-Disposition: attachment; filename=banshee-childsource-0.2.patch Content-Type: text/x-patch; name=banshee-childsource-0.2.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlayerInterface.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 11 Apr 2006 20:02:17 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 11 Apr 2006 20:02:26 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 11 Apr 2006 20:02:30 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 11 Apr 2006 20:02:30 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 11 Apr 2006 20:02:36 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 11 Apr 2006 20:02:36 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 11 Apr 2006 20:02:36 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 11 Apr 2006 20:02:42 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-IVjwuGPDymRq+8gE2l0b-- From mattvermeulen@gmail.com Tue Apr 11 17:57:47 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54AB3B2F29 for ; Tue, 11 Apr 2006 17:57:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20312-01 for ; Tue, 11 Apr 2006 17:57:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id A7A043B2F15 for ; Tue, 11 Apr 2006 17:57:31 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1424418pyu for ; Tue, 11 Apr 2006 14:57:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VR01K87bXnURQrrO+NiDPLkx/hcTfWNtLzBWQz6CPALF9vig5ZwSf0ixstGZ1lAXbJRS0exGILJofWuLDMJFRQgY/ijdJLpewgM9/0vVFuQsym7mw/6TCJxyfP1jLK2aYXGEokybqVTPcdDlaWNJJ5ZU0AgJ3c6wuQv3UlwSJog= Received: by 10.35.36.13 with SMTP id o13mr669714pyj; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Tue, 11 Apr 2006 14:57:30 -0700 (PDT) Message-ID: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> Date: Wed, 12 Apr 2006 05:57:30 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15061_30686339.1144792650909" References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.412 tagged_above=-999 required=2 tests=[AWL=0.187, BAYES_00=-2.599, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.412 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 21:57:47 -0000 ------=_Part_15061_30686339.1144792650909 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James... Thanks for the reply... Below is the output of hal-device hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdrive: udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' volume.unmount.valid_options =3D { 'lazy' } (string list) volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'iocharset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list= ) org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject' } (string list) org.freedesktop.Hal.Device.Volume.method_signatures =3D { 'ssas', 'as', '= as' } (string list) org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'Unmount', 'Eject' } (string list) info.interfaces =3D { 'org.freedesktop.Hal.Device.Volume' } (string list) volume.ignore =3D false (bool) volume.policy.desired_mount_point =3D 'MATTHEW' (string) volume.policy.mount_filesystem =3D 'vfat' (string) volume.policy.should_mount =3D true (bool) volume.policy.mount_option.quiet =3D true (bool) volume.policy.mount_option.iocharset=3Dutf8 =3D true (bool) info.udi =3D '/org/freedesktop/Hal/devices/volume_label_MATTHEW' (string= ) volume.partition.msdos_part_table_type =3D 4 (0x4) (int) info.product =3D 'MATTHEW' (string) volume.size =3D 259506176 (0xf77c000) (uint64) volume.num_blocks =3D 506848 (0x7bbe0) (int) volume.block_size =3D 512 (0x200) (int) volume.partition.number =3D 1 (0x1) (int) info.capabilities =3D { 'volume', 'block' } (string list) info.category =3D 'volume' (string) volume.is_partition =3D true (bool) volume.is_disc =3D false (bool) volume.is_mounted =3D true (bool) volume.mount_point =3D '/media/MATTHEW' (string) volume.label =3D 'MATTHEW' (string) volume.uuid =3D '' (string) volume.fsversion =3D 'FAT16' (string) volume.fsusage =3D 'filesystem' (string) volume.fstype =3D 'vfat' (string) storage.model =3D '' (string) block.storage_device =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) block.is_volume =3D true (bool) block.minor =3D 1 (0x1) (int) block.major =3D 8 (0x8) (int) block.device =3D '/dev/sda1' (string) linux.hotplug_type =3D 3 (0x3) (int) info.parent =3D '/org/freedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702= 165336021204' (string) linux.sysfs_path_device =3D '/sys/block/sda/sda1' (string) linux.sysfs_path =3D '/sys/block/sda/sda1' (string) Thanks a lot Matt On 4/12/06, James Stembridge wrote: > > Hi Matt, > > On 4/10/06, Matthew Vermeulen wrote: > > I modified > > /usr/share/hal/fdi/information/10freedesktop/10- > > usb-music-players.fdi to detect the drive as a music device, which it > does. > > However, as best as I can tell, MassStorageDap fails when it gets to > if > > (volume =3D=3D null) and drops out. > > Could you send me the output of "hal-device"? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_15061_30686339.1144792650909 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi James...

Thanks for the reply... Below is the output of hal-devic= e hal-device /org/freedesktop/Hal/devices/volume_label_MATTHEW , my Jumpdri= ve:

udi =3D '/org/freedesktop/Hal/= devices/volume_label_MATTHEW'
  volume.unmount.valid_options =3D { 'lazy' } (string list)
&nb= sp; volume.mount.valid_options =3D { 'ro', 'sync', 'dirsync', 'noatime', 'n= odiratime', 'noexec', 'quiet', 'utf8', 'shortname=3D', 'codepage=3D', 'ioch= arset=3D', 'umask=3D', 'dmask=3D', 'fmask=3D', 'uid=3D' } (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths =3D { 'hal-sy= stem-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-ejec= t' } (string list)
  org.freedesktop.Hal.Device.Volume.method_signa= tures =3D { 'ssas', 'as', 'as' } (string list)
  org.freedesktop.Hal.Device.Volume.method_names =3D { 'Mount', 'U= nmount', 'Eject' } (string list)
  info.interfaces =3D { 'org.freed= esktop.Hal.Device.Volume' } (string list)
  volume.ignore =3D false=   (bool)
  volume.policy.desired_mount_point =3D 'MATTHEW'  (string)
  volume.policy.mount_filesystem =3D = 'vfat'  (string)
  volume.policy.should_mount =3D true  (= bool)
  volume.policy.mount_option.quiet =3D true  (bool)
&= nbsp; volume.policy.mount_option.iocharset=3Dutf8 =3D true  (bool)
  info.udi =3D '/org/freedesktop/Hal/devices= /volume_label_MATTHEW'  (string)
  volume.partition.msdos_part= _table_type =3D 4  (0x4)  (int)
  info.product =3D 'MATTH= EW'  (string)
  volume.size =3D 259506176  (0xf77c000)&nb= sp; (uint64)
  volume.num_blocks =3D 506848  (0x7bbe0)  (int)
&nbs= p; volume.block_size =3D 512  (0x200)  (int)
  volume.par= tition.number =3D 1  (0x1)  (int)
  info.capabilities =3D= { 'volume', 'block' } (string list)
  info.category =3D 'volume'  (string)
  volume.is_partition =3D true  (= bool)
  volume.is_disc =3D false  (bool)
  volume.is_m= ounted =3D true  (bool)
  volume.mount_point =3D '/media/MATTH= EW'  (string)
  volume.label =3D 'MATTHEW'  (string)
  volume.uuid =3D ''  (string)
  volume.fsversion =3D= 'FAT16'  (string)
  volume.fsusage =3D 'filesystem'  (st= ring)
  volume.fstype =3D 'vfat'  (string)
  storage.m= odel =3D ''  (string)
  block.storage_device =3D '/org/freedes= ktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E9702165336021204'=   (string)
  block.is_volume =3D true  (bool)
  block.minor =3D = 1  (0x1)  (int)
  block.major =3D 8  (0x8)  (in= t)
  block.device =3D '/dev/sda1'  (string)
  linux.ho= tplug_type =3D 3  (0x3)  (int)
  info.parent =3D '/org/fr= eedesktop/Hal/devices/storage_serial_LEXAR_JUMPDRIVE_SPORT_0A4E970216533602= 1204'  (string)
  linux.sysfs_path_device =3D '/sys/block/sda/sda1'  (string)=
  linux.sysfs_path =3D '/sys/block/sda/sda1'  (string)
Thanks a lot

Matt

On = 4/12/06, James Stembridge <jstembrid= ge@gmail.com> wrote:
Hi Matt,

On 4/10/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> I modified=
> /usr/share/hal/fdi/information/10freedesktop/10-
> usb-music= -players.fdi to detect the drive as a music device, which it does.
> However, as = best as I can tell, MassStorageDap fails when it gets to   if
= > (volume =3D=3D null) and drops out.

Could you send me the outpu= t of "hal-device"?

Cheers,
James.
______________________________________________= _
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_15061_30686339.1144792650909-- From jstembridge@gmail.com Wed Apr 12 06:06:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 104C93B0213 for ; Wed, 12 Apr 2006 06:06:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24581-02 for ; Wed, 12 Apr 2006 06:06:45 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id E2B9B3B0296 for ; Wed, 12 Apr 2006 06:06:42 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1126777wri for ; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e3ur1RGd1Sp4hQglWV7vzQjPDyupukbQppYPjpE/RXgiGHvH8LcIhZCAOOT+/SesuWaACWQTryBmOvm4utytcGz/w9tQ6aQfpLa8pihGzRZdSnUTXM5GbL+jhcgrEhqeX6iPyuuyJYEE9/5ntKoZLVM7NscWpwVz26/OckxLprY= Received: by 10.54.127.4 with SMTP id z4mr3057212wrc; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 03:06:42 -0700 (PDT) Message-ID: <18bc366d0604120306x65e49490y9a199c653b778089@mail.gmail.com> Date: Wed, 12 Apr 2006 11:06:42 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <950c7d180604101513t766d2fbcl34de61fca8a5246@mail.gmail.com> <18bc366d0604111030i429c5f87x4a8ffa67cf5e487e@mail.gmail.com> <950c7d180604111457j2948082cm9b1e5249972d1323@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 10:06:52 -0000 Hi Matthew, On 4/11/06, Matthew Vermeulen wrote: > Thanks for the reply... Below is the output of hal-device hal-device > /org/freedesktop/Hal/devices/volume_label_MATTHEW , my > Jumpdrive: ... Could you send me the complete output (off-list if necessary), there should be several entries for the device and I can't see where you've added the portable audio player entries. Cheers, James. From jstembridge@gmail.com Wed Apr 12 09:25:57 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8943B3B01DE for ; Wed, 12 Apr 2006 09:25:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03287-05 for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 235113B010B for ; Wed, 12 Apr 2006 09:25:56 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 67so1158581wri for ; Wed, 12 Apr 2006 06:25:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XmmxOQn1meWr/qjgsGauJ2zH4ml9fvo/asp04NJvH3WDjPt/qIdgegpfXUv9m02N8sUKuOf2N/YQXP869N+BufIMU9OCklnXSsyQ8RQQyJS7RaAL1vmbJO5KKT4y9uPz4Dn4mGklGwj6oulUCaDpOmRV+IcVdASPxdAvSa5ISD0= Received: by 10.54.144.17 with SMTP id r17mr4731297wrd; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Wed, 12 Apr 2006 06:25:55 -0700 (PDT) Message-ID: <18bc366d0604120625u4e185342v459fd41f6408a329@mail.gmail.com> Date: Wed, 12 Apr 2006 14:25:55 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Last.fm plugin In-Reply-To: <1144702793.5424.24.camel@matari> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604101306v35a1afa0lc0be3a2f597d70a4@mail.gmail.com> <1144699851.20263.0.camel@localhost.localdomain> <1144702793.5424.24.camel@matari> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 13:25:57 -0000 Hi Alex, On 4/10/06, Alexander Bubeck wrote: > I started writing a internet radio plugin and got some running code > already. After getting the tagging stuff to work I will post my code on > the list. I didn't know somebody else was working on this, so I'm also > interested in Sven's status. I appreciate it's not finished but I'd be interested to see your code anyway, there are some issues, particularly on the interface side of things, that I'd like to see your take on. Cheers, James. From gabriel.burt@gmail.com Wed Apr 12 13:27:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 093373B056C for ; Wed, 12 Apr 2006 13:27:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19072-02 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 4B31A3B0446 for ; Wed, 12 Apr 2006 13:27:33 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1650379pyu for ; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XlDQEtKFQfZEVxerDwX5wsNV8W/w4LckM9PTtVArA1Q9ysl4A6TwDrTrXW71WoXbFxrHf8Vjv0+OMu/kReYihmudkDDRc46CTdF077Oq4q7gvfiUwmANXZU2xaDehW6/wxT3sCGLtELcKPXidwpWlnVJx9aCwgaoc5mQKdg1eSY= Received: by 10.35.121.2 with SMTP id y2mr263685pym; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 10:27:32 -0700 (PDT) Message-ID: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Date: Wed, 12 Apr 2006 12:27:32 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.074 tagged_above=-999 required=2 tests=[AWL=0.302, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.074 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:27:35 -0000 T24gNC8xMC8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBKdXN0IGEgaGVhZHMgdXAgdG8gYW55b25lIHdobydzIGludGVyZXN0ZWQgaW4gbWFzcyBz dG9yYWdlIGRhcAo+IHN1cHBvcnQuIEN1cnJlbnQgY3ZzIGFsb25nIHdpdGggdGhlIGZvbGxvd2lu ZyBwYXRjaGVzOgo+Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9 MzM3ODI5Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA4 Cj4gaHR0cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODA3Cj4gaHR0 cDovL2J1Z3ppbGxhLmdub21lLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzM3ODAwCj4KPiBJcyB3b3Jr aW5nIHZlcnkgd2VsbCBmb3IgbWUgaGVyZSB3aXRoIGEgVzgwMCB3YWxrbWFuIHBob25lIGxpa2Ug SSBoYXZlCj4gaGVyZSAoZmRpIGZpbGUgaXMgYXR0YWNoZWQpLiBJZiBhbnlvbmUgZWxzZSB3b3Vs ZCBsaWtlIHRvIGdpdmUgaXQgYQo+IHRyeSBJJ2QgYmUgaW50ZXJlc3RlZCB0byBoZXJlIGhvdyB0 aGV5IGdvdCBvbi4KCkhpIEphbWVzLAoKVGhhbmtzIGZvciBhbGwgdGhlIHBhdGNoZXMsIHRoZXkg bG9vayBncmVhdC4gIEkgaGF2ZSBhIGZhaXJseSBsYXJnZQpwYXRjaCB0aGF0IHJlcXVpcmVzIHNv bWUgYmFuc2hlZSBjb3JlIGNoYW5nZXMgc28gQWFyb24ncyBob2xkaW5nIG9mZgpvbiBpdC4gIEds YWQgdG8ga25vdyB0aGUgY29kZSBpdCBiZWluZyB1c2VkLiAgSSdsbCB0cnkgdG8gcmVjb25jaWxl CnlvdXIgcGF0Y2hlcyBhbmQgbWluZSBhbmQgZ2V0IHRoZW0gaW4gc29vbi4KCkdhYnJpZWwK From ruben@Lambda1.be Wed Apr 12 13:48:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1DD63B034C for ; Wed, 12 Apr 2006 13:48:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20051-08 for ; Wed, 12 Apr 2006 13:48:43 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 752DB3B0528 for ; Wed, 12 Apr 2006 13:48:42 -0400 (EDT) Received: from ([62.235.112.11]) by guri.is.scarlet.be with ESMTP id k3CHmdc29742 for ; Wed, 12 Apr 2006 19:48:39 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id 79029460327; Wed, 12 Apr 2006 19:48:39 +0200 (CEST) Subject: Re: [Banshee-List] Mass storage status From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Apr 2006 19:48:38 +0200 Message-Id: <1144864119.19810.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.594 tagged_above=-999 required=2 tests=[AWL=0.004, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.594 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 17:48:45 -0000 On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > On 4/10/06, James Stembridge wrote: > > Just a heads up to anyone who's interested in mass storage dap > > support. Current cvs along with the following patches: > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > Is working very well for me here with a W800 walkman phone like I have > > here (fdi file is attached). If anyone else would like to give it a > > try I'd be interested to here how they got on. > > Hi James, > > Thanks for all the patches, they look great. I have a fairly large > patch that requires some banshee core changes so Aaron's holding off > on it. Glad to know the code it being used. I'll try to reconcile > your patches and mine and get them in soon. If I might be curious for a second: which patch? :-) Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From abockover@novell.com Wed Apr 12 14:05:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57E4D3B056C for ; Wed, 12 Apr 2006 14:05:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20984-07 for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 3E3FB3B051E for ; Wed, 12 Apr 2006 14:05:55 -0400 (EDT) Received: (qmail 5748 invoked from network); 12 Apr 2006 18:05:54 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 12 Apr 2006 18:05:54 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144864119.19810.0.camel@localhost.localdomain> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> Content-Type: text/plain Date: Wed, 12 Apr 2006 14:02:15 -0400 Message-Id: <1144864935.5048.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.447 tagged_above=-999 required=2 tests=[AWL=-0.048, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.447 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 18:05:56 -0000 Gabreil, Would you gather all the necessary patches for the Mass Storage DAP stuff, make sure they're A-OK, and generate a single patch against HEAD? The core stuff can go in now, pending review, since I have branched for stable. Cheers, Aaron On Wed, 2006-04-12 at 19:48 +0200, Ruben Vermeersch wrote: > On Wed, 2006-04-12 at 12:27 -0500, Gabriel Burt wrote: > > On 4/10/06, James Stembridge wrote: > > > Just a heads up to anyone who's interested in mass storage dap > > > support. Current cvs along with the following patches: > > > > > > http://bugzilla.gnome.org/show_bug.cgi?id=337829 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337808 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337807 > > > http://bugzilla.gnome.org/show_bug.cgi?id=337800 > > > > > > Is working very well for me here with a W800 walkman phone like I have > > > here (fdi file is attached). If anyone else would like to give it a > > > try I'd be interested to here how they got on. > > > > Hi James, > > > > Thanks for all the patches, they look great. I have a fairly large > > patch that requires some banshee core changes so Aaron's holding off > > on it. Glad to know the code it being used. I'll try to reconcile > > your patches and mine and get them in soon. > > > If I might be curious for a second: which patch? :-) > > Ruben > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gabriel.burt@gmail.com Wed Apr 12 17:59:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3814E3B0E31 for ; Wed, 12 Apr 2006 17:59:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01817-01 for ; Wed, 12 Apr 2006 17:59:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 537023B0EFB for ; Wed, 12 Apr 2006 17:59:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1707002pyu for ; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YCsW8yAO/2spjRUQxqwvRyuLr1rm74Jde6NEpl8xWljqYOIgRVim8RjaBbWeX64LuYd/SjeTvBSoRxp86J8ad4Z6iFFq8qoJRrxQB5wBgxpttHKilIumjP5OsW70hJYa+8XX2lZnJJDTI5kccsr/3UNTWYwccVSgFE4qSXdCAQc= Received: by 10.35.119.11 with SMTP id w11mr587857pym; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Wed, 12 Apr 2006 14:59:11 -0700 (PDT) Message-ID: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Date: Wed, 12 Apr 2006 16:59:11 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Mass storage status In-Reply-To: <1144864935.5048.1.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.1 tagged_above=-999 required=2 tests=[AWL=0.276, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.1 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2006 21:59:16 -0000 T24gNC8xMi8wNiwgQWFyb24gQm9ja292ZXIgPGFib2Nrb3ZlckBub3ZlbGwuY29tPiB3cm90ZToK PiBXb3VsZCB5b3UgZ2F0aGVyIGFsbCB0aGUgbmVjZXNzYXJ5IHBhdGNoZXMgZm9yIHRoZSBNYXNz IFN0b3JhZ2UgREFQCj4gc3R1ZmYsIG1ha2Ugc3VyZSB0aGV5J3JlIEEtT0ssIGFuZCBnZW5lcmF0 ZSBhIHNpbmdsZSBwYXRjaCBhZ2FpbnN0IEhFQUQ/Cj4gVGhlIGNvcmUgc3R1ZmYgY2FuIGdvIGlu IG5vdywgcGVuZGluZyByZXZpZXcsIHNpbmNlIEkgaGF2ZSBicmFuY2hlZCBmb3IKPiBzdGFibGUu CgpDZXJ0YWlubHkuICBJIHdvbid0IGJlIGFibGUgdG8gZ2V0IHRvIGl0IHVudGlsIEZyaWRheSB0 aG91Z2ggYmVjYXVzZQpvZiBhIG1pc3VuZGVyc3RhbmRpbmcgd2l0aCBHcmV5aG91bmQgdGhhdCBy ZXN1bHRlZCBpbiBteSBwb3dlciBjb3JkCmZvciBteSBsYXB0b3AgYmVpbmcgYSBmZXcgaHVuZHJl ZCBtaWxlcyBhd2F5LgoKR2FicmllbAo= From jstembridge@gmail.com Thu Apr 13 08:43:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E9E93B163B for ; Thu, 13 Apr 2006 08:43:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10921-05 for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.239]) by menubar.gnome.org (Postfix) with ESMTP id 4B1D33B15AB for ; Thu, 13 Apr 2006 08:43:40 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so83079wra for ; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kEQ0bn1jx1ewzLZLtWurxOx2MkTYtwK1SdYK0wKwBoU45j8EQUbOWX9h4qkxU7qWFkM3ddW3SzYX5lMdCUBWF4PH8kAAkVbhaW5XN8E2GVNQvo7soI+M7ltPb6gBCJHoCWhBgybhoxSb7/iinFKIcw2gO92fRsAmOz76ELFG0W8= Received: by 10.54.152.15 with SMTP id z15mr400592wrd; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 05:43:39 -0700 (PDT) Message-ID: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Date: Thu, 13 Apr 2006 13:43:39 +0100 From: "James Stembridge" To: banshee-list@gnome.org In-Reply-To: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10521_10354496.1144932219681" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Mass Storage Support X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 12:43:41 -0000 ------=_Part_10521_10354496.1144932219681 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Matthew, On 4/12/06, Matthew Vermeulen wrote: > I've attached the complete output of hal-device.. Thanks, it looks roughly equivalent to what I have here. Bit of a long shot, but could you try the attached patch? Cheers, James. ------=_Part_10521_10354496.1144932219681 Content-Type: text/x-patch; name=mass_storage_device.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elz32c4q Content-Disposition: attachment; filename="mass_storage_device.patch" Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 12:38:55 -0000 @@ -79,7 +79,7 @@ return InitializeResult.WaitForPropertyChange; - string block_device = volume_device ["block_device"]; + string block_device = volume_device ["block.device"]; foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { if (vol.DevicePath == block_device) { this.volume = vol; ------=_Part_10521_10354496.1144932219681-- From mattvermeulen@gmail.com Thu Apr 13 09:11:21 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D73F3B352E for ; Thu, 13 Apr 2006 09:11:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12903-10 for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 454BD3B182A for ; Thu, 13 Apr 2006 09:11:19 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1854022pyu for ; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BbMQ484Nstn6cGrBJFxa6THi870R5d3gI871EFbSqHil+3i39MIAk/cB9Kx8sKJ1Zgt0RkXHmj9uQOvIqDkFTghNANFz+49L87l5/+ckNG2GO0qyBs71SneFnIIsLnsr1M5rKNOmA9t+yEJNBzWgJuLRhWZI7+sEqxNTxTNGDX0= Received: by 10.35.37.18 with SMTP id p18mr889569pyj; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:11:18 -0700 (PDT) Message-ID: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> Date: Thu, 13 Apr 2006 21:11:18 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22855_6803105.1144933878646" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.257 tagged_above=-999 required=2 tests=[AWL=-0.154, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.257 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:11:21 -0000 ------=_Part_22855_6803105.1144933878646 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens... If I start banshee (latest cvs with only your patch applied) with my drive plugged in banshee segfaults... If I start without the drive, starts normally, and nothing changes when I plug in the drive Btw, thankyou so much for the help, even if i cant fix it Matthew On 4/13/06, James Stembridge wrote: > > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_22855_6803105.1144933878646 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline sry... there is no change in what happens...

If I start banshee (lat= est cvs with only your patch applied) with my drive plugged in banshee segf= aults...
If I start without the drive, starts normally, and nothing chan= ges when I plug in the drive

Btw, thankyou so much for the help, even if i cant fix it

Ma= tthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:
Hi Matthew,

On 4/12/06, Matthew Vermeulen = < mattvermeulen@gmail.com> = wrote:
> I've attached the complete output of hal-device..

Tha= nks, it looks roughly equivalent to what I have here.

Bit of a long = shot, but could you try the attached patch?

Cheers,
James.


______________________________________= _________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_22855_6803105.1144933878646-- From jstembridge@gmail.com Thu Apr 13 09:48:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 20B9B3B3588 for ; Thu, 13 Apr 2006 09:48:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14705-02 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 4ED463B3581 for ; Thu, 13 Apr 2006 09:48:13 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so93816wra for ; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pbDL/M9pL9bVHUUJTrNhkfkudE4UKmIMulkdB4ibPA/tLYFUDhEoXEyyCCG0BNhhc2ZhIiR6es4zgEDKSPRVQSVevU46N2k5z+svyOc7xvufJ6+tWXuEHCoBYpnpnbTsviC93+EH//O1lSgNUYVQUaOKTw2GnGRZ8n6PvNOZSTg= Received: by 10.54.152.15 with SMTP id z15mr469213wrd; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 06:48:12 -0700 (PDT) Message-ID: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> Date: Thu, 13 Apr 2006 14:48:12 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:48:16 -0000 On 4/13/06, Matthew Vermeulen wrote: > If I start banshee (latest cvs with only your patch applied) with my driv= e > plugged in banshee segfaults... If you don't have the other patches applied then that's to be expected. > If I start without the drive, starts normally, and nothing changes when I > plug in the drive Hmmm, is the device auto mounting when inserted? James. From mattvermeulen@gmail.com Thu Apr 13 09:57:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7BEB83B141D for ; Thu, 13 Apr 2006 09:57:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15544-06 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 63AC43B0644 for ; Thu, 13 Apr 2006 09:57:50 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1865071pyu for ; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hZ6VAig5DY9HhrUYMUTjbdDUdwjyqvjrJ68aH7oNv8SH08fDAJJgSsxrB8HpAJ2L9AURKmV8VLjhxyLkn2//rQ7/2HNYNPFNjFOb93dY08iCBni8PdGsjzezvXX12oP5ifrSYvlU8u0fnnjxIDzPDeIAGjtiFoCfZ4kpQvcupYs= Received: by 10.35.81.10 with SMTP id i10mr51526pyl; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 06:57:49 -0700 (PDT) Message-ID: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> Date: Thu, 13 Apr 2006 21:57:49 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23721_2581288.1144936669427" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.206 tagged_above=-999 required=2 tests=[AWL=-0.103, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.206 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 13:57:52 -0000 ------=_Part_23721_2581288.1144936669427 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > If I start banshee (latest cvs with only your patch applied) with my > drive > > plugged in banshee segfaults... > > If you don't have the other patches applied then that's to be expected. Thanks... I knew that, but it at least shows that some acknowledgement is made of the device's existence... > If I start without the drive, starts normally, and nothing changes when I > > plug in the drive > > Hmmm, is the device auto mounting when inserted? Yes, as it always had. The device functions perfectly, it just isn't displayed by banshee... James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > Thanks a lot Matthew -- matt ------=_Part_23721_2581288.1144936669427 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
=
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> If I start banshee (latest= cvs with only your patch applied) with my drive
> plugged in banshee= segfaults...

If you don't have the other patches applied then that's to be expec= ted.

Thanks... I knew that, but it at least shows that= some acknowledgement is made of the device's existence...

> If I start w= ithout the drive, starts normally, and nothing changes when I
> plug = in the drive

Hmmm, is the device auto mounting when inserted?
<= br>Yes, as it always had. The device functions perfectly, it just isn't dis= played by banshee...

James.
_______________________________________________
Banshee-list m= ailing list
Banshee-list@gnome= .org
http://mail.gnome.org/mailman/listinfo/banshee-list

Thanks a lot

Matthew

--
matt ------=_Part_23721_2581288.1144936669427-- From jstembridge@gmail.com Thu Apr 13 10:03:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AFEE3B17E7 for ; Thu, 13 Apr 2006 10:03:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15837-10 for ; Thu, 13 Apr 2006 10:03:06 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id D1E973B17B3 for ; Thu, 13 Apr 2006 10:03:05 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so96672wra for ; Thu, 13 Apr 2006 07:03:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c1YRsk/99C+rBjzTURvulPQCpO5Y+ORNTfWGnvP/5yvlE4+HRncnl+9PW6ovIqqcvNW0Eootb56BogNZEdtM9D/YqBzEFeH0RsUu4IkJpOt/ze4MaficHo4+lAjzqZKtKIfAyedvuAR4De6aCQbo+/sKQS3w8fHaUdRvXYJxLrI= Received: by 10.54.120.19 with SMTP id s19mr485941wrc; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:03:04 -0700 (PDT) Message-ID: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> Date: Thu, 13 Apr 2006 15:03:04 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:03:07 -0000 On 4/13/06, Matthew Vermeulen wrote: > Thanks... I knew that, but it at least shows that some acknowledgement is > made of the device's existence... Indeed. In fact thinking about it the crash would indicate that a scan of the device is being started. Could you try dap_ui_init.patch in combination with mass_storage_device.patch? From mattvermeulen@gmail.com Thu Apr 13 10:18:33 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B315A3B1849 for ; Thu, 13 Apr 2006 10:18:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16664-02 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id 472893B1845 for ; Thu, 13 Apr 2006 10:18:32 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1870316pyu for ; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hDRwaqmyRmcmWZ9KQENVtIlcktgNBIyERTuehbDsUtAu4ZWeCNO5kIk0yh6knKPhOi1SfjONhLJEn67EzYnDr8jsdkPryb9AUIOzOrgl/yPWbw52WYFJA0grsIJfHV8wwoKvrvVn/bAcFb+aDg96PheUwIIXLRCtPXLdr/V0uNk= Received: by 10.35.15.11 with SMTP id s11mr868222pyi; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:18:31 -0700 (PDT) Message-ID: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> Date: Thu, 13 Apr 2006 22:18:31 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24093_8968161.1144937911374" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.241 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.241 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:18:34 -0000 ------=_Part_24093_8968161.1144937911374 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!! It now works, if the device is plugged in when banshee is started... Thank you so much :) Now I just need to get it to work if i plug it in after starting banshee. Maybe applying other patches?? Thanks so much Matthew On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Thanks... I knew that, but it at least shows that some acknowledgement > is > > made of the device's existence... > > Indeed. In fact thinking about it the crash would indicate that a scan > of the device is being started. Could you try dap_ui_init.patch in > combination with mass_storage_device.patch? > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24093_8968161.1144937911374 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Yahoo!!!

It now works, if the device is plugged in when banshee is s= tarted... Thank you so much :)

Now I just need to get it to work if = i plug it in after starting banshee. Maybe applying other patches??

Thanks so much

Matthew

On 4/= 13/06, James Stembridge <jstembridge@gmail.com> wrote: On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Thanks... I knew that, but= it at least shows that some acknowledgement is
> made of the device'= s existence...

Indeed. In fact thinking about it the crash would indicate that a s= can
of the device is being started. Could you try dap_ui_init.patch incombination with mass_storage_device.patch?
__________________________= _____________________
Banshee-list mailing list
= Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>



--
matt ------=_Part_24093_8968161.1144937911374-- From mattvermeulen@gmail.com Thu Apr 13 10:21:48 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 250803B1808 for ; Thu, 13 Apr 2006 10:21:48 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16793-03 for ; Thu, 13 Apr 2006 10:21:44 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.182]) by menubar.gnome.org (Postfix) with ESMTP id CBC223B10A5 for ; Thu, 13 Apr 2006 10:21:43 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1871308pyu for ; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=FI1zsJtt/jvyjmgbFOS6tyW+fPq8WKnZhR1p9DJPXHkYyqApahUMKxWpVRpHecZIPBYBXbT0WMaUTq8z1lJm3/s7jEteA3QqnR/u9g/tXlIO1zYNYtX6leYHFFzi9e2JgMn+g/mHg3Jadm6n7WmL2WjhouFns0bmoSob4FtavWA= Received: by 10.35.100.6 with SMTP id c6mr295372pym; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:21:43 -0700 (PDT) Message-ID: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> Date: Thu, 13 Apr 2006 22:21:43 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24137_7961626.1144938103015" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.358 tagged_above=-999 required=2 tests=[AWL=0.107, BAYES_00=-2.599, HTML_50_60=0.134, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.358 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:21:48 -0000 ------=_Part_24137_7961626.1144938103015 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up... Can I get transcoding to work on my device??? No synchronize button is shown, and banshee crashes on eject... although it does eject and copy the music over. Reason I ask is cause most of my music is ogg, while my player only supports mp3+wma.... Thanks Matthew On 4/13/06, Matthew Vermeulen wrote: > > Yahoo!!! > > It now works, if the device is plugged in when banshee is started... Than= k > you so much :) > > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? > > Thanks so much > > Matthew > > On 4/13/06, James Stembridge wrote: > > > On 4/13/06, Matthew Vermeulen wrote: > > > Thanks... I knew that, but it at least shows that some acknowledgemen= t > > is > > > made of the device's existence... > > > > Indeed. In fact thinking about it the crash would indicate that a scan > > of the device is being started. Could you try dap_ui_init.patch in > > combination with mass_storage_device.patch? > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > > -- > matt > -- matt ------=_Part_24137_7961626.1144938103015 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Just a follow up...

Can I get transcoding to work on my device??? No= synchronize button is shown, and banshee crashes on eject... although it d= oes eject and copy the music over. Reason I ask is cause most of my music i= s ogg, while my player only supports mp3+wma....

Thanks

Matthew

On 4/= 13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
Yahoo!!!

It now works, if the device = is plugged in when banshee is started... Thank you so much :)

Now I = just need to get it to work if i plug it in after starting banshee. Maybe a= pplying other patches??

Thanks so much

Matthew

On 4/13/06, James Stembridge < jstembridge@gmail.com> wrote:



-- matt



--
matt ------=_Part_24137_7961626.1144938103015-- From abockover@novell.com Thu Apr 13 10:25:49 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BADC63B1823 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16841-09 for ; Thu, 13 Apr 2006 10:25:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 668663B035D for ; Thu, 13 Apr 2006 10:25:48 -0400 (EDT) Received: (qmail 6336 invoked from network); 13 Apr 2006 14:25:47 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:25:47 -0000 Subject: Re: [Banshee-List] Mass storage status From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> References: <18bc366d0604101259i72ac0044ke99cfa9f904e0805@mail.gmail.com> <24348e0604121027q55d38c51qb628120c77bbfd83@mail.gmail.com> <1144864119.19810.0.camel@localhost.localdomain> <1144864935.5048.1.camel@sledipus.rex> <24348e0604121459u76f720d2q5cbe36d3993aa3f7@mail.gmail.com> Content-Type: text/plain Date: Wed, 12 Apr 2006 19:14:11 -0400 Message-Id: <1144883651.3613.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.831 tagged_above=-999 required=2 tests=[AWL=-0.679, BAYES_00=-2.599, DATE_IN_PAST_12_24=1.247, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -1.831 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:25:49 -0000 Ouch! No rush :) --Aaron On Wed, 2006-04-12 at 16:59 -0500, Gabriel Burt wrote: > On 4/12/06, Aaron Bockover wrote: > > Would you gather all the necessary patches for the Mass Storage DAP > > stuff, make sure they're A-OK, and generate a single patch against HEAD? > > The core stuff can go in now, pending review, since I have branched for > > stable. > > Certainly. I won't be able to get to it until Friday though because > of a misunderstanding with Greyhound that resulted in my power cord > for my laptop being a few hundred miles away. > > Gabriel > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From abockover@novell.com Thu Apr 13 10:26:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C0513B188F for ; Thu, 13 Apr 2006 10:26:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17258-01 for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 5A4053B185F for ; Thu, 13 Apr 2006 10:26:14 -0400 (EDT) Received: (qmail 6339 invoked from network); 13 Apr 2006 14:26:13 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 14:26:13 -0000 Subject: Re: [Banshee-List] Re: Mass Storage Support From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> Content-Type: text/plain Date: Thu, 13 Apr 2006 09:43:07 -0400 Message-Id: <1144935787.18440.0.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.336 tagged_above=-999 required=2 tests=[AWL=0.063, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.336 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:26:16 -0000 I am guessing block_device was a typo (Gabriel?). The proper HAL property is in fact block.device. Whether this fixes the problem or not, this change needs to be made. --Aaron On Thu, 2006-04-13 at 13:43 +0100, James Stembridge wrote: > Hi Matthew, > > On 4/12/06, Matthew Vermeulen wrote: > > I've attached the complete output of hal-device.. > > Thanks, it looks roughly equivalent to what I have here. > > Bit of a long shot, but could you try the attached patch? > > Cheers, > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 10:34:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A79DC3B1844 for ; Thu, 13 Apr 2006 10:34:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17461-03 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.229]) by menubar.gnome.org (Postfix) with ESMTP id 978063B17C8 for ; Thu, 13 Apr 2006 10:34:27 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so102830wra for ; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R3JgCwX0z0JMq1UG0yWtoN6A6VjZLTTFU8/OiGtLQO1OIvwGGWjqHQ58cli4MP4czrk7ZcC+NUGKkpMPchefS4CsLqLFDluzfyrqxfijN1AeO/DORsw/aS1nKMZ4q4iuByn3uo2aX2pGoizrK79wEOE0KLabM3dRdgfukpFb1mw= Received: by 10.54.102.7 with SMTP id z7mr450290wrb; Thu, 13 Apr 2006 07:34:27 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:34:26 -0700 (PDT) Message-ID: <18bc366d0604130734l7af5f4f8y273f1cf2961f6782@mail.gmail.com> Date: Thu, 13 Apr 2006 15:34:26 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <1144935787.18440.0.camel@sledipus.rex> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <1144935787.18440.0.camel@sledipus.rex> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:34:28 -0000 On 4/13/06, Aaron Bockover wrote: > I am guessing block_device was a typo (Gabriel?). The proper HAL > property is in fact block.device. Whether this fixes the problem or not, > this change needs to be made. Agreed. I'll put it in bugzilla. From jstembridge@gmail.com Thu Apr 13 10:43:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C459B3B1861 for ; Thu, 13 Apr 2006 10:43:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18199-08 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.237]) by menubar.gnome.org (Postfix) with ESMTP id 35E003B15D5 for ; Thu, 13 Apr 2006 10:43:17 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so104574wra for ; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YtSf7EdlVMkim2UnB8OA7ibepzYB/jfSE3RtVhFqcYx+LQ6PS292rtEA7eJj9PneIkCFQRAb5gIfCC5J5gQqZLH91X5TdHOFyY3x57FC/snxXl1zBhNUwP42xztTAbOjWP4m6gTWeZMZIQNv1d4Ba2g5LRxBMm8UyI+xcmcNmqE= Received: by 10.54.70.18 with SMTP id s18mr522143wra; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 07:43:16 -0700 (PDT) Message-ID: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> Date: Thu, 13 Apr 2006 15:43:16 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:43:18 -0000 On 4/13/06, Matthew Vermeulen wrote: > Now I just need to get it to work if i plug it in after starting banshee. > Maybe applying other patches?? Don't think any of the other patches would make any difference here. I'd noticed that the devices passed to the dap classes is different if the dap is plugged in before rather than while banshee is running. On 4/13/06, Matthew Vermeulen wrote: > Can I get transcoding to work on my device??? No synchronize button is > shown, and banshee crashes on eject... although it does eject and copy th= e > music over. Reason I ask is cause most of my music is ogg, while my playe= r > only supports mp3+wma.... Yes I'd think so, I'll have a look at how the Ipod transcoding is done. I'll also have a look at the eject crash. James. From mattvermeulen@gmail.com Thu Apr 13 10:45:39 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3BF053B18B4 for ; Thu, 13 Apr 2006 10:45:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18360-05 for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 168323B18AB for ; Thu, 13 Apr 2006 10:45:38 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1877939pyu for ; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Bd929FUpt5WxZR4t3ly5kO8dj13Jwx6ofpxD++KdJ3NAlU08prv9asAGAby3zzHWOs2Ps2bTJyHSIHM2n4HZjJiVNoUnOx54+NoZ5/LKYXyNBzPspBUE7JEU1SCdSWkOqorw6BnFQDn7IeG+tLex45XIE54bvHNjHXuhUuMVEw0= Received: by 10.35.78.9 with SMTP id f9mr194887pyl; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 07:45:37 -0700 (PDT) Message-ID: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> Date: Thu, 13 Apr 2006 22:45:37 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24681_32328398.1144939537332" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.767 tagged_above=-999 required=2 tests=[AWL=-0.519, BAYES_00=-2.599, HTML_10_20=1.351, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -1.767 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 14:45:39 -0000 ------=_Part_24681_32328398.1144939537332 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James, Thanks so much for all the help and assistence. I hope you can sort the res= t of the problems out :) Thanks Matt PS the eject crash was a segfault: (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: assertio= n `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed (Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion `GTK_IS_IMAGE (image)' failed (Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed closing Segmentation fault On 4/13/06, James Stembridge wrote: > > On 4/13/06, Matthew Vermeulen wrote: > > Now I just need to get it to work if i plug it in after starting > banshee. > > Maybe applying other patches?? > > Don't think any of the other patches would make any difference here. > I'd noticed that the devices passed to the dap classes is different if > the dap is plugged in before rather than while banshee is running. > > On 4/13/06, Matthew Vermeulen wrote: > > Can I get transcoding to work on my device??? No synchronize button is > > shown, and banshee crashes on eject... although it does eject and copy > the > > music over. Reason I ask is cause most of my music is ogg, while my > player > > only supports mp3+wma.... > > Yes I'd think so, I'll have a look at how the Ipod transcoding is > done. I'll also have a look at the eject crash. > > James. > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- matt ------=_Part_24681_32328398.1144939537332 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline James,

Thanks so much for all the help and assistence. I hope you ca= n sort the rest of the problems out :)

Thanks

Matt

PS = the eject crash was a segfault:

(Banshee:32577): Gtk-CRITICAL **: gt= k_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOOSER (chooser)' fa= iled

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_file_chooser_get_local_only: = assertion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gt= k-CRITICAL **: gtk_file_chooser_get_local_only: assertion `GTK_IS_FILE_CHOO= SER (chooser)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk_file_chooser_get_paths: asse= rtion `GTK_IS_FILE_CHOOSER (chooser)' failed

(Banshee:32577): Gtk-CR= ITICAL **: gtk_label_set_text: assertion `GTK_IS_LABEL (label)' failed

(Banshee:32577): Gtk-CRITICAL **: gtk_image_set_from_pixbuf: assertion = `GTK_IS_IMAGE (image)' failed

(Banshee:32577): Gtk-CRITICAL **: _gtk= _file_chooser_get_paths: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed
closing
Segmentation fault

O= n 4/13/06, James Stembridge <jstembridge@gmail.com> wrote:
On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Now I just need to get it = to work if i plug it in after starting banshee.
> Maybe applying othe= r patches??

Don't think any of the other patches would make any difference here= .
I'd noticed that the devices passed to the dap classes is different if=
the dap is plugged in before rather than while banshee is running.

On 4/13/06, Matthew Vermeulen <mattvermeulen@gmail.com> wrote:
> Can I get transcoding = to work on my device??? No synchronize button is
> shown, and banshee= crashes on eject... although it does eject and copy the
> music over. Reason I ask is cause most of my music is ogg, while m= y player
> only supports mp3+wma....

Yes I'd think so, I'll ha= ve a look at how the Ipod transcoding is
done. I'll also have a look at = the eject crash.

James.
_______________________________________________
Banshe= e-list mailing list
Banshee-li= st@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list



--
matt ------=_Part_24681_32328398.1144939537332-- From lukas@pmad.net Thu Apr 13 12:03:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 213BA3B18F4 for ; Thu, 13 Apr 2006 12:03:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22737-06 for ; Thu, 13 Apr 2006 12:03:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 59F3F3B1906 for ; Thu, 13 Apr 2006 12:00:59 -0400 (EDT) Received: (qmail 27049 invoked by uid 503); 13 Apr 2006 16:01:07 -0000 Received: (QMFILT: 1.0); 13 Apr 2006 16:01:07 -0000 Received: from b7.ovh.net (HELO mail147.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 13 Apr 2006 16:01:07 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:34 -0000 Received: from mail147.ha.ovh.net (10.0.50.147) by mail147.ha.ovh.net with SMTP; 13 Apr 2006 16:00:27 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 Received: from adsl-d91.87-197-143.telecom.sk (HELO ?192.168.0.23?) (87.197.143.91) by ns0.ovh.net with SMTP; 13 Apr 2006 16:00:24 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-9E0sff6pbaqTSqqCs08K" Date: Thu, 13 Apr 2006 18:00:30 +0200 Message-Id: <1144944031.5000.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.143.91 (adsl-d91.87-197-143.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.439 tagged_above=-999 required=2 tests=[AWL=0.160, BAYES_00=-2.599] X-Spam-Score: -2.439 X-Spam-Level: Subject: [Banshee-List] Child source v0.3 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:03:29 -0000 --=-9E0sff6pbaqTSqqCs08K Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Attached is an updated version of the patch that adds child source support to Banshee. This patch fixes some small issues that I found today. Best, Lukas --=-9E0sff6pbaqTSqqCs08K Content-Disposition: attachment; filename=banshee-childsource-0.3.patch Content-Type: text/x-patch; name=banshee-childsource-0.3.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? mediaengines/xing-encoder ? po/stamp-it ? src/.PlaylistView.cs.swp Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 13 Apr 2006 15:58:04 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 13 Apr 2006 15:58:04 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,44 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + }; + } + + ExpandAll (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,13 +234,15 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource (LibrarySource.Instance); + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; } @@ -267,7 +309,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +333,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 13 Apr 2006 15:58:04 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 13 Apr 2006 15:58:07 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 13 Apr 2006 15:58:07 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 13 Apr 2006 15:58:14 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 13 Apr 2006 15:58:14 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 13 Apr 2006 15:58:22 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 13 Apr 2006 15:58:22 -0000 @@ -36,29 +36,34 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { - private static ArrayList playlists = new ArrayList(); + private static Hashtable playlists = new Hashtable(); + public static IEnumerable Playlists { get { - return playlists; + return playlists.Values; } } public static int PlaylistCount { get { - return playlists.Count; + return playlists.Values.Count; } } private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -71,7 +76,7 @@ } Globals.Library.TrackRemoved += OnLibraryTrackRemoved; - playlists.Add(this); + playlists.Add(id, this); } private void CreateNewPlaylist() @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -164,7 +167,7 @@ )); SourceManager.RemoveSource(this); - playlists.Remove(this); + playlists.Remove(id); } public override void Commit() @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-11 21:51:33.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-9E0sff6pbaqTSqqCs08K-- From abockover@novell.com Thu Apr 13 12:33:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CF7113B1908 for ; Thu, 13 Apr 2006 12:33:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25177-08 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: from peabody.ximian.com (peabody.ximian.com [130.57.169.10]) by menubar.gnome.org (Postfix) with ESMTP id 6925A3B0676 for ; Thu, 13 Apr 2006 12:33:49 -0400 (EDT) Received: (qmail 7065 invoked from network); 13 Apr 2006 16:33:48 -0000 Received: from outbound.ximian.com (HELO ?164.99.120.176?) (130.57.170.250) by peabody.ximian.com with SMTP; 13 Apr 2006 16:33:48 -0000 Subject: Re: [Banshee-List] Child source v0.3 From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1144944031.5000.1.camel@localhost.localdomain> References: <1144944031.5000.1.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 13 Apr 2006 12:30:30 -0400 Message-Id: <1144945831.17382.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.461 tagged_above=-999 required=2 tests=[AWL=0.138, BAYES_00=-2.599] X-Spam-Score: -2.461 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:33:51 -0000 Hi Lukas, I tested the previous version a few days ago and found some issues. Maybe you resolved them already with this version. I'll test this version tonight. In any regard, here is what I found with the previous version: a) Way too much empty space left of the source icon when a node doesn't have children b) Plugging in iPod with Banshee already running does not show the new source c) If library has no playlist children, adding a new playlist is confusing (the "New playlist" node becomes a child of library, which is not expanded and thus not visible) d) Can easily crash by dragging tracks to create a new playlist when there are no other playlists Cheers, Aaron On Thu, 2006-04-13 at 18:00 +0200, Lukas Lipka wrote: > Hey, > > Attached is an updated version of the patch that adds child source > support to Banshee. This patch fixes some small issues that I found > today. > > Best, > Lukas > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From jstembridge@gmail.com Thu Apr 13 12:50:35 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 30C533B1936 for ; Thu, 13 Apr 2006 12:50:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26483-07 for ; Thu, 13 Apr 2006 12:50:34 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id D298E3B040E for ; Thu, 13 Apr 2006 12:50:33 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i7so128367wra for ; Thu, 13 Apr 2006 09:50:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rx/cTfFMVRvdCxwa0SWfBnUc/BcNlKSwhNeKKTGm8CYzMxTh8JwYDoGzFe3jgumv1S0yphmo/fNPn4mSNa79Lv7uBr/lDOR4CVuH+bKcPLZG2hAJMb+opttzgajnqinLBUA7XiaEOdRrttNF2J0cn2dpsskG/Rq+VXdjU39w/xs= Received: by 10.54.122.11 with SMTP id u11mr659618wrc; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Thu, 13 Apr 2006 09:50:31 -0700 (PDT) Message-ID: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> Date: Thu, 13 Apr 2006 17:50:31 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_13410_9419575.1144947031390" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130543r11d6c89bm163e5123f05280a@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.821 tagged_above=-999 required=2 tests=[AWL=-0.779, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.821 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 16:50:35 -0000 ------=_Part_13410_9419575.1144947031390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Matt: Give the attached patch a go against clean CVS. Eject is still broken (apparently in native code) but everything else should probably be OK. Gabriel: Is this a suitable format for you to incorporate or do you want functionally separated patches? Cheers, James. ------=_Part_13410_9419575.1144947031390 Content-Type: text/x-patch; name=mass_storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_elzbtidm Content-Disposition: attachment; filename="mass_storage.patch" Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 13 Apr 2006 16:39:52 -0000 @@ -153,6 +153,12 @@ source = new DapSource(this); SourceManager.AddSource(source); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadTracks(); + } + return InitializeResult.Valid; } @@ -167,6 +173,13 @@ return tracks.GetEnumerator(); } + private void OnUIManagerInitialized(object o, EventArgs args) + { + Globals.UIManager.Initialized -= OnUIManagerInitialized; + + ReloadTracks(); + } + protected void OnPropertiesChanged() { if(PropertiesChanged != null) { @@ -192,7 +205,7 @@ { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -611,6 +624,7 @@ } } + public abstract void ReloadTracks(); public abstract void Synchronize(); public abstract string Name { get; } public abstract ulong StorageCapacity { get; } Index: src/Banshee.Dap/Ipod/IpodDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Ipod/IpodDap.cs,v retrieving revision 1.13 diff -u -r1.13 IpodDap.cs --- src/Banshee.Dap/Ipod/IpodDap.cs 9 Apr 2006 21:30:26 -0000 1.13 +++ src/Banshee.Dap/Ipod/IpodDap.cs 13 Apr 2006 16:39:53 -0000 @@ -74,8 +74,6 @@ InstallProperty("Serial Number", device.SerialNumber); InstallProperty("Firmware Version", device.FirmwareVersion); InstallProperty("Database Version", device.SongDatabase.Version.ToString()); - - ReloadDatabase(false); CanCancelSave = false; return InitializeResult.Valid; @@ -123,7 +121,12 @@ } } - private void ReloadDatabase(bool refresh) + public override void ReloadTracks() + { + ReloadTracks(false); + } + + private void ReloadTracks(bool refresh) { bool previous_database_supported = database_supported; @@ -184,7 +187,7 @@ Console.Error.WriteLine (e); LogCore.Instance.PushError(Catalog.GetString("Failed to synchronize iPod"), e.Message); } finally { - ReloadDatabase(true); + ReloadTracks(true); FinishSave(); } } @@ -294,7 +297,7 @@ db_unsupported_container = new UnsupportedDatabaseView(this); db_unsupported_container.Refresh += delegate(object o, EventArgs args) { LoadIpod(); - ReloadDatabase(false); + ReloadTracks(false); OnReactivate(); }; } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 13 Apr 2006 16:39:53 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -77,31 +77,34 @@ if(!volume_device.PropertyExists ("volume.is_mounted") || !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - - ReloadDatabase(); // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } public override void Dispose() { @@ -110,7 +113,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks (false); @@ -145,7 +148,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -170,6 +174,14 @@ return track; string new_path = GetTrackPath (track); + if(File.Exists(new_path)) { + if(File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) { + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + } else { + return null; + } + } + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); File.Copy (track.Uri.LocalPath, new_path); @@ -213,19 +225,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string escaped_artist = FileNamePattern.Escape(track.Artist); + string escaped_album = FileNamePattern.Escape(track.Album); + string escaped_track = FileNamePattern.Escape(track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", escaped_artist); + file_path = file_path.Replace ("%Album", escaped_album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, escaped_track); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", escaped_track); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (escaped_artist, escaped_album); + file_path = System.IO.Path.Combine (file_path, escaped_track); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -242,7 +259,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + (volume_device["volume.label"].Length > 0)) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Dap/Njb/NjbDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDap.cs,v retrieving revision 1.12 diff -u -r1.12 NjbDap.cs --- src/Banshee.Dap/Njb/NjbDap.cs 13 Feb 2006 22:18:11 -0000 1.12 +++ src/Banshee.Dap/Njb/NjbDap.cs 13 Apr 2006 16:39:53 -0000 @@ -119,8 +119,6 @@ InstallProperty("Serial Number", halDevice.PropertyExists("usb.serial") ? halDevice["usb.serial"] : device.SdmiIdString); - ReloadDatabase(); - CanCancelSave = false; return InitializeResult.Valid; } @@ -134,7 +132,7 @@ base.Dispose(); } - private void ReloadDatabase() + public override void ReloadTracks() { ClearTracks(false); Index: src/Banshee.Dap/Njb/NjbDapTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/Njb/NjbDapTrackInfo.cs,v retrieving revision 1.2 diff -u -r1.2 NjbDapTrackInfo.cs --- src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Feb 2006 22:18:11 -0000 1.2 +++ src/Banshee.Dap/Njb/NjbDapTrackInfo.cs 13 Apr 2006 16:39:53 -0000 @@ -74,7 +74,7 @@ private void LoadFromNjbSong(DapDevice dap) { - uri = new Uri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); + uri = new SafeUri(String.Format("dap://{0}/{1}", dap.Uid, song.Id)); album = song.Album == String.Empty ? null : song.Album; artist = song.Artist == String.Empty ? null : song.Artist; title = song.Title == String.Empty ? null : song.Title; ------=_Part_13410_9419575.1144947031390-- From mattvermeulen@gmail.com Thu Apr 13 19:38:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ECA0D3B085C for ; Thu, 13 Apr 2006 19:38:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16331-03 for ; Thu, 13 Apr 2006 19:38:07 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.180]) by menubar.gnome.org (Postfix) with ESMTP id 9D64A3B138C for ; Thu, 13 Apr 2006 19:38:06 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1981367pyu for ; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hPQ+roydDUZmvvz02u0W0zJBm86F57nDY+tf4T82Iul9uM4yqOAybAYhRNlOeQKrKPwtYJXCRwdXAweB1EVPiyRJUwvwaJoAPN5k1f4wyUTApXqAVJHWgNlQ6pZwzQVNKHvUx+/RWe1+wMiVvuwaKMT4I4X2PCCZyNt5Kk4VPa8= Received: by 10.35.82.15 with SMTP id j15mr695510pyl; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Received: by 10.35.99.16 with HTTP; Thu, 13 Apr 2006 16:38:05 -0700 (PDT) Message-ID: <950c7d180604131638u4f9277e8q3f7f486ba881ccc0@mail.gmail.com> Date: Fri, 14 Apr 2006 07:38:05 +0800 From: "Matthew Vermeulen" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3721_16673855.1144971485684" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.12 tagged_above=-999 required=2 tests=[AWL=-0.017, BAYES_00=-2.599, HTML_40_50=0.496, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.12 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2006 23:38:13 -0000 ------=_Part_3721_16673855.1144971485684 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James, Mass storage now works if the device is plugged in while banshee is running :) However, still no transcoding or synchronize, which i suppose wasn't in the patch... :) Thanks Matthew On 4/14/06, James Stembridge wrote: > > Matt: Give the attached patch a go against clean CVS. Eject is still > broken (apparently in native code) but everything else should probably > be OK. > > Gabriel: Is this a suitable format for you to incorporate or do you > want functionally separated patches? > > Cheers, > James. > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > -- matt ------=_Part_3721_16673855.1144971485684 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks James,

Mass storage now works if the device is plugged in whi= le banshee is running :) However, still no transcoding or synchronize, whic= h i suppose wasn't in the patch... :)

Thanks

Matthew

On 4/14/06, = James Stembridge <jstembrid= ge@gmail.com> wrote:
Matt: Give the attached patch a go against clean CVS. Eject is still
bro= ken (apparently in native code) but everything else should probably
be O= K.

Gabriel: Is this a suitable format for you to incorporate or do y= ou
want functionally separated patches?

Cheers,
James.

_______________________________________________
Banshee-list mailing l= ist
Banshee-list@gnome.org
http://= mail.gnome.org/mailman/listinfo/banshee-list






--
matt ------=_Part_3721_16673855.1144971485684-- From gabriel.burt@gmail.com Thu Apr 13 22:16:41 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9EE0A3B06CD for ; Thu, 13 Apr 2006 22:16:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22073-03 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.181]) by menubar.gnome.org (Postfix) with ESMTP id 5F2383B0669 for ; Thu, 13 Apr 2006 22:16:40 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2003750pyu for ; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QeEPp3lwdwS2nyZiZ4U2jqGzZnlUd+TZtXWv/cQGxRAkUYzr70RAJLChHMrnq1lagXuIkmxPBeGTE+bwfe1PWMO3t8a7CRWxTWBAaEGRBZf4kizrjX9UQNzjFeJT46cs1cpJDNBOa7orORmKMWsqqMjchn7ci86gb1VUnVHPAQw= Received: by 10.35.105.18 with SMTP id h18mr383825pym; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Thu, 13 Apr 2006 19:16:39 -0700 (PDT) Message-ID: <24348e0604131916y4e1413a2ref2f4dbacbce795d@mail.gmail.com> Date: Thu, 13 Apr 2006 21:16:39 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.122 tagged_above=-999 required=2 tests=[AWL=0.254, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.122 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 02:16:41 -0000 T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpU aGUgd2F5IHlvdSBzZW50IGl0IGlzIGZpbmUuICBUaGFua3MhICBIb3BlZnVsbHkgZ2V0IHRoaXMg aW50byBIRUFEIHNvb24uCgpHYWJyaWVsCg== From lukas@pmad.net Fri Apr 14 08:06:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 05FD53B0BBB for ; Fri, 14 Apr 2006 08:06:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19602-09 for ; Fri, 14 Apr 2006 08:06:20 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 0AC583B0F97 for ; Fri, 14 Apr 2006 08:06:18 -0400 (EDT) Received: (qmail 372 invoked by uid 503); 14 Apr 2006 12:06:27 -0000 Received: (QMFILT: 1.0); 14 Apr 2006 12:06:27 -0000 Received: from b7.ovh.net (HELO mail148.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 14 Apr 2006 12:06:27 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 12:05:54 -0000 Received: from mail148.ha.ovh.net (10.0.50.148) by mail148.ha.ovh.net with SMTP; 14 Apr 2006 12:05:46 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Received: from adsl-d56.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.56) by ns0.ovh.net with SMTP; 14 Apr 2006 10:47:50 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1144945831.17382.2.camel@sledipus.rex> References: <1144944031.5000.1.camel@localhost.localdomain> <1144945831.17382.2.camel@sledipus.rex> Content-Type: multipart/mixed; boundary="=-LDBsFwPm/TmMwGQcPAgc" Date: Fri, 14 Apr 2006 12:47:47 +0200 Message-Id: <1145011668.10366.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 X-Ovh-Remote: 87.197.129.56 (adsl-d56.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.449 tagged_above=-999 required=2 tests=[AWL=0.150, BAYES_00=-2.599] X-Spam-Score: -2.449 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 12:06:27 -0000 --=-LDBsFwPm/TmMwGQcPAgc Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > a) Way too much empty space left of the source icon when a node doesn't > have children I will have a look at this later but I'm afraid there is no way of fixing this, since this is what a TreeView always does. Any ideas? > b) Plugging in iPod with Banshee already running does not show the new > source You're right, I'm also seeing this. But what is much more interesting is that this doesn't work with a clean checkout of Banshee either. Therefor I don't think this is affected by the patch. > c) If library has no playlist children, adding a new playlist is > confusing (the "New playlist" node becomes a child of library, which is > not expanded and thus not visible) Fixed. > d) Can easily crash by dragging tracks to create a new playlist when > there are no other playlists I'm not able to reproduce this. Can you send me a stacktrace if you are still able to trigger it? Best, Lukas --=-LDBsFwPm/TmMwGQcPAgc Content-Disposition: attachment; filename=banshee-childsource-0.4.patch Content-Type: text/x-patch; name=banshee-childsource-0.4.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.173 diff -u -r1.173 PlayerInterface.cs --- src/PlayerInterface.cs 10 Apr 2006 16:40:52 -0000 1.173 +++ src/PlayerInterface.cs 14 Apr 2006 10:43:59 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 14 Apr 2006 10:43:59 -0000 @@ -67,7 +67,7 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; public SourceView() @@ -79,25 +79,19 @@ col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +103,10 @@ }; } + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,6 +115,17 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; @@ -150,11 +157,51 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +241,19 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); } TreePath path; @@ -267,7 +319,7 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +343,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +539,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 14 Apr 2006 10:43:59 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 14 Apr 2006 10:44:00 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 14 Apr 2006 10:44:00 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 14 Apr 2006 10:44:04 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 14 Apr 2006 10:44:04 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 14 Apr 2006 10:44:04 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 14 Apr 2006 10:44:09 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-LDBsFwPm/TmMwGQcPAgc-- From doclivingston@gmail.com Fri Apr 14 22:13:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 251CE3B1FAC for ; Fri, 14 Apr 2006 22:13:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31050-09 for ; Fri, 14 Apr 2006 22:13:13 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id D217F3B0ABD for ; Fri, 14 Apr 2006 22:13:12 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so200870pyu for ; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:reply-to:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=SJpTfP5wGT7M/QhAxE1wZQN4W6Zbxty17+u/qx1/UTFdJt4oWRBDpGfQJBQQUha3DEdqoY6SqU4nhdllOmYgw1o7hfpMgS32WCnQ6AD0HhI+7clF6fZUXemRIMHVbK0MQv8p8XL97H9Zxae8Lph2W8FicdIpd4c7loiKiHH9Tkc= Received: by 10.35.107.20 with SMTP id j20mr278118pym; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Received: from alyrion.local ( [144.139.79.240]) by mx.gmail.com with ESMTP id t5sm295032pyc.2006.04.14.19.13.09; Fri, 14 Apr 2006 19:13:11 -0700 (PDT) Subject: Re: [Banshee-List] Child source v0.3 (now 0.4) From: "James \"Doc\" Livingston" To: banshee-list@gnome.org Content-Type: text/plain Date: Sat, 15 Apr 2006 12:13:07 +1000 Message-Id: <1145067187.5692.13.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.303 tagged_above=-999 required=2 tests=[AWL=0.297, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.303 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, doclivingston@gmail.com List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 02:13:15 -0000 On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > a) Way too much empty space left of the source icon when a node doesn't > > have children > > I will have a look at this later but I'm afraid there is no way of > fixing this, since this is what a TreeView always does. Any ideas? You need to create an empty column in the tree view, and make it invisible. Whenever a source is added/removed, determine if there are any sources with children; if so, set the tree view's expander-column to be the first column, if not set it to be the invisible column. Cheers, James "Doc" Livingston -- You wouldn't know a subtle plan if it painted itself purple and danced naked on top of a harpsichord singing 'Subtle Plans Are Here Again' -- Lord Blackadder From gcgmb-banshee-list@m.gmane.org Sat Apr 15 03:35:07 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A7A943B0A99 for ; Sat, 15 Apr 2006 03:35:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11279-03 for ; Sat, 15 Apr 2006 03:35:06 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 1861A3B0AB3 for ; Sat, 15 Apr 2006 03:35:05 -0400 (EDT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FUfJ8-0001gx-2U for banshee-list@gnome.org; Sat, 15 Apr 2006 09:35:02 +0200 Received: from 69-12-172-225.dsl.static.sonic.net ([69.12.172.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 Received: from eric.moret by 69-12-172-225.dsl.static.sonic.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Apr 2006 09:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: "Eric Moret" Date: Sat, 15 Apr 2006 00:24:11 -0700 Lines: 12 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 69-12-172-225.dsl.static.sonic.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.742 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -0.742 X-Spam-Level: Subject: [Banshee-List] hal-sharp documentation X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 07:35:07 -0000 Hello all, I am looking for hal-sharp documentation and so far was not able to find much. Looking at banshee's source code, I see a mix of managed/unmanaged code to detect cd insertion. Is there any reason for using unmanaged code? Would it be possible to do it with 100% managed code instead? Best, __ Eric From lukas@pmad.net Sat Apr 15 07:06:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4FA203B20D3 for ; Sat, 15 Apr 2006 07:06:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22122-05 for ; Sat, 15 Apr 2006 07:06:04 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 647553B20C8 for ; Sat, 15 Apr 2006 07:06:03 -0400 (EDT) Received: (qmail 19881 invoked by uid 503); 15 Apr 2006 11:06:11 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 11:06:11 -0000 Received: from b7.ovh.net (HELO mail152.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 11:06:11 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:29 -0000 Received: from mail152.ha.ovh.net (10.0.50.152) by mail152.ha.ovh.net with SMTP; 15 Apr 2006 11:03:26 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Received: from adsl-d136.87-197-205.telecom.sk (HELO ?192.168.0.23?) (87.197.205.136) by ns0.ovh.net with SMTP; 15 Apr 2006 11:03:25 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145067187.5692.13.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-Cb7k/pk1SSJXB0ikDmxI" Date: Sat, 15 Apr 2006 13:03:19 +0200 Message-Id: <1145098999.8073.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.205.136 (adsl-d136.87-197-205.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.457 tagged_above=-999 required=2 tests=[AWL=0.142, BAYES_00=-2.599] X-Spam-Score: -2.457 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 11:06:15 -0000 --=-Cb7k/pk1SSJXB0ikDmxI Content-Type: text/plain Content-Transfer-Encoding: 7bit Thanks! That took care of it. I'm reposting an updated patch which should make everyone happy! Best, Lukas On Sat, 2006-04-15 at 12:13 +1000, James "Doc" Livingston wrote: > On Fri, 2006-4-14 at 12:47:47 +0200, Lukas Lipka wrote: > > On Thu, 2006-04-13 at 12:30 -0400, Aaron Bockover wrote: > > > a) Way too much empty space left of the source icon when a node doesn't > > > have children > > > > I will have a look at this later but I'm afraid there is no way of > > fixing this, since this is what a TreeView always does. Any ideas? > > You need to create an empty column in the tree view, and make it > invisible. Whenever a source is added/removed, determine if there are > any sources with children; if so, set the tree view's expander-column to > be the first column, if not set it to be the invisible column. > > > Cheers, > > James "Doc" Livingston --=-Cb7k/pk1SSJXB0ikDmxI Content-Disposition: attachment; filename=banshee-childsource-0.5.patch Content-Type: text/x-patch; name=banshee-childsource-0.5.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 11:00:27 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 11:00:27 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool CheckChildren () + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand (iter); + }; + + Expand (iter); + } + + CheckChildren (); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + CheckChildren (); + } + + private void Expand (TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -194,14 +270,20 @@ SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); Gdk.Drag.Status(context, 0, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) + || ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { return true; } if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + TreeIter library = FindSource(LibrarySource.Instance); + + newPlaylistIter = store.AppendValues(library, newPlaylistSource); newPlaylistVisible = true; + + Expand (library); + CheckChildren (); } TreePath path; @@ -230,6 +312,7 @@ if(newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + CheckChildren (); } } @@ -243,7 +326,7 @@ string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -267,7 +350,8 @@ playlist.AddTrack(tracks); playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); + CheckChildren (); } Gtk.Drag.Finish(context, true, false, time); @@ -291,14 +375,12 @@ public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +571,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 11:00:27 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 11:00:31 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 11:00:31 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 11:00:39 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 11:00:39 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 11:00:48 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 11:00:48 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-Cb7k/pk1SSJXB0ikDmxI-- From lukas@pmad.net Sat Apr 15 11:19:23 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6158F3B108F for ; Sat, 15 Apr 2006 11:19:23 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02535-07 for ; Sat, 15 Apr 2006 11:19:21 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 01FD33B1066 for ; Sat, 15 Apr 2006 11:19:20 -0400 (EDT) Received: (qmail 21730 invoked by uid 503); 15 Apr 2006 15:19:29 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 15:19:29 -0000 Received: from b6.ovh.net (HELO mail55.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 15:19:29 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from mail55.ha.ovh.net (10.0.50.55) by mail55.ha.ovh.net with SMTP; 15 Apr 2006 15:18:13 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 15:18:12 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145098999.8073.1.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> Content-Type: text/plain Date: Sat, 15 Apr 2006 17:18:38 +0200 Message-Id: <1145114318.14136.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.50001 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[AWL=0.135, BAYES_00=-2.599] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:19:23 -0000 Hi, So I found a bug in 0.5 today when you try to create playlist by dragging. The problem pops up when you try to drop the selection into the "New Playlist" row and there is another source below the music library. Something like: * Music Library + Other playlist + New playlist <= HERE * Music Store * Lukas' iPod What happens is that OnDragMotion the "New Playlist" row is created. After that, when you drop the selection onto it, OnDragLeave gets called at first! This is totally fucking absurdal[1], because in there we destroy the "New Playlist" row. After we have done all of this OnDragDataReceived is finally called. Here we try to get the row under the cursor, but since the "New Playlist" row is long gone, we just get the next row after it (that would be Music Store in the example above). So much for the miracles in GTK-Wonderland! I just thought I would share my fun with you. :-) Best, Lukas [1] MDK's words: http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > Thanks! That took care of it. I'm reposting an updated patch which > should make everyone happy! > > Best, > Lukas From abockover@novell.com Sat Apr 15 11:51:27 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 348883B06FB for ; Sat, 15 Apr 2006 11:51:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04277-08 for ; Sat, 15 Apr 2006 11:51:24 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id EB8753B09A1 for ; Sat, 15 Apr 2006 11:51:23 -0400 (EDT) Received: from [192.168.0.100] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3FFpMU6016954 for ; Sat, 15 Apr 2006 11:51:22 -0400 (EDT) Subject: Re: [Banshee-List] hal-sharp documentation From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: References: Content-Type: text/plain Date: Sat, 15 Apr 2006 11:48:25 -0400 Message-Id: <1145116106.6921.2.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.575 tagged_above=-999 required=2 tests=[AWL=0.024, BAYES_00=-2.599] X-Spam-Score: -2.575 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 15:51:27 -0000 On Sat, 2006-04-15 at 00:24 -0700, Eric Moret wrote: > Hello all, > > I am looking for hal-sharp documentation and so far was not able to find > much. Looking at banshee's source code, I see a mix of managed/unmanaged > code to detect cd insertion. Is there any reason for using unmanaged code? > Would it be possible to do it with 100% managed code instead? http://banshee-project.org/files/documentation/banshee/Hal This is monodoc-generated documentation and it has not been filled in with details, but the API should be fairly straight forward. As for CD detection, yes, you can do this in managed. The detection in Banshee is fully managed. The only unmanaged code is GStreamer related, and a P/Invoke into an ioctl call to eject the disk. I need to add HAL method call support to hal-sharp, and when I do, you could even do ejecting in managed, however, it requires HAL 0.5.6 or better. --Aaron > Best, > __ > Eric > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From ruben@Lambda1.be Sat Apr 15 12:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 50BF93B1085 for ; Sat, 15 Apr 2006 12:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06716-06 for ; Sat, 15 Apr 2006 12:42:23 -0400 (EDT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by menubar.gnome.org (Postfix) with ESMTP id 9E78D3B0B1A for ; Sat, 15 Apr 2006 12:42:22 -0400 (EDT) Received: from ([62.235.114.77]) by guri.is.scarlet.be with ESMTP id k3FGgJc03233 for ; Sat, 15 Apr 2006 18:42:19 +0200 Received: by localhost.localdomain (Postfix, from userid 1000) id B7F02460118; Sat, 15 Apr 2006 18:42:18 +0200 (CEST) Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145114318.14136.10.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sat, 15 Apr 2006 18:42:16 +0200 Message-Id: <1145119337.20262.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-DCC-scarlet.be-Metrics: guri 2020; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, UNPARSEABLE_RELAY=0.001] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 16:42:29 -0000 It also seems to break the minimode plugin. Not sure which one would need fixing though. Ruben On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > Hi, > > So I found a bug in 0.5 today when you try to create playlist by > dragging. The problem pops up when you try to drop the selection into > the "New Playlist" row and there is another source below the music > library. > > Something like: > > * Music Library > + Other playlist > + New playlist <= HERE > * Music Store > * Lukas' iPod > > What happens is that OnDragMotion the "New Playlist" row is created. > After that, when you drop the selection onto it, OnDragLeave gets called > at first! This is totally fucking absurdal[1], because in there we > destroy the "New Playlist" row. After we have done all of this > OnDragDataReceived is finally called. Here we try to get the row under > the cursor, but since the "New Playlist" row is long gone, we just get > the next row after it (that would be Music Store in the example above). > > So much for the miracles in GTK-Wonderland! I just thought I would share > my fun with you. :-) > > Best, > Lukas > > > [1] MDK's words: > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > Thanks! That took care of it. I'm reposting an updated patch which > > should make everyone happy! > > > > Best, > > Lukas > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Sat Apr 15 13:08:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DF663B0D50 for ; Sat, 15 Apr 2006 13:08:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08397-05 for ; Sat, 15 Apr 2006 13:07:56 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 3CD4F3B0724 for ; Sat, 15 Apr 2006 13:07:55 -0400 (EDT) Received: (qmail 15254 invoked by uid 503); 15 Apr 2006 17:08:03 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 17:08:03 -0000 Received: from b7.ovh.net (HELO mail138.ha.ovh.net) (213.186.33.57) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 17:08:03 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:22 -0000 Received: from mail138.ha.ovh.net (10.0.50.138) by mail138.ha.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 17:07:20 -0000 Subject: Re: [Banshee-List] Child source v0.3 (now 0.5) From: Lukas Lipka To: banshee-list@gnome.org In-Reply-To: <1145119337.20262.0.camel@localhost.localdomain> References: <1145067187.5692.13.camel@localhost.localdomain> <1145098999.8073.1.camel@localhost.localdomain> <1145114318.14136.10.camel@localhost.localdomain> <1145119337.20262.0.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-eRYPIfpR9ZLXY0Xwz0jD" Date: Sat, 15 Apr 2006 19:07:27 +0200 Message-Id: <1145120847.5158.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.47 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599] X-Spam-Score: -2.47 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 17:08:02 -0000 --=-eRYPIfpR9ZLXY0Xwz0jD Content-Type: text/plain Content-Transfer-Encoding: 7bit Attached is a patch which fixes this. It should be alright to check it in now, since it doesn't depend on the child source patch. Lukas On Sat, 2006-04-15 at 18:42 +0200, Ruben Vermeersch wrote: > It also seems to break the minimode plugin. Not sure which one would > need fixing though. > > Ruben > > On Sat, 2006-04-15 at 17:18 +0200, Lukas Lipka wrote: > > Hi, > > > > So I found a bug in 0.5 today when you try to create playlist by > > dragging. The problem pops up when you try to drop the selection into > > the "New Playlist" row and there is another source below the music > > library. > > > > Something like: > > > > * Music Library > > + Other playlist > > + New playlist <= HERE > > * Music Store > > * Lukas' iPod > > > > What happens is that OnDragMotion the "New Playlist" row is created. > > After that, when you drop the selection onto it, OnDragLeave gets called > > at first! This is totally fucking absurdal[1], because in there we > > destroy the "New Playlist" row. After we have done all of this > > OnDragDataReceived is finally called. Here we try to get the row under > > the cursor, but since the "New Playlist" row is long gone, we just get > > the next row after it (that would be Music Store in the example above). > > > > So much for the miracles in GTK-Wonderland! I just thought I would share > > my fun with you. :-) > > > > Best, > > Lukas > > > > > > [1] MDK's words: > > http://www.diva-project.org/browser/trunk/src/Diva.Editor.Timeline/Diva.Editor.Timeline.DrawingArea.cs Line 249 > > > > > > On Sat, 2006-04-15 at 13:03 +0200, Lukas Lipka wrote: > > > Thanks! That took care of it. I'm reposting an updated patch which > > > should make everyone happy! > > > > > > Best, > > > Lukas > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > > > -- > Ruben Vermeersch (rubenv) > http://www.Lambda1.be/ > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-eRYPIfpR9ZLXY0Xwz0jD Content-Disposition: inline; filename=banshee-minimode.patch Content-Type: text/x-patch; name=banshee-minimode.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -101,10 +101,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-eRYPIfpR9ZLXY0Xwz0jD-- From lukas@pmad.net Sat Apr 15 15:29:15 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D05F3B22A8 for ; Sat, 15 Apr 2006 15:29:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15335-01 for ; Sat, 15 Apr 2006 15:29:03 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C5BDB3B22AC for ; Sat, 15 Apr 2006 15:29:01 -0400 (EDT) Received: (qmail 31567 invoked by uid 503); 15 Apr 2006 19:29:10 -0000 Received: (QMFILT: 1.0); 15 Apr 2006 19:29:10 -0000 Received: from b6.ovh.net (HELO mail54.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 15 Apr 2006 19:29:10 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:32 -0000 Received: from mail54.ha.ovh.net (10.0.50.54) by mail54.ha.ovh.net with SMTP; 15 Apr 2006 19:28:29 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 Received: from adsl-d125.87-197-129.telecom.sk (HELO ?192.168.0.23?) (87.197.129.125) by ns0.ovh.net with SMTP; 15 Apr 2006 19:28:28 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-1VydZuHNf7DrKSjSE6UG" Date: Sat, 15 Apr 2006 21:28:36 +0200 Message-Id: <1145129316.18680.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.129.125 (adsl-d125.87-197-129.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=0.123, BAYES_00=-2.599] X-Spam-Score: -2.476 X-Spam-Level: Subject: [Banshee-List] Child source final (v0.6) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 19:29:15 -0000 --=-1VydZuHNf7DrKSjSE6UG Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, The "gtk d&d is crack" version patch of child source support for Banshee is out! All the issues everyone pointed out should be fixed now. For the awesome minimode plugin users - a patch which makes minimode work with this has been sent to the list. Good luck & Have fun! Lukas --=-1VydZuHNf7DrKSjSE6UG Content-Disposition: attachment; filename=banshee-childsource-0.6.patch Content-Type: text/x-patch; name=banshee-childsource-0.6.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 15 Apr 2006 19:22:36 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 15 Apr 2006 19:22:36 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; - } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + // FIXME: We need to handle this nicer + //if(!((SourceManager.ActiveSource is LibrarySource) + //|| ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + // return true; + //} + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 15 Apr 2006 19:22:37 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 15 Apr 2006 19:22:37 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 15 Apr 2006 19:22:37 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 15 Apr 2006 19:22:40 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 15 Apr 2006 19:22:40 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 15 Apr 2006 19:22:42 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 15 Apr 2006 19:22:42 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-1VydZuHNf7DrKSjSE6UG-- From teuf@gnome.org Sat Apr 15 19:10:45 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 62DF63B0D16 for ; Sat, 15 Apr 2006 19:10:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25429-09 for ; Sat, 15 Apr 2006 19:10:42 -0400 (EDT) Received: from smTp.neuf.fr (sp604003mt.neufgp.fr [84.96.92.56]) by menubar.gnome.org (Postfix) with ESMTP id 0F6223B0885 for ; Sat, 15 Apr 2006 19:10:39 -0400 (EDT) Received: from [192.168.0.2] ([86.69.170.130]) by sp604003mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0IXS00AK4DPP9G92@sp604003mt.gpm.neuf.ld> for banshee-list@gnome.org; Sun, 16 Apr 2006 01:10:37 +0200 (CEST) Date: Sun, 16 Apr 2006 01:10:37 +0200 From: Christophe Fergeau To: banshee-list@gnome.org Message-id: <1145142637.6269.15.camel@localhost> MIME-version: 1.0 X-Mailer: Evolution 2.6.1 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-bZrh/Wa52c1Dvjr47M+j" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.409 tagged_above=-999 required=2 tests=[AWL=0.055, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.409 X-Spam-Level: Subject: [Banshee-List] libipoddevice patches X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2006 23:10:45 -0000 --=-bZrh/Wa52c1Dvjr47M+j Content-Type: multipart/mixed; boundary="=-EkK9V63M14Bw9vauXkCw" --=-EkK9V63M14Bw9vauXkCw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Here are two patches to fix 2 issues in libipoddevice: * endianess.diff should hopefully make it possible to parse the DeviceInfo file on big endian machines * list.diff fixes a warning from gcc about the return value of g_list_remove being ignored. I removed some seemingly useless code at the same time (g_list_length(l) is 0 if and only if l is NULL if I read glib code properly) (both patches are only compile tested, so there might be some obvious mistakes in them) Christophe --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=list.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=list.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS1ldmVudC1saXN0ZW5lci5jDQo9PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1Mg ZmlsZTogL2N2cy9nbm9tZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS1ldmVudC1saXN0 ZW5lci5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24gMS44DQpkaWZmIC11IC1yMS44IGlwb2QtZGV2 aWNlLWV2ZW50LWxpc3RlbmVyLmMNCi0tLSBzcmMvaXBvZC1kZXZpY2UtZXZlbnQtbGlzdGVuZXIu Ywk4IE5vdiAyMDA1IDIyOjA0OjUzIC0wMDAwCTEuOA0KKysrIHNyYy9pcG9kLWRldmljZS1ldmVu dC1saXN0ZW5lci5jCTE1IEFwciAyMDA2IDIzOjAzOjQyIC0wMDAwDQpAQCAtMTk5LDExICsxOTks NyBAQA0KICAgICANCiAgICAgZ19saXN0X2ZyZWUobGlzdGVuZXItPnByaXYtPmlwb2RVZGlzKTsN CiAgICAgDQotICAgIGdfbGlzdF9yZW1vdmUoaW5zdGFuY2VzLCBsaXN0ZW5lcik7DQotICAgIGlm KGdfbGlzdF9sZW5ndGgoaW5zdGFuY2VzKSA9PSAwKSB7DQotICAgICAgICBnX2xpc3RfZnJlZShp bnN0YW5jZXMpOw0KLSAgICAgICAgaW5zdGFuY2VzID0gTlVMTDsNCi0gICAgfQ0KKyAgICBpbnN0 YW5jZXMgPSBnX2xpc3RfcmVtb3ZlKGluc3RhbmNlcywgbGlzdGVuZXIpOw0KIH0NCiANCiBzdGF0 aWMgdm9pZCANCg== --=-EkK9V63M14Bw9vauXkCw Content-Disposition: attachment; filename=endianess.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=endianess.diff; charset=UTF-8 SW5kZXg6IHNyYy9pcG9kLWRldmljZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL2N2cy9nbm9t ZS9saWJpcG9kZGV2aWNlL3NyYy9pcG9kLWRldmljZS5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS42MA0KZGlmZiAtdSAtcjEuNjAgaXBvZC1kZXZpY2UuYw0KLS0tIHNyYy9pcG9kLWRldmljZS5j CTEzIEFwciAyMDA2IDIzOjM4OjEzIC0wMDAwCTEuNjANCisrKyBzcmMvaXBvZC1kZXZpY2UuYwkx NSBBcHIgMjAwNiAyMzowMzoyMyAtMDAwMA0KQEAgLTgyNCwyMCArODI0LDI1IEBADQogICAgIGdz aG9ydCBsZW5ndGg7DQogICAgIGd1bmljaGFyMiAqdXRmMTY7DQogICAgIGdjaGFyICp1dGY4Ow0K LSAgICANCisgICAgdW5zaWduZWQgaW50IGk7DQorDQogICAgIGlmKGZyZWFkKCZsZW5ndGgsIDEs IHNpemVvZihnc2hvcnQpLCBmZCkgPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAg IH0gZWxzZSBpZihsZW5ndGggPD0gMCkgew0KICAgICAgICAgcmV0dXJuIE5VTEw7DQogICAgIH0N CiAgICAgDQorICAgIGxlbmd0aCA9IEdJTlQxNl9GUk9NX0xFIChsZW5ndGgpOw0KKw0KICAgICB1 dGYxNiA9IChndW5pY2hhcjIgKilnX21hbGxvYyhsZW5ndGggKiBzaXplb2YoZ3VuaWNoYXIyKSk7 DQogICAgIGlmKHV0ZjE2ID09IE5VTEwpIHsNCiAgICAgICAgIHJldHVybiBOVUxMOw0KICAgICB9 IGVsc2UgaWYoZnJlYWQodXRmMTYsIHNpemVvZihndW5pY2hhcjIpLCBsZW5ndGgsIGZkKSA8PSAw KSB7DQogICAgICAgICByZXR1cm4gTlVMTDsNCiAgICAgfQ0KLSAgICANCisgICAgZm9yIChpID0g MDsgaSA8IGxlbmd0aDsgaSsrKSB7DQorCXV0ZjE2W2ldID0gR0lOVDE2X0ZST01fTEUgKHV0ZjE2 W2ldKTsNCisgICAgfQ0KICAgICB1dGY4ID0gZ191dGYxNl90b191dGY4KHV0ZjE2LCBsZW5ndGgs IE5VTEwsIE5VTEwsIE5VTEwpOw0KICAgICANCiAgICAgZ19mcmVlKHV0ZjE2KTsNCkBAIC04NTAs MTggKzg1NSwyNSBAQA0KIGlwb2RfZGV2aWNlX3dyaXRlX2RldmljZV9pbmZvX3N0cmluZyhnY2hh ciAqc3RyLCBGSUxFICpmZCkNCiB7DQogICAgIGd1bmljaGFyMiAqdW5pc3RyOw0KLSAgICBnc2hv cnQgbGVuZ3RoOw0KKyAgICBnbG9uZyBsZW5ndGg7DQorICAgIGdzaG9ydCBsZW5ndGhfbGU7DQor ICAgIHVuc2lnbmVkIGludCBpOw0KIA0KICAgICBpZihzdHIgPT0gTlVMTCkgew0KICAgICAgICAg cmV0dXJuOw0KICAgICB9DQogICAgIA0KLSAgICBsZW5ndGggPSBzdHJsZW4oc3RyKTsNCi0gICAg dW5pc3RyID0gZ191dGY4X3RvX3V0ZjE2KHN0ciwgbGVuZ3RoLCBOVUxMLCBOVUxMLCBOVUxMKTsN Ci0gICAgDQorICAgIHVuaXN0ciA9IGdfdXRmOF90b191dGYxNihzdHIsIC0xLCBOVUxMLCAmbGVu Z3RoLCBOVUxMKTsNCisgICAgaWYgKHVuaXN0ciA9PSBOVUxMKSB7DQorCXJldHVybjsNCisgICAg fQ0KKyAgICBmb3IgKGkgPSAwOyBpIDwgbGVuZ3RoOyBpKyspIHsNCisJdW5pc3RyW2ldID0gR0lO VDE2X1RPX0xFICh1bmlzdHJbaV0pOw0KKyAgICB9DQorICAgIGxlbmd0aCAqPSBzaXplb2YgKGd1 bmljaGFyMik7DQogICAgIGxlbmd0aCA9IGxlbmd0aCA+IDB4MTk4ID8gMHgxOTggOiBsZW5ndGg7 DQotDQotICAgIGlmKGZ3cml0ZSgmbGVuZ3RoLCAyLCAxLCBmZCkgPD0gMCANCisgICAgbGVuZ3Ro X2xlID0gR0lOVDE2X1RPX0xFIChsZW5ndGgpOw0KKyAgICBpZihmd3JpdGUoJmxlbmd0aF9sZSwg MiwgMSwgZmQpIDw9IDAgDQogICAgICAgICB8fCBmd3JpdGUodW5pc3RyLCAyLCBsZW5ndGgsIGZk KSA8PSAwKSB7DQogICAgICAgICBnX3dhcm5pbmcoIkNvdWxkIG5vdCB3cml0ZSB0byBEZXZpY2VJ bmZvIGZpbGUiKTsNCiAgICAgfQ0K --=-EkK9V63M14Bw9vauXkCw-- --=-bZrh/Wa52c1Dvjr47M+j Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEQX1t+13jZzlzSs4RApzBAJ0XvjsgdPcDbyYRytRc3NYGi8cjMwCeMzKL XDiwGXNnj/dKelq1S/QT3N8= =DuVJ -----END PGP SIGNATURE----- --=-bZrh/Wa52c1Dvjr47M+j-- From lukas@pmad.net Sun Apr 16 08:13:18 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 291933B15CE for ; Sun, 16 Apr 2006 08:13:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06694-03 for ; Sun, 16 Apr 2006 08:13:15 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id C394F3B1519 for ; Sun, 16 Apr 2006 08:13:13 -0400 (EDT) Received: (qmail 8117 invoked by uid 503); 16 Apr 2006 12:13:21 -0000 Received: (QMFILT: 1.0); 16 Apr 2006 12:13:21 -0000 Received: from b6.ovh.net (HELO mail51.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 16 Apr 2006 12:13:21 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:37 -0000 Received: from mail51.ha.ovh.net (10.0.50.51) by mail51.ha.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 Received: from adsl-d74.87-197-130.telecom.sk (HELO ?192.168.0.23?) (87.197.130.74) by ns0.ovh.net with SMTP; 16 Apr 2006 12:04:33 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-MIftsI8pDW7HXQVLyMKT" Date: Sun, 16 Apr 2006 14:04:38 +0200 Message-Id: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.130.74 (adsl-d74.87-197-130.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.489 tagged_above=-999 required=2 tests=[AWL=0.110, BAYES_00=-2.599] X-Spam-Score: -2.489 X-Spam-Level: Subject: [Banshee-List] Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 12:13:18 -0000 --=-MIftsI8pDW7HXQVLyMKT Content-Type: text/plain Content-Transfer-Encoding: 7bit Hey, Hopefully the final version of the child source patch. I figured I forgot to commment out some lines in the previous one, so here is the fixed version. Please test it and if you still do find any issues please report them. Thanks, Lukas --=-MIftsI8pDW7HXQVLyMKT Content-Disposition: attachment; filename=banshee-childsource-0.8.patch Content-Type: text/x-patch; name=banshee-childsource-0.8.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 16 Apr 2006 12:01:53 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 16 Apr 2006 12:01:53 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource (args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource (args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,39 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,11 +182,55 @@ source.Rename(text); } + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + private void RefreshList() { store.Clear(); foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); + AddSource (source); } } @@ -188,62 +264,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +345,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -282,23 +375,23 @@ { TreeIter iter; + //Console.WriteLine (path.ToString ()); + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +582,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 16 Apr 2006 12:01:56 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 16 Apr 2006 12:01:58 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 16 Apr 2006 12:01:58 -0000 @@ -35,6 +35,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 16 Apr 2006 12:02:03 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 16 Apr 2006 12:02:03 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 16 Apr 2006 12:02:10 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 16 Apr 2006 12:02:10 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-03 19:40:38.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-14 12:01:04.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-MIftsI8pDW7HXQVLyMKT-- From benjy.grogan@gmail.com Sun Apr 16 17:31:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A8D5D3B1B02 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32719-06 for ; Sun, 16 Apr 2006 17:31:31 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id E344A3B1A46 for ; Sun, 16 Apr 2006 17:31:30 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so476908pyu for ; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=C1Tpo2UpOBSSC/TuLLjgmeICDHJqSUulYNco7GxoW6rUOGc+yOBhUW4GYAkzo1/HWBS4MeZNDQ85RFcUZQj/TzhJbGGvAMiINYo5zbW6p8lThbKMfSSsIm6b7GrIIelEZ8ZslsrnSqXYna2BdWC0thb+ZAHzsUjqIc0LJyVGkws= Received: by 10.35.15.11 with SMTP id s11mr1929318pyi; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Received: by 10.35.109.12 with HTTP; Sun, 16 Apr 2006 14:31:30 -0700 (PDT) Message-ID: Date: Sun, 16 Apr 2006 17:31:30 -0400 From: "Benjy Grogan" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.604 tagged_above=-999 required=2 tests=[AWL=-0.562, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.604 X-Spam-Level: Subject: [Banshee-List] Banshee Slow to Re-Load Music Library After Clearing Search X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Apr 2006 21:31:31 -0000 Hello I'm using Banshee 0.10.9 on FC5 and enjoying it. Though, now that I've been able to import my entire music collection (over 3000 songs) I find the search box has become a pain. If I do a search for an artist, and then clear that search it will take approximately 20 seconds or so of 100% CPU usage to load up the original list of some 3000 songs. There should be some kind of a cache to take care of loading the Music Library, because clearly this is a problem that will only get worse. I've also got a question. If I'm scrolling through my list of songs, and then the next song plays, the list will slingshot to that song, interrupting my scrolling. Is there a way to disable this? I always found this annoying on Windows Media Player. I'm sure others do too.=20 Could be a good Advanced Preference: the option to disable slingshotting to the next song playing. But liking Banshee so far. Thanks. Benjy From gabriel.burt@gmail.com Mon Apr 17 13:47:31 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D46293B0566 for ; Mon, 17 Apr 2006 13:47:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28600-09 for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.178]) by menubar.gnome.org (Postfix) with ESMTP id 15C193B272D for ; Mon, 17 Apr 2006 13:47:18 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so682825pyu for ; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dbUwY6OGmzHWyfkqP9SyD3IUSi89a7M16y/VF3G6Hx48rUJ2CjF3j9i4k3efT6in3d1MB8Q4YuvKm2QMbzNwpQ4onwxMgYZ6PHZVNh3ccYWk8S6170W3tA7anHtIZzZPv2iNdwYtPvoli16W9eCJUGy5JtiK1mRnIycs2xocBGU= Received: by 10.35.96.11 with SMTP id y11mr1637128pyl; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Mon, 17 Apr 2006 10:47:17 -0700 (PDT) Message-ID: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> Date: Mon, 17 Apr 2006 12:47:17 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_18786_27847866.1145296037209" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130611v14721433q2ddadcd9ed530ccb@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.138 tagged_above=-999 required=2 tests=[AWL=0.238, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.138 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 17:47:32 -0000 ------=_Part_18786_27847866.1145296037209 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline T24gNC8xMy8wNiwgSmFtZXMgU3RlbWJyaWRnZSA8anN0ZW1icmlkZ2VAZ21haWwuY29tPiB3cm90 ZToKPiBHYWJyaWVsOiBJcyB0aGlzIGEgc3VpdGFibGUgZm9ybWF0IGZvciB5b3UgdG8gaW5jb3Jw b3JhdGUgb3IgZG8geW91Cj4gd2FudCBmdW5jdGlvbmFsbHkgc2VwYXJhdGVkIHBhdGNoZXM/CgpP aywgSSdtIGF0dGFjaGluZyB0aGUgY29tYmluZWQgcGF0Y2gsIGEgbGl0dGxlIGxhdGVyIHRoYW4g cHJvbWlzZWQsCnNvcnJ5LiA6KQoKR2FicmllbAo= ------=_Part_18786_27847866.1145296037209 Content-Type: text/x-patch; name=mass-storage.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em53nzmo Content-Disposition: attachment; filename="mass-storage.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.450 diff -u -r1.450 ChangeLog --- ChangeLog 17 Apr 2006 14:50:37 -0000 1.450 +++ ChangeLog 17 Apr 2006 17:32:34 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: When adding a song to + the device, overwrite it if it is out of date. Don't use the volume + label for the Name if it's blank. If the volume for a new device isn't + yet mounted, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * entagged-sharp/Mp4/Mp4FileReader.cs: Added audio/mp4, audio/m4a mime Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.28 diff -u -r1.28 Makefile.am --- src/Banshee.Base/Makefile.am 9 Apr 2006 21:30:23 -0000 1.28 +++ src/Banshee.Base/Makefile.am 17 Apr 2006 17:32:35 -0000 @@ -93,6 +93,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.15 diff -u -r1.15 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 9 Apr 2006 21:30:24 -0000 1.15 +++ src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:32:35 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,11 +188,11 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); - if(track == null) { + if(dap_track == null) { return; } @@ -521,6 +521,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 17 Apr 2006 17:32:35 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,37 +78,52 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + public void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + + // FIXME should probably reload the tracks.. + } + } + public override void Dispose() { // FIXME anything else to do here? volume = null; base.Dispose(); } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } private void ReloadDatabase() { @@ -145,7 +160,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +179,49 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; + + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + + // If it already is on the device but it's out of date, remove it + if (File.Exists (new_path) && File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_path)) + RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_path))); + + if (!File.Exists (new_path)) { + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + } - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +261,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +287,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +310,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 17 Apr 2006 17:32:36 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 12:40:38.000000000 -0500 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 11:35:47.000000000 -0500 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_18786_27847866.1145296037209-- From jstembridge@gmail.com Mon Apr 17 15:26:00 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B8C63B0349 for ; Mon, 17 Apr 2006 15:26:00 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01600-03 for ; Mon, 17 Apr 2006 15:25:53 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id EC0953B27F0 for ; Mon, 17 Apr 2006 15:25:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1323902wri for ; Mon, 17 Apr 2006 12:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ad6kGBc6N2U1lh28qfH5pnidbDGBNTgLskdI7iwZBsXFfUjbc/fokWJ0Xeu/POGlgbDPwgFtgi3Z+Y4doap5+4WDVR7+eRRvNlsJ7+J3O4lo3jYLs/hSCUr+7lh3odS6fZd75vss/pF8thKvbb5zK/4iOXeV6JQceqLMJfyCM+w= Received: by 10.54.122.17 with SMTP id u17mr267737wrc; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 12:25:01 -0700 (PDT) Message-ID: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> Date: Mon, 17 Apr 2006 20:25:01 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130648n30b23560g892cb45ebab42ac6@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.54 tagged_above=-999 required=2 tests=[AWL=0.060, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.54 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 19:26:00 -0000 Hi Gabriel, On 4/17/06, Gabriel Burt wrote: > Ok, I'm attaching the combined patch, a little later than promised, > sorry. :) Thanks for incorporating my patches, a couple of things: 1) There's now a conflict in Dap.cs against latest CVS. 2) With regard to the "If the volume for a new device isn't yet mounted, wait for it." The problem isn't that the device isn't mounted, as hal is correctly telling us that it is via volume.is_mounted. The actual issue is that at this point the list of mounted volumes coming from the Gnome VFS monitor doesn't contain our device. I don't know why this is, but I guess it would be the case if hal events are fired of synchronously and we get the mount event before gnome vfs does. Cheers, James. From jstembridge@gmail.com Mon Apr 17 18:11:14 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 310043B0D37 for ; Mon, 17 Apr 2006 18:11:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11728-04 for ; Mon, 17 Apr 2006 18:11:03 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.232]) by menubar.gnome.org (Postfix) with ESMTP id D47883B0BBF for ; Mon, 17 Apr 2006 18:11:02 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1355067wri for ; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KhssVVMmiKBMNNEhfwCwm90jpBUHvEJQSlqZ8yBRELaiLBD1d60QP6/L8xzc0E607cWQ0F/E939hJgddsKPdzam9/vCEI1Xzls66oBOGz+cfpmg8ZuE0VDBoCf2tB8589cs75FkqhV6BmUOUFlbCGcAkMEVgbEDxZ2jGZikF/mU= Received: by 10.54.66.15 with SMTP id o15mr427567wra; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Mon, 17 Apr 2006 15:11:02 -0700 (PDT) Message-ID: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> Date: Mon, 17 Apr 2006 23:11:02 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8988_6161796.1145311862126" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <950c7d180604130657h3871d388jc1c454a9da6e77c6@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.543 tagged_above=-999 required=2 tests=[AWL=0.057, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.543 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 22:11:14 -0000 ------=_Part_8988_6161796.1145311862126 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/17/06, James Stembridge wrote: > Thanks for incorporating my patches, a couple of things: ... Fixed up patch attached. ------=_Part_8988_6161796.1145311862126 Content-Type: text/x-patch; name="mass-storage2.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mass-storage2.patch" X-Attachment-Id: f_em5d3dxv SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2JhbnNoZWUv Q2hhbmdlTG9nLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQ1MQpkaWZmIC11IC1yMS40NTEgQ2hh bmdlTG9nCi0tLSBDaGFuZ2VMb2cJMTcgQXByIDIwMDYgMTc6NDQ6MDkgLTAwMDAJMS40NTEKKysr IENoYW5nZUxvZwkxNyBBcHIgMjAwNiAxOToxMDoyNSAtMDAwMApAQCAtMSwzICsxLDMxIEBACisy MDA2LTA0LTE3ICBKYW1lcyBTdGVtYnJpZGdlICA8anN0ZW1icmlkZ2VAZ21haWwuY29tPgorCisJ KiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3M6IFdoZW4gYWRk aW5nIGEgc29uZyB0bworCXRoZSBkZXZpY2UsIG92ZXJ3cml0ZSBpdCBpZiBpdCBpcyBvdXQgb2Yg ZGF0ZS4gRG9uJ3QgdXNlIHRoZSB2b2x1bWUKKwlsYWJlbCBmb3IgdGhlIE5hbWUgaWYgaXQncyBi bGFuay4gSWYgbW91bnRlZCB2b2x1bWUgaXNuJ3QgYXZhaWxhYmxlCisJZnJvbSBWRlMgeWV0LCB3 YWl0IGZvciBpdC4KKworMjAwNi0wNC0xNyAgR2FicmllbCBCdXJ0ICA8Z2FicmllbC5idXJ0QGdt YWlsLmNvbT4KKworCSogc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbTogYWRkIFF1ZXVlZE9w ZXJhdGlvbk1hbmFnZXIuY3MuCisKKwkqIHNyYy9CYW5zaGVlLkJhc2UvUXVldWVkT3BlcmF0aW9u TWFuYWdlci5jczogTmV3IGZpbGUsIGFsbG93cyBmb3IgZ2VuZXJpYworCWFzeW5jaHJvbm91cyBl dmVudHMgbGlrZSBjb3B5aW5nIGZpbGVzIHRvIGEgVVNCIERBUCwgZXRjLgorCisJKiBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3M6IEFkZCBFbWl0VHJhY2tBZGRlZCBtZXRob2QgYW5kIGFsbG93 CisJc3ViLWNsYXNzZXMgdG8gb3ZlcnJpZGUgQWRkVHJhY2suCisKKwkqIHNyYy9CYW5zaGVlLkRh cC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jczogRml4IHRoZSBidWcgd2hlcmUgdGhlIERB UAorCWNvdWxkbid0IGJlIHBsdWdnZWQgaW4gd2hlbiBCYW5zaGVlIHN0YXJ0ZWQsIGhhbmRsZSBj b3B5aW5nIGZpbGVzIHRvIHRoZQorCWRldmljZSBhc3luY2hyb25vdXNseSB1c2luZyBhIFF1ZXVl ZE9wZXJhdGlvbk1hbmFnZXIgdGhhdCBwb3BzIHVwIGEKKwlBY3RpdmVVc2VyRXZlbnQgaWYgdGhl IHRyYW5zZmVyIGlzIHNsb3cuICBFc2NhcGUgYXJ0aXN0L2FsYnVtL3RpdGxlIHdoZW4KKwljcmVh dGluZyB0aGUgZGVzdGluYXRpb24gZmlsZW5hbWUuICBDYXRjaCBleGNlcHRpb25zIGluIHRoZSBj b3B5LgorCisJKiBzcmMvQmFuc2hlZS5XaWRldHMvQWN0aXZlVXNlckV2ZW50LmNzOiBBZGQgYW4g b3B0aW9uIGZvciBoYXZpbmcgdGhlIHVzZXIKKwlldmVudCBub3QgcmVnaXN0ZXIgaXRzZWxmIChh bmQgdGhlcmVmb3JlIG5vdCBzaG93IGl0c2VsZikgdW50aWwgYXQgbGVhc3QgYQorCXNlY29uZCBo YXMgcGFzc2VkLCBhdCB3aGljaCB0aW1lIGlmIHRoZSBvcGVyYXRpb24gaXMgbGVzcyB0aGFuIDMz JSBkb25lLAorCWl0IGlzIHJlZ2lzdGVyZWQgYW5kIHNob3duIChhbmQgb3RoZXJ3aXNlIGl0IGlz IG5vdCkuCisKIDIwMDYtMDQtMTcgIEFhcm9uIEJvY2tvdmVyICA8YWFyb25AYWJvY2sub3JnPgog CiAJKiBjb25maWd1cmUuYWM6IFJlcXVpcmUgbmpiLXNoYXJwIDAuMy4wKwpJbmRleDogc3JjL0Jh bnNoZWUuQmFzZS9NYWtlZmlsZS5hbQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2dub21lL2Jh bnNoZWUvc3JjL0JhbnNoZWUuQmFzZS9NYWtlZmlsZS5hbSx2CnJldHJpZXZpbmcgcmV2aXNpb24g MS4yOApkaWZmIC11IC1yMS4yOCBNYWtlZmlsZS5hbQotLS0gc3JjL0JhbnNoZWUuQmFzZS9NYWtl ZmlsZS5hbQk5IEFwciAyMDA2IDIxOjMwOjIzIC0wMDAwCTEuMjgKKysrIHNyYy9CYW5zaGVlLkJh c2UvTWFrZWZpbGUuYW0JMTcgQXByIDIwMDYgMTk6MTA6MjYgLTAwMDAKQEAgLTkzLDYgKzkzLDcg QEAKIAkkKHNyY2RpcikvTGlicmFyeVRyYWNrSW5mby5jcyBcCiAJJChzcmNkaXIpL0ZpbGVUcmFj a0luZm8uY3MgXAogCSQoc3JjZGlyKS9EQnVzUmVtb3RlLmNzIFwKKwkkKHNyY2RpcikvUXVldWVk T3BlcmF0aW9uTWFuYWdlci5jcyBcCiAJJChzcmNkaXIpL1F1ZXVlZFNxbGl0ZURhdGFiYXNlLmNz IFwKIAkkKHNyY2RpcikvQXVkaW9DZFJpcHBlci5jcyBcCiAJJChzcmNkaXIpL0lJbXBvcnRTb3Vy Y2UuY3MgXApJbmRleDogc3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCj09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNT IGZpbGU6IC9jdnMvZ25vbWUvYmFuc2hlZS9zcmMvQmFuc2hlZS5CYXNlL0RhcC9EYXAuY3Msdgpy ZXRyaWV2aW5nIHJldmlzaW9uIDEuMTYKZGlmZiAtdSAtcjEuMTYgRGFwLmNzCi0tLSBzcmMvQmFu c2hlZS5CYXNlL0RhcC9EYXAuY3MJMTcgQXByIDIwMDYgMTc6NDQ6MTAgLTAwMDAJMS4xNgorKysg c3JjL0JhbnNoZWUuQmFzZS9EYXAvRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBA IC0xMjMsNyArMTIzLDcgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZhdGUgdWludCB1aWQ7CiAg ICAgICAgIHByaXZhdGUgUHJvcGVydHlUYWJsZSBwcm9wZXJ0aWVzID0gbmV3IFByb3BlcnR5VGFi bGUoKTsKLSAgICAgICAgcHJpdmF0ZSBBcnJheUxpc3QgdHJhY2tzID0gbmV3IEFycmF5TGlzdCgp OyAKKyAgICAgICAgcHJvdGVjdGVkIEFycmF5TGlzdCB0cmFja3MgPSBuZXcgQXJyYXlMaXN0KCk7 IAogICAgICAgICBwcml2YXRlIEFjdGl2ZVVzZXJFdmVudCBzYXZlX3JlcG9ydF9ldmVudDsKICAg ICAgICAgcHJpdmF0ZSBib29sIGlzX3N5bmNpbmcgPSBmYWxzZTsKICAgICAgICAgcHJpdmF0ZSBi b29sIGNhbl9jYW5jZWxfc2F2ZSA9IHRydWU7CkBAIC0xODgsNyArMTg4LDcgQEAKICAgICAgICAg ICAgIE9uUHJvcGVydGllc0NoYW5nZWQoKTsKICAgICAgICAgfQogICAgICAgICAKLSAgICAgICAg cHVibGljIHZvaWQgQWRkVHJhY2soVHJhY2tJbmZvIHRyYWNrKQorICAgICAgICBwdWJsaWMgdmly dHVhbCB2b2lkIEFkZFRyYWNrKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAg ICAgVHJhY2tJbmZvIGRhcF90cmFjayA9IE9uVHJhY2tBZGRlZCh0cmFjayk7CiAgICAgICAgICAg ICAKQEAgLTUzNyw2ICs1MzcsMTIgQEAKICAgICAgICAgICAgIAogICAgICAgICAgICAgcmV0dXJu IG5ldyBTYWZlVXJpKGRpciArIFBhdGguRGlyZWN0b3J5U2VwYXJhdG9yQ2hhciAKICAgICAgICAg ICAgICAgICArICIuYmFuc2hlZS1kYXAtIiArIGZpbGUgKyAiLiIgKyBuZXdleHQpOworICAgICAg ICB9CisKKyAgICAgICAgcHJvdGVjdGVkIHZvaWQgRW1pdFRyYWNrQWRkZWQgKFRyYWNrSW5mbyB0 cmFjaykKKyAgICAgICAgeworICAgICAgICAgICAgaWYoVHJhY2tBZGRlZCAhPSBudWxsKQorICAg ICAgICAgICAgICAgIFRyYWNrQWRkZWQodGhpcywgbmV3IERhcFRyYWNrTGlzdFVwZGF0ZWRBcmdz KHRyYWNrKSk7CiAgICAgICAgIH0KICAgICAgICAgIAogICAgICAgICBwdWJsaWMgdmlydHVhbCBH ZGsuUGl4YnVmIEdldEljb24oaW50IHNpemUpCkluZGV4OiBzcmMvQmFuc2hlZS5EYXAvTWFzc1N0 b3JhZ2UvTWFzc1N0b3JhZ2VEYXAuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9i YW5zaGVlL3NyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcyx2CnJl dHJpZXZpbmcgcmV2aXNpb24gMS42CmRpZmYgLXUgLXIxLjYgTWFzc1N0b3JhZ2VEYXAuY3MKLS0t IHNyYy9CYW5zaGVlLkRhcC9NYXNzU3RvcmFnZS9NYXNzU3RvcmFnZURhcC5jcwk5IEFwciAyMDA2 IDIxOjMwOjI2IC0wMDAwCTEuNgorKysgc3JjL0JhbnNoZWUuRGFwL01hc3NTdG9yYWdlL01hc3NT dG9yYWdlRGFwLmNzCTE3IEFwciAyMDA2IDE5OjEwOjI3IC0wMDAwCkBAIC02Myw3ICs2Myw3IEBA CiAgICAgICAgICAgICAgICAgcGxheWVyX2RldmljZSA9IEhhbC5EZXZpY2UuVWRpc1RvRGV2aWNl cyAodm9sdW1lX2RldmljZS5Db250ZXh0LCBuZXcgc3RyaW5nIFtdIHt2b2x1bWVfZGV2aWNlIFsi aW5mby5wYXJlbnQiXX0pIFswXTsKICAgICAgICAgICAgICAgICB1c2JfZGV2aWNlID0gSGFsLkRl dmljZS5VZGlzVG9EZXZpY2VzIChwbGF5ZXJfZGV2aWNlLkNvbnRleHQsIG5ldyBzdHJpbmcgW10g e3BsYXllcl9kZXZpY2UgWyJzdG9yYWdlLnBoeXNpY2FsX2RldmljZSJdfSkgWzBdOwogICAgICAg ICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKLSAgICAgICAgICAgICAgICAgICAgcmV0dXJu IEluaXRpYWxpemVSZXN1bHQuSW52YWxpZDsKKyAgICAgICAgICAgICAgICByZXR1cm4gSW5pdGlh bGl6ZVJlc3VsdC5JbnZhbGlkOwogICAgICAgICAgICAgfQogCiAgICAgICAgICAgICBpZiAoIXBs YXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMgKCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuYWNjZXNz X21ldGhvZCIpIHx8CkBAIC03OCwzNyArNzgsNTIgQEAKICAgICAgICAgICAgICAgICAgICAgIXZv bHVtZV9kZXZpY2UuR2V0UHJvcGVydHlCb29sKCJ2b2x1bWUuaXNfbW91bnRlZCIpKQogICAgICAg ICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LldhaXRGb3JQcm9wZXJ0eUNoYW5nZTsK IAkgICAgCi0KLSAgICAgICAgICAgIHN0cmluZyBibG9ja19kZXZpY2UgPSB2b2x1bWVfZGV2aWNl IFsiYmxvY2tfZGV2aWNlIl07Ci0gICAgICAgICAgICBmb3JlYWNoIChHbm9tZS5WZnMuVm9sdW1l IHZvbCBpbiBtb25pdG9yLk1vdW50ZWRWb2x1bWVzKSB7Ci0gICAgICAgICAgICAgICAgaWYgKHZv bC5EZXZpY2VQYXRoID09IGJsb2NrX2RldmljZSkgewotICAgICAgICAgICAgICAgICAgICB0aGlz LnZvbHVtZSA9IHZvbDsKLSAgICAgICAgICAgICAgICAgICAgYnJlYWs7Ci0gICAgICAgICAgICAg ICAgfQorICAgICAgICAgICAgdm9sdW1lID0gbW9uaXRvci5HZXRWb2x1bWVGb3JQYXRoKE1vdW50 UG9pbnQpOworICAgICAgICAgICAgaWYodm9sdW1lID09IG51bGwpIHsKKyAgICAgICAgICAgICAg ICAvLyBHbm9tZSBWRlMgZG9lc24ndCBrbm93IHZvbHVtZSBpcyBtb3VudGVkIHlldAorICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCArPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdHJ1ZTsKKyAgICAgICAgICAgIH0gZWxzZSB7Cisg ICAgICAgICAgICAgICAgaXNfcmVhZF9vbmx5ID0gdm9sdW1lLklzUmVhZE9ubHk7CiAgICAgICAg ICAgICB9CiAKLSAgICAgICAgICAgIGlmICh2b2x1bWUgPT0gbnVsbCkKLSAgICAgICAgICAgICAg ICByZXR1cm4gSW5pdGlhbGl6ZVJlc3VsdC5JbnZhbGlkOwotCi0gICAgICAgICAgICBpc19yZWFk X29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKLQogICAgICAgICAgICAgYmFzZS5Jbml0aWFsaXpl ICh1c2JfZGV2aWNlKTsKICAKICAgICAgICAgICAgIEluc3RhbGxQcm9wZXJ0eSgiVmVuZG9yIiwg dXNiX2RldmljZVsidXNiLnZlbmRvciJdKTsKIAotICAgICAgICAgICAgUmVsb2FkRGF0YWJhc2Uo KTsKKyAgICAgICAgICAgIGlmKCFHbG9iYWxzLlVJTWFuYWdlci5Jc0luaXRpYWxpemVkKSB7Cisg ICAgICAgICAgICAgICAgR2xvYmFscy5VSU1hbmFnZXIuSW5pdGlhbGl6ZWQgKz0gT25VSU1hbmFn ZXJJbml0aWFsaXplZDsKKyAgICAgICAgICAgIH0gZWxzZSB7CisgICAgICAgICAgICAgICAgUmVs b2FkRGF0YWJhc2UoKTsKKyAgICAgICAgICAgIH0KICAgICAgICAgICAgIAogICAgICAgICAgICAg Ly8gRklYTUUgcHJvYmFibHkgc2hvdWxkIGJlIGFibGUgdG8gY2FuY2VsIGF0IHNvbWUgcG9pbnQg d2hlbiB5b3UgY2FuIGFjdHVhbGx5IHN5bmMKICAgICAgICAgICAgIENhbkNhbmNlbFNhdmUgPSBm YWxzZTsKICAgICAgICAgICAgIHJldHVybiBJbml0aWFsaXplUmVzdWx0LlZhbGlkOwogICAgICAg ICB9CiAKKyAgICAgICAgcHVibGljIHZvaWQgT25Wb2x1bWVNb3VudGVkKG9iamVjdCBvLCBHbm9t ZS5WZnMuVm9sdW1lTW91bnRlZEFyZ3MgYXJncykgeworICAgICAgICAgICAgaWYoYXJncy5Wb2x1 bWUuRGV2aWNlUGF0aCA9PSB2b2x1bWVfZGV2aWNlWyJibG9jay5kZXZpY2UiXSkgeworICAgICAg ICAgICAgICAgIG1vbml0b3IuVm9sdW1lTW91bnRlZCAtPSBPblZvbHVtZU1vdW50ZWQ7CisgICAg ICAgICAgICAKKyAgICAgICAgICAgICAgICB2b2x1bWUgPSBhcmdzLlZvbHVtZTsKKyAgICAgICAg ICAgICAgICBpc19yZWFkX29ubHkgPSB2b2x1bWUuSXNSZWFkT25seTsKKworICAgICAgICAgICAg ICAgIC8vIEZJWE1FIHNob3VsZCBwcm9iYWJseSByZWxvYWQgdGhlIHRyYWNrcy4uCisgICAgICAg ICAgICB9CisgICAgICAgIH0KKwogICAgICAgICBwdWJsaWMgb3ZlcnJpZGUgdm9pZCBEaXNwb3Nl KCkKICAgICAgICAgewogICAgICAgICAgICAgLy8gRklYTUUgYW55dGhpbmcgZWxzZSB0byBkbyBo ZXJlPwogICAgICAgICAgICAgdm9sdW1lID0gbnVsbDsKICAgICAgICAgICAgIGJhc2UuRGlzcG9z ZSgpOwogICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSB2b2lkIE9uVUlNYW5hZ2VySW5pdGlh bGl6ZWQob2JqZWN0IG8sIEV2ZW50QXJncyBhcmdzKQorICAgICAgICB7CisgICAgICAgICAgICBS ZWxvYWREYXRhYmFzZSAoKTsKKyAgICAgICAgfQogIAogICAgICAgICBwcml2YXRlIHZvaWQgUmVs b2FkRGF0YWJhc2UoKQogICAgICAgICB7CkBAIC0xNDUsNyArMTYwLDggQEAKIAogICAgICAgICBw dWJsaWMgb3ZlcnJpZGUgdm9pZCBFamVjdCAoKQogICAgICAgICB7Ci0gICAgICAgICAgICB2b2x1 bWUuVW5tb3VudCAoVW5tb3VudENhbGxiYWNrKTsKKyAgICAgICAgICAgIGlmKHZvbHVtZSAhPSBu dWxsKQorICAgICAgICAgICAgICAgIHZvbHVtZS5Vbm1vdW50IChVbm1vdW50Q2FsbGJhY2spOwog ICAgICAgICB9CiAKICAgICAgICAgcHJpdmF0ZSB2b2lkIFVubW91bnRDYWxsYmFjayAoYm9vbCBz dWNjZWVkZWQsIHN0cmluZyBlcnJvciwgc3RyaW5nIGRldGFpbGVkX2Vycm9yKQpAQCAtMTYzLDE3 ICsxNzksNDkgQEAKICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICBDb25zb2xlLldy aXRlTGluZSAoIkZhaWxlZCB0byBlamVjdC4gIHsxfSB7Mn0iLCBlcnJvciwgZGV0YWlsZWRfZXJy b3IpOwogICAgICAgICB9CisKKyAgICAgICAgcHVibGljIG92ZXJyaWRlIHZvaWQgQWRkVHJhY2so VHJhY2tJbmZvIHRyYWNrKQorICAgICAgICB7CisgICAgICAgICAgICBpZiAodHJhY2sgPT0gbnVs bCB8fCBJc1JlYWRPbmx5KQorICAgICAgICAgICAgICAgIHJldHVybjsKKworICAgICAgICAgICAg Ly8gSWYgd2UncmUgImFkZGluZyIgaXQgd2hlbiBpdCdzIGFscmVhZHkgb24gdGhlIGRldmljZSwg dGhlbgorICAgICAgICAgICAgLy8gd2UgZG9uJ3QgbmVlZCB0byBjb3B5IGl0CisgICAgICAgICAg ICBpZiAodHJhY2sgaXMgTWFzc1N0b3JhZ2VUcmFja0luZm8pIHsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKHRyYWNrKTsKKyAgICAgICAgICAgICAgICBFbWl0VHJhY2tBZGRlZCh0cmFjayk7 CisgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAgICAgIENvcGllci5FbnF1ZXVlICh0 cmFjayk7CisgICAgICAgICAgICB9CisgICAgICAgIH0KICAgICAgICAgCi0gICAgICAgIHByb3Rl Y3RlZCBvdmVycmlkZSBUcmFja0luZm8gT25UcmFja0FkZGVkKFRyYWNrSW5mbyB0cmFjaykKKyAg ICAgICAgcHJpdmF0ZSB2b2lkIEhhbmRsZUNvcHlSZXF1ZXN0ZWQgKG9iamVjdCBvLCBRdWV1ZWRP cGVyYXRpb25BcmdzIGFyZ3MpCiAgICAgICAgIHsKLSAgICAgICAgICAgIGlmICh0cmFjayBpcyBN YXNzU3RvcmFnZVRyYWNrSW5mbyB8fCBJc1JlYWRPbmx5KQotICAgICAgICAgICAgICAgIHJldHVy biB0cmFjazsKKyAgICAgICAgICAgIFRyYWNrSW5mbyB0cmFjayA9IGFyZ3MuT2JqZWN0IGFzIFRy YWNrSW5mbzsKKworICAgICAgICAgICAgaWYgKHRyYWNrID09IG51bGwpCisgICAgICAgICAgICAg ICAgcmV0dXJuOworICAgICAgICAgICAgCisgICAgICAgICAgICB0cnkgeworICAgICAgICAgICAg ICAgIHN0cmluZyBuZXdfcGF0aCA9IEdldFRyYWNrUGF0aCAodHJhY2spOworCisgICAgICAgICAg ICAgICAgLy8gSWYgaXQgYWxyZWFkeSBpcyBvbiB0aGUgZGV2aWNlIGJ1dCBpdCdzIG91dCBvZiBk YXRlLCByZW1vdmUgaXQKKyAgICAgICAgICAgICAgICBpZiAoRmlsZS5FeGlzdHMgKG5ld19wYXRo KSAmJiBGaWxlLkdldExhc3RXcml0ZVRpbWUodHJhY2suVXJpLkxvY2FsUGF0aCkgPiBGaWxlLkdl dExhc3RXcml0ZVRpbWUobmV3X3BhdGgpKQorICAgICAgICAgICAgICAgICAgICBSZW1vdmVUcmFj ayhuZXcgTWFzc1N0b3JhZ2VUcmFja0luZm8obmV3IFNhZmVVcmkobmV3X3BhdGgpKSk7CisKKyAg ICAgICAgICAgICAgICBpZiAoIUZpbGUuRXhpc3RzIChuZXdfcGF0aCkpIHsKKyAgICAgICAgICAg ICAgICAgICAgICAgIERpcmVjdG9yeS5DcmVhdGVEaXJlY3RvcnkgKFBhdGguR2V0RGlyZWN0b3J5 TmFtZSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICAgICAgICAgIEZpbGUuQ29weSAodHJh Y2suVXJpLkxvY2FsUGF0aCwgbmV3X3BhdGgpOworICAgICAgICAgICAgICAgIH0KIAotICAgICAg ICAgICAgc3RyaW5nIG5ld19wYXRoID0gR2V0VHJhY2tQYXRoICh0cmFjayk7Ci0gICAgICAgICAg ICBEaXJlY3RvcnkuQ3JlYXRlRGlyZWN0b3J5IChQYXRoLkdldERpcmVjdG9yeU5hbWUgKG5ld19w YXRoKSk7Ci0gICAgICAgICAgICBGaWxlLkNvcHkgKHRyYWNrLlVyaS5Mb2NhbFBhdGgsIG5ld19w YXRoKTsKKyAgICAgICAgICAgICAgICBUcmFja0luZm8gbmV3X3RyYWNrID0gbmV3IE1hc3NTdG9y YWdlVHJhY2tJbmZvIChuZXcgU2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICB0 cmFja3MuQWRkKG5ld190cmFjayk7CisgICAgICAgICAgICAgICAgRW1pdFRyYWNrQWRkZWQodHJh Y2spOwogCi0gICAgICAgICAgICByZXR1cm4gbmV3IE1hc3NTdG9yYWdlVHJhY2tJbmZvIChuZXcg U2FmZVVyaSAobmV3X3BhdGgpKTsKKyAgICAgICAgICAgICAgICBhcmdzLlJldHVybk1lc3NhZ2Ug PSBTdHJpbmcuRm9ybWF0KCJ7MH0gLSB7MX0iLCB0cmFjay5BcnRpc3QsIHRyYWNrLlRpdGxlKTsK KyAgICAgICAgICAgIH0gY2F0Y2ggKEV4Y2VwdGlvbiBlKSB7CisgICAgICAgICAgICAgICAgYXJn cy5SZXR1cm5NZXNzYWdlID0gU3RyaW5nLkZvcm1hdCgiU2tpcHBpbmcgU29uZyIsIHRyYWNrLkFy dGlzdCwgdHJhY2suVGl0bGUpOworICAgICAgICAgICAgfQogICAgICAgICB9CiAgICAgICAgIAog ICAgICAgICBwcm90ZWN0ZWQgb3ZlcnJpZGUgdm9pZCBPblRyYWNrUmVtb3ZlZChUcmFja0luZm8g dHJhY2spCkBAIC0yMTMsMTkgKzI2MSwyNCBAQAogICAgICAgICBwcml2YXRlIHN0cmluZyBHZXRU cmFja1BhdGggKFRyYWNrSW5mbyB0cmFjaykKICAgICAgICAgewogICAgICAgICAgICAgc3RyaW5n IGZpbGVfcGF0aCA9ICIiOworCisgICAgICAgICAgICBzdHJpbmcgYXJ0aXN0ID0gRmlsZU5hbWVQ YXR0ZXJuLkVzY2FwZSAodHJhY2suQXJ0aXN0KTsKKyAgICAgICAgICAgIHN0cmluZyBhbGJ1bSA9 IEZpbGVOYW1lUGF0dGVybi5Fc2NhcGUgKHRyYWNrLkFsYnVtKTsKKyAgICAgICAgICAgIHN0cmlu ZyBudW1iZXJfdGl0bGUgPSBGaWxlTmFtZVBhdHRlcm4uRXNjYXBlICh0cmFjay5UcmFja051bWJl clRpdGxlKTsKKwogICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlzdHMg KCJwb3J0YWJsZV9hdWRpb19wbGF5ZXIuZmlsZXBhdGhfZm9ybWF0IikpIHsKICAgICAgICAgICAg ICAgICBmaWxlX3BhdGggPSBwbGF5ZXJfZGV2aWNlLkdldFByb3BlcnR5U3RyaW5nICgicG9ydGFi bGVfYXVkaW9fcGxheWVyLmZpbGVwYXRoX2Zvcm1hdCIpOwotICAgICAgICAgICAgICAgIGZpbGVf cGF0aCA9IGZpbGVfcGF0aC5SZXBsYWNlICgiJUFydGlzdCIsIHRyYWNrLkFydGlzdCk7Ci0gICAg ICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2UgKCIlQWxidW0iLCB0cmFj ay5BbGJ1bSk7CisgICAgICAgICAgICAgICAgZmlsZV9wYXRoID0gZmlsZV9wYXRoLlJlcGxhY2Ug KCIlQXJ0aXN0IiwgYXJ0aXN0KTsKKyAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3Bh dGguUmVwbGFjZSAoIiVBbGJ1bSIsIGFsYnVtKTsKIAogICAgICAgICAgICAgICAgIGlmIChmaWxl X3BhdGguSW5kZXhPZiAoIiVUcmFjayIpID09IC0xKSB7Ci0gICAgICAgICAgICAgICAgICAgIGZp bGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgdHJhY2suVHJhY2tO dW1iZXJUaXRsZSk7CisgICAgICAgICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5Q YXRoLkNvbWJpbmUgKGZpbGVfcGF0aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgICAgICB9 IGVsc2UgewotICAgICAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFj ZSAoIiVUcmFjayIsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBmaWxlX3BhdGguUmVwbGFjZSAoIiVUcmFjayIsIG51bWJlcl90aXRsZSk7 CiAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg ICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lICh0cmFjay5BcnRpc3QsIHRyYWNr LkFsYnVtKTsKLSAgICAgICAgICAgICAgICBmaWxlX3BhdGggPSBTeXN0ZW0uSU8uUGF0aC5Db21i aW5lIChmaWxlX3BhdGgsIHRyYWNrLlRyYWNrTnVtYmVyVGl0bGUpOworICAgICAgICAgICAgICAg IGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGFydGlzdCwgYWxidW0pOworICAg ICAgICAgICAgICAgIGZpbGVfcGF0aCA9IFN5c3RlbS5JTy5QYXRoLkNvbWJpbmUgKGZpbGVfcGF0 aCwgbnVtYmVyX3RpdGxlKTsKICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgZmlsZV9wYXRo ICs9IFBhdGguR2V0RXh0ZW5zaW9uICh0cmFjay5VcmkuTG9jYWxQYXRoKTsKQEAgLTIzNCw2ICsy ODcsMjEgQEAKICAgICAgICAgICAgIHJldHVybiBTeXN0ZW0uSU8uUGF0aC5Db21iaW5lIChNb3Vu dFBvaW50LCBmaWxlX3BhdGgpOwogICAgICAgICB9CiAKKyAgICAgICAgcHJpdmF0ZSBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyIGNvcGllcjsKKyAgICAgICAgcHVibGljIFF1ZXVlZE9wZXJhdGlvbk1h bmFnZXIgQ29waWVyIHsKKyAgICAgICAgICAgIGdldCB7CisgICAgICAgICAgICAgICAgaWYgKGNv cGllciA9PSBudWxsKSB7CisgICAgICAgICAgICAgICAgICAgIGNvcGllciA9IG5ldyBRdWV1ZWRP cGVyYXRpb25NYW5hZ2VyICgpOworICAgICAgICAgICAgICAgICAgICBjb3BpZXIuQWN0aW9uTWVz c2FnZSA9IENhdGFsb2cuR2V0U3RyaW5nICgiQ29weWluZyBTb25ncyIpOworICAgICAgICAgICAg ICAgICAgICBjb3BpZXIuUHJvZ3Jlc3NNZXNzYWdlID0gQ2F0YWxvZy5HZXRTdHJpbmcgKCJDb3B5 aW5nIHswfSBvZiB7MX0iKTsKKyAgICAgICAgICAgICAgICAgICAgY29waWVyLk9wZXJhdGlvblJl cXVlc3RlZCArPSBIYW5kbGVDb3B5UmVxdWVzdGVkOworICAgICAgICAgICAgICAgIH0KKworICAg ICAgICAgICAgICAgIHJldHVybiBjb3BpZXI7CisgICAgICAgICAgICB9CisgICAgICAgICAgICBz ZXQgeyBjb3BpZXIgPSB2YWx1ZTsgfQorICAgICAgICB9CisKICAgICAgICAgcHVibGljIHZpcnR1 YWwgc3RyaW5nIEljb25JZCB7CiAgICAgICAgICAgICBnZXQgewogICAgICAgICAgICAgICAgIHJl dHVybiBudWxsOwpAQCAtMjQyLDcgKzMxMCw4IEBACiAgCiAgICAgICAgIHB1YmxpYyBvdmVycmlk ZSBzdHJpbmcgTmFtZSB7CiAgICAgICAgICAgICBnZXQgewotICAgICAgICAgICAgICAgIGlmICh2 b2x1bWVfZGV2aWNlLlByb3BlcnR5RXhpc3RzKCJ2b2x1bWUubGFiZWwiKSkKKyAgICAgICAgICAg ICAgICBpZiAodm9sdW1lX2RldmljZS5Qcm9wZXJ0eUV4aXN0cygidm9sdW1lLmxhYmVsIikgJiYK KyAgICAgICAgICAgICAgICAgICAgdm9sdW1lX2RldmljZVsidm9sdW1lLmxhYmVsIl0uTGVuZ3Ro ID4gMCkKICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZvbHVtZV9kZXZpY2VbInZvbHVtZS5s YWJlbCJdOwogCiAgICAgICAgICAgICAgICAgaWYgKHBsYXllcl9kZXZpY2UuUHJvcGVydHlFeGlz dHMoImluZm8ucHJvZHVjdCIpKQpJbmRleDogc3JjL0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2Vy RXZlbnQuY3MKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2cy9nbm9tZS9iYW5zaGVlL3NyYy9CYW5z aGVlLldpZGdldHMvQWN0aXZlVXNlckV2ZW50LmNzLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjcK ZGlmZiAtdSAtcjEuNyBBY3RpdmVVc2VyRXZlbnQuY3MKLS0tIHNyYy9CYW5zaGVlLldpZGdldHMv QWN0aXZlVXNlckV2ZW50LmNzCTEzIEZlYiAyMDA2IDIyOjE4OjE0IC0wMDAwCTEuNworKysgc3Jj L0JhbnNoZWUuV2lkZ2V0cy9BY3RpdmVVc2VyRXZlbnQuY3MJMTcgQXByIDIwMDYgMTk6MTA6Mjgg LTAwMDAKQEAgLTQ5LDYgKzQ5LDcgQEAKICAgICAgICAgcHJpdmF0ZSBzdHJpbmcgaGVhZGVyOwog ICAgICAgICAKICAgICAgICAgcHJpdmF0ZSB1aW50IHRpbWVvdXRfaWQgPSAwOworICAgICAgICBw cml2YXRlIHVpbnQgc2xvd190aW1lb3V0X2lkID0gMDsKICAgICAgICAgcHJpdmF0ZSBib29sIGRp c3Bvc2VkID0gZmFsc2U7CiAgICAgICAgIAogICAgICAgICBwdWJsaWMgZXZlbnQgRXZlbnRIYW5k bGVyIERpc3Bvc2VkOwpAQCAtNTYsOCArNTcsMTAgQEAKICAgICAgICAgCiAgICAgICAgIHByaXZh dGUgYm9vbCBjYW5jZWxfcmVxdWVzdGVkOwogICAgICAgICBwcml2YXRlIGJvb2wgY2FuX2NhbmNl bDsKLSAgICAgCi0gICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIAor CisgICAgICAgIHB1YmxpYyBBY3RpdmVVc2VyRXZlbnQoc3RyaW5nIG5hbWUpIDogdGhpcyAobmFt ZSwgZmFsc2UpIHt9CisKKyAgICAgICAgcHVibGljIEFjdGl2ZVVzZXJFdmVudChzdHJpbmcgbmFt ZSwgYm9vbCBkZWxheV9zaG93KQogICAgICAgICB7CiAgICAgICAgICAgICB0aXBzID0gbmV3IFRv b2x0aXBzKCk7CiAgICAgICAgICAgICAKQEAgLTExNyw3ICsxMjAsMTEgQEAKICAgICAgICAgICAg IAogICAgICAgICAgICAgdGFibGUuU2hvd0FsbCgpOwogICAgICAgICAgICAgCi0gICAgICAgICAg ICBBY3RpdmVVc2VyRXZlbnRzTWFuYWdlci5JbnN0YW5jZS5SZWdpc3Rlcih0aGlzKTsKKyAgICAg ICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGVsYXkgc2hvdyA9IHswfSIsIGRlbGF5X3Nob3cp OworICAgICAgICAgICAgaWYgKGRlbGF5X3Nob3cpCisgICAgICAgICAgICAgICAgc2xvd190aW1l b3V0X2lkID0gR0xpYi5UaW1lb3V0LkFkZCgxMDAwLCBPbkNoZWNrRm9yRGlzcGxheSk7CisgICAg ICAgICAgICBlbHNlCisgICAgICAgICAgICAgICAgQWN0aXZlVXNlckV2ZW50c01hbmFnZXIuSW5z dGFuY2UuUmVnaXN0ZXIodGhpcyk7CiAgICAgICAgIH0KICAgICAgICAgCiAgICAgICAgIHB1Ymxp YyB2b2lkIENhbmNlbCgpCkBAIC0xMzgsMTAgKzE0NSwzNCBAQAogICAgICAgICAgICAgICAgIEdM aWIuU291cmNlLlJlbW92ZSh0aW1lb3V0X2lkKTsKICAgICAgICAgICAgICAgICB0aW1lb3V0X2lk ID0gMDsKICAgICAgICAgICAgIH0KKworICAgICAgICAgICAgaWYoc2xvd190aW1lb3V0X2lkID4g MCkgeworICAgICAgICAgICAgICAgIEdMaWIuU291cmNlLlJlbW92ZShzbG93X3RpbWVvdXRfaWQp OworICAgICAgICAgICAgICAgIHNsb3dfdGltZW91dF9pZCA9IDA7CisgICAgICAgICAgICB9CiAg ICAgICAgICAgICAKICAgICAgICAgICAgIGlmKERpc3Bvc2VkICE9IG51bGwpIHsKICAgICAgICAg ICAgICAgICBEaXNwb3NlZCh0aGlzLCBuZXcgRXZlbnRBcmdzKCkpOwogICAgICAgICAgICAgfQor ICAgICAgICB9CisKKyAgICAgICAgcHJpdmF0ZSBib29sIE9uQ2hlY2tGb3JEaXNwbGF5KCkKKyAg ICAgICAgeworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCJPbkNoZWNrRm9yRGlzcGxh eSBjYWxsZWQuLiIpOworICAgICAgICAgICAgaWYgKGRpc3Bvc2VkKQorICAgICAgICAgICAgICAg IHJldHVybiBmYWxzZTsKKworICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUgKCIuLi5hbmQg bm90IGRpc3Bvc2VkLi4iKTsKKworICAgICAgICAgICAgLy8gSWYgdGhlIGV2ZW50IGhhcyBub3Qg bWFkZSBlbm91Z2ggcHJvZ3Jlc3MsIHNob3cgdGhpcyBldmVudAorICAgICAgICAgICAgaWYgKFBy b2dyZXNzIDwgMC4zMykgeworICAgICAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lICgiRGlk bid0IG1ha2UgZW5vdWdoIHByb2dyZXNzLCBzaG93aW5nIGFjdGlvbiBldmVudCIpOworICAgICAg ICAgICAgICAgIEFjdGl2ZVVzZXJFdmVudHNNYW5hZ2VyLkluc3RhbmNlLlJlZ2lzdGVyKHRoaXMp OworICAgICAgICAgICAgfSBlbHNlIHsKKyAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGlu ZSAoIk1hZGUgZW5vdWdoIHByb2dyZXNzLCBub3Qgc2hvd2luZyBhY3Rpb24gZXZlbnQiKTsKKyAg ICAgICAgICAgIH0KKworICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICB9CiAgICAg ICAgIAogICAgICAgICBwcml2YXRlIGJvb2wgT25UaW1lb3V0KCkK ------=_Part_8988_6161796.1145311862126-- From florin@andrei.myip.org Tue Apr 18 01:35:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C8C23B1449 for ; Tue, 18 Apr 2006 01:35:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29878-04 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.200.83]) by menubar.gnome.org (Postfix) with ESMTP id 7CF603B1480 for ; Tue, 18 Apr 2006 01:35:44 -0400 (EDT) Received: from andrei.myip.org ([24.6.189.81]) by comcast.net (sccrmhc13) with ESMTP id <200604180535430130020jk5e>; Tue, 18 Apr 2006 05:35:43 +0000 Received: from localhost (andrei.myip.org [127.0.0.1]) by andrei.myip.org (Postfix) with ESMTP id 1C574E4DA for ; Mon, 17 Apr 2006 22:35:43 -0700 (PDT) Received: from andrei.myip.org ([127.0.0.1]) by localhost (andrei.myip.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29548-01 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) Received: from rivendell.home.local (rivendell.home.local [192.168.0.12]) by andrei.myip.org (Postfix) with ESMTP id 33CC9E4D5 for ; Mon, 17 Apr 2006 22:35:40 -0700 (PDT) From: Florin Andrei To: banshee-list@gnome.org Content-Type: text/plain Date: Mon, 17 Apr 2006 22:35:39 -0700 Message-Id: <1145338540.7850.1.camel@rivendell.home.local> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 (2.6.0-1) Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at andrei.myip.org X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.58 tagged_above=-999 required=2 tests=[AWL=0.019, BAYES_00=-2.599] X-Spam-Score: -2.58 X-Spam-Level: Subject: [Banshee-List] lame presets X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 05:35:52 -0000 I was pleasantly surprised to discover that Banshee can use lame to encode songs, but there are only options for CBR encoding. Would it be possible to add an option to use the Standard VBR preset? lame --preset standard song.wav song.mp3 -- Florin Andrei http://florin.myip.org/ From jstembridge@gmail.com Tue Apr 18 08:11:28 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D77503B2A0F for ; Tue, 18 Apr 2006 08:11:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21709-01 for ; Tue, 18 Apr 2006 08:11:18 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.225]) by menubar.gnome.org (Postfix) with ESMTP id B8BF13B0685 for ; Tue, 18 Apr 2006 08:11:10 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 55so1473829wri for ; Tue, 18 Apr 2006 05:11:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QOCHnaYn1W8HnzTHdBEvWuNLCHN3rMrtKODOxN36O1lnaqjeyvTzWB26uIa0LK1lmU9Zch1vC1/z7UR/GKAj9hMBKDpilYo+KCHI7LvIzwXlhcT0fxy3AKCEhd8hCAdcOZZFNe5sU7o3qjSBNUu3hZ7ziY/AyYr4BM1a7pgcKoI= Received: by 10.54.117.10 with SMTP id p10mr3925935wrc; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Received: by 10.54.99.8 with HTTP; Tue, 18 Apr 2006 05:11:09 -0700 (PDT) Message-ID: <18bc366d0604180511s1db23ce6od6fb909fe238444d@mail.gmail.com> Date: Tue, 18 Apr 2006 13:11:09 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Re: Mass Storage Support In-Reply-To: <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14604_3604805.1145362269787" References: <950c7d180604120352s734d9d71h69ec3ab37e87c420@mail.gmail.com> <18bc366d0604130703t66a6aa77y8da067e50c426acf@mail.gmail.com> <950c7d180604130718i16dbd575q1fbdc14e20ba79fe@mail.gmail.com> <950c7d180604130721k459bacd8jefd5a1a94e6d3c9c@mail.gmail.com> <18bc366d0604130743w58a0d178t28a8a8abe1bb9f2f@mail.gmail.com> <950c7d180604130745g78b0ed46j30329513053980ce@mail.gmail.com> <18bc366d0604130950jedebe11kad5f3830efd4a675@mail.gmail.com> <24348e0604171047s4903b704gc2e41e0b81e90bf8@mail.gmail.com> <18bc366d0604171225s24669006g542b97f0bdd63f08@mail.gmail.com> <18bc366d0604171511j63df6594x4c807ee9feb624df@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.768 tagged_above=-999 required=2 tests=[AWL=-0.726, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.768 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 12:11:28 -0000 ------=_Part_14604_3604805.1145362269787 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Another update, duplicate detection done via tags rather than filename as it's more reliable. Cheers, James. ------=_Part_14604_3604805.1145362269787 Content-Type: text/x-patch; name=mass-storage3.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_em672y5z Content-Disposition: attachment; filename="mass-storage3.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.452 diff -u -r1.452 ChangeLog --- ChangeLog 18 Apr 2006 03:25:33 -0000 1.452 +++ ChangeLog 18 Apr 2006 12:07:10 -0000 @@ -1,3 +1,31 @@ +2006-04-17 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device. Don't use the volumel label for the + Name if it's blank. If the volume for a new device isn't yet available + from VFS, wait for it. + +2006-04-17 Gabriel Burt + + * src/Banshee.Base/Makefile.am: add QueuedOperationManager.cs. + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack. + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started, handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow. Escape artist/album/title when + creating the destination filename. Catch exceptions in the copy. + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not). + 2006-04-17 Aaron Bockover * banshee.mdp: Updated MonoDevelop project Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 18 Apr 2006 12:07:11 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 18 Apr 2006 12:07:12 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 18 Apr 2006 12:07:12 -0000 @@ -63,7 +63,7 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || @@ -78,31 +78,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +158,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +177,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +252,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +278,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +301,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 18 Apr 2006 12:07:13 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-03 18:40:38.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_14604_3604805.1145362269787-- From abockover@novell.com Tue Apr 18 11:32:52 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5BBF73B2A92 for ; Tue, 18 Apr 2006 11:32:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01121-06 for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 8B2073B18CF for ; Tue, 18 Apr 2006 11:32:51 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04-eri0.southeast.rr.com (8.13.4/8.13.4) with ESMTP id k3IFWn8i024935 for ; Tue, 18 Apr 2006 11:32:50 -0400 (EDT) Subject: Re: [Banshee-List] lame presets From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145338540.7850.1.camel@rivendell.home.local> References: <1145338540.7850.1.camel@rivendell.home.local> Content-Type: text/plain Date: Tue, 18 Apr 2006 11:29:50 -0400 Message-Id: <1145374190.12396.1.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.476 tagged_above=-999 required=2 tests=[AWL=-0.077, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.476 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 15:32:52 -0000 Take a look at the lame options exposed by the gstreamer plugin: gst-inspect-0.10 lame Then edit the lame profile for Banshee in gconf: gconf-editor /apps/Banshee and browse to "EncoderProfiles," edit the value for that key and choose the 'lame' entry and edit the string, adding the options you want. --Aaron On Mon, 2006-04-17 at 22:35 -0700, Florin Andrei wrote: > I was pleasantly surprised to discover that Banshee can use lame to > encode songs, but there are only options for CBR encoding. > Would it be possible to add an option to use the Standard VBR preset? > > lame --preset standard song.wav song.mp3 > From c.travis.bradshaw@gmail.com Tue Apr 18 23:00:13 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 057813B1AF1 for ; Tue, 18 Apr 2006 23:00:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05516-01 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 6E9473B1538 for ; Tue, 18 Apr 2006 23:00:11 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1099498pyu for ; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cf3W9wli+Ze1cAayQaFS15QAVvaQl1I6TnABaiOOc29iJYns1ZV/fiEy1oCWhPvugDpO9+sKIhkAbw9litcPKHZWndhRfBpBLejtdVKvh6chzma4CRUwZUJrWTF8zSYHLiQZ8F6gdbfkZ4DKstPE9g2GwHH6gbbznqEL+UXEDPU= Received: by 10.35.66.13 with SMTP id t13mr2324489pyk; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Tue, 18 Apr 2006 20:00:10 -0700 (PDT) Message-ID: Date: Tue, 18 Apr 2006 22:00:10 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Re: Help Reproducing a Bug - fuzzy searching (#333893) X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 03:00:13 -0000 Hey guys and gals, I was wondering if anyone would be interested in helping me test a patch. On bug #333893 "searches should be fuzzy", I've submitted a patch to add fuzzy searching and a NOT operator to the simple search on the main interface. Everything seems to be working great--completely implementing Dave Rodgman's suggestions--and Aaron tested the patch. He found a couple issues with the patch and I'm very eager to get both issues handled for a clean patch. The catch is that I can't seem to reproduce the behavior he describes. If anyone would be willing to help me out and try the patch on bug #333893, I would greatly appreciate it. (And I think you'll like the fuzzy searching as well.) http://bugzilla.gnome.org/show_bug.cgi?id=3D333893 Thanks everyone, Travis Bradshaw From c.travis.bradshaw@gmail.com Wed Apr 19 05:07:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F219F3B115B for ; Wed, 19 Apr 2006 05:07:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24087-01 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id A7E973B09B2 for ; Wed, 19 Apr 2006 05:07:36 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so1167003pyu for ; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BqfIuopjY+7gr3hj8ItswDg3xFprHp3XoRM6TBR/ZSNpiN8ph95ZsBHUQE7BDUsE1ThNSiT1tV4l3/NJadTaNMDYVeZQnmcPzcdlFMFmFRYzII336ff8dCvIJptpvtA9MFf7r6kjFDs8zerNoj+uXlxv/JqZNzp2q1hGHWG+YWQ= Received: by 10.35.98.6 with SMTP id a6mr785072pym; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Received: by 10.35.73.10 with HTTP; Wed, 19 Apr 2006 02:07:35 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2006 04:07:35 -0500 From: "Travis Bradshaw" Sender: c.travis.bradshaw@gmail.com To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: [Banshee-List] Trouble Building after cvs update X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:07:38 -0000 Just today I did a quick cvs update, and now I can't seem to get through an entire build. Everything is going great until I get: make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' make[3]: *** No rule to make target `IO/IOProxy.cs', needed by `Banshee.Base.dll'. Stop. Any idea what I've got wrong? Thanks, Travis Bradshaw travis@tbradshaw.net From jstembridge@gmail.com Wed Apr 19 05:22:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 128113B2EE1 for ; Wed, 19 Apr 2006 05:22:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24849-06 for ; Wed, 19 Apr 2006 05:22:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.234]) by menubar.gnome.org (Postfix) with ESMTP id B507B3B2EE8 for ; Wed, 19 Apr 2006 05:22:00 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 69so819510wra for ; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oxdhQ36+eBF2urpxK5sBDRo0aYykKM76xppuq2CkdekEN7+2W0W9lEAigwcYPkmybezeV0IF1/iDyiFCFBG7iVEnACSR9aE+/M5pmH/4e+TA/HCjx8UGhmlHpYmIysQGjcumJCNL1iQjVWQZBhCBNYTlPVRYxUYNbgaHPshe67k= Received: by 10.54.102.9 with SMTP id z9mr5687243wrb; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Received: by 10.54.99.5 with HTTP; Wed, 19 Apr 2006 02:22:00 -0700 (PDT) Message-ID: <18bc366d0604190222u699f43e2wbe56283edaeee0f8@mail.gmail.com> Date: Wed, 19 Apr 2006 10:22:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Trouble Building after cvs update In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.507 tagged_above=-999 required=2 tests=[AWL=0.093, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.507 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 09:22:02 -0000 On 4/19/06, Travis Bradshaw wrote: > Just today I did a quick cvs update, and now I can't seem to get > through an entire build. Everything is going great until I get: > > make[3]: Entering directory `/home/ash/src/banshee/src/Banshee.Base' > make[3]: *** No rule to make target `IO/IOProxy.cs', needed by > `Banshee.Base.dll'. Stop. Try "cvs up -d". The "-d" asks cvs to create any directories present in the repository that you don't have locally. James. From pat@thepatsite.com Wed Apr 19 12:57:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C4BB63B00B1 for ; Wed, 19 Apr 2006 12:57:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22600-01 for ; Wed, 19 Apr 2006 12:57:05 -0400 (EDT) Received: from f04n01.cac.psu.edu (f04s01.cac.psu.edu [128.118.141.31]) by menubar.gnome.org (Postfix) with ESMTP id 080A93B000F for ; Wed, 19 Apr 2006 12:57:04 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f04n01.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3JGuxcl155350 for ; Wed, 19 Apr 2006 12:56:59 -0400 From: Pat Rondon To: banshee-list@gnome.org Content-Type: text/plain Date: Wed, 19 Apr 2006 12:57:42 -0400 Message-Id: <1145465862.563.36.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Subject: [Banshee-List] Shuffle playlist plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:57:07 -0000 I've put together a shuffle playlist plugin that works like the dynamic mode in Amarok or (I assume) party shuffle in iTunes - it maintains a playlist of 20 randomly-chosen songs, automatically removing the ones that have been played. It may be a little hackish. Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 - Pat From julien.marbach@gmail.com Fri Apr 21 12:20:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 86AEE3B2011 for ; Fri, 21 Apr 2006 12:20:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20034-02 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by menubar.gnome.org (Postfix) with ESMTP id B66433B1F98 for ; Fri, 21 Apr 2006 12:20:54 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id h30so378302wxd for ; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cqBsk/SZ45xZgITyr5J5lSy5HJVETCTXvuTJiUaLdDOVa6rexVDSvrmNJ/69T2UoCEaFbsGR6FPXf+xX1OvNg0MsL2Ca1AcaGkI5oVd1qX03tHcr4ODWYWGKd0ubcdnjKCu4L+ukfaeF3CaXVXPrg+ol8nmatv4idsenS4RDPGo= Received: by 10.70.94.4 with SMTP id r4mr374257wxb; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Received: by 10.70.97.18 with HTTP; Fri, 21 Apr 2006 09:20:54 -0700 (PDT) Message-ID: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Date: Fri, 21 Apr 2006 12:20:54 -0400 From: "Julien Marbach" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25915_12204578.1145636454183" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.315 tagged_above=-999 required=2 tests=[BAYES_05=-1.11, HTML_00_10=0.795, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -0.315 X-Spam-Level: Subject: [Banshee-List] iCal 2 iPod plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:20:55 -0000 ------=_Part_25915_12204578.1145636454183 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, I've started to use google calendar since a few days and am already addicted. As a iPod user I like to have my calendar synchronised to my iPod= , and as a Banshee user I like to use Banshee to synchronise my iPod... So after writing a quick and dirty C#/mono standalone app to synchronize my google iCal to my iPod I would like to try to write a banshee plugin to do the job. Firstly I would like to be sure that no one else is working on the same idea. And secondly, do you think this is something that can be done as a banshee plugin? I've no idea at the moment of what I can/cannot do in a banshee plugin so I'm asking you... I believe i would need to use the ipod-sharp library but I don't know how t= o use its documentation (in xml format). Do I have to use monodoc or another tool to display it? Thanks, Julien ------=_Part_25915_12204578.1145636454183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there,
I've started to use google calendar since a few days and am al= ready addicted. As a iPod user I like to have my calendar synchronised to m= y iPod, and as a Banshee user I like to use Banshee to synchronise my iPod.= .. So after writing a quick and dirty C#/mono standalone app to synchronize= my google iCal to my iPod I would like to try to write a banshee plugin to= do the job.=20

Firstly I would like to be sure that no one else is working on the = same idea. And secondly, do you think this is something that can be done as= a banshee plugin? I've no idea at the moment of what I can/cannot do in a = banshee plugin so I'm asking you...

I believe i would need to use the ipod-sharp library but I don't kn= ow how to use its documentation (in xml format). Do I have to use monodoc o= r another tool to display it?

Thanks,

Julien
------=_Part_25915_12204578.1145636454183-- From lukasz.halman@gmail.com Fri Apr 21 12:38:19 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 557C73B2174 for ; Fri, 21 Apr 2006 12:38:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21075-01 for ; Fri, 21 Apr 2006 12:38:18 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id 8D6A63B10A3 for ; Fri, 21 Apr 2006 12:38:17 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so278931nfc for ; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=JKuSkcKpBhkzQd7Y8ofgJwzYwUT0W/Ur35w5F+5s+Wy5InC9zQB/1E39bsOYk8WoA+70m8YTuvfw/NLjxzVD13Zky53MJOXv0wty/AR5Ho1gEFRu+2MgE/BbYZETYS3D6FhlkH7AZNz6AxhIAelGJI0F29sfeD6a56jqO9h0Vhs= Received: by 10.48.211.17 with SMTP id j17mr1513821nfg; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Received: from lukasz ( [83.25.220.107]) by mx.gmail.com with ESMTP id q28sm41526nfc.2006.04.21.09.38.15; Fri, 21 Apr 2006 09:38:16 -0700 (PDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Lukasz Halman To: banshee-list@gnome.org In-Reply-To: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> Content-Type: text/plain Date: Fri, 21 Apr 2006 18:38:26 +0200 Message-Id: <1145637506.21876.4.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.57 tagged_above=-999 required=2 tests=[AWL=-0.605, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.57 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:38:19 -0000 Hi I think you should get in touch with evolution team. As far as I know they are working on getting evolution and google calendars syncing to work. If that's done then syncing ipod with evolution is very easy. That way not only it would be easier to do, but it'll provide better system integration. Since evolution-data-server is THE SOURCE of information in gnome, you should sync with it, not with google directly. That's my opinion. I have somewhere on my disk gtk2 application which used to sync evolution contacts/calendar with ipod. Give me a sign if you're interested in those sources. L. From abockover@novell.com Fri Apr 21 13:10:50 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0AF453B15FA for ; Fri, 21 Apr 2006 13:10:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23144-03 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from ms-smtp-04.southeast.rr.com (unknown [24.25.9.103]) by menubar.gnome.org (Postfix) with ESMTP id 4AA7F3B1CC5 for ; Fri, 21 Apr 2006 13:10:43 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-04.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3LHAWZ4005019 for ; Fri, 21 Apr 2006 13:10:32 -0400 (EDT) Subject: Re: [Banshee-List] iCal 2 iPod plugin From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <1145637506.21876.4.camel@localhost.localdomain> References: <1b6aa4b60604210920p5c2d8fb2i42592cdb3f2a396c@mail.gmail.com> <1145637506.21876.4.camel@localhost.localdomain> Content-Type: text/plain Date: Fri, 21 Apr 2006 13:07:30 -0400 Message-Id: <1145639250.21317.6.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.538 tagged_above=-999 required=2 tests=[AWL=-0.016, BAYES_00=-2.599, TW_GT=0.077] X-Spam-Score: -2.538 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 17:10:50 -0000 If you're looking to do this in C#, then I would use ipod-sharp for getting the device handle and events. If you want to use C, then use libipoddevice (which ipod-sharp uses for device access). While I guess this could be done in Banshee, I second the motion that it's probably better in Evolution. You could probably do it in C# with EDS bindings. It doesn't need to be *in* Evolution, rather Evolution does the calendar syncing, and then using EDS you request those calendars and sync them to the iPod. However, if you're looking for a quick route, I'd probably just write a standalone C# app that uses ipod-sharp and fetch your iCal calendars directly from Google and sync them. As for ipod-sharp docs, they are in the monodoc format. James also has them online at: http://www.snorp.net/docs/ipod-sharp/ ... not sure if they're 100% current, but the API has changed very little in quite a few months. Anyway, let us know your progress :) Cheers, Aaron On Fri, 2006-04-21 at 18:38 +0200, Lukasz Halman wrote: > Hi > > I think you should get in touch with evolution team. As far as I know > they are working on getting evolution and google calendars syncing to > work. If that's done then syncing ipod with evolution is very easy. That > way not only it would be easier to do, but it'll provide better system > integration. Since evolution-data-server is THE SOURCE of information in > gnome, you should sync with it, not with google directly. That's my > opinion. > > I have somewhere on my disk gtk2 application which used to sync > evolution contacts/calendar with ipod. Give me a sign if you're > interested in those sources. > > L. > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From gcgmb-banshee-list@m.gmane.org Mon Apr 24 03:04:20 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B147C3B18DA for ; Mon, 24 Apr 2006 03:04:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24601-02 for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 2CF473B13BF for ; Mon, 24 Apr 2006 03:04:19 -0400 (EDT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FXv7B-0002ae-9a for banshee-list@gnome.org; Mon, 24 Apr 2006 09:04:09 +0200 Received: from 136.red-213-96-98.staticip.rima-tde.net ([213.96.98.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 Received: from knocte by 136.red-213-96-98.staticip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Apr 2006 09:04:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: banshee-list@gnome.org From: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses=22?= Date: Mon, 24 Apr 2006 09:03:53 +0200 Lines: 19 Message-ID: <444C7859.1000407@gmail.com> References: <1145189078.6791.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 136.red-213-96-98.staticip.rima-tde.net User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.799 tagged_above=-999 required=2 tests=[AWL=-0.687, BAYES_05=-1.11, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: -1.799 X-Spam-Level: Subject: [Banshee-List] Re: Child Source patch v0.8 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 07:04:20 -0000 Lukas Lipka escribió: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. Hello. I am very interested in this patch, which besides I think is a pre-requisite for the ipod-playlists patch (am I right?), so, any chances for it to be commited? Thanks in advance. Andrew -- From ruben@Lambda1.be Thu Apr 27 08:06:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E93363B2034 for ; Thu, 27 Apr 2006 08:06:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00930-02 for ; Thu, 27 Apr 2006 08:06:44 -0400 (EDT) Received: from nibbel.kulnet.kuleuven.ac.be (nibbel.kulnet.kuleuven.ac.be [134.58.240.41]) by menubar.gnome.org (Postfix) with ESMTP id C45F93B2015 for ; Thu, 27 Apr 2006 08:06:43 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 84BC14D203 for ; Thu, 27 Apr 2006 14:06:42 +0200 (CEST) Received: from smtp03.kuleuven.be (antonius.kulnet.kuleuven.ac.be [134.58.240.73]) by nibbel.kulnet.kuleuven.ac.be (Postfix) with ESMTP id DEE104CF6D for ; Thu, 27 Apr 2006 14:06:41 +0200 (CEST) Received: from localhost.localdomain (10-91-21-117.kotnet.org [10.91.21.117]) by smtp03.kuleuven.be (Postfix) with ESMTP id 014E733278C for ; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id B23C6460149; Thu, 27 Apr 2006 14:06:40 +0200 (CEST) Subject: Re: [Banshee-List] Child Source patch v0.8 From: Ruben Vermeersch To: banshee-list@gnome.org In-Reply-To: <1145189078.6791.1.camel@localhost.localdomain> References: <1145189078.6791.1.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 27 Apr 2006 14:06:40 +0200 Message-Id: <1146139600.4260.1.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by KULeuven Antivirus Cluster X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 12:06:46 -0000 On Sun, 2006-04-16 at 14:04 +0200, Lukas Lipka wrote: > Hey, > > Hopefully the final version of the child source patch. I figured I > forgot to commment out some lines in the previous one, so here is the > fixed version. Please test it and if you still do find any issues please > report them. I'm not sure if this is known, but doing "Music -> New Playlist" with no other playlists around seems to position them wrongly. I'm not sure if I'm using the latest patch though. Kind Regards, Ruben -- Ruben Vermeersch (rubenv) http://www.Lambda1.be/ From lukas@pmad.net Thu Apr 27 14:13:02 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DBEF33B0378 for ; Thu, 27 Apr 2006 14:13:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21923-06 for ; Thu, 27 Apr 2006 14:12:52 -0400 (EDT) Received: from 26.mail-out.ovh.net (26.mail-out.ovh.net [213.186.42.179]) by menubar.gnome.org (Postfix) with ESMTP id 8A70C3B21B3 for ; Thu, 27 Apr 2006 14:12:51 -0400 (EDT) Received: (qmail 9173 invoked by uid 503); 27 Apr 2006 18:12:57 -0000 Received: (QMFILT: 1.0); 27 Apr 2006 18:12:57 -0000 Received: from b6.ovh.net (HELO mail46.ha.ovh.net) (213.186.33.56) by 26.mail-out.ovh.net with SMTP; 27 Apr 2006 18:12:57 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:35 -0000 Received: from mail46.ha.ovh.net (10.0.50.46) by mail46.ha.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from b0.ovh.net (HELO queue-pre) (213.186.33.50) by b0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 Received: from adsl-d140.87-197-209.telecom.sk (HELO ?192.168.0.23?) (87.197.209.140) by ns0.ovh.net with SMTP; 27 Apr 2006 18:12:32 -0000 From: Lukas Lipka To: banshee-list@gnome.org Content-Type: multipart/mixed; boundary="=-aPt7HjTvvfCZ8ZipkXG3" Date: Thu, 27 Apr 2006 20:12:28 +0200 Message-Id: <1146161548.8120.3.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Ovh-Remote: 87.197.209.140 (adsl-d140.87-197-209.telecom.sk) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: fait|type 1&3|0.0|H 0.5 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.51 tagged_above=-999 required=2 tests=[AWL=0.089, BAYES_00=-2.599] X-Spam-Score: -2.51 X-Spam-Level: Subject: [Banshee-List] Child sources patch v0.10 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:13:02 -0000 --=-aPt7HjTvvfCZ8ZipkXG3 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, attached are patches to get child source support working in Banshee. The minimode patch also fixes the random and shuffle play buttons bug. Lukas --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-childsource-0.10.patch Content-Type: text/x-patch; name=banshee-childsource-0.10.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit ? po/stamp-it ? src/.SourceView.cs.swp ? src/Banshee.Base/ChildSource.cs Index: src/PlayerInterface.cs =================================================================== RCS file: /cvs/gnome/banshee/src/PlayerInterface.cs,v retrieving revision 1.174 diff -u -r1.174 PlayerInterface.cs --- src/PlayerInterface.cs 14 Apr 2006 15:33:43 -0000 1.174 +++ src/PlayerInterface.cs 27 Apr 2006 18:06:16 -0000 @@ -593,7 +593,6 @@ LoadSourceView(); SourceManager.AddSource(LibrarySource.Instance, true); - PlaylistUtil.LoadSources(); if(LocalQueueSource.Instance.Count > 0) { SourceManager.AddSource(LocalQueueSource.Instance); @@ -1435,7 +1434,7 @@ playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); playlist.Commit(); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnItemAddToPlaylistActivated(object o, EventArgs args) @@ -1854,7 +1853,7 @@ { PlaylistSource playlist = new PlaylistSource(); playlist.Rename(PlaylistUtil.UniqueName); - SourceManager.AddSource(playlist); + LibrarySource.Instance.AddChildSource(playlist); } private void OnImportFolderAction(object o, EventArgs args) Index: src/SourceView.cs =================================================================== RCS file: /cvs/gnome/banshee/src/SourceView.cs,v retrieving revision 1.45 diff -u -r1.45 SourceView.cs --- src/SourceView.cs 18 Feb 2006 16:25:52 -0000 1.45 +++ src/SourceView.cs 27 Apr 2006 18:06:17 -0000 @@ -67,37 +67,37 @@ private TreeIter newPlaylistIter = TreeIter.Zero; private bool newPlaylistVisible = false; - private ListStore store; + private TreeStore store; private int currentTimeout = -1; - + public SourceView() { - TreeViewColumn col = new TreeViewColumn(); + // Hidden expander column + TreeViewColumn col = new TreeViewColumn(); + col.Visible = false; + AppendColumn(col); + ExpanderColumn = col; + + col = new TreeViewColumn(); SourceRowRenderer renderer = new SourceRowRenderer(); col.Title = Catalog.GetString("Source"); col.PackStart(renderer, true); col.SetCellDataFunc(renderer, new TreeCellDataFunc(SourceCellDataFunc)); AppendColumn(col); - store = new ListStore(typeof(Source)); + store = new TreeStore(typeof(Source)); Model = store; HeadersVisible = false; CursorChanged += OnCursorChanged; RefreshList(); - + SourceManager.SourceAdded += delegate(SourceAddedArgs args) { - if(FindSource(args.Source).Equals(TreeIter.Zero)) { - TreeIter iter = store.Insert(args.Position); - store.SetValue(iter, 0, args.Source); - } + AddSource(args.Source, args.Position); }; SourceManager.SourceRemoved += delegate(SourceEventArgs args) { - TreeIter iter = FindSource(args.Source); - if(!iter.Equals(TreeIter.Zero)) { - store.Remove(ref iter); - } + RemoveSource(args.Source); }; SourceManager.ActiveSourceChanged += delegate(SourceEventArgs args) { @@ -109,8 +109,11 @@ }; } - private TreeIter FindSource(Source source) { - for(int i = 0, n = store.IterNChildren(); i < n; i++) { + // FIXME: This is lame and could use some recusrion instead. I may get + // around to fixing it soon! + private TreeIter FindSource(Source source) + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { TreeIter iter = TreeIter.Zero; if(!store.IterNthChild(out iter, i)) { continue; @@ -119,10 +122,96 @@ if((store.GetValue(iter, 0) as Source) == source) { return iter; } + + for (int j = 0, n = store.IterNChildren(iter); j < n; j++) { + TreeIter citer = TreeIter.Zero; + if(!store.IterNthChild(out citer, iter, j)) { + continue; + } + + if((store.GetValue(citer, 0) as Source) == source) { + return citer; + } + } } return TreeIter.Zero; } + + private void AddSource(Source source) + { + AddSource (source, -1); + } + + private void AddSource(Source source, int position) + { + if(FindSource(source).Equals(TreeIter.Zero)) { + TreeIter iter = store.InsertNode(position); + store.SetValue(iter, 0, source); + + foreach (ChildSource s in source.Children) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, s); + } + + source.ChildSourceAdded += delegate(SourceEventArgs e) { + TreeIter i = store.AppendNode(iter); + store.SetValue(i, 0, e.Source); + Expand(iter); + UpdateView (); + }; + + source.ChildSourceRemoved += delegate(SourceEventArgs e) { + RemoveSource(e.Source); + }; + + Expand(iter); + } + + UpdateView(); + } + + private void RemoveSource(Source source) + { + TreeIter iter = FindSource(source); + if(!iter.Equals(TreeIter.Zero)) { + store.Remove(ref iter); + } + + UpdateView(); + } + + private void Expand(TreeIter iter) + { + TreePath path = store.GetPath (iter); + ExpandRow (path, true); + } + + private void RefreshList() + { + store.Clear(); + foreach(Source source in SourceManager.Sources) { + AddSource (source); + } + } + + private bool UpdateView() + { + for(int i = 0, m = store.IterNChildren(); i < m; i++) { + TreeIter iter = TreeIter.Zero; + if(!store.IterNthChild(out iter, i)) { + continue; + } + + if(store.IterNChildren(iter) > 0) { + ExpanderColumn = Columns[1]; + return true; + } + } + + ExpanderColumn = Columns[0]; + return false; + } protected void SourceCellDataFunc(TreeViewColumn tree_column, CellRenderer cell, TreeModel tree_model, TreeIter iter) @@ -150,14 +239,6 @@ source.Rename(text); } - private void RefreshList() - { - store.Clear(); - foreach(Source source in SourceManager.Sources) { - store.AppendValues(source); - } - } - private void OnCursorChanged(object o, EventArgs args) { if(currentTimeout < 0) { @@ -188,62 +269,76 @@ return false; } - protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) + protected override bool OnDragMotion(Gdk.DragContext context, int x, int y, uint time) { base.OnDragMotion(context, x, y, time); - SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, 0, time); + SetDragDestRow(null, TreeViewDropPosition.IntoOrAfter); + Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); - // TODO: Support other drag sources - if(!(SourceManager.ActiveSource is LibrarySource)) { - return true; + // FIXME: We need to handle this nicer + if(!((SourceManager.ActiveSource is LibrarySource) || + ((SourceManager.ActiveSource is PlaylistSource) && (SourceManager.ActiveSource as PlaylistSource).Local))) { + return false; } - - if(!newPlaylistVisible) { - newPlaylistIter = store.AppendValues(newPlaylistSource); + + if (!newPlaylistVisible) { + TreeIter library = FindSource(LibrarySource.Instance); + newPlaylistIter = store.AppendNode(library); + store.SetValue(newPlaylistIter, 0, newPlaylistSource); newPlaylistVisible = true; - } + UpdateView (); + Expand(library); + } + TreePath path; TreeViewDropPosition pos; - if(!GetDestRowAtPos(x, y, out path, out pos)) { - path = store.GetPath(newPlaylistIter); - } + if(GetDestRowAtPos(x, y, out path, out pos)) { + Source source = GetSource(path); + SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); + + // TODO: Support other drag destinations + if((source is PlaylistSource) || (source is DapSource)) { + return true; + } - Source source = GetSource(path); - if(source == null) { - return true; - } - - // TODO: Support other drag destinations - if(!(source is PlaylistSource) && !(source is DapSource)) { - return true; - } + Gdk.Drag.Status(context, 0, time); + return true; + } - SetDragDestRow(path, TreeViewDropPosition.IntoOrAfter); - Gdk.Drag.Status(context, Gdk.DragAction.Copy, time); return true; } + private Source final_drag_source = null; + private uint final_drag_start_time = 0; + protected override void OnDragLeave(Gdk.DragContext context, uint time) { - if(newPlaylistVisible) { + TreePath path; + TreeViewDropPosition pos; + GetDragDestRow (out path, out pos); + + if(path == null) + path = store.GetPath(newPlaylistIter); + + final_drag_source = GetSource (path); + final_drag_start_time = context.StartTime; + + if (newPlaylistVisible) { store.Remove(ref newPlaylistIter); newPlaylistVisible = false; + UpdateView (); } } protected override void OnDragDataReceived(Gdk.DragContext context, int x, int y, Gtk.SelectionData selectionData, uint info, uint time) - { - TreePath destPath; - TreeViewDropPosition pos; - + { string rawData = Dnd.SelectionDataToString(selectionData); string [] rawDataArray = Dnd.SplitSelectionData(rawData); if(rawData.Length <= 0) { Gtk.Drag.Finish(context, false, false, time); - return; + return; } ArrayList tracks = new ArrayList(); @@ -255,21 +350,24 @@ continue; } } - - if(GetDestRowAtPos(x, y, out destPath, out pos)) { - Source source = GetSource(destPath); - if(source is PlaylistSource || source is DapSource) { - source.AddTrack(tracks); - source.Commit(); - } - } else { - PlaylistSource playlist = new PlaylistSource(); - playlist.AddTrack(tracks); - playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); - playlist.Commit(); - SourceManager.AddSource(playlist); + + if(final_drag_start_time == context.StartTime) { + if(final_drag_source == newPlaylistSource) { + PlaylistSource playlist = new PlaylistSource(); + playlist.AddTrack(tracks); + playlist.Rename(PlaylistUtil.GoodUniqueName(playlist.Tracks)); + playlist.Commit(); + LibrarySource.Instance.AddChildSource(playlist); + UpdateView (); + } else { + Source source = final_drag_source; + if(source is PlaylistSource || source is DapSource) { + source.AddTrack(tracks); + source.Commit(); + } + } } - + Gtk.Drag.Finish(context, true, false, time); } @@ -281,24 +379,22 @@ public Source GetSource(TreePath path) { TreeIter iter; - + if(store.GetIter(out iter, path)) { return store.GetValue(iter, 0) as Source; } - + return null; } public void ResetHighlight() { - TreeIter iter = TreeIter.Zero; + TreeIter iter = FindSource (SourceManager.ActiveSource); - if(!store.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - return; + if(!iter.Equals(TreeIter.Zero)){ + Selection.SelectIter(iter); } - - Selection.SelectIter(iter); - } + } public Source HighlightedSource { get { @@ -489,3 +585,5 @@ } } } + + Index: src/Banshee.Base/Library.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Library.cs,v retrieving revision 1.10 diff -u -r1.10 Library.cs --- src/Banshee.Base/Library.cs 9 Apr 2006 21:30:23 -0000 1.10 +++ src/Banshee.Base/Library.cs 27 Apr 2006 18:06:17 -0000 @@ -56,7 +56,6 @@ public BansheeDatabase Db; public Hashtable Tracks = new Hashtable(); public Hashtable TracksFnKeyed = new Hashtable(); - public Hashtable Playlists = new Hashtable(); public event EventHandler Reloaded; public event EventHandler Updated; Index: src/Banshee.Base/LibraryTrackInfo.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/LibraryTrackInfo.cs,v retrieving revision 1.9 diff -u -r1.9 LibraryTrackInfo.cs --- src/Banshee.Base/LibraryTrackInfo.cs 9 Apr 2006 21:30:23 -0000 1.9 +++ src/Banshee.Base/LibraryTrackInfo.cs 27 Apr 2006 18:06:21 -0000 @@ -423,12 +423,12 @@ } } - static string Choose (string priority, string fallback) - { - if (priority == null || priority.Length == 0) - return fallback; - return priority; - } + static string Choose (string priority, string fallback) + { + if (priority == null || priority.Length == 0) + return fallback; + return priority; + } private void LoadFromFile(string filename) { @@ -487,5 +487,10 @@ Core.Library.Db.Execute(query);*/ Save(); } + + public bool Valid() + { + return File.Exists(Uri.AbsolutePath); + } } } Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 27 Apr 2006 18:06:21 -0000 @@ -41,6 +41,7 @@ SOURCES_SOURCES = \ $(srcdir)/SourceManager.cs \ $(srcdir)/Source.cs \ + $(srcdir)/ChildSource.cs \ $(srcdir)/Sources/LibrarySource.cs \ $(srcdir)/Sources/PlaylistSource.cs \ $(srcdir)/Sources/AudioCdSource.cs \ Index: src/Banshee.Base/Source.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Source.cs,v retrieving revision 1.7 diff -u -r1.7 Source.cs --- src/Banshee.Base/Source.cs 13 Feb 2006 22:18:08 -0000 1.7 +++ src/Banshee.Base/Source.cs 27 Apr 2006 18:06:29 -0000 @@ -54,15 +54,20 @@ private int order; private string name; + private ArrayList child_sources; + public event EventHandler Updated; public event TrackEventHandler TrackAdded; public event TrackEventHandler TrackRemoved; public event EventHandler ViewChanged; + public event SourceEventHandler ChildSourceAdded; + public event SourceEventHandler ChildSourceRemoved; protected Source(string name, int order) { this.name = name; this.order = order; + this.child_sources = new ArrayList (); } public void Dispose() @@ -173,6 +178,37 @@ } } + public virtual void AddChildSource(ChildSource source) + { + source.SetParentSource(source); + child_sources.Add(source); + + SourceEventHandler handler = ChildSourceAdded; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public virtual void RemoveChildSource(ChildSource source) + { + child_sources.Remove(source); + + SourceEventHandler handler = ChildSourceRemoved; + if(handler != null) { + SourceEventArgs evargs = new SourceEventArgs(); + evargs.Source = source; + handler(evargs); + } + } + + public ICollection Children { + get { + return child_sources; + } + } + public virtual int Count { get { return -1; Index: src/Banshee.Base/SourceManager.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/SourceManager.cs,v retrieving revision 1.7 diff -u -r1.7 SourceManager.cs --- src/Banshee.Base/SourceManager.cs 18 Feb 2006 16:25:52 -0000 1.7 +++ src/Banshee.Base/SourceManager.cs 27 Apr 2006 18:06:29 -0000 @@ -216,18 +216,6 @@ }); } - public static int ActiveSourceIndex { - get { - for(int i = 0; i < sources.Count; i++) { - if((sources[i] as Source) == active_source) { - return i; - } - } - - return -1; - } - } - public static ICollection Sources { get { return sources; Index: src/Banshee.Base/Sources/LibrarySource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/LibrarySource.cs,v retrieving revision 1.6 diff -u -r1.6 LibrarySource.cs --- src/Banshee.Base/Sources/LibrarySource.cs 20 Mar 2006 08:38:39 -0000 1.6 +++ src/Banshee.Base/Sources/LibrarySource.cs 27 Apr 2006 18:06:37 -0000 @@ -58,6 +58,10 @@ OnTrackAdded(args.Track); OnUpdated(); }; + + foreach (ChildSource playlist in PlaylistUtil.LoadSources()) { + AddChildSource (playlist); + } } public override void RemoveTrack(TrackInfo track) Index: src/Banshee.Base/Sources/PlaylistSource.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Sources/PlaylistSource.cs,v retrieving revision 1.5 diff -u -r1.5 PlaylistSource.cs --- src/Banshee.Base/Sources/PlaylistSource.cs 13 Feb 2006 22:18:10 -0000 1.5 +++ src/Banshee.Base/Sources/PlaylistSource.cs 27 Apr 2006 18:06:37 -0000 @@ -36,9 +36,10 @@ namespace Banshee.Sources { - public class PlaylistSource : Source + public class PlaylistSource : ChildSource { private static ArrayList playlists = new ArrayList(); + public static IEnumerable Playlists { get { return playlists; @@ -53,12 +54,16 @@ private ArrayList tracks = new ArrayList(); private int id; - + public PlaylistSource() : this(0) { } - - public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) + + public PlaylistSource(string name) : base(name, 500) + { + } + + public PlaylistSource(int id) : base(Catalog.GetString("New Playlist"), 500) { this.id = id; @@ -138,10 +143,8 @@ public override void AddTrack(TrackInfo track) { - if(track is LibraryTrackInfo) { - tracks.Add(track); - OnUpdated(); - } + tracks.Add(track); + OnUpdated(); } public override void RemoveTrack(TrackInfo track) @@ -246,18 +249,28 @@ return IconThemeUtils.LoadIcon(22, "source-playlist"); } } + + public bool Local { + get { + return (id > 0); + } + } } public static class PlaylistUtil { - public static void LoadSources() + public static ICollection LoadSources() { - IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); + ArrayList sources = new ArrayList (); + + IDataReader reader = Globals.Library.Db.Query("SELECT PlaylistID FROM Playlists"); while(reader.Read()) { PlaylistSource playlist = new PlaylistSource(Convert.ToInt32(reader[0])); - SourceManager.AddSource(playlist); + sources.Add (playlist); } reader.Dispose(); + + return sources; } internal static int GetPlaylistID(string name) --- /dev/null 2006-04-19 11:48:42.000000000 +0200 +++ src/Banshee.Base/ChildSource.cs 2006-04-25 20:26:01.000000000 +0200 @@ -0,0 +1,63 @@ + +/*************************************************************************** + * ChildSource.cs + * + * Copyright (C) 2006 Novell + * Written by Lukas Lipka (lukas@pmad.net) + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; + +namespace Banshee.Sources +{ + public class ChildSource : Source + { + private Source parent; + + protected ChildSource(string name, int position) : base(name, position) + { + } + + public override void AddChildSource(ChildSource source) + { + throw new Exception("Cannot add a child source to a child source!"); + } + + public override void RemoveChildSource(ChildSource source) + { + throw new Exception("Cannot remove a child source from a child source!"); + } + + public void SetParentSource(Source source) + { + parent = source; + } + + public Source Parent { + get { + return parent; + } + } + } +} --=-aPt7HjTvvfCZ8ZipkXG3 Content-Disposition: attachment; filename=banshee-minimode-0.1.patch Content-Type: text/x-patch; name=banshee-minimode-0.1.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: src/MiniModeWindow.cs =================================================================== --- src/MiniModeWindow.cs (revision 84) +++ src/MiniModeWindow.cs (working copy) @@ -113,6 +113,7 @@ Globals.ActionManager["ShuffleAction"] as ToggleAction); shuffle_toggle_button.Relief = ReliefStyle.None; shuffle_toggle_button.ShowLabel = false; + shuffle_toggle_button.ActiveStateIndex = (int)Globals.Configuration.Get(GConfKeys.PlaylistRepeat); shuffle_toggle_button.ShowAll(); MultiStateToggleButton repeat_toggle_button = new MultiStateToggleButton(); @@ -124,8 +125,8 @@ Globals.ActionManager["RepeatSingleAction"] as ToggleAction); repeat_toggle_button.Relief = ReliefStyle.None; repeat_toggle_button.ShowLabel = false; + repeat_toggle_button.ActiveStateIndex = (bool)Globals.Configuration.Get(GConfKeys.PlaylistShuffle) ? 1 : 0; repeat_toggle_button.ShowAll(); - LowerButtonsBox.PackEnd(repeat_toggle_button, false, false, 0); LowerButtonsBox.PackEnd(shuffle_toggle_button, false, false, 0); Index: src/SourceComboBox.cs =================================================================== --- src/SourceComboBox.cs (revision 84) +++ src/SourceComboBox.cs (working copy) @@ -25,6 +25,9 @@ Clear(); foreach(Source source in SourceManager.Sources) { SetSource(Append(), source); + + foreach (ChildSource child in source.Children) + SetSource (Append(), child); } // Be prepared for other sources @@ -101,10 +104,16 @@ if(updating) return; updating = true; - try { - TreeIter iter; - if(SourceModel.This.IterNthChild(out iter, SourceManager.ActiveSourceIndex)) { - SetActiveIter(iter); + try { + for(int i = 0, n = SourceModel.This.IterNChildren(); i < n; i++) { + TreeIter iter = TreeIter.Zero; + if(!SourceModel.This.IterNthChild(out iter, i)) { + continue; + } + + if((SourceModel.This.GetValue(iter, 2) as Source) == SourceManager.ActiveSource) { + SetActiveIter(iter); + } } } finally { updating = false; --=-aPt7HjTvvfCZ8ZipkXG3-- From trick@vanstaveren.us Thu Apr 27 14:41:55 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 235B13B022E for ; Thu, 27 Apr 2006 14:41:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25164-03 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id CFD5B3B03A5 for ; Thu, 27 Apr 2006 14:41:49 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZBQy-0003nJ-ED; Thu, 27 Apr 2006 11:41:48 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Thu, 27 Apr 2006 14:41:48 -0400 Message-ID: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Date: Thu, 27 Apr 2006 14:41:48 -0400 From: Trick van Staveren To: banshee-list@gnome.org, Pat Rondon Subject: Re: [Banshee-List] Shuffle playlist plugin References: <1145465862.563.36.camel@localhost.localdomain> In-Reply-To: <1145465862.563.36.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.588 tagged_above=-999 required=2 tests=[AWL=0.011, BAYES_00=-2.599] X-Spam-Score: -2.588 X-Spam-Level: Cc: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 18:41:55 -0000 Pat, This looks cool - it kinda works for me but it doesn't remove tracks from the playlist after played. It also double-adds when I remove a single track. The code looks good...maybe the PlayerEngineCore has changed in my cvs version and that's why the automatic removal doesn't work. I haven't looked. The code looks good tho (this is how I'd implement it if I were you). I've actually been thinking lately about writing something similar to this. What I'd like to do (and I think other plugins for itunes or amarok probably do this) is set it up so it's not actually pseudo random, but "intelligent random" so that it will pick music that is "similar" to it (eg by maybe picking two or three songs by a single artist and then finding the next by picking songs from the same genre. It could get really advanced and choose tracks based on a service like last.fm or something (but that might be a bit much for now!). Maybe I'll hack at this sometime and see if I can hack up something on the intelligent random stuff I talked about. I'll also see if I can figure out the problem with not removing tracks... Good stuff! LMK if you make any more changes, I'd be curious to see :) -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from pat@thepatsite.com --------- Date: Wed, 19 Apr 2006 12:57:42 -0400 From: Pat Rondon Reply-To: banshee-list@gnome.org Subject: [Banshee-List] Shuffle playlist plugin To: banshee-list@gnome.org > I've put together a shuffle playlist plugin that works like the dynamic > mode in Amarok or (I assume) party shuffle in iTunes - it maintains a > playlist of 20 randomly-chosen songs, automatically removing the ones > that have been played. It may be a little hackish. > > Tarball: http://www.patrondon.org/src/shuffle-playlist-plugin.tar.bz2 > > - Pat > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from pat@thepatsite.com ----- From trick@vanstaveren.us Fri Apr 28 03:33:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49A103B237A for ; Fri, 28 Apr 2006 03:33:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06229-08 for ; Fri, 28 Apr 2006 03:33:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 553963B2388 for ; Fri, 28 Apr 2006 03:33:00 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZNTH-0004BG-D6 for banshee-list@gnome.org; Fri, 28 Apr 2006 00:32:59 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 03:32:59 -0400 Message-ID: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> Date: Fri, 28 Apr 2006 03:32:59 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.589 tagged_above=-999 required=2 tests=[AWL=0.010, BAYES_00=-2.599] X-Spam-Score: -2.589 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 07:33:04 -0000 Howdy folks, Everyone likes screenshots, so I'll start with the screenie: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png I was reading the feature requests page, and I've noticed that as far back as I can remember, someone requested that banshee show artist information from wikipedia. At first I thought it was silly. Banshee is a music player, not a web browser! Well, needless to say, I've found myself such an addict to wikipedia for artist information, that earlier today I thought it'd be a neat idea to implement. Thus, the banshee-wikipedia-plugin was born. It's simple right now (and I plan to keep it as simple as possible). It's a Gecko widget dropped right below the library view. (Gecko == firefoz/mozilla rendering engine). It has a fixed size (for now). It can be hidden/shown from the View menu (CTRL+I as well - is this an logical shortcut mapping?). It automatically queries wikipedia (english) for a page with the same title as the artist that you're playing. Changes with the track you're playing. I'm very tired. This is accurate probably about 80% of the time...you'll usually find a disambiguation page wherever it's lacking. I'm also telling it to use the mediawiki "simple" skin to make it load faster. In the future I'll figure out how to remove the nav bar on the left as it's pretty much useless (if you want to browse, use a web browser). Note the debug output in the console - it shows the actual URL you're looking at. A few hours of hacking, and here you have it: http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshee SVN at some point so you can track progress (abock - do you mind me adding this?) MAJOR credit goes out to Fredrik Hedberg - more than half the code was based on the banshee-recommendation-plugin. I'll rewrite some of it in the future to fit my situation, but it provided a GREAT starting point for me as I barely had to think twice about how to create the frame, enable/disable it with a toggle menu item, etc. Thanks Fredrik! Enjoy! Reply to the list or snag me on IRC (nick: trick) Patrick -- Patrick "Trick" van Staveren Western Michigan University http://www.trick.vanstaveren.us/ From pat@thepatsite.com Fri Apr 28 08:40:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 98A163B05AE for ; Fri, 28 Apr 2006 08:40:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23505-03 for ; Fri, 28 Apr 2006 08:40:12 -0400 (EDT) Received: from f05n03.cac.psu.edu (f05s03.cac.psu.edu [128.118.141.46]) by menubar.gnome.org (Postfix) with ESMTP id CB88E3B0463 for ; Fri, 28 Apr 2006 08:40:11 -0400 (EDT) Received: from PMR139.rh.psu.edu (PMR139.rh.psu.edu [66.71.94.228]) by f05n03.cac.psu.edu (8.13.2/8.13.2) with ESMTP id k3SCe4Lk059298; Fri, 28 Apr 2006 08:40:08 -0400 Subject: Re: [Banshee-List] Shuffle playlist plugin From: Pat Rondon To: Trick van Staveren In-Reply-To: <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> References: <1145465862.563.36.camel@localhost.localdomain> <20060427144148.zg07qujxni9wgkk0@www.vanstaveren.us> Content-Type: text/plain Date: Fri, 28 Apr 2006 08:39:16 -0400 Message-Id: <1146227956.8845.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 12:40:16 -0000 On Thu, 2006-04-27 at 14:41 -0400, Trick van Staveren wrote: > This looks cool - it kinda works for me but it doesn't remove tracks > from the playlist > after played. It also double-adds when I remove a single track. The > code looks > good...maybe the PlayerEngineCore has changed in my cvs version and > that's why the > automatic removal doesn't work. I haven't tested much against CVS, but I had at least the first problem the last time I did. > I've actually been thinking lately about writing something similar to > this. What I'd > like to do (and I think other plugins for itunes or amarok probably do > this) is set it > up so it's not actually pseudo random, but "intelligent random" so that > it will pick > music that is "similar" to it (eg by maybe picking two or three songs > by a single > artist and then finding the next by picking songs from the same genre. Yeah, I think this is what Amarok does. What I really wanted to do, and just didn't get around to yet, was use the random track function that Banshee already uses for shuffle mode. That function is already weighted in favor of songs in the same genre and, in the future, it's possible it could be enhanced in other ways that would make it really convenient to use that function instead of duplicating it (e.g. user preferences about the randomization style, album shuffle, etc.). > Good stuff! LMK if you make any more changes, I'd be curious to see :) Just some code cleanups and other boring stuff so far. I'll probably hack on getting it to work with CVS this weekend now that classes are over. I'm glad you liked it - BTW, the Wikipedia plugin is really neat. - Pat From jstembridge@gmail.com Fri Apr 28 14:35:05 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 922483B1658 for ; Fri, 28 Apr 2006 14:35:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09510-03 for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.224]) by menubar.gnome.org (Postfix) with ESMTP id 17BED3B06DA for ; Fri, 28 Apr 2006 14:34:59 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so186392wra for ; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JvmoRFyztPFDwwlHaG52xEopONqBDaI+/aNPIAaqdDb5s8BRMZ9OAUhzHlidKPVMTKoqHEmlQf1louXlOMeyrvVPTt/V0VmooGkCy9PzMj8Eag09xIG0xuMDVS8McuSHKyRBVj2UYXpuO0WGfqY6EbSQAA5oVajMAOLmq80C7O0= Received: by 10.54.101.18 with SMTP id y18mr1088909wrb; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:34:58 -0700 (PDT) Message-ID: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> Date: Fri, 28 Apr 2006 19:34:58 +0100 From: "James Stembridge" To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4491_30228987.1146249298310" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.512 tagged_above=-999 required=2 tests=[AWL=0.088, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.512 X-Spam-Level: Subject: [Banshee-List] Updated mass storage patch X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:35:05 -0000 ------=_Part_4491_30228987.1146249298310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Couple more minor changes. I've added to check to see if Gnome VFS has already been initialized before initializing it, and (more importantly) tried to prevent the mass storage plugin accepting non-generic devices like iPods. Cheers, James. ------=_Part_4491_30228987.1146249298310 Content-Type: text/x-patch; name=mass-storage4.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkv7vv0 Content-Disposition: attachment; filename="mass-storage4.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 18:29:04 -0000 @@ -1,3 +1,33 @@ +2006-04-28 James Stembridge + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; check that the device is a generic + audio player and not something with a defined access method such as + an iPod; don't initialize Gnome VFS if it's already been initialized + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 18:29:05 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 18:29:06 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 18:29:06 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize (); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,13 +65,12 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; + return InitializeResult.Invalid; } if (!player_device.PropertyExists ("portable_audio_player.access_method") || player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || + player_device ["portable_audio_player.type"] != "generic" || !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } @@ -78,31 +79,44 @@ !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; } - if (volume == null) - return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; - base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +159,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +178,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +253,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +279,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +302,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 18:29:07 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_4491_30228987.1146249298310-- From ghaefbgtk@gmail.com Fri Apr 28 14:42:29 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A54E43B20F2 for ; Fri, 28 Apr 2006 14:42:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09787-05 for ; Fri, 28 Apr 2006 14:42:15 -0400 (EDT) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.200]) by menubar.gnome.org (Postfix) with ESMTP id B77073B24EB for ; Fri, 28 Apr 2006 14:42:11 -0400 (EDT) Received: by nz-out-0102.google.com with SMTP id i28so1982972nzi for ; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TKNt1RA4UfdLauKLf6SESV9jd9wxjBNRM1GfaLtJR6osLxbMa5rza3BYH8TaadzK8q4gb6Q7/3nQlsiFUfguAVDbr9AVmCgJ+6HU5lkMFBP/OE5Dq0RsOIcARm8T7bsN9upNmiClBP54impKngAFd7qBYyY57b0I2F0EuzkDqZM= Received: by 10.36.43.6 with SMTP id q6mr804831nzq; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Received: by 10.36.135.1 with HTTP; Fri, 28 Apr 2006 11:42:11 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 20:42:11 +0200 From: "Nil Gradisnik" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:42:29 -0000 Looking good. I'm getting an error when using this plugin on Banshee 0.10.9 The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck Any suggestions ? On 4/28/06, Trick van Staveren wrote: > Howdy folks, > > Everyone likes screenshots, so I'll start with the screenie: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > > I was reading the feature requests page, and I've noticed that as far bac= k as I can > remember, someone requested that banshee show artist information from wik= ipedia. At > first I thought it was silly. Banshee is a music player, not a web brows= er! Well, > needless to say, I've found myself such an addict to wikipedia for artist= information, > that earlier today I thought it'd be a neat idea to implement. > > Thus, the banshee-wikipedia-plugin was born. > It's simple right now (and I plan to keep it as simple as possible). > It's a Gecko widget dropped right below the library view. (Gecko =3D=3D f= irefoz/mozilla > rendering engine). > It has a fixed size (for now). > It can be hidden/shown from the View menu (CTRL+I as well - is this an lo= gical shortcut > mapping?). > It automatically queries wikipedia (english) for a page with the same tit= le as the > artist that you're playing. Changes with the track you're playing. > I'm very tired. > This is accurate probably about 80% of the time...you'll usually find a d= isambiguation > page wherever it's lacking. > I'm also telling it to use the mediawiki "simple" skin to make it load fa= ster. > In the future I'll figure out how to remove the nav bar on the left as it= 's pretty much > useless (if you want to browse, use a web browser). > Note the debug output in the console - it shows the actual URL you're loo= king at. > > A few hours of hacking, and here you have it: > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > > Feedback is welcome, appreciated, and encouraged! I'll drop it in Banshe= e SVN at some > point so you can track progress (abock - do you mind me adding this?) > > MAJOR credit goes out to Fredrik Hedberg - more than half the code was ba= sed on the > banshee-recommendation-plugin. I'll rewrite some of it in the future to = fit my > situation, but it provided a GREAT starting point for me as I barely had = to think > twice about how to create the frame, enable/disable it with a toggle menu= item, etc. > Thanks Fredrik! > > Enjoy! Reply to the list or snag me on IRC (nick: trick) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > From gabriel.burt@gmail.com Fri Apr 28 14:51:25 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7F4633B18C8 for ; Fri, 28 Apr 2006 14:51:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10234-04 for ; Fri, 28 Apr 2006 14:51:24 -0400 (EDT) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.179]) by menubar.gnome.org (Postfix) with ESMTP id D7D353B186D for ; Fri, 28 Apr 2006 14:51:23 -0400 (EDT) Received: by pproxy.gmail.com with SMTP id 39so2394914pyu for ; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ip5uVHFHFKXlfT9XbGzeQ/F8w1zEb5d6ULSax4AtIptiWWuI8xZl+6Qw3q9iB2wHr1WOJ+/DAikPCFs/blI3Ot6+DQ1FUWcnw2NGeUi4gX8JfX8YuugFQHuB/KKp7jJs2WE8qfGaG3KvaDU5Q7Ot7tyfrhsivpkC7v+q3GrrhXk= Received: by 10.35.14.1 with SMTP id r1mr1960767pyi; Fri, 28 Apr 2006 11:51:23 -0700 (PDT) Received: by 10.35.106.14 with HTTP; Fri, 28 Apr 2006 11:51:22 -0700 (PDT) Message-ID: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Date: Fri, 28 Apr 2006 13:51:23 -0500 From: "Gabriel Burt" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.154 tagged_above=-999 required=2 tests=[AWL=0.222, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, SPF_PASS=-0.001] X-Spam-Score: -2.154 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:51:25 -0000 SGkgSmFtZXMsCgpPbiA0LzI4LzA2LCBKYW1lcyBTdGVtYnJpZGdlIDxqc3RlbWJyaWRnZUBnbWFp bC5jb20+IHdyb3RlOgo+IENvdXBsZSBtb3JlIG1pbm9yIGNoYW5nZXMuIEkndmUgYWRkZWQgdG8g Y2hlY2sgdG8gc2VlIGlmIEdub21lIFZGUyBoYXMKPiBhbHJlYWR5IGJlZW4gaW5pdGlhbGl6ZWQg YmVmb3JlIGluaXRpYWxpemluZyBpdCwgYW5kIChtb3JlCgpJJ20gbm90IHN1cmUgaWYgdGhlcmUn cyBhIHBlbmFsdHkgYXQgYWxsLCBidXQgdGhlIGRvY3Mgc2F5IGNhbGxpbmcKSW5pdGlhbGl6ZSBt dWx0aXBsZSB0aW1lcyBkb2Vzbid0IG1hdHRlciAtIGJ1dCB0aGlzIGlzIHRpbnkgcG9pbnQgbm90 CndvcnRoIHRhbGtpbmcgYWJvdXQuIDopCgo+IGltcG9ydGFudGx5KSB0cmllZCB0byBwcmV2ZW50 IHRoZSBtYXNzIHN0b3JhZ2UgcGx1Z2luIGFjY2VwdGluZwo+IG5vbi1nZW5lcmljIGRldmljZXMg bGlrZSBpUG9kcy4KCldlcmUgeW91IGhhdmluZyBhIHByb2JsZW0gd2l0aCBpdCB1c2luZyB0aGUg bWFzcyBzdG9yYWdlIHR5cGUgZm9yCmhhbmRsaW5nIGFuIGlQb2Q/ICBUaGF0IHNob3VsZCBub3Qg aGFwcGVuIGJlY2F1c2UgdGhlIG1hc3Mgc3RvcmFnZQpzdXBwb3J0IGlzIGxpc3RlZCBhcyBhIGdl bmVyaWMgRGFwVHlwZSwgYW5kIGRldmljZXMgYXJlIGNoZWNrZWQKYWdhaW5zdCBub24tZ2VuZXJp YyB0eXBlcyBmaXJzdC4KCkFsc28sIHdoZXJlIGRpZCB5b3UgZ2V0IHRoZSBwb3J0YWJsZV9hdWRp b19wbGF5ZXIudHlwZSBoYWwga2V5IGZyb20/IApJIGRvbid0IHNlZSBpdCBpbiB0aGUgc3BlYyBb MV0uCgpBbnkgd2F5LCB0aGFua3MgZm9yIHJldmlld2luZyB0aGUgY29kZSBhbmQgZm9yIHRoZSBo ZWxwIQoKR2FicmllbAoKWzFdIGh0dHA6Ly93ZWJjdnMuZnJlZWRlc2t0b3Aub3JnLypjaGVja291 dCovaGFsL2hhbC9kb2Mvc3BlYy9oYWwtc3BlYy5odG1sI2RldmljZS1wcm9wZXJ0aWVzLXBvcnRh YmxlX2F1ZGlvX3BsYXllcgo= From jstembridge@gmail.com Fri Apr 28 14:59:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F57B3B1986 for ; Fri, 28 Apr 2006 14:59:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10485-09 for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 2EACA3B222E for ; Fri, 28 Apr 2006 14:59:01 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so191504wra for ; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lg2hqVRaE1K092ouZ1RP/49L8tgTuDOPpIVk7vN3uXGfMYTHWq1khg+5cIpH+9v+QNhXSxElRanJx6GnIzWP1UqH4SHHr0/d0dzgwld0j7AEyvGUxKZHSb/N0C/M0mbkAow3DpZFFerC7qiVHvLC1N3dtihOPD3I/vPb9BR0cc0= Received: by 10.54.72.8 with SMTP id u8mr6840888wra; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 11:59:00 -0700 (PDT) Message-ID: <18bc366d0604281159u42bc56cdu76e21364fee5e54c@mail.gmail.com> Date: Fri, 28 Apr 2006 19:59:00 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.517 tagged_above=-999 required=2 tests=[AWL=0.083, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.517 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 18:59:04 -0000 Hi Gabriel, On 4/28/06, Gabriel Burt wrote: > I'm not sure if there's a penalty at all, but the docs say calling > Initialize multiple times doesn't matter - but this is tiny point not > worth talking about. :) OK, I spotted it somewhere else in passing and thought it might be a good i= dea. > Were you having a problem with it using the mass storage type for > handling an iPod? That should not happen because the mass storage > support is listed as a generic DapType, and devices are checked > against non-generic types first. Ah OK, I hadn't caught that subtlety. I just noticed the type hal key and thought we should probably check it. > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. Dapper fdi files, e.g. portable_audio_player portable_audio_playe= r storage ipod ... Cheers, James. From trick@vanstaveren.us Fri Apr 28 15:36:46 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 57BA03B09D1 for ; Fri, 28 Apr 2006 15:36:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12212-03 for ; Fri, 28 Apr 2006 15:36:39 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id DB6373B07B9 for ; Fri, 28 Apr 2006 15:36:38 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZYlZ-00085y-VM for banshee-list@gnome.org; Fri, 28 Apr 2006 12:36:37 -0700 Received: from fss061.faunce.wmich.edu (fss061.faunce.wmich.edu [141.218.170.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Fri, 28 Apr 2006 15:36:37 -0400 Message-ID: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> Date: Fri, 28 Apr 2006 15:36:37 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.170.61 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.59 tagged_above=-999 required=2 tests=[AWL=0.009, BAYES_00=-2.599] X-Spam-Score: -2.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:36:46 -0000 Interesting. It looks almost like you have the gecko-sharp libraries but not the underlying mozilla libraries (or your gecko-sharp library is pointing to the wrong location). Maybe I need to do something in my package to point to the proper location of a mozilla library. I don't know. I looked on my system for the library, and I found that it's libgtkembedmoz.so: trick@mc /usr/lib $ find | grep gtkembedmoz.so ./mozilla/libgtkembedmoz.so ./gecko-sdk/lib/libgtkembedmoz.so ./mozilla-firefox/libgtkembedmoz.so From the looks of it, your installation of gecko-sharp just doesn't have the library reference set up (properly). Maybe I need to include gecko-sharp.dll.config in the plugin install. trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat gecko-sharp.dll.config If I were you, I'd drop a copy of your gecko-sharp.dll.config into ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) LMK if you make any progress! Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from ghaefbgtk@gmail.com --------- Date: Fri, 28 Apr 2006 20:42:11 +0200 From: Nil Gradisnik Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Looking good. > > I'm getting an error when using this plugin on Banshee 0.10.9 > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck > > Any suggestions ? > > On 4/28/06, Trick van Staveren wrote: >> Howdy folks, >> >> Everyone likes screenshots, so I'll start with the screenie: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> I was reading the feature requests page, and I've noticed that as >> far back as I can >> remember, someone requested that banshee show artist information >> from wikipedia. At >> first I thought it was silly. Banshee is a music player, not a web >> browser! Well, >> needless to say, I've found myself such an addict to wikipedia for >> artist information, >> that earlier today I thought it'd be a neat idea to implement. >> >> Thus, the banshee-wikipedia-plugin was born. >> It's simple right now (and I plan to keep it as simple as possible). >> It's a Gecko widget dropped right below the library view. (Gecko == >> firefoz/mozilla >> rendering engine). >> It has a fixed size (for now). >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> an logical shortcut >> mapping?). >> It automatically queries wikipedia (english) for a page with the >> same title as the >> artist that you're playing. Changes with the track you're playing. >> I'm very tired. >> This is accurate probably about 80% of the time...you'll usually >> find a disambiguation >> page wherever it's lacking. >> I'm also telling it to use the mediawiki "simple" skin to make it >> load faster. >> In the future I'll figure out how to remove the nav bar on the left >> as it's pretty much >> useless (if you want to browse, use a web browser). >> Note the debug output in the console - it shows the actual URL >> you're looking at. >> >> A few hours of hacking, and here you have it: >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> Banshee SVN at some >> point so you can track progress (abock - do you mind me adding this?) >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> was based on the >> banshee-recommendation-plugin. I'll rewrite some of it in the >> future to fit my >> situation, but it provided a GREAT starting point for me as I barely >> had to think >> twice about how to create the frame, enable/disable it with a toggle >> menu item, etc. >> Thanks Fredrik! >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> http://www.trick.vanstaveren.us/ >> >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ----- End message from ghaefbgtk@gmail.com ----- From abockover@novell.com Fri Apr 28 15:42:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCF6D3B16A7 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12409-06 for ; Fri, 28 Apr 2006 15:42:56 -0400 (EDT) Received: from ms-smtp-03.southeast.rr.com (ms-smtp-03.southeast.rr.com [24.25.9.102]) by menubar.gnome.org (Postfix) with ESMTP id DB8733B0920 for ; Fri, 28 Apr 2006 15:42:55 -0400 (EDT) Received: from [192.168.0.103] (cpe-065-190-165-141.nc.res.rr.com [65.190.165.141]) by ms-smtp-03.southeast.rr.com (8.13.6/8.13.6) with ESMTP id k3SJgsfg010601 for ; Fri, 28 Apr 2006 15:42:54 -0400 (EDT) Subject: Re: [Banshee-List] Updated mass storage patch From: Aaron Bockover To: banshee-list@gnome.org In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> Content-Type: text/plain Date: Fri, 28 Apr 2006 15:39:47 -0400 Message-Id: <1146253187.2629.29.camel@sledipus.rex> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.475 tagged_above=-999 required=2 tests=[AWL=-0.076, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2] X-Spam-Score: -2.475 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 19:42:56 -0000 On Fri, 2006-04-28 at 13:51 -0500, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. I think portable_audio_player.type is now portable_audio_player.access_method. Either way, we sort of have an issue here. I guess the Mass Storage DAP should be forward-thinking and work only with the new spec (HEAD). But currently distros are shipping the old spec. NJB and iPod support in Banshee is based off keys from the old spec. These need to be forward-adapted for the new spec. --Aaron > Any way, thanks for reviewing the code and for the help! > > Gabriel > > [1] http://webcvs.freedesktop.org/*checkout*/hal/hal/doc/spec/hal-spec.html#device-properties-portable_audio_player > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list From m.j.hutchinson@gmail.com Fri Apr 28 16:03:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EFB33B158C for ; Fri, 28 Apr 2006 16:03:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13216-06 for ; Fri, 28 Apr 2006 16:03:43 -0400 (EDT) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188]) by menubar.gnome.org (Postfix) with ESMTP id AD23C3B04A8 for ; Fri, 28 Apr 2006 16:03:42 -0400 (EDT) Received: by nproxy.gmail.com with SMTP id m18so215777nfc for ; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bm1zIi0HyHPZNr3FQDVyf8fJWHBpYhLp/RktRZFjXhMtLlllKik6U/jThKxgLi7+MjIgYsghgt2TxRFykK5HB+YjvLNpPGG54tP3cX0vrtb5mPBG8ttJy1sNoA9Y+Aaj3dA/dHp94jZg1VPv4+VgTaFdi6eikbtjvcteg/pC/fQ= Received: by 10.48.12.19 with SMTP id 19mr6209526nfl; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Received: by 10.49.40.1 with HTTP; Fri, 28 Apr 2006 13:03:41 -0700 (PDT) Message-ID: Date: Fri, 28 Apr 2006 21:03:41 +0100 From: "Michael Hutchinson" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.483 tagged_above=-999 required=2 tests=[AWL=0.117, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.483 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:03:44 -0000 On 4/28/06, Trick van Staveren wrote: > Interesting. It looks almost like you have the gecko-sharp libraries > but not the > underlying mozilla libraries (or your gecko-sharp library is pointing > to the wrong > location). Maybe I need to do something in my package to point to the > proper location > of a mozilla library. I don't know. Yes, this is something you have to do in your package (though whether you should have to do it is another question...) The Mozilla libraries are often not in the library loader's path, for example in Debian and Ubuntu. This is because of the way they are versioned. Mono projects that use Gecko# often have a wrapper script that runs something like $LD_LIBRARY_PATH:/usr/lib/mozilla /path/to/actual/program.exe You can see an example of this at http://svn.myrealbox.com/viewcvs/trunk/aspeditor/script.in?view=3Dmarkup Note that it detects the mozilla path in the configure script. MonoDevelop has a more robust (and more complicated) method: http://svn.myrealbox.com/viewcvs/trunk/monodevelop/monodevelop.in?view=3Dma= rkup Michael From jstembridge@gmail.com Fri Apr 28 16:10:44 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 354A73B158C for ; Fri, 28 Apr 2006 16:10:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13907-05 for ; Fri, 28 Apr 2006 16:10:37 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.235]) by menubar.gnome.org (Postfix) with ESMTP id 5877D3B17E0 for ; Fri, 28 Apr 2006 16:10:36 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so205719wra for ; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=eksCIMim9SOcTZp+kQMRtqJhd5zSSmi9qLAqUSLyKvWwHYm+jpvlBH/XYV5e56uFhIveocwHIKc/RlIZU0Kscl6yegwEf2Ly3EzJYQgfRSZHXr9OhFpTW9X8SkN2geRdVwSEkbawlucv1TYSnzEc2a68QuJzcAKFPuFEQNKh94U= Received: by 10.54.112.16 with SMTP id k16mr2303711wrc; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Received: by 10.54.102.7 with HTTP; Fri, 28 Apr 2006 13:10:32 -0700 (PDT) Message-ID: <18bc366d0604281310w26cd92b9q3283aa223461f0f3@mail.gmail.com> Date: Fri, 28 Apr 2006 21:10:32 +0100 From: "James Stembridge" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Updated mass storage patch In-Reply-To: <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5479_24399094.1146255032170" References: <18bc366d0604281134q5a6071c7m6b704542d38bb451@mail.gmail.com> <24348e0604281151n7ac85c67reaf9734347474ca8@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[AWL=0.079, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.521 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 20:10:44 -0000 ------=_Part_5479_24399094.1146255032170 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/28/06, Gabriel Burt wrote: > Also, where did you get the portable_audio_player.type hal key from? > I don't see it in the spec [1]. OK, I've dropped the check as it doesn't seem necessary due to the priority given to non-generic plugins. The attached patch also adds support for players not recognised by hal at all, following the method used by rhythmbox of putting a file .is_audio_player in the root of the device. This change monkeys around with the device loading at startup, so I may well have inadvertently broken iPod/NJB support, but my best guess is that I haven't :-) Cheers, James. ------=_Part_5479_24399094.1146255032170 Content-Type: text/x-patch; name=mass-storage5.patch; charset=us-ascii Content-Transfer-Encoding: 7bit X-Attachment-Id: f_emkymw86 Content-Disposition: attachment; filename="mass-storage5.patch" Index: ChangeLog =================================================================== RCS file: /cvs/gnome/banshee/ChangeLog,v retrieving revision 1.453 diff -u -r1.453 ChangeLog --- ChangeLog 20 Apr 2006 18:05:14 -0000 1.453 +++ ChangeLog 28 Apr 2006 20:04:43 -0000 @@ -1,3 +1,37 @@ +2006-04-28 James Stembridge + + * src/Banshee.Base/Dap/DapCore.cs: Include all volumes when performing + initial scan for DAP devices, not just those that are children of + devices tagged by hal with portable_audio_player + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Check for duplicates + when adding a song to the device; don't use the volumel label for the + device name if it's blank; if the volume for a new device isn't yet + available from VFS, wait for it; don't initialize Gnome VFS if it's + already been initialized; accept devices with a file .is_audio_player + in the root + +2006-04-28 Gabriel Burt + + * src/Banshee.Base/Makefile.am: Add QueuedOperationManager.cs + + * src/Banshee.Base/QueuedOperationManager.cs: New file, allows for generic + asynchronous events like copying files to a USB DAP, etc. + + * src/Banshee.Base/Dap/Dap.cs: Add EmitTrackAdded method and allow + sub-classes to override AddTrack + + * src/Banshee.Dap/MassStorage/MassStorageDap.cs: Fix the bug where the DAP + couldn't be plugged in when Banshee started; handle copying files to the + device asynchronously using a QueuedOperationManager that pops up a + ActiveUserEvent if the transfer is slow; escape artist/album/title when + creating the destination filename and catch exceptions in the copy + + * src/Banshee.Widets/ActiveUserEvent.cs: Add an option for having the user + event not register itself (and therefore not show itself) until at least a + second has passed, at which time if the operation is less than 33% done, + it is registered and shown (and otherwise it is not) + 2006-04-20 Aaron Bockover * src/Banshee.MediaEngine/Helix/HelixRemotePlayer.cs: Added GetIsLive Index: src/Banshee.Base/Makefile.am =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Makefile.am,v retrieving revision 1.29 diff -u -r1.29 Makefile.am --- src/Banshee.Base/Makefile.am 18 Apr 2006 03:25:40 -0000 1.29 +++ src/Banshee.Base/Makefile.am 28 Apr 2006 20:04:44 -0000 @@ -100,6 +100,7 @@ $(srcdir)/LibraryTrackInfo.cs \ $(srcdir)/FileTrackInfo.cs \ $(srcdir)/DBusRemote.cs \ + $(srcdir)/QueuedOperationManager.cs \ $(srcdir)/QueuedSqliteDatabase.cs \ $(srcdir)/AudioCdRipper.cs \ $(srcdir)/IImportSource.cs \ Index: src/Banshee.Base/Dap/Dap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/Dap.cs,v retrieving revision 1.16 diff -u -r1.16 Dap.cs --- src/Banshee.Base/Dap/Dap.cs 17 Apr 2006 17:44:10 -0000 1.16 +++ src/Banshee.Base/Dap/Dap.cs 28 Apr 2006 20:04:45 -0000 @@ -123,7 +123,7 @@ private uint uid; private PropertyTable properties = new PropertyTable(); - private ArrayList tracks = new ArrayList(); + protected ArrayList tracks = new ArrayList(); private ActiveUserEvent save_report_event; private bool is_syncing = false; private bool can_cancel_save = true; @@ -188,7 +188,7 @@ OnPropertiesChanged(); } - public void AddTrack(TrackInfo track) + public virtual void AddTrack(TrackInfo track) { TrackInfo dap_track = OnTrackAdded(track); @@ -537,6 +537,12 @@ return new SafeUri(dir + Path.DirectorySeparatorChar + ".banshee-dap-" + file + "." + newext); + } + + protected void EmitTrackAdded (TrackInfo track) + { + if(TrackAdded != null) + TrackAdded(this, new DapTrackListUpdatedArgs(track)); } public virtual Gdk.Pixbuf GetIcon(int size) Index: src/Banshee.Base/Dap/DapCore.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Base/Dap/DapCore.cs,v retrieving revision 1.11 diff -u -r1.11 DapCore.cs --- src/Banshee.Base/Dap/DapCore.cs 3 Mar 2006 07:46:54 -0000 1.11 +++ src/Banshee.Base/Dap/DapCore.cs 28 Apr 2006 20:04:45 -0000 @@ -149,23 +149,17 @@ private static void BuildDeviceTable() { + // All volume devices, should cover all storage based players foreach(Device device in Device.FindByStringMatch(HalCore.Context, + "info.category", "volume")) { + AddDevice(device); + } + + // None storage based players + foreach(Device device in Device.FindByStringMatch(HalCore.Context, "info.category", "portable_audio_player")) { - // Find the actual storage device that is mountable; - // this should probably just be possible by accessing - // portable_audio_player.storage_device, but for me - // as of HAL 0.5.6, this property just points to its own UDI - if(device["portable_audio_player.access_method"] == "storage" && - !device.GetPropertyBool("block.is_volume")) { - foreach(Device storage_device in Hal.Device.FindByStringMatch(device.Context, - "info.parent", device.Udi)) { - if(AddDevice(storage_device)) { - break; - } - } - } else { + if(device["portable_audio_player.access_method"] != "storage") AddDevice(device); - } } } Index: src/Banshee.Dap/MassStorage/MassStorageDap.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Dap/MassStorage/MassStorageDap.cs,v retrieving revision 1.6 diff -u -r1.6 MassStorageDap.cs --- src/Banshee.Dap/MassStorage/MassStorageDap.cs 9 Apr 2006 21:30:26 -0000 1.6 +++ src/Banshee.Dap/MassStorage/MassStorageDap.cs 28 Apr 2006 20:04:46 -0000 @@ -45,7 +45,9 @@ private static Gnome.Vfs.VolumeMonitor monitor; static MassStorageDap () { - Gnome.Vfs.Vfs.Initialize (); + if (!Gnome.Vfs.Vfs.Initialized) + Gnome.Vfs.Vfs.Initialize(); + monitor = Gnome.Vfs.VolumeMonitor.Get (); } @@ -63,46 +65,60 @@ player_device = Hal.Device.UdisToDevices (volume_device.Context, new string [] {volume_device ["info.parent"]}) [0]; usb_device = Hal.Device.UdisToDevices (player_device.Context, new string [] {player_device ["storage.physical_device"]}) [0]; } catch (Exception e) { - return InitializeResult.Invalid; - } - - if (!player_device.PropertyExists ("portable_audio_player.access_method") || - player_device ["portable_audio_player.access_method"] != "storage" || - !usb_device.PropertyExists("usb.vendor_id") || - !usb_device.PropertyExists("usb.product_id") || - !volume_device.PropertyExists("block.device")) { return InitializeResult.Invalid; } - if(!volume_device.PropertyExists ("volume.is_mounted") || - !volume_device.GetPropertyBool("volume.is_mounted")) + if (!volume_device.PropertyExists("block.device")) + return InitializeResult.Invalid; + + if (!volume_device.PropertyExists ("volume.is_mounted") || + !volume_device.GetPropertyBool("volume.is_mounted")) return InitializeResult.WaitForPropertyChange; - - string block_device = volume_device ["block_device"]; - foreach (Gnome.Vfs.Volume vol in monitor.MountedVolumes) { - if (vol.DevicePath == block_device) { - this.volume = vol; - break; - } - } - - if (volume == null) + // Detect player via HAL property or presence of .is_audo_player in root + if (player_device["portable_audio_player.access_method"] != "storage" && + !File.Exists(Path.Combine(MountPoint, ".is_audio_player"))) { return InitializeResult.Invalid; - - is_read_only = volume.IsReadOnly; + } + + volume = monitor.GetVolumeForPath(MountPoint); + if(volume == null) { + // Gnome VFS doesn't know volume is mounted yet + monitor.VolumeMounted += OnVolumeMounted; + is_read_only = true; + } else { + is_read_only = volume.IsReadOnly; + } base.Initialize (usb_device); InstallProperty("Vendor", usb_device["usb.vendor"]); - ReloadDatabase(); + if(!Globals.UIManager.IsInitialized) { + Globals.UIManager.Initialized += OnUIManagerInitialized; + } else { + ReloadDatabase(); + } // FIXME probably should be able to cancel at some point when you can actually sync CanCancelSave = false; return InitializeResult.Valid; } + private void OnVolumeMounted(object o, Gnome.Vfs.VolumeMountedArgs args) { + if(args.Volume.DevicePath == volume_device["block.device"]) { + monitor.VolumeMounted -= OnVolumeMounted; + + volume = args.Volume; + is_read_only = volume.IsReadOnly; + } + } + + private void OnUIManagerInitialized(object o, EventArgs args) + { + ReloadDatabase (); + } + public override void Dispose() { // FIXME anything else to do here? @@ -145,7 +161,8 @@ public override void Eject () { - volume.Unmount (UnmountCallback); + if(volume != null) + volume.Unmount (UnmountCallback); } private void UnmountCallback (bool succeeded, string error, string detailed_error) @@ -163,17 +180,42 @@ else Console.WriteLine ("Failed to eject. {1} {2}", error, detailed_error); } + + public override void AddTrack(TrackInfo track) + { + if (track == null || TrackExistsInList(track, tracks) || IsReadOnly) + return; + + // If we're "adding" it when it's already on the device, then + // we don't need to copy it + if (track is MassStorageTrackInfo) { + tracks.Add(track); + EmitTrackAdded(track); + } else { + Copier.Enqueue (track); + } + } - protected override TrackInfo OnTrackAdded(TrackInfo track) + private void HandleCopyRequested (object o, QueuedOperationArgs args) { - if (track is MassStorageTrackInfo || IsReadOnly) - return track; + TrackInfo track = args.Object as TrackInfo; - string new_path = GetTrackPath (track); - Directory.CreateDirectory (Path.GetDirectoryName (new_path)); - File.Copy (track.Uri.LocalPath, new_path); + if (track == null) + return; + + try { + string new_path = GetTrackPath (track); + Directory.CreateDirectory (Path.GetDirectoryName (new_path)); + File.Copy (track.Uri.LocalPath, new_path); + + TrackInfo new_track = new MassStorageTrackInfo (new SafeUri (new_path)); + tracks.Add(new_track); + EmitTrackAdded(track); - return new MassStorageTrackInfo (new SafeUri (new_path)); + args.ReturnMessage = String.Format("{0} - {1}", track.Artist, track.Title); + } catch (Exception e) { + args.ReturnMessage = String.Format("Skipping Song", track.Artist, track.Title); + } } protected override void OnTrackRemoved(TrackInfo track) @@ -213,19 +255,24 @@ private string GetTrackPath (TrackInfo track) { string file_path = ""; + + string artist = FileNamePattern.Escape (track.Artist); + string album = FileNamePattern.Escape (track.Album); + string number_title = FileNamePattern.Escape (track.TrackNumberTitle); + if (player_device.PropertyExists ("portable_audio_player.filepath_format")) { file_path = player_device.GetPropertyString ("portable_audio_player.filepath_format"); - file_path = file_path.Replace ("%Artist", track.Artist); - file_path = file_path.Replace ("%Album", track.Album); + file_path = file_path.Replace ("%Artist", artist); + file_path = file_path.Replace ("%Album", album); if (file_path.IndexOf ("%Track") == -1) { - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (file_path, number_title); } else { - file_path = file_path.Replace ("%Track", track.TrackNumberTitle); + file_path = file_path.Replace ("%Track", number_title); } } else { - file_path = System.IO.Path.Combine (track.Artist, track.Album); - file_path = System.IO.Path.Combine (file_path, track.TrackNumberTitle); + file_path = System.IO.Path.Combine (artist, album); + file_path = System.IO.Path.Combine (file_path, number_title); } file_path += Path.GetExtension (track.Uri.LocalPath); @@ -234,6 +281,21 @@ return System.IO.Path.Combine (MountPoint, file_path); } + private QueuedOperationManager copier; + public QueuedOperationManager Copier { + get { + if (copier == null) { + copier = new QueuedOperationManager (); + copier.ActionMessage = Catalog.GetString ("Copying Songs"); + copier.ProgressMessage = Catalog.GetString ("Copying {0} of {1}"); + copier.OperationRequested += HandleCopyRequested; + } + + return copier; + } + set { copier = value; } + } + public virtual string IconId { get { return null; @@ -242,7 +304,8 @@ public override string Name { get { - if (volume_device.PropertyExists("volume.label")) + if (volume_device.PropertyExists("volume.label") && + volume_device["volume.label"].Length > 0) return volume_device["volume.label"]; if (player_device.PropertyExists("info.product")) Index: src/Banshee.Widgets/ActiveUserEvent.cs =================================================================== RCS file: /cvs/gnome/banshee/src/Banshee.Widgets/ActiveUserEvent.cs,v retrieving revision 1.7 diff -u -r1.7 ActiveUserEvent.cs --- src/Banshee.Widgets/ActiveUserEvent.cs 13 Feb 2006 22:18:14 -0000 1.7 +++ src/Banshee.Widgets/ActiveUserEvent.cs 28 Apr 2006 20:04:46 -0000 @@ -49,6 +49,7 @@ private string header; private uint timeout_id = 0; + private uint slow_timeout_id = 0; private bool disposed = false; public event EventHandler Disposed; @@ -56,8 +57,10 @@ private bool cancel_requested; private bool can_cancel; - - public ActiveUserEvent(string name) + + public ActiveUserEvent(string name) : this (name, false) {} + + public ActiveUserEvent(string name, bool delay_show) { tips = new Tooltips(); @@ -117,7 +120,11 @@ table.ShowAll(); - ActiveUserEventsManager.Instance.Register(this); + Console.WriteLine ("Delay show = {0}", delay_show); + if (delay_show) + slow_timeout_id = GLib.Timeout.Add(1000, OnCheckForDisplay); + else + ActiveUserEventsManager.Instance.Register(this); } public void Cancel() @@ -138,10 +145,34 @@ GLib.Source.Remove(timeout_id); timeout_id = 0; } + + if(slow_timeout_id > 0) { + GLib.Source.Remove(slow_timeout_id); + slow_timeout_id = 0; + } if(Disposed != null) { Disposed(this, new EventArgs()); } + } + + private bool OnCheckForDisplay() + { + Console.WriteLine ("OnCheckForDisplay called.."); + if (disposed) + return false; + + Console.WriteLine ("...and not disposed.."); + + // If the event has not made enough progress, show this event + if (Progress < 0.33) { + Console.WriteLine ("Didn't make enough progress, showing action event"); + ActiveUserEventsManager.Instance.Register(this); + } else { + Console.WriteLine ("Made enough progress, not showing action event"); + } + + return false; } private bool OnTimeout() --- /dev/null 2006-04-24 16:37:02.000000000 +0100 +++ src/Banshee.Base/QueuedOperationManager.cs 2006-04-17 20:03:08.000000000 +0100 @@ -0,0 +1,196 @@ +/*************************************************************************** + * QueuedOperationManager.cs + * + * Copyright (C) 2006 Novell, Inc. + * Written by Aaron Bockover + ****************************************************************************/ + +/* THIS FILE IS LICENSED UNDER THE MIT LICENSE AS OUTLINED IMMEDIATELY BELOW: + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +using System; +using System.Collections; +using System.IO; +using System.Threading; +using Mono.Unix; +using Mono.Unix.Native; +using Gtk; + +using Banshee.Widgets; + +namespace Banshee.Base +{ + public delegate void QueuedOperationHandler(object o, QueuedOperationArgs args); + + public class QueuedOperationArgs : EventArgs + { + public object Object; + public string ReturnMessage; + } + + public class QueuedOperationManager + { + private class OperationCanceledException : ApplicationException + { + } + + private Queue object_queue; + private int total_count; + private int processed_count; + private bool processing_queue = false; + + private ActiveUserEvent user_event; + public ActiveUserEvent UserEvent { + get { + CreateUserEvent(); + return user_event; + } + } + + public event QueuedOperationHandler OperationRequested; + + public QueuedOperationManager() + { + object_queue = new Queue(); + } + + private void CreateUserEvent() + { + if(user_event == null) { + user_event = new ActiveUserEvent(ActionMessage, true); + user_event.Icon = IconThemeUtils.LoadIcon(22, "system-search", Stock.Find); + lock(user_event) { + total_count = 0; + processed_count = 0; + } + } + } + + private void DestroyUserEvent() + { + if(user_event != null) { + lock(user_event) { + user_event.Dispose(); + user_event = null; + total_count = 0; + processed_count = 0; + } + } + } + + private void UpdateCount(string message) + { + CreateUserEvent(); + processed_count++; + + double new_progress = (double)processed_count / (double)total_count; + double old_progress = user_event.Progress; + + if(new_progress >= 0.0 && new_progress <= 1.0 && Math.Abs(new_progress - old_progress) > 0.001) { + string disp_progress = String.Format(ProgressMessage, processed_count, total_count); + + user_event.Header = disp_progress; + user_event.Message = message; + user_event.Progress = new_progress; + } + } + + private void CheckForCanceled() + { + if(user_event != null && user_event.IsCancelRequested) { + throw new OperationCanceledException(); + } + } + + private void FinalizeOperation() + { + object_queue.Clear(); + processing_queue = false; + DestroyUserEvent(); + } + + public void Enqueue(object obj) + { + CreateUserEvent(); + ThreadAssist.Spawn(delegate { + try { + lock(object_queue.SyncRoot) { + if(object_queue.Contains(obj)) { + return; + } + + total_count++; + object_queue.Enqueue(obj); + } + + ProcessQueue(); + } catch(OperationCanceledException) { + FinalizeOperation(); + } + }); + } + + private void ProcessQueue() + { + lock (object_queue.SyncRoot) { + if(processing_queue) + return; + else + processing_queue = true; + } + + CreateUserEvent(); + + while(object_queue.Count > 0) { + CheckForCanceled(); + + object obj = object_queue.Dequeue(); + + QueuedOperationHandler handler = OperationRequested; + if(handler != null && obj != null) { + QueuedOperationArgs args = new QueuedOperationArgs(); + args.Object = obj; + handler(this, args); + UpdateCount(args.ReturnMessage); + } else { + UpdateCount(null); + } + } + + object_queue.Clear(); + processing_queue = false; + + DestroyUserEvent(); + } + + private string action_message; + public string ActionMessage { + get { return action_message; } + set { action_message = value; } + } + private string progress_message; + public string ProgressMessage { + get { return progress_message; } + set { progress_message = value; } + } + } +} + ------=_Part_5479_24399094.1146255032170-- From trick@vanstaveren.us Sat Apr 29 14:15:56 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DEA4C3B0187 for ; Sat, 29 Apr 2006 14:15:55 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07090-06 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 909733B0380 for ; Sat, 29 Apr 2006 14:15:51 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1FZtyw-0004Ar-B0; Sat, 29 Apr 2006 11:15:50 -0700 Received: from 24-247-125-4.dhcp.klmz.mi.charter.com (24-247-125-4.dhcp.klmz.mi.charter.com [24.247.125.4]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sat, 29 Apr 2006 14:15:50 -0400 Message-ID: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> Date: Sat, 29 Apr 2006 14:15:50 -0400 From: Trick van Staveren To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> In-Reply-To: <1146319138.6018.4.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 24.247.125.4 X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: banshee-list@gnome.org X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 18:15:56 -0000 Excellent! This is what OSS is all about :) Patches are more than just welcome - they're encouraged. If you've got a better way of doing this, don't hesitate to contribute :) I haven't changed it much since 0.0.1, other than I've been experimenting with using google searches of wikipedia to better find the right pages - for instance, when I play a song by Kansas, I get info about the state. Searching google for 'kansas band' returns only results with both words in it, and I use the auto-redirect to push it to wikipedia. It seems to return better results (about 95% of the time I get the correct page, versus right now probably only 75%). Aside that, patch away my friend! I will be putting this in the banshee SVN or my personal SVN (which I'm setting up this weekend) and we can work together better :) I look forward to it! -Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from indecent@picle.org --------- Date: Sat, 29 Apr 2006 15:58:58 +0200 From: indecent Reply-To: indecent@picle.org Subject: Re: [Banshee-List] Wikipedia plugin To: trick@vanstaveren.us > Hello, > My Name is David Schneider, I#m a cs student from Germany. > Some time ago i started writing a similar plugin for muine, but for > differtent reasons i never finished it. I had used a x-path based > aproach to parse the wikipedia pages. So if you don't mind i'd love to > contribute to the banshee-wikipedia plugin. > > David > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> Interesting. It looks almost like you have the gecko-sharp libraries >> but not the >> underlying mozilla libraries (or your gecko-sharp library is pointing >> to the wrong >> location). Maybe I need to do something in my package to point to the >> proper location >> of a mozilla library. I don't know. >> I looked on my system for the library, and I found that it's >> libgtkembedmoz.so: >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> ./mozilla/libgtkembedmoz.so >> ./gecko-sdk/lib/libgtkembedmoz.so >> ./mozilla-firefox/libgtkembedmoz.so >> >> From the looks of it, your installation of gecko-sharp just doesn't >> have the library >> reference set up (properly). Maybe I need to include >> gecko-sharp.dll.config in the >> plugin install. >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you :) >> >> LMK if you make any progress! >> >> Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> From: Nil Gradisnik >> Reply-To: banshee-list@gnome.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: banshee-list@gnome.org >> >> >> > Looking good. >> > >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not found. >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no luck >> > >> > Any suggestions ? >> > >> > On 4/28/06, Trick van Staveren wrote: >> >> Howdy folks, >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> far back as I can >> >> remember, someone requested that banshee show artist information >> >> from wikipedia. At >> >> first I thought it was silly. Banshee is a music player, not a web >> >> browser! Well, >> >> needless to say, I've found myself such an addict to wikipedia for >> >> artist information, >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> firefoz/mozilla >> >> rendering engine). >> >> It has a fixed size (for now). >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> an logical shortcut >> >> mapping?). >> >> It automatically queries wikipedia (english) for a page with the >> >> same title as the >> >> artist that you're playing. Changes with the track you're playing. >> >> I'm very tired. >> >> This is accurate probably about 80% of the time...you'll usually >> >> find a disambiguation >> >> page wherever it's lacking. >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> load faster. >> >> In the future I'll figure out how to remove the nav bar on the left >> >> as it's pretty much >> >> useless (if you want to browse, use a web browser). >> >> Note the debug output in the console - it shows the actual URL >> >> you're looking at. >> >> >> >> A few hours of hacking, and here you have it: >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> Banshee SVN at some >> >> point so you can track progress (abock - do you mind me adding this?) >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> was based on the >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> future to fit my >> >> situation, but it provided a GREAT starting point for me as I barely >> >> had to think >> >> twice about how to create the frame, enable/disable it with a toggle >> >> menu item, etc. >> >> Thanks Fredrik! >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > _______________________________________________ >> > Banshee-list mailing list >> > Banshee-list@gnome.org >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> > >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > > ----- End message from indecent@picle.org ----- From jasl8r@gmail.com Sat Apr 29 17:45:38 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DAAF3B02DF for ; Sat, 29 Apr 2006 17:45:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15587-06 for ; Sat, 29 Apr 2006 17:45:29 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id 10B5D3B0255 for ; Sat, 29 Apr 2006 17:45:28 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id 68so367226wra for ; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DlCKFLg9qkAWjVHgBqB9S48InVj3sHHUNgcdm1AlYDb9lFQ6nnFFfO7EQAka/b0x00NxGc4fFmVGIMfwsFDOTEYXxIZ0nsvguGirn3/qSBy8bxNrPYkTLivU8OBqNV79ovFBpFjud5n/siKOIga+Pk5zh1E+WOFxvXcIQMsFX5k= Received: by 10.54.91.16 with SMTP id o16mr1256135wrb; Sat, 29 Apr 2006 14:43:58 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sat, 29 Apr 2006 14:45:28 -0700 (PDT) Message-ID: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> Date: Sat, 29 Apr 2006 17:45:28 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14006_24167613.1146347128392" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.028 tagged_above=-999 required=2 tests=[AWL=0.197, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001] X-Spam-Score: -2.028 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2006 21:45:38 -0000 ------=_Part_14006_24167613.1146347128392 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to go to the band specific page with the attached "_(band)" in the url which exists when disambiguation is needed. Then if that page "does not have an article" or whatnot you can go to the page without the attached "_(band)" i= n the url. I don't know if that would be more accurate than google or not. Jeremy On 4/29/06, Trick van Staveren wrote: > > Excellent! This is what OSS is all about :) > > Patches are more than just welcome - they're encouraged. If you've got > a better way of > doing this, don't hesitate to contribute :) > > I haven't changed it much since 0.0.1, other than I've been > experimenting with using > google searches of wikipedia to better find the right pages - for > instance, when I > play a song by Kansas, I get info about the state. Searching google > for 'kansas band' > returns only results with both words in it, and I use the auto-redirect > to push it to > wikipedia. It seems to return better results (about 95% of the time I > get the correct > page, versus right now probably only 75%). Aside that, patch away my > friend! > > I will be putting this in the banshee SVN or my personal SVN (which I'm > setting up this > weekend) and we can work together better :) > > I look forward to it! > > -Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from indecent@picle.org --------- > Date: Sat, 29 Apr 2006 15:58:58 +0200 > From: indecent > Reply-To: indecent@picle.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: trick@vanstaveren.us > > > > Hello, > > My Name is David Schneider, I#m a cs student from Germany. > > Some time ago i started writing a similar plugin for muine, but > for > > differtent reasons i never finished it. I had used a x-path based > > aproach to parse the wikipedia pages. So if you don't mind i'd love to > > contribute to the banshee-wikipedia plugin. > > > > David > > > > > > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> Interesting. It looks almost like you have the gecko-sharp libraries > >> but not the > >> underlying mozilla libraries (or your gecko-sharp library is pointing > >> to the wrong > >> location). Maybe I need to do something in my package to point to the > >> proper location > >> of a mozilla library. I don't know. > >> I looked on my system for the library, and I found that it's > >> libgtkembedmoz.so: > >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> ./mozilla/libgtkembedmoz.so > >> ./gecko-sdk/lib/libgtkembedmoz.so > >> ./mozilla-firefox/libgtkembedmoz.so > >> > >> From the looks of it, your installation of gecko-sharp just doesn't > >> have the library > >> reference set up (properly). Maybe I need to include > >> gecko-sharp.dll.config in the > >> plugin install. > >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat > >> gecko-sharp.dll.config > >> > >> > >> > >> > >> > >> > >> > >> > >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you > :) > >> > >> LMK if you make any progress! > >> > >> Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from ghaefbgtk@gmail.com --------- > >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> From: Nil Gradisnik > >> Reply-To: banshee-list@gnome.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: banshee-list@gnome.org > >> > >> > >> > Looking good. > >> > > >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > found. > >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > luck > >> > > >> > Any suggestions ? > >> > > >> > On 4/28/06, Trick van Staveren wrote: > >> >> Howdy folks, > >> >> > >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> > >> >> I was reading the feature requests page, and I've noticed that as > >> >> far back as I can > >> >> remember, someone requested that banshee show artist information > >> >> from wikipedia. At > >> >> first I thought it was silly. Banshee is a music player, not a web > >> >> browser! Well, > >> >> needless to say, I've found myself such an addict to wikipedia for > >> >> artist information, > >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> > >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> It's simple right now (and I plan to keep it as simple as possible)= . > >> >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D > >> >> firefoz/mozilla > >> >> rendering engine). > >> >> It has a fixed size (for now). > >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this > >> >> an logical shortcut > >> >> mapping?). > >> >> It automatically queries wikipedia (english) for a page with the > >> >> same title as the > >> >> artist that you're playing. Changes with the track you're playing. > >> >> I'm very tired. > >> >> This is accurate probably about 80% of the time...you'll usually > >> >> find a disambiguation > >> >> page wherever it's lacking. > >> >> I'm also telling it to use the mediawiki "simple" skin to make it > >> >> load faster. > >> >> In the future I'll figure out how to remove the nav bar on the left > >> >> as it's pretty much > >> >> useless (if you want to browse, use a web browser). > >> >> Note the debug output in the console - it shows the actual URL > >> >> you're looking at. > >> >> > >> >> A few hours of hacking, and here you have it: > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> > >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in > >> >> Banshee SVN at some > >> >> point so you can track progress (abock - do you mind me adding > this?) > >> >> > >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code > >> >> was based on the > >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> future to fit my > >> >> situation, but it provided a GREAT starting point for me as I barel= y > >> >> had to think > >> >> twice about how to create the frame, enable/disable it with a toggl= e > >> >> menu item, etc. > >> >> Thanks Fredrik! > >> >> > >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > _______________________________________________ > >> > Banshee-list mailing list > >> > Banshee-list@gnome.org > >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > >> > >> > >> ----- End message from ghaefbgtk@gmail.com ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > > > ----- End message from indecent@picle.org ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_14006_24167613.1146347128392 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Not sure if this is a good suggestion or not, but what if you first try to = go to the band specific page with the attached "_(band)" in the u= rl which exists when disambiguation is needed.  Then if that page &quo= t;does not have an article" or whatnot you can go to the page without = the attached "_(band)" in the url.  I don't know if that wou= ld be more accurate than google or not.

Jeremy

On 4/29/06, Trick van Staveren <trick@vanstaveren.us> wrote:
Excellent!  This is what OSS is all about :)

Patches are m= ore than just welcome - they're encouraged.  If you've got
a b= etter way of
doing this, don't hesitate to contribute :)

I haven'= t changed it much since=20 0.0.1, other than I've been
experimenting with using
google searches = of wikipedia to better find the right pages - for
instance, when I
pl= ay a song by Kansas, I get info about the state.  Searching googl= e
for 'kansas band'
returns only results with both words in it, and I use the auto-redirect=
to push it to
wikipedia.  It seems to return better result= s (about 95% of the time I
get the correct
page, versus right now pro= bably only 75%).  Aside that, patch away my friend!

I will be putting this in the banshee SVN or my personal SVN (which= I'm
setting up this
weekend) and we can work together better :)
<= br>I look forward to it!

-Patrick

--
Patrick "Trick&q= uot; van Staveren
Western Michigan University
AIM: goofyassmoose
Cell: 269.267.6008=
http://www.trick.vanstaver= en.us/


----- Message from indecent@picle.org ---------
    Date: Sat, 29 A= pr 2006 15:58:58 +0200
    From: indecent <indecent@picle.org>
Reply-To: indecent@picle.org
Subject: Re: [Banshee-List] Wikipedia plugin
   &= nbsp;  To: trick@vanstave= ren.us


> Hello,
> My Name is David Schneider, I#m a= cs student from Germany.
>       Some time ago i started writing a = similar plugin for muine, but for
> differtent reasons i never finish= ed it. I had used a x-path based
> aproach to parse the wikipedia pag= es. So if you don't mind i'd love to
> contribute to the banshee-wikipedia plugin.
>
> David<= br>>
>
> Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Tri= ck van Staveren:
>> Interesting.  It looks almost like y= ou have the gecko-sharp libraries
>> but not the
>> underlying mozilla libraries (or your = gecko-sharp library is pointing
>> to the wrong
>> locati= on).  Maybe I need to do something in my package to point to the<= br>>> proper location
>> of a mozilla library.  I don't know.
>> I l= ooked on my system for the library, and I found that it's
>> libgt= kembedmoz.so:
>> trick@mc /usr/lib $ find | grep gtkembedmoz.so>> ./mozilla/libgtkembedmoz.so
>> ./gecko-sdk/lib/libgtkembedmoz.so
>> ./mozilla-firefo= x/libgtkembedmoz.so
>>
>>  From the looks of it= , your installation of gecko-sharp just doesn't
>> have the librar= y
>> reference set up (properly).  Maybe I need to inclu= de
>> gecko-sharp.dll.config in the
>> plugin install.
&= gt;> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ = cat
>> gecko-sharp.dll.config
>> <configuration>
>>   <dllmap dll=3D"libglib-2.0-0.dll" tar= get=3D"libglib-2.0.so.0"/>
>>   <dllmap = dll=3D"libgobject-2.0-0.dll" target=3D"libgobject-2.0.so.0&q= uot;/>
>>   <dllmap dll=3D" libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>
>>= ;   <dllmap dll=3D"libgtk-win32-2.0-0.dll" target=3D= "libgtk-x11-2.0.so.0"/>
>>   <dllmap dll= =3D"gtkembedmoz.dll " target=3D"libgtkembedmoz.so"/>
>> </configu= ration>
>>
>> If I were you, I'd drop a copy of your g= ecko-sharp.dll.config into
>> ~/.gnome2/banshee/plugins and see wh= at happens!  Might fix it for you :)
>>
>> LMK if you make any progress!
>>
>&= gt; Patrick
>>
>> --
>> Patrick "Trick"= ; van Staveren
>> Western Michigan University
>> AIM: goo= fyassmoose
>> Cell: 269.267.6008
>> http://www.trick.vanstaveren.us/
>>
>><= br>>> ----- Message from ghaef= bgtk@gmail.com ---------
>>     Date: Fri, 28 Apr 2006 2= 0:42:11 +0200
>>     From: Nil Gradisnik <<= a href=3D"mailto:ghaefbgtk@gmail.com">ghaefbgtk@gmail.com>
>&g= t; Reply-To: banshee-list@gnome.org
>> Subject: Re: [Banshee-List] Wikipedi= a plugin
>>       To: banshee-list@gnome.org
>>
>&= gt;
>> > Looking good.
>> >
>> > I'm getting an error when using this plu= gin on Banshee 0.10.9
>> > The exception is thrown by Gecko.Web= Control -> gtkembedmoz.so not found.
>> > I linked the mozil= las=20 libgtkembedmoz.so to /usr/lib/ and still no luck
>> >
>&g= t; > Any suggestions ?
>> >
>> > On 4/28/06, Tri= ck van Staveren <trick@vanstaver= en.us > wrote:
>> >> Howdy folks,
>> >>
&= gt;> >> Everyone likes screenshots, so I'll start with the screeni= e:
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png<= /a>
>> >>
>> >> I was reading the feature req= uests page, and I've noticed that as
>> >> far back as I can
>> >> remember, someone requested that banshee show artist = information
>> >> from wikipedia.  At
>> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> browser!  Well,
>> >> needless to say, I've found myself such an addict to = wikipedia for
>> >> artist information,
>> >>= that earlier today I thought it'd be a neat idea to implement.
>>= >>
>> >> Thus, the banshee-wikipedia-plugin was born.
>&= gt; >> It's simple right now (and I plan to keep it as simple as poss= ible).
>> >> It's a Gecko widget dropped right below the lib= rary view. (Gecko =3D=3D
>> >> firefoz/mozilla
>> >> rendering engine= ).
>> >> It has a fixed size (for now).
>> >>= It can be hidden/shown from the View menu (CTRL+I as well - is this
>> >> an logical shortcut
>> >> mapping?).
&g= t;> >> It automatically queries wikipedia (english) for a page wit= h the
>> >> same title as the
>> >> artist th= at you're playing.  Changes with the track you're playing.
>> >> I'm very tired.
>> >> This is accurate= probably about 80% of the time...you'll usually
>> >> find = a disambiguation
>> >> page wherever it's lacking.
>&g= t; >> I'm also telling it to use the mediawiki "simple" ski= n to make it
>> >> load faster.
>> >> In the future I'll = figure out how to remove the nav bar on the left
>> >> as it= 's pretty much
>> >> useless (if you want to browse, use a w= eb browser).
>> >> Note the debug output in the console - it shows the a= ctual URL
>> >> you're looking at.
>> >>
&= gt;> >> A few hours of hacking, and here you have it:
>> = >>
>>
http://www.trick.vanstaveren.us/banshee/banshe= e-wikipedia-plugin-0.0.1.tar.bz2
>> >>
>> >&= gt; Feedback is welcome, appreciated, and encouraged!  I'll drop = it in
>> >> Banshee SVN at some
>> >> point so you= can track progress (abock - do you mind me adding this?)
>> >&= gt;
>> >> MAJOR credit goes out to Fredrik Hedberg - more th= an half the code
>> >> was based on the
>> >> banshee-recomme= ndation-plugin.  I'll rewrite some of it in the
>> >&= gt; future to fit my
>> >> situation, but it provided a GREA= T starting point for me as I barely
>> >> had to think
>> >> twice about how to = create the frame, enable/disable it with a toggle
>> >> menu= item, etc.
>> >> Thanks Fredrik!
>> >>
>> >> Enjoy!  Reply to the list or snag me on IRC (ni= ck: trick)
>> >>
>> >> Patrick
>> &g= t;>
>> >> --
>> >> Patrick "Trick&quo= t; van Staveren
>> >> Western Michigan University
>> >> http://www.trick.vanstaveren.us/
>> >>
>> >>
>> >>
>&g= t; >>
>> >> _______________________________________________
&g= t;> >> Banshee-list mailing list
>> >>
Banshee-list@gnome.org
>> >&g= t;=20 http://mail= .gnome.org/mailman/listinfo/banshee-list
>> >>
>&g= t; > _______________________________________________
>> > Ba= nshee-list mailing list
>> > Banshee-list@gn= ome.org
>> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >
>>
>>
>> ----- End message from ghaefbgtk@gmail.com -----
>&= gt;
>>
>>
>> ___________________________________= ____________
>> Banshee-list mailing list
>> Banshee-list@gnome.org
>> http://mail.gnome.org/mailman= /listinfo/banshee-list
>>
>
>


----- End message from indecent@picle.org -----



= _______________________________________________
Banshee-list mailing lis= t
Banshee-list@gnome.orghttp://mai= l.gnome.org/mailman/listinfo/banshee-list

------=_Part_14006_24167613.1146347128392-- From trick@vanstaveren.us Sun Apr 30 02:37:26 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 657613B0324 for ; Sun, 30 Apr 2006 02:37:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01852-07 for ; Sun, 30 Apr 2006 02:37:23 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 0B5353B0099 for ; Sun, 30 Apr 2006 02:37:22 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5YY-00083x-0d for banshee-list@gnome.org; Sat, 29 Apr 2006 23:37:22 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:37:21 -0400 Message-ID: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:37:21 -0400 From: Trick van Staveren To: banshee-list@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.591 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599] X-Spam-Score: -2.591 X-Spam-Level: Subject: [Banshee-List] Wikipedia plugin, v0.0.2 X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:37:26 -0000 Hey folks, Been working on it a bit and just wanted to publish :) http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 Changelog: 2006-04-30 Patrick van Staveren * Google search mode - uses the "i'm feeling lucky" feature of Google to direct to the closes match using Google, adding the keyword "band". I know, this isn't the best way, but it is much much more accurate than just searching for the artist keyword. * Experimenting with stuff like a status bar and progress bar for loading. * Progress bar is way too buggy and causes segfaults - commented out :) * Opens to about:blank, not google on init. Faster. * Made default size a bit bigger. Maybe this should be a percentage someday. Someone patch this for me! * Bunch of attempts to create a HPaned between the track listing and this, but I can't find a widget. Big chunk of commented code for now. * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) * Debug info is copied in, so you can easily trace Enjoy, and send feedback :) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ From trick@vanstaveren.us Sun Apr 30 02:40:04 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6DAEB3B0401 for ; Sun, 30 Apr 2006 02:40:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02027-02 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from cobra.elinuxservers.com (cobra.elinuxservers.com [64.235.247.190]) by menubar.gnome.org (Postfix) with ESMTP id 6CAEB3B0409 for ; Sun, 30 Apr 2006 02:40:01 -0400 (EDT) Received: from nobody by cobra.elinuxservers.com with local (Exim 4.52) id 1Fa5b6-0008B5-OP for banshee-list@gnome.org; Sat, 29 Apr 2006 23:40:00 -0700 Received: from resnet229-061.resnet.wmich.edu (resnet229-061.resnet.wmich.edu [141.218.229.61]) by www.vanstaveren.us (Horde MIME library) with HTTP for ; Sun, 30 Apr 2006 02:40:00 -0400 Message-ID: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> Date: Sun, 30 Apr 2006 02:40:00 -0400 From: Trick van Staveren To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> In-Reply-To: <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Originating-IP: 141.218.229.61 X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.2) Gecko/20060423 Firefox/1.5.0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cobra.elinuxservers.com X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - vanstaveren.us X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.592 tagged_above=-999 required=2 tests=[AWL=0.007, BAYES_00=-2.599] X-Spam-Score: -2.592 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 06:40:04 -0000 I'd be totally game for that if I can (easily) detect disambiguation pages somehow. I haven't really tried...but I can't think of any other way than to look right at the source of the page, parse it all up, and hope I'm doing it right and that wikipedia never changes their skin format. Sounds like a lot of work to me :/ I'm using the google search right now which has proven really nice, and I'm going to research some of the external indexes to wikipedia...maybe there's one that indexes music groups only that we could search thru - that'd be superb :) Thanks for the suggestion! LMK if you have any idea how to detect disambiguation/no-result pages (code wise, even if you don't know C#, anything's good!) Patrick -- Patrick "Trick" van Staveren Western Michigan University AIM: goofyassmoose Cell: 269.267.6008 http://www.trick.vanstaveren.us/ ----- Message from jasl8r@gmail.com --------- Date: Sat, 29 Apr 2006 17:45:28 -0400 From: Jeremy Slater Reply-To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin To: banshee-list@gnome.org > Not sure if this is a good suggestion or not, but what if you first try to > go to the band specific page with the attached "_(band)" in the url which > exists when disambiguation is needed. Then if that page "does not have an > article" or whatnot you can go to the page without the attached "_(band)" in > the url. I don't know if that would be more accurate than google or not. > > Jeremy > > On 4/29/06, Trick van Staveren wrote: >> >> Excellent! This is what OSS is all about :) >> >> Patches are more than just welcome - they're encouraged. If you've got >> a better way of >> doing this, don't hesitate to contribute :) >> >> I haven't changed it much since 0.0.1, other than I've been >> experimenting with using >> google searches of wikipedia to better find the right pages - for >> instance, when I >> play a song by Kansas, I get info about the state. Searching google >> for 'kansas band' >> returns only results with both words in it, and I use the auto-redirect >> to push it to >> wikipedia. It seems to return better results (about 95% of the time I >> get the correct >> page, versus right now probably only 75%). Aside that, patch away my >> friend! >> >> I will be putting this in the banshee SVN or my personal SVN (which I'm >> setting up this >> weekend) and we can work together better :) >> >> I look forward to it! >> >> -Patrick >> >> -- >> Patrick "Trick" van Staveren >> Western Michigan University >> AIM: goofyassmoose >> Cell: 269.267.6008 >> http://www.trick.vanstaveren.us/ >> >> >> ----- Message from indecent@picle.org --------- >> Date: Sat, 29 Apr 2006 15:58:58 +0200 >> From: indecent >> Reply-To: indecent@picle.org >> Subject: Re: [Banshee-List] Wikipedia plugin >> To: trick@vanstaveren.us >> >> >> > Hello, >> > My Name is David Schneider, I#m a cs student from Germany. >> > Some time ago i started writing a similar plugin for muine, but >> for >> > differtent reasons i never finished it. I had used a x-path based >> > aproach to parse the wikipedia pages. So if you don't mind i'd love to >> > contribute to the banshee-wikipedia plugin. >> > >> > David >> > >> > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: >> >> Interesting. It looks almost like you have the gecko-sharp libraries >> >> but not the >> >> underlying mozilla libraries (or your gecko-sharp library is pointing >> >> to the wrong >> >> location). Maybe I need to do something in my package to point to the >> >> proper location >> >> of a mozilla library. I don't know. >> >> I looked on my system for the library, and I found that it's >> >> libgtkembedmoz.so: >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so >> >> ./mozilla/libgtkembedmoz.so >> >> ./gecko-sdk/lib/libgtkembedmoz.so >> >> ./mozilla-firefox/libgtkembedmoz.so >> >> >> >> From the looks of it, your installation of gecko-sharp just doesn't >> >> have the library >> >> reference set up (properly). Maybe I need to include >> >> gecko-sharp.dll.config in the >> >> plugin install. >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ cat >> >> gecko-sharp.dll.config >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for you >> :) >> >> >> >> LMK if you make any progress! >> >> >> >> Patrick >> >> >> >> -- >> >> Patrick "Trick" van Staveren >> >> Western Michigan University >> >> AIM: goofyassmoose >> >> Cell: 269.267.6008 >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> ----- Message from ghaefbgtk@gmail.com --------- >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 >> >> From: Nil Gradisnik >> >> Reply-To: banshee-list@gnome.org >> >> Subject: Re: [Banshee-List] Wikipedia plugin >> >> To: banshee-list@gnome.org >> >> >> >> >> >> > Looking good. >> >> > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not >> found. >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no >> luck >> >> > >> >> > Any suggestions ? >> >> > >> >> > On 4/28/06, Trick van Staveren wrote: >> >> >> Howdy folks, >> >> >> >> >> >> Everyone likes screenshots, so I'll start with the screenie: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.png >> >> >> >> >> >> I was reading the feature requests page, and I've noticed that as >> >> >> far back as I can >> >> >> remember, someone requested that banshee show artist information >> >> >> from wikipedia. At >> >> >> first I thought it was silly. Banshee is a music player, not a web >> >> >> browser! Well, >> >> >> needless to say, I've found myself such an addict to wikipedia for >> >> >> artist information, >> >> >> that earlier today I thought it'd be a neat idea to implement. >> >> >> >> >> >> Thus, the banshee-wikipedia-plugin was born. >> >> >> It's simple right now (and I plan to keep it as simple as possible). >> >> >> It's a Gecko widget dropped right below the library view. (Gecko == >> >> >> firefoz/mozilla >> >> >> rendering engine). >> >> >> It has a fixed size (for now). >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is this >> >> >> an logical shortcut >> >> >> mapping?). >> >> >> It automatically queries wikipedia (english) for a page with the >> >> >> same title as the >> >> >> artist that you're playing. Changes with the track you're playing. >> >> >> I'm very tired. >> >> >> This is accurate probably about 80% of the time...you'll usually >> >> >> find a disambiguation >> >> >> page wherever it's lacking. >> >> >> I'm also telling it to use the mediawiki "simple" skin to make it >> >> >> load faster. >> >> >> In the future I'll figure out how to remove the nav bar on the left >> >> >> as it's pretty much >> >> >> useless (if you want to browse, use a web browser). >> >> >> Note the debug output in the console - it shows the actual URL >> >> >> you're looking at. >> >> >> >> >> >> A few hours of hacking, and here you have it: >> >> >> >> >> >> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.tar.bz2 >> >> >> >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it in >> >> >> Banshee SVN at some >> >> >> point so you can track progress (abock - do you mind me adding >> this?) >> >> >> >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the code >> >> >> was based on the >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the >> >> >> future to fit my >> >> >> situation, but it provided a GREAT starting point for me as I barely >> >> >> had to think >> >> >> twice about how to create the frame, enable/disable it with a toggle >> >> >> menu item, etc. >> >> >> Thanks Fredrik! >> >> >> >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) >> >> >> >> >> >> Patrick >> >> >> >> >> >> -- >> >> >> Patrick "Trick" van Staveren >> >> >> Western Michigan University >> >> >> http://www.trick.vanstaveren.us/ >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> >> Banshee-list mailing list >> >> >> Banshee-list@gnome.org >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> >> >> > _______________________________________________ >> >> > Banshee-list mailing list >> >> > Banshee-list@gnome.org >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list >> >> > >> >> >> >> >> >> ----- End message from ghaefbgtk@gmail.com ----- >> >> >> >> >> >> >> >> _______________________________________________ >> >> Banshee-list mailing list >> >> Banshee-list@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/banshee-list >> >> >> > >> > >> >> >> ----- End message from indecent@picle.org ----- >> >> >> >> _______________________________________________ >> Banshee-list mailing list >> Banshee-list@gnome.org >> http://mail.gnome.org/mailman/listinfo/banshee-list >> > ----- End message from jasl8r@gmail.com ----- From indecent@picle.org Sun Apr 30 11:17:40 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D9763B0903 for ; Sun, 30 Apr 2006 11:17:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08239-08 for ; Sun, 30 Apr 2006 11:17:32 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id B4F9F3B0908 for ; Sun, 30 Apr 2006 11:17:31 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 23A0920CFB7 for ; Sun, 30 Apr 2006 17:17:29 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> Content-Type: multipart/mixed; boundary="=-9FrJ4BBEwohT68RTNwby" Date: Sun, 30 Apr 2006 17:17:26 +0200 Message-Id: <1146410246.6015.8.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:17:40 -0000 --=-9FrJ4BBEwohT68RTNwby Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, here comes a little patch for the wikipedia plugin, i added a parser for the wikipedia pages to remove information that is not needed, for now the bar left, header and footer. Also I added a class to manage the querys an request the pages using httpwebrequest, this could also help tho find pages that didn't match match the search. I used the httpwebresponse.Host to detect results not from wikipedia. Further i started a cache for the downloaded pages, these are stored in the plungindir/wikipedia David Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > Hey folks, > > Been working on it a bit and just wanted to publish :) > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > Changelog: > 2006-04-30 Patrick van Staveren > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > to the closes match using Google, adding the keyword "band". I know, this isn't the > best way, but it is much much more accurate than just searching for the artist > keyword. > * Experimenting with stuff like a status bar and progress bar for loading. > * Progress bar is way too buggy and causes segfaults - commented out :) > * Opens to about:blank, not google on init. Faster. > * Made default size a bit bigger. Maybe this should be a percentage someday. > Someone patch this for me! > * Bunch of attempts to create a HPaned between the track listing and this, but > I can't find a widget. Big chunk of commented code for now. > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > * Debug info is copied in, so you can easily trace > > Enjoy, and send feedback :) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=banshee_wikipedia.patch Content-Type: text/x-patch; name=banshee_wikipedia.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit --- ./WikipediaPane.cs 2006-04-30 08:28:46.000000000 +0200 +++ ../../new/WikipediaPane.cs 2006-04-30 16:42:39.000000000 +0200 @@ -19,13 +19,14 @@ namespace Banshee.Plugins.Wikipedia private VBox main; private HBox bot; private ProgressBar pb; - private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; - + + // set url + web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); @@ -109,15 +110,27 @@ namespace Banshee.Plugins.Wikipedia slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page - */ - web.LoadUrl( - "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+" + - + "%22" + current_artist + "%22" - + "band" + - + "&btnI=asdf" - ); - + */ + string temp; + WikipediaQuery w_query = new WikipediaQuery(current_artist); + WikipediaPage w_page = w_query.PerformLookUp(); + if ( w_page != null ) { + web.OpenStream(w_page.BaseUri,"text/html"); + web.AppendData(w_page.Header); + web.AppendData("

"+current_artist+"

"); + //Console.WriteLine(w_page.Header); + while ( (temp = w_page.ReadBodyLine())!= null ) { + web.AppendData(temp); + //Console.WriteLine(temp); + } + web.AppendData(w_page.Footer); + web.CloseStream(); + web.Show(); + Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); + } else { + Visible = false; + } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. @@ -130,7 +143,7 @@ namespace Banshee.Plugins.Wikipedia ); */ - Console.WriteLine("Wikipedia plugin debug: URL=" + web.Location); + } // --------------------------------------------------------------- // @@ -149,7 +162,7 @@ namespace Banshee.Plugins.Wikipedia Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { - ShowArtist(null, null); + //ShowArtist(null, null); Visible = true; return; } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { //ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaParser.cs Content-Type: text/x-csharp; name=WikipediaParser.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using System.Xml; using System.Xml.XPath; using Mono.Unix; namespace Banshee.Plugins.Wikipedia { public sealed class WikipediaParser { private string title; private MemoryStream body; private Stream target; public MemoryStream Body { get { return body; } } public StreamReader BodyReader { get { if ( this.body == null ) { this.body = new MemoryStream(); } return new StreamReader(this.body,Encoding.UTF8); } } public string Title { get { return this.title; } } public WikipediaParser(Stream s) { this.target = s; } public bool GetWikipediaInfo(string query) { if ( query == "" ) { return false; } else { // Stream response_stream = this.SendRequest(query); // this.Parse(response_stream); // response_stream.Close(); return true; } } public void Parse() { XmlDocument html = new XmlDocument(); StreamReader sr = new StreamReader(target, Encoding.UTF8); sr.ReadLine(); sr.ReadLine(); StringBuilder sb = new StringBuilder(); sb.Insert(0,""); sb.Append(sr.ReadToEnd()); sr.Close(); html.LoadXml(sb.ToString()); XPathNavigator nav = html.CreateNavigator(); try { XPathNodeIterator iter = nav.Select("//div[@id='bodyContent']"); iter.MoveNext(); XmlNode node = ((IHasXmlNode)iter.Current ).GetNode(); if ( node != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); } /*try { XPathNodeIterator iter = nav.Select("//h1[@class='firstHeading']/text()"); iter.MoveNext(); XmlNode node = (iter.Current as IHasXmlNode).GetNode(); if ( node != null ) { this.title = node.Value; } else { this.title = Catalog.GetString("Not found"); } } catch ( Exception e ) { Console.WriteLine("Error retrieving title "+e.Message); this.title = Catalog.GetString("An error ocurred")+" "+e.Message; } // maybe perform some cleanup on the html // get body try { XPathNodeIterator iter2 = nav.Select("//div[@id='bodyContent']"); iter2.MoveNext(); XmlNode node2 = ((IHasXmlNode)iter2.Current ).GetNode(); if ( node2 != null ) { this.body = new MemoryStream(Encoding.UTF8.GetBytes(node2.InnerXml)); } } catch ( Exception e ) { Console.WriteLine("Error retrieving body "+e.Message); this.body = new MemoryStream(Encoding.UTF8.GetBytes(Catalog.GetString("An error ocurred while retrieving the artist information from wikipedia"))); }*/ } } } --=-9FrJ4BBEwohT68RTNwby Content-Disposition: attachment; filename=WikipediaQuery.cs Content-Type: text/x-csharp; name=WikipediaQuery.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Net; using System.Text; using Mono.Posix; using Banshee.Base; namespace Banshee.Plugins.Wikipedia { public class WikipediaQuery { private string query; private const string url = "http://www.google.com/search?hl=en&q=site%3Aen.wikipedia.org+%22{0}%22%20band&btnI=asdf";// private const string wiki_host = "en.wikipedia.org";// private static string CACHE_PATH = System.IO.Path.Combine (Paths.UserPluginDirectory, "wikipedia"); public string QueryUrl { get { Console.WriteLine(string.Format(url,this.query)); return string.Format(url,this.query); } } public string Query { get { return this.query; } set { this.query = value; } } public WikipediaQuery(string query) { this.query = query; if (!Directory.Exists (CACHE_PATH)) Directory.CreateDirectory (CACHE_PATH); } public WikipediaPage LoadInformation() { return PerformLookUp(); } public WikipediaPage PerformLookUp() { string filename = this.GetCachedPath(); HttpWebRequest c_req = GetRequest(); WikipediaPage wp; if (File.Exists (filename)) { // check if we have a cached veriosn DateTime last_updated_time = File.GetLastWriteTime (filename); if (DateTime.Compare(last_updated_time, c_req.IfModifiedSince) < 0) { // the cached verion is ok Console.WriteLine("Opening from cache"); wp = LoadFromCache(); } else { Console.WriteLine("In cache but to old"); wp = DownloadWikipedia(c_req); } } else { Console.WriteLine("Opening from wikipedia"); wp = DownloadWikipedia(c_req); } if ( wp != null ) wp.BaseUri = "http://en.wikipedia.org/wiki/"; return wp; } private HttpWebRequest GetRequest() { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.QueryUrl); request.KeepAlive = false; request.AllowAutoRedirect = true; request.UserAgent = "Mozilla (Banshee-wikipedia plugin)"; return request; } private WikipediaPage DownloadWikipedia(HttpWebRequest req) { HttpWebResponse response = (HttpWebResponse) req.GetResponse(); Console.WriteLine(response.ResponseUri); if ( response.ResponseUri.Host.Equals(wiki_host) ) { Stream s = response.GetResponseStream (); WikipediaParser wparser = new WikipediaParser(s); wparser.Parse(); MemoryStream body = wparser.Body; response.Close(); try { SaveToCache(body); } catch(Exception e ) { Console.WriteLine("Could not cache file because: {0}",e.Message); // Console.WriteLine(e.StackTrace); } return new WikipediaPage(body); } else { return null; } } private WikipediaPage LoadFromCache() { string f_name = GetCachedPath(); FileStream fs = File.OpenRead(f_name); return new WikipediaPage(fs); } private void SaveToCache(MemoryStream body) { string f_name = GetCachedPath(); FileStream fs = File.OpenWrite(f_name); BufferedStream buffered_stream = new BufferedStream (fs); //buffered_stream.Write(body.GetBuffer(),0,(int)body.Length); byte [] buffer = new byte [8192]; int read; do { read = body.Read (buffer, 0, buffer.Length); if (read > 0) buffered_stream.Write (buffer, 0, read); } while (read > 0); buffered_stream.Close(); fs.Close(); body.Position = 0; } private string GetCachedPath() { return System.IO.Path.Combine (CACHE_PATH, Math.Abs(this.query.ToLower().GetHashCode()).ToString()); } } } --=-9FrJ4BBEwohT68RTNwby-- From indecent@picle.org Sun Apr 30 11:29:16 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 985493B094A for ; Sun, 30 Apr 2006 11:29:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08769-07 for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from dd1016.kasserver.com (dd1016.kasserver.com [81.209.148.108]) by menubar.gnome.org (Postfix) with ESMTP id 11F043B093C for ; Sun, 30 Apr 2006 11:29:11 -0400 (EDT) Received: from [192.168.1.99] (p50853684.dip0.t-ipconnect.de [80.133.54.132]) by dd1016.kasserver.com (Postfix) with ESMTP id 76F0620BD1E for ; Sun, 30 Apr 2006 17:29:09 +0200 (CEST) Subject: Re: [Banshee-List] a litlle Patch for Wikipedia plugin, v0.0.2 From: indecent To: banshee-list@gnome.org In-Reply-To: <1146410246.6015.8.camel@localhost.localdomain> References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> <1146410246.6015.8.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-js8RkJd1Mb70m6Kb0B4s" Date: Sun, 30 Apr 2006 17:29:07 +0200 Message-Id: <1146410947.6015.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org, indecent@picle.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 15:29:16 -0000 --=-js8RkJd1Mb70m6Kb0B4s Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello, i'm sorry i forgot one file, and i found an error i introduced in wikipediapane.cs Am Sonntag, den 30.04.2006, 17:17 +0200 schrieb indecent: > Hello, > > here comes a little patch for the wikipedia plugin, i added a parser > for the wikipedia pages to remove information that is not needed, for > now the bar left, header and footer. > Also I added a class to manage the querys an request the pages using > httpwebrequest, this could also help tho find pages that didn't match > match the search. I used the httpwebresponse.Host to detect results not > from wikipedia. > Further i started a cache for the downloaded pages, these are stored in > the plungindir/wikipedia > > David > > Am Sonntag, den 30.04.2006, 02:37 -0400 schrieb Trick van Staveren: > > Hey folks, > > > > Been working on it a bit and just wanted to publish :) > > > > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.2.tar.bz2 > > > > Changelog: > > 2006-04-30 Patrick van Staveren > > * Google search mode - uses the "i'm feeling lucky" feature of Google to direct > > to the closes match using Google, adding the keyword "band". I know, this isn't the > > best way, but it is much much more accurate than just searching for the artist > > keyword. > > * Experimenting with stuff like a status bar and progress bar for loading. > > * Progress bar is way too buggy and causes segfaults - commented out :) > > * Opens to about:blank, not google on init. Faster. > > * Made default size a bit bigger. Maybe this should be a percentage someday. > > Someone patch this for me! > > * Bunch of attempts to create a HPaned between the track listing and this, but > > I can't find a widget. Big chunk of commented code for now. > > * Added Wikipedia.dll.config, a DLL mapper copied from gecko-sharp. Should fix > > issues with not finding gtkmozembed.so on some platforms. (Send bug reports!) > > * Debug info is copied in, so you can easily trace > > > > Enjoy, and send feedback :) > > > > Patrick > > > > -- > > Patrick "Trick" van Staveren > > Western Michigan University > > AIM: goofyassmoose > > Cell: 269.267.6008 > > http://www.trick.vanstaveren.us/ > > > > > > > > > > _______________________________________________ > > Banshee-list mailing list > > Banshee-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/banshee-list > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPage.cs Content-Type: text/x-csharp; name=WikipediaPage.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.IO; using System.Text; namespace Banshee.Plugins.Wikipedia { public class WikipediaPage { private static string header = " "+ ""+ ""+ ""+ ""; private static string footer = ""; //public Stream body; private StreamReader body_reader; private string base_url; public string BaseUri { get { return base_url; } set { this.base_url = value; } } public string Header { get { return header; } } public string Footer { get { return footer; } } public WikipediaPage(Stream body) { body_reader = new StreamReader(body,System.Text.Encoding.UTF8); } ~WikipediaPage() { body_reader.Close(); //body.Close(); } public string ReadBodyLine() { return body_reader.ReadLine(); } } } --=-js8RkJd1Mb70m6Kb0B4s Content-Disposition: attachment; filename=WikipediaPane.cs Content-Type: text/x-csharp; name=WikipediaPane.cs; charset=UTF-8 Content-Transfer-Encoding: 7bit using System; using System.Text; using Mono; using Mono.Posix; using Gtk; using Gecko; using GLib; using Banshee; using Banshee.Base; using Gdk; namespace Banshee.Plugins.Wikipedia { public class WikipediaPane : Frame { private WebControl web; private Viewport win; private Statusbar sb; private VBox main; private HBox bot; private ProgressBar pb; private int bot_queue_length; public string current_artist; public WikipediaPane () { Visible = false; // set url web = new WebControl("about:blank", "Gecko"); win = new Viewport(); sb = new Statusbar(); pb = new ProgressBar(); main = new VBox(); bot = new HBox(); bot_queue_length = 0; sb.TextPushed += new Gtk.TextPushedHandler (StatusbarDisplay); sb.Visible = false; sb.HasResizeGrip = false; pb.WidthRequest = 300; //web.ProgressAll += new Gecko.ProgressAllHandler(updateProgress); web.LinkMsg += new EventHandler (LinkMessage); bot.PackStart(sb, true, true, 0); //bot.PackEnd(pb, false, false, 0); main.PackStart(web, true, true, 0); main.PackEnd(bot, false, false, 0); win.Add(main); Add(win); ShowAll(); } public void StatusbarDisplay (object o, TextPushedArgs args) { bot.Visible = true; bot_queue_length++; GLib.Timeout.Add(5000, delegate { bot_queue_length--; sb.Pop(1); if(bot_queue_length < 1) { bot.Visible = false; pb.Visible = false; } return false; }); } /*public void ProgressbarDisplay (object o, ProgressAllArgs args) { bot.Visible = true; bot.PackEnd(pb); pb.Visible = true; bot_queue_length++; pb.Fraction = (double) args.Curprogress / (double) args.Maxprogress; GLib.Timeout.Add(5000, delegate { bot_queue_length--; if(bot_queue_length < 1) { bot.Remove(pb); bot.Visible = false; } return false; }); }*/ public void LinkMessage (object o, EventArgs args) { sb.Push(1, web.LinkMessage); } /*public void updateProgress(object o, ProgressAllArgs args) { Console.WriteLine("on {0} of {1}", args.Curprogress, args.Maxprogress); if(args.Curprogress <= args.Maxprogress && args.Curprogress > 0 && args.Maxprogress > 1) ProgressbarDisplay(o, args); }*/ private void ShowArtist(object o, EventArgs e){ /* A way to find pages thru google's index of wikipedia. PROS: possibly more effective. tests show better results than just querying an artist If the page doesn't exist, the nearest one will automatically be returned Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work better. CONS: slower, as we're going to google and then wikipedia Since it's google, it could return a page that's not the exact title, but is the most popular representation of this. Might work worse. (Why this method isn't being used right now): because I want to pass to wikipedia that this is a printable page */ string temp; WikipediaQuery w_query = new WikipediaQuery(current_artist); WikipediaPage w_page = w_query.PerformLookUp(); if ( w_page != null ) { web.OpenStream(w_page.BaseUri,"text/html"); web.AppendData(w_page.Header); web.AppendData("

"+current_artist+"

"); //Console.WriteLine(w_page.Header); while ( (temp = w_page.ReadBodyLine())!= null ) { web.AppendData(temp); //Console.WriteLine(temp); } web.AppendData(w_page.Footer); web.CloseStream(); web.Show(); Console.WriteLine("Wikipedia plugin debug: URL=" +w_page.BaseUri); } else { Visible = false; } /* The plain 'ol, link to wikipedia. tags on printable=yes. nice, but hides links, and doesn't persist from page-to-page. also, no help with searching for music only... web.LoadUrl( "http://en.wikipedia.org/wiki/" + current_artist + " " + "?printable=yes" ); */ } // --------------------------------------------------------------- // public void HideWikipedia () { Visible = false; } public void ShowWikipedia (string artist) { /*if(web.Allocation.Width > 1) { web.WidthRequest = win.Allocation.Width + 200 - 4; win.Hadjustment = new Adjustment(200, 0, win.Allocation.Width, 1, 1, 1); }else{ Console.WriteLine("Apparently it hasn't been drawn yet. crap."); }*/ if (current_artist == artist) { ShowArtist(null, null); Visible = true; return; } current_artist = artist; ShowArtist(null, null); Visible = true; ShowAll (); this.HeightRequest = 450; } } } --=-js8RkJd1Mb70m6Kb0B4s-- From jasl8r@gmail.com Sun Apr 30 12:15:17 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EE6D53B0967 for ; Sun, 30 Apr 2006 12:15:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11583-01 for ; Sun, 30 Apr 2006 12:15:15 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.226]) by menubar.gnome.org (Postfix) with ESMTP id BD8453B0971 for ; Sun, 30 Apr 2006 12:15:14 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i34so2171290wra for ; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=I+QXPZNF/D7ut55I8HfQr8RcMhBGuF+9tWBeWFahIBv5NVjYhqoNy6HtSsMBFlHiocwgEKFRYkNNyIipS1vUrx62wM4dVMpLnAnGpGFeJX/Rl1bfMR4zdbnJ29Ia/pjv8evooi3Kj8zlOrtAcdcCKBbxbMn4nQKgZHkpFEsXJjE= Received: by 10.54.119.11 with SMTP id r11mr1825205wrc; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Sun, 30 Apr 2006 09:15:13 -0700 (PDT) Message-ID: <3e5be67b0604300915o415bc9cepa5652f9107f26dd@mail.gmail.com> Date: Sun, 30 Apr 2006 12:15:13 -0400 From: "Jeremy Slater" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin In-Reply-To: <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3133_27860369.1146413713519" References: <20060428033259.ylwfrpd4ktk4okw8@www.vanstaveren.us> <20060428153637.piotf8k8dyoog8k0@www.vanstaveren.us> <1146319138.6018.4.camel@localhost.localdomain> <20060429141550.zd23vdjl8mxw08c4@www.vanstaveren.us> <3e5be67b0604291445g82574b9x823ff5232f009df5@mail.gmail.com> <20060430024000.b6m1dhsb75cs4c00@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.037 tagged_above=-999 required=2 tests=[AWL=0.034, BAYES_00=-2.599, HTML_30_40=0.374, HTML_MESSAGE=0.001, SPF_PASS=-0.001, TW_BG=0.077, TW_GT=0.077] X-Spam-Score: -2.037 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 16:15:17 -0000 ------=_Part_3133_27860369.1146413713519 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page. The following meta tag comes from the missing page: I imagine this is to prevent google from indexing tons of missing pages. I= t looks like you could fetch a page such as /Kansas_(band) first and check fo= r a robots meta tag. In the case of /Kansas_(band) it won't be there and you will have your requested page. However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you coul= d then load /Collective_Soul which is the real page for this band. I imagine as long as the band exists in wikipedia, one of these pages should exist. Jeremy On 4/30/06, Trick van Staveren wrote: > > I'd be totally game for that if I can (easily) detect disambiguation > pages somehow. I > haven't really tried...but I can't think of any other way than to look > right at the > source of the page, parse it all up, and hope I'm doing it right and > that wikipedia > never changes their skin format. Sounds like a lot of work to me :/ > > I'm using the google search right now which has proven really nice, and > I'm going to > research some of the external indexes to wikipedia...maybe there's one > that indexes > music groups only that we could search thru - that'd be superb :) > > Thanks for the suggestion! LMK if you have any idea how to detect > disambiguation/no-result pages (code wise, even if you don't know C#, > anything's > good!) > > Patrick > > -- > Patrick "Trick" van Staveren > Western Michigan University > AIM: goofyassmoose > Cell: 269.267.6008 > http://www.trick.vanstaveren.us/ > > > ----- Message from jasl8r@gmail.com --------- > Date: Sat, 29 Apr 2006 17:45:28 -0400 > From: Jeremy Slater > Reply-To: banshee-list@gnome.org > Subject: Re: [Banshee-List] Wikipedia plugin > To: banshee-list@gnome.org > > > > Not sure if this is a good suggestion or not, but what if you first try > to > > go to the band specific page with the attached "_(band)" in the url > which > > exists when disambiguation is needed. Then if that page "does not have > an > > article" or whatnot you can go to the page without the attached > "_(band)" in > > the url. I don't know if that would be more accurate than google or > not. > > > > Jeremy > > > > On 4/29/06, Trick van Staveren wrote: > >> > >> Excellent! This is what OSS is all about :) > >> > >> Patches are more than just welcome - they're encouraged. If you've go= t > >> a better way of > >> doing this, don't hesitate to contribute :) > >> > >> I haven't changed it much since 0.0.1, other than I've been > >> experimenting with using > >> google searches of wikipedia to better find the right pages - for > >> instance, when I > >> play a song by Kansas, I get info about the state. Searching google > >> for 'kansas band' > >> returns only results with both words in it, and I use the auto-redirec= t > >> to push it to > >> wikipedia. It seems to return better results (about 95% of the time I > >> get the correct > >> page, versus right now probably only 75%). Aside that, patch away my > >> friend! > >> > >> I will be putting this in the banshee SVN or my personal SVN (which I'= m > >> setting up this > >> weekend) and we can work together better :) > >> > >> I look forward to it! > >> > >> -Patrick > >> > >> -- > >> Patrick "Trick" van Staveren > >> Western Michigan University > >> AIM: goofyassmoose > >> Cell: 269.267.6008 > >> http://www.trick.vanstaveren.us/ > >> > >> > >> ----- Message from indecent@picle.org --------- > >> Date: Sat, 29 Apr 2006 15:58:58 +0200 > >> From: indecent > >> Reply-To: indecent@picle.org > >> Subject: Re: [Banshee-List] Wikipedia plugin > >> To: trick@vanstaveren.us > >> > >> > >> > Hello, > >> > My Name is David Schneider, I#m a cs student from Germany. > >> > Some time ago i started writing a similar plugin for muine, bu= t > >> for > >> > differtent reasons i never finished it. I had used a x-path based > >> > aproach to parse the wikipedia pages. So if you don't mind i'd love > to > >> > contribute to the banshee-wikipedia plugin. > >> > > >> > David > >> > > >> > > >> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van Staveren: > >> >> Interesting. It looks almost like you have the gecko-sharp > libraries > >> >> but not the > >> >> underlying mozilla libraries (or your gecko-sharp library is > pointing > >> >> to the wrong > >> >> location). Maybe I need to do something in my package to point to > the > >> >> proper location > >> >> of a mozilla library. I don't know. > >> >> I looked on my system for the library, and I found that it's > >> >> libgtkembedmoz.so: > >> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so > >> >> ./mozilla/libgtkembedmoz.so > >> >> ./gecko-sdk/lib/libgtkembedmoz.so > >> >> ./mozilla-firefox/libgtkembedmoz.so > >> >> > >> >> From the looks of it, your installation of gecko-sharp just doesn'= t > >> >> have the library > >> >> reference set up (properly). Maybe I need to include > >> >> gecko-sharp.dll.config in the > >> >> plugin install. > >> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2.0.0.0__ccf7d78a55e9f021 $ > cat > >> >> gecko-sharp.dll.config > >> >> > >> >> > >> >> > >> >> > >> >> "/> > >> >> > >> >> > >> >> > >> >> If I were you, I'd drop a copy of your gecko-sharp.dll.config into > >> >> ~/.gnome2/banshee/plugins and see what happens! Might fix it for > you > >> :) > >> >> > >> >> LMK if you make any progress! > >> >> > >> >> Patrick > >> >> > >> >> -- > >> >> Patrick "Trick" van Staveren > >> >> Western Michigan University > >> >> AIM: goofyassmoose > >> >> Cell: 269.267.6008 > >> >> http://www.trick.vanstaveren.us/ > >> >> > >> >> > >> >> ----- Message from ghaefbgtk@gmail.com --------- > >> >> Date: Fri, 28 Apr 2006 20:42:11 +0200 > >> >> From: Nil Gradisnik > >> >> Reply-To: banshee-list@gnome.org > >> >> Subject: Re: [Banshee-List] Wikipedia plugin > >> >> To: banshee-list@gnome.org > >> >> > >> >> > >> >> > Looking good. > >> >> > > >> >> > I'm getting an error when using this plugin on Banshee 0.10.9 > >> >> > The exception is thrown by Gecko.WebControl -> gtkembedmoz.so not > >> found. > >> >> > I linked the mozillas libgtkembedmoz.so to /usr/lib/ and still no > >> luck > >> >> > > >> >> > Any suggestions ? > >> >> > > >> >> > On 4/28/06, Trick van Staveren wrote: > >> >> >> Howdy folks, > >> >> >> > >> >> >> Everyone likes screenshots, so I'll start with the screenie: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.pn= g > >> >> >> > >> >> >> I was reading the feature requests page, and I've noticed that a= s > >> >> >> far back as I can > >> >> >> remember, someone requested that banshee show artist information > >> >> >> from wikipedia. At > >> >> >> first I thought it was silly. Banshee is a music player, not a > web > >> >> >> browser! Well, > >> >> >> needless to say, I've found myself such an addict to wikipedia > for > >> >> >> artist information, > >> >> >> that earlier today I thought it'd be a neat idea to implement. > >> >> >> > >> >> >> Thus, the banshee-wikipedia-plugin was born. > >> >> >> It's simple right now (and I plan to keep it as simple as > possible). > >> >> >> It's a Gecko widget dropped right below the library view. (Gecko > =3D=3D > >> >> >> firefoz/mozilla > >> >> >> rendering engine). > >> >> >> It has a fixed size (for now). > >> >> >> It can be hidden/shown from the View menu (CTRL+I as well - is > this > >> >> >> an logical shortcut > >> >> >> mapping?). > >> >> >> It automatically queries wikipedia (english) for a page with the > >> >> >> same title as the > >> >> >> artist that you're playing. Changes with the track you're > playing. > >> >> >> I'm very tired. > >> >> >> This is accurate probably about 80% of the time...you'll usually > >> >> >> find a disambiguation > >> >> >> page wherever it's lacking. > >> >> >> I'm also telling it to use the mediawiki "simple" skin to make i= t > >> >> >> load faster. > >> >> >> In the future I'll figure out how to remove the nav bar on the > left > >> >> >> as it's pretty much > >> >> >> useless (if you want to browse, use a web browser). > >> >> >> Note the debug output in the console - it shows the actual URL > >> >> >> you're looking at. > >> >> >> > >> >> >> A few hours of hacking, and here you have it: > >> >> >> > >> >> > >> > http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1.ta= r.bz2 > >> >> >> > >> >> >> Feedback is welcome, appreciated, and encouraged! I'll drop it > in > >> >> >> Banshee SVN at some > >> >> >> point so you can track progress (abock - do you mind me adding > >> this?) > >> >> >> > >> >> >> MAJOR credit goes out to Fredrik Hedberg - more than half the > code > >> >> >> was based on the > >> >> >> banshee-recommendation-plugin. I'll rewrite some of it in the > >> >> >> future to fit my > >> >> >> situation, but it provided a GREAT starting point for me as I > barely > >> >> >> had to think > >> >> >> twice about how to create the frame, enable/disable it with a > toggle > >> >> >> menu item, etc. > >> >> >> Thanks Fredrik! > >> >> >> > >> >> >> Enjoy! Reply to the list or snag me on IRC (nick: trick) > >> >> >> > >> >> >> Patrick > >> >> >> > >> >> >> -- > >> >> >> Patrick "Trick" van Staveren > >> >> >> Western Michigan University > >> >> >> http://www.trick.vanstaveren.us/ > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> _______________________________________________ > >> >> >> Banshee-list mailing list > >> >> >> Banshee-list@gnome.org > >> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> >> > >> >> > _______________________________________________ > >> >> > Banshee-list mailing list > >> >> > Banshee-list@gnome.org > >> >> > http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > > >> >> > >> >> > >> >> ----- End message from ghaefbgtk@gmail.com ----- > >> >> > >> >> > >> >> > >> >> _______________________________________________ > >> >> Banshee-list mailing list > >> >> Banshee-list@gnome.org > >> >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> >> > >> > > >> > > >> > >> > >> ----- End message from indecent@picle.org ----- > >> > >> > >> > >> _______________________________________________ > >> Banshee-list mailing list > >> Banshee-list@gnome.org > >> http://mail.gnome.org/mailman/listinfo/banshee-list > >> > > > > > ----- End message from jasl8r@gmail.com ----- > > > > _______________________________________________ > Banshee-list mailing list > Banshee-list@gnome.org > http://mail.gnome.org/mailman/listinfo/banshee-list > ------=_Part_3133_27860369.1146413713519 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline If you always add the _(band) first, then sometimes you will hit the band page, and otherwise you will go to the missing article page.  The following meta tag comes from the missing page:
<meta name=3D"robots" content=3D"noinde= x,nofollow" />
I imagine this is to prevent google from indexing tons of missing pages.  It looks like you could fetch a page such as /Kansas_(band) first and check for a robots meta tag.  In the case of /Kansas_(band) it won't be there and you will have your requested page.  However, if you were to go to /Collective_Soul_(band), then you would have a robots meta tag and you could then load /Collective_Soul which is the real page for this band.  I imagine as long as the band exists in wikipedia, one of these pages should exist.

Jeremy

On 4/30/06, Trick van Staveren <tric= k@vanstaveren.us> wrote:
I'd be totally game for that if I can (easily) detect disambiguation
pag= es somehow.  I
haven't really tried...but I can't think of any= other way than to look
right at the
source of the page, parse it all= up, and hope I'm doing it right and
that wikipedia
never changes their skin format.  Sounds li= ke a lot of work to me :/

I'm using the google search right now whic= h has proven really nice, and
I'm going to
research some of the exter= nal indexes to wikipedia...maybe there's one
that indexes
music groups only that we could search thru - that'd be= superb :)

Thanks for the suggestion!  LMK if you have any= idea how to detect
disambiguation/no-result pages (code wise, even if y= ou don't know C#,
anything's
good!)

Patrick

--
Patrick "Trick&qu= ot; van Staveren
Western Michigan University
AIM: goofyassmoose
Ce= ll: 269.267.6008
http://www= .trick.vanstaveren.us/


----- Message from jasl= 8r@gmail.com ---------
    Date: Sat, 29 Apr 200= 6 17:45:28 -0400
    From: Jeremy Slater <jasl8r@gmail.com >
Reply-To: banshee-lis= t@gnome.org
Subject: Re: [Banshee-List] Wikipedia plugin
 &n= bsp;    To: b= anshee-list@gnome.org


> Not sure if this is a good suggestion or not, but what if you firs= t try to
> go to the band specific page with the attached "_(ban= d)" in the url which
> exists when disambiguation is needed.&nbs= p; Then if that page "does not have an
> article" or whatnot you can go to the page without the attach= ed "_(band)" in
> the url.  I don't know if that = would be more accurate than google or not.
>
> Jeremy
>> On 4/29/06, Trick van Staveren < trick@vanstaveren.us> wrote:=
>>
>> Excellent!  This is what OSS is all abou= t :)
>>
>> Patches are more than just welcome - they're e= ncouraged.  If you've got
>> a better way of
>> doing this, don't hesitate to cont= ribute :)
>>
>> I haven't changed it much since 0.0.1, ot= her than I've been
>> experimenting with using
>> google = searches of wikipedia to better find the right pages - for
>> instance, when I
>> play a song by Kansas, I get info= about the state.  Searching google
>> for 'kansas band'=
>> returns only results with both words in it, and I use the auto= -redirect
>> to push it to
>> wikipedia.  It seems to re= turn better results (about 95% of the time I
>> get the correct>> page, versus right now probably only 75%).  Aside that,= patch away my
>> friend!
>>
>> I will be putting this in the bans= hee SVN or my personal SVN (which I'm
>> setting up this
>&g= t; weekend) and we can work together better :)
>>
>> I lo= ok forward to it!
>>
>> -Patrick
>>
>> --
>> Pa= trick "Trick" van Staveren
>> Western Michigan Universit= y
>> AIM: goofyassmoose
>> Cell: 269.267.6008
>>= =20 http://www.trick.vanstaveren.u= s/
>>
>>
>> ----- Message from indecent@picle.org ---------
>> =     Date: Sat, 29 Apr 2006 15:58:58 +0200
>>     From: indecent <indecent@picle.org>
>> Reply-To: indecent@picle.org
>> Subject: = Re: [Banshee-List] Wikipedia plugin
>>       To: trick@vanstaveren.us
>>
>>
>&= gt; > Hello,
>> > My Name is David Schneider, I#m a cs stude= nt from Germany.
>> >       Some = time ago i started writing a similar plugin for muine, but
>> for
>> > differtent reasons i never finished it. I= had used a x-path based
>> > aproach to parse the wikipedia pa= ges. So if you don't mind i'd love to
>> > contribute to the ba= nshee-wikipedia plugin.
>> >
>> > David
>> >
>> ><= br>>> > Am Freitag, den 28.04.2006, 15:36 -0400 schrieb Trick van = Staveren:
>> >> Interesting.  It looks almost like= you have the gecko-sharp libraries
>> >> but not the
>> >> underlying mozilla l= ibraries (or your gecko-sharp library is pointing
>> >> to t= he wrong
>> >> location).  Maybe I need to do some= thing in my package to point to the
>> >> proper location
>> >> of a mozilla lib= rary.  I don't know.
>> >> I looked on my system f= or the library, and I found that it's
>> >> libgtkembedmoz.s= o:
>> >> trick@mc /usr/lib $ find | grep gtkembedmoz.so
>>= ; >> ./mozilla/libgtkembedmoz.so
>> >> ./gecko-sdk/lib= /libgtkembedmoz.so
>> >> ./mozilla-firefox/libgtkembedmoz.so
>> >>
>> >>  From the looks of it,= your installation of gecko-sharp just doesn't
>> >> have th= e library
>> >> reference set up (properly).  Mayb= e I need to include
>> >> gecko-sharp.dll.config in the
>> >> pl= ugin install.
>> >> trick@mc /usr/lib/mono/gac/gecko-sharp/2= .0.0.0__ccf7d78a55e9f021 $ cat
>> >> gecko-sharp.dll.config
>> >> <configuration>
>> >>  = ; <dllmap dll=3D"libglib-2.0-0.dll" target=3D"libglib-2.0= .so.0"/>
>> >>   <dllmap dll=3D"li= bgobject-2.0-0.dll" target=3D" libgobject-2.0.so.0"/>
>> >>   <dllmap = dll=3D"libatk-1.0-0.dll" target=3D"libatk-1.0.so.0"/>= ;
>> >>   <dllmap dll=3D"libgtk-win32-2.0-= 0.dll" target=3D" libgtk-x11-2.0.so.0"/>
>> >>   <dllmap = dll=3D"gtkembedmoz.dll" target=3D"libgtkembedmoz.so"/&g= t;
>> >> </configuration>
>> >>
>= > >> If I were you, I'd drop a copy of your=20 gecko-sharp.dll.config into
>> >> ~/.gnome2/banshee/plugins = and see what happens!  Might fix it for you
>> :)
>= ;> >>
>> >> LMK if you make any progress!
>&g= t; >>
>> >> Patrick
>> >>
>> >> --<= br>>> >> Patrick "Trick" van Staveren
>> >= ;> Western Michigan University
>> >> AIM: goofyassmoose
>> >> Cell: 269.267.6008
>> >> http://www.trick.vanstaveren.us/
>= ;> >>
>> >>
>> >> ----- Message from= =20 ghaefbgtk@gmail.com --------->> >>     Date: Fri, 28 Apr 2006 20:42:11 = +0200
>> >>     From: Nil Gradisnik <= ghaefbgtk@gmail.com >
>> >> Reply-To: banshee-list@gnome.org
>> >> Subject: Re: [Banshe= e-List] Wikipedia plugin
>> >>     =   To: banshee-list@gnome.org
>> >>
>> >>
>= ;> >> > Looking good.
>> >> >
>> >= ;> > I'm getting an error when using this plugin on Banshee 0.10.9
>> >> > The exception is thrown by Gecko.WebControl ->= ; gtkembedmoz.so not
>> found.
>> >> > I linked = the mozillas libgtkembedmoz.so to /usr/lib/ and still no
>> luck
>> >> >
>> >> > Any suggestions ?
&= gt;> >> >
>> >> > On 4/28/06, Trick van Stave= ren <trick@vanstaveren.us>= ; wrote:
>> >> >> Howdy folks,
>> >> >>>> >> >> Everyone likes screenshots, so I'll start with= the screenie:
>> >> >>
>> >>
>&g= t;=20 http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugi= n-0.0.1.png
>> >> >>
>> >> >>= I was reading the feature requests page, and I've noticed that as
>> >> >> far back as I can
>> >> >&= gt; remember, someone requested that banshee show artist information
>= ;> >> >> from wikipedia.  At
>> >> = >> first I thought it was silly.  Banshee is a music player= , not a web
>> >> >> browser!  Well,
>> >&g= t; >> needless to say, I've found myself such an addict to wikipedia = for
>> >> >> artist information,
>> >> = >> that earlier today I thought it'd be a neat idea to implement.
>> >> >>
>> >> >> Thus, the bans= hee-wikipedia-plugin was born.
>> >> >> It's simple ri= ght now (and I plan to keep it as simple as possible).
>> >>= >> It's a Gecko widget dropped right below the library view. (Gecko = =3D=3D
>> >> >> firefoz/mozilla
>> >> >>= ; rendering engine).
>> >> >> It has a fixed size (for= now).
>> >> >> It can be hidden/shown from the View m= enu (CTRL+I as well - is this
>> >> >> an logical shortcut
>> >> >= ;> mapping?).
>> >> >> It automatically queries wik= ipedia (english) for a page with the
>> >> >> same tit= le as the
>> >> >> artist that you're playing.  Chang= es with the track you're playing.
>> >> >> I'm very ti= red.
>> >> >> This is accurate probably about 80% of t= he time...you'll usually
>> >> >> find a disambiguation
>> >> &= gt;> page wherever it's lacking.
>> >> >> I'm also = telling it to use the mediawiki "simple" skin to make it
>&= gt; >> >> load faster.
>> >> >> In the future I'll figure out how to remove = the nav bar on the left
>> >> >> as it's pretty much>> >> >> useless (if you want to browse, use a web brow= ser).
>> >> >> Note the debug output in the console - it sh= ows the actual URL
>> >> >> you're looking at.
>= > >> >>
>> >> >> A few hours of hacking= , and here you have it:
>> >> >>
>> >>
>> http://www.trick.vanstaveren.us/banshee/banshee-wikipedia-plugin-0.0.1= .tar.bz2
>> >> >>
>> >> >> Feedback i= s welcome, appreciated, and encouraged!  I'll drop it in
>&= gt; >> >> Banshee SVN at some
>> >> >> poi= nt so you can track progress (abock - do you mind me adding
>> this?)
>> >> >>
>> >> >= > MAJOR credit goes out to Fredrik Hedberg - more than half the code
= >> >> >> was based on the
>> >> >> b= anshee-recommendation-plugin.  I'll rewrite some of it in the
>> >> >> future to fit my
>> >> >&g= t; situation, but it provided a GREAT starting point for me as I barely
= >> >> >> had to think
>> >> >> twice= about how to create the frame, enable/disable it with a toggle
>> >> >> menu item, etc.
>> >> >>= ; Thanks Fredrik!
>> >> >>
>> >> >&g= t; Enjoy!  Reply to the list or snag me on IRC (nick: trick)
&= gt;> >> >>
>> >> >> Patrick
>> >> >>
>= ;> >> >> --
>> >> >> Patrick "Tric= k" van Staveren
>> >> >> Western Michigan Univers= ity
>> >> >> http://www.trick.vanstaveren.us/
>> >> >>
>= > >> >>
>> >> >>
>> >> &= gt;>
>> >> >> ____________________________________________= ___
>> >> >> Banshee-list mailing list
>> >= ;> >> Banshee-list@gnome= .org
>> >> >> http://mail.gnome.org/mailman/listinfo/banshee-list=
>> >> >>
>> >> > ______________= _________________________________
>> >> > Banshee-list mailing list
>> >> &= gt; Banshee-list@gnome.org>> >> > http://mail.gnome.org/mailman/listinfo/banshee-list
>> >>= ; >
>> >>
>> >>
>> >> -----= End message from ghaefbgtk@gmail.co= m -----
>> >>
>> >>
>> >>>> >> _______________________________________________
>= > >> Banshee-list mailing list
>> >> Banshee-list@gnome.org
>> >> http://mail.gnome.org/mailman/listinfo= /banshee-list
>> >>
>> >
>> > >>
>>
>> ----- End message from indecent@picle.org -----
>>
>>
= >>
>> _______________________________________________
>= ;> Banshee-list mailing list
>> Banshee-list@gnome.o= rg
>> http://mail.gnome.org/mailman/listinfo/banshee-list
>>
>


----- End message from jasl8r@gmail.com -----



_____________________________= __________________
Banshee-list mailing list
Banshee-list@gnome.org
http://mail.gnome.org/mailman/listinfo/banshee-list<= br>

------=_Part_3133_27860369.1146413713519-- From pcolijn@gmail.com Sun Apr 30 18:13:06 2006 Return-Path: X-Original-To: banshee-list@gnome.org Delivered-To: banshee-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 322D93B0A96 for ; Sun, 30 Apr 2006 18:13:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27714-01 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.233]) by menubar.gnome.org (Postfix) with ESMTP id 509683B0AA1 for ; Sun, 30 Apr 2006 18:13:04 -0400 (EDT) Received: by wproxy.gmail.com with SMTP id i2so891317wra for ; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Iv4YAyFeUcfCspas7ktPQXNpJXe++MVAqFF08CXmGdrmw8LTCdrLB4n+/H26GSpCJDHqnBWHPYPCQPTV+SG0k9KSNl6gI9mXoJ0n2fXJ6s4zYT8/L+D2G3+UPilXz06EAWvz4ibdmG2QkG+4jrV+yJpWTSk2HtmN2qd7xBVJikQ= Received: by 10.54.110.13 with SMTP id i13mr180047wrc; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Received: by 10.54.112.12 with HTTP; Sun, 30 Apr 2006 15:13:03 -0700 (PDT) Message-ID: <7c35b00e0604301513w424a2d63s7d7f57a4531a61cb@mail.gmail.com> Date: Sun, 30 Apr 2006 18:13:03 -0400 From: "Peter Colijn" To: banshee-list@gnome.org Subject: Re: [Banshee-List] Wikipedia plugin, v0.0.2 In-Reply-To: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 Content-Disposition: inline References: <20060430023721.tixynagz0pskcc0o@www.vanstaveren.us> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.59 tagged_above=-999 required=2 tests=[AWL=-0.772, BAYES_00=-2.599, MIME_BASE64_NO_NAME=0.224, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.59 X-Spam-Level: X-BeenThere: banshee-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: banshee-list@gnome.org List-Id: "Banshee is a GNOME/Mono audio management and playback program." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Apr 2006 22:13:06 -0000 T24gNC8zMC8wNiwgVHJpY2sgdmFuIFN0YXZlcmVuIDx0cmlja0B2YW5zdGF2ZXJlbi51cz4gd3Jv dGU6Cj4gICAgICAgICAqIEdvb2dsZSBzZWFyY2ggbW9kZSAtIHVzZXMgdGhlICJpJ20gZmVlbGlu ZyBsdWNreSIgZmVhdHVyZSBvZiBHb29nbGUgdG8gZGlyZWN0Cj4gdG8gdGhlIGNsb3NlcyBtYXRj aCB1c2luZyBHb29nbGUsIGFkZGluZyB0aGUga2V5d29yZCAiYmFuZCIuICBJIGtub3csIHRoaXMg aXNuJ3QgdGhlCj4gYmVzdCB3YXksIGJ1dCBpdCBpcyBtdWNoIG11Y2ggbW9yZSBhY2N1cmF0ZSB0 aGFuIGp1c3Qgc2VhcmNoaW5nIGZvciB0aGUgYXJ0aXN0Cj4ga2V5d29yZC4KCmhhdmUgeW91IHRo b3VnaHQgYWJvdXQgdXNpbmcgR29vZ2xlIE11c2ljIFNlYXJjaCBmb3IgdGhpcz8gZWcuCmh0dHA6 Ly93d3cuZ29vZ2xlLmNvbS9tdXNpY3NlYXJjaD9xPXUyCgpUaGF0IG1pZ2h0IHdvcmsgYSBiaXQg YmV0dGVyIHRoYW4gZG9pbmcgdGhlICJJJ20gZmVlbGluZyBsdWNreSIgdGhpbmcuCgpIYXZlIGZ1 biwKClBldGVyCg==