Re: [Banshee-List] banshee and NET_2_0



The NET_* defines are internal to the class libraries in Mono itself. I wrote RangeCollection initially for Banshee to solve selection management efficiently for our ListView, but then realized Mono's Windows Forms could greatly benefit from the code as well in all the cases where they have to deal with selections.

The problem was that all of the winforms code was .NET 1.1, so I needed to provide two versions that differed slightly. Anyway, apparently we've actually been using the .NET 1.1 version of RangeCollection in Banshee (which has the silly resize bug Bertrand found), since NET_2_0 was never defined in (or maybe was removed from) our build system.

So, I'll define NET_2_0 and apply the patch on the bug.

Thanks Bertrand!

--Aaron

>>> "Sandy Armstrong" <sanfordarmstrong gmail com> 05/16/08 5:09 PM >>>
On 5/16/08, Bertrand Lorentz <bertrand lorentz gmail com> wrote:
> Hi,
>
>  While looking into http://bugzilla.gnome.org/show_bug.cgi?id=533099 I
>  noticed the following thing :
>
>  In two files in trunk there are some lines of code in "#if NET_2_0"
>  blocks. I'm using mono 1.2.6, and I think it has all the .NET 2.0
>  features (generics, etc.), so I expected those lines to be compiled.
>
>  It turns out that it's not the case (the #else blocks are compiled). Now
>  I'm all confused and I'd like to be un-confused...
>
>  So, is this the expected behaviour ?
>  If not, is there something wrong on my system (gentoo), or is there
>  something missing in the banshee build stuff ?

I'm noticing the same thing with Mono 1.9.1 on openSUSE, so it's not
something wrong on your system.  My guess is that the compiler used to
define NET_2_0 under certain circumstances, and no longer does.
Either that or something is missing from Banshee's build scripts, as
you say.

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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]