mono.git
17 years agoAdd test for the struct constructor fix
Miguel de Icaza [Sat, 16 Dec 2006 16:58:36 +0000 (16:58 -0000)]
Add test for the struct constructor fix

svn path=/trunk/mcs/; revision=69577

17 years ago2006-12-16 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 16 Dec 2006 16:52:22 +0000 (16:52 -0000)]
2006-12-16  Chris Toshok  <toshok@ximian.com>

* SWF.csproj, SWF2k5.csproj: resync these.

* Makefile (EXTRA_DISTFILES): add build-csproj2k5

Also, make both SWF.csproj and SWF2k5.csproj depend on the scripts
which generate them.  That way if you're hacking on the script you
don't have to touch System.Windows.Forms.dll.sources every time
you want to update the output.

* build-csproj2k5: make some changes suggested by Marek:

- System.XML should be System.Xml.
- Change eol-style to native.
- remove the SubType's from all the .cs Compile elements.
- Add Mono.Posix if the configuration is DebugXBuild (can't test this though..)

svn path=/trunk/mcs/; revision=69576

17 years agoAdd test for bug #80256
Miguel de Icaza [Sat, 16 Dec 2006 16:47:10 +0000 (16:47 -0000)]
Add test for bug #80256

svn path=/trunk/mcs/; revision=69575

17 years agoNew tests.
Marek Safar [Sat, 16 Dec 2006 12:10:54 +0000 (12:10 -0000)]
New tests.

svn path=/trunk/mcs/; revision=69573

17 years agoNew tests.
Marek Safar [Sat, 16 Dec 2006 12:10:23 +0000 (12:10 -0000)]
New tests.

svn path=/trunk/mcs/; revision=69572

17 years ago2006-12-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 16 Dec 2006 11:53:34 +0000 (11:53 -0000)]
2006-12-16  Marek Safar  <marek.safar@gmail.com>

A fix for bug #77014
* expression.cs (Invocation.BetterFunction): Fixed to cope with dynamic
paramters correctly and not rely on hacks in Parameters class.
(Invocation.IsParamsMethodApplicable): Changed to accept params parameter
at any possition.
(Invocation.VerifyArgumentsCompat): Ditto.
(Invocation.EmitArguments): Changed to correctly emit params arguments at
any possition.

* parameter.cs (HasParams): Don't assume that params is the last one.

* support.cs (ReflectionParameters.ctor): Look for params attribute
correctly.
(ReflectionParameters.ParameterType): Removed hack when we returned last
parameter for out of range parameters.
(ParameterName, ParameterModifier): Ditto.

svn path=/trunk/mcs/; revision=69571

17 years ago2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 16 Dec 2006 11:10:12 +0000 (11:10 -0000)]
2006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ItemReference.cs: Avoid KeyNotFoundException in ConvertToString ()
        and ConvertToITaskItemArray ().

svn path=/trunk/mcs/; revision=69570

17 years ago2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 16 Dec 2006 11:08:06 +0000 (11:08 -0000)]
2006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Items.cs: Split not working test from others and add a test for
        reference to item that doesn't exist.

svn path=/trunk/mcs/; revision=69569

17 years ago2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Sat, 16 Dec 2006 10:57:32 +0000 (10:57 -0000)]
2006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Parameters.cs (ProcessProperty): Use SetProperty () not
        AddNewProperty ().

svn path=/trunk/mcs/; revision=69568

17 years agoThis TODO does not belong here
Miguel de Icaza [Sat, 16 Dec 2006 04:30:13 +0000 (04:30 -0000)]
This TODO does not belong here

svn path=/trunk/mcs/; revision=69567

17 years ago2006-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 16 Dec 2006 04:28:02 +0000 (04:28 -0000)]
2006-12-15  Miguel de Icaza  <miguel@novell.com>

* Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
TextBoxBase.cs, ListView.cs, ContainerControl.cs,
ScrollableControl.cs: Add a handful of methods that are
overwritten in 2.0

svn path=/trunk/mcs/; revision=69566

17 years ago2006-12-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 16 Dec 2006 03:57:26 +0000 (03:57 -0000)]
2006-12-15  Chris Toshok  <toshok@ximian.com>

* Makefile: add targets for the 2k5 csproj.

* build-csproj2k5: new script to build vs2005 specific projects.
use SWF2k5.sln instead of SWF.sln and upgrading.  The 2005 project
doesn't have the problems with resources that the 2003 project
has.  The only remaining stumbling block for use is Consts.cs.

* SWF2k5.sln, SWF2k5.csproj: visual studio 2005 versions of these
files.

svn path=/trunk/mcs/; revision=69565

17 years ago2006-12-15 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 16 Dec 2006 03:11:44 +0000 (03:11 -0000)]
2006-12-15  Chris Toshok  <toshok@ximian.com>

* XplatUIWin32.cs: initial implementation of the Reversible
drawing functions.  there are some problems.  DrawReversibleFrame
doesn't seem to work at all for Dashed FrameStyle, and in the
Thick case there are drawing errors at the corners (we probably
need to bind Rectangle instead of doing moveto/lineto's.)

svn path=/trunk/mcs/; revision=69564

17 years ago* SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
Andreia Gaita [Sat, 16 Dec 2006 03:03:08 +0000 (03:03 -0000)]
* SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput,
to send blocks of key messages. Send accumulates keys to send with Flush,
while SendWait sends all keys immediately.

* XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
XplatUIX11.cs, XplatUIX11-new.cs:
- Define SendInput and stubs for OSX and X11, implements Win32 with a call
to Win32 SendInput.
- Added INPUT support structures to XplatUIWin32 for Win32SendInput

Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
testing for ms.net on this class is very tricky, as the tests run too fast
to allow the hook to release, essentially freezing the keyboard and the
test. So, barring a win32 miracle, they'll be commited in the ms-notworking
category :p

2006-12-16  Andreia Gaita  <avidigal@novell.com>

svn path=/trunk/mcs/; revision=69563

17 years ago2006-12-15 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Sat, 16 Dec 2006 02:23:01 +0000 (02:23 -0000)]
2006-12-15  Jonathan Chambers  <joncham@gmail.com>

* marshal.c (mono_string_from_bstr): Revert previous Windows change
and fix on Linux.

svn path=/trunk/mono/; revision=69562

17 years agoAdd SafeHandle tests
Miguel de Icaza [Sat, 16 Dec 2006 00:35:05 +0000 (00:35 -0000)]
Add SafeHandle tests

svn path=/trunk/mono/; revision=69561

17 years agoI should have tested 1.0; Fix
Miguel de Icaza [Sat, 16 Dec 2006 00:22:53 +0000 (00:22 -0000)]
I should have tested 1.0;  Fix

svn path=/trunk/mono/; revision=69560

17 years ago2006-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 16 Dec 2006 00:16:39 +0000 (00:16 -0000)]
2006-12-15  Miguel de Icaza  <miguel@novell.com>

* marshal.c (mono_string_from_bstr): Jon Chambers pointed out that
my arguments were in the wrong order.   I also fixed the Windows
version which seems to have had the same issue.

svn path=/trunk/mono/; revision=69559

17 years ago2006-12-16 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Sat, 16 Dec 2006 00:15:11 +0000 (00:15 -0000)]
2006-12-16  Daniel Nauck  <dna@mono-project.de>

* System.Windows.Forms_test.dll.sources: Add
PaddingTest.cs
* Padding.cs: fixed serialization compability to MS ("_var" field names),
added missing attributes.

svn path=/trunk/mcs/; revision=69558

17 years ago006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 15 Dec 2006 23:35:11 +0000 (23:35 -0000)]
006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ItemPropertyGroupingBase.cs, TaskEngineAssemblyResolver.cs: Removed
        classes that were public in Beta 2 and aren't used.

        * Expression.cs: Added replacement for parsing expressions char by
        char. It uses regexes to find item/property/metadata references in
        given text.

        * ExpressionCollection.cs, BuildTask.cs, ConditionFactorExpression.cs,
        Target.cs, TaskEngine.cs, BuildItemGroup.cs, UsingTask.cs, Import.cs,
        BuildItem.cs, BatchingImpl.cs, BuildProperty.cs: Track API changes.

        * ConditionRelationalExpression.cs: Formatting.

        * OldExpression.cs: Commented everything.

        * MetadataReference.cs, ItemReference.cs, PropertyReference.cs: Moved
        parsing to Expression.

        * BuildItem.cs: Check if project is from XML in set_Condition and
        set_Exclude.

        * BuildPropertyGroup.cs, Project.cs: Add ImportedProject to
        Project.ctor.

        * ConditionNotExpression.cs, ConditionAndExpression.cs: Check if we
        can evaluate expression in CanEvaluateToBool ().

svn path=/trunk/mcs/; revision=69557

17 years agoForgot this file.
Marek Sieradzki [Fri, 15 Dec 2006 23:23:27 +0000 (23:23 -0000)]
Forgot this file.

svn path=/trunk/mcs/; revision=69556

17 years ago006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 15 Dec 2006 23:22:50 +0000 (23:22 -0000)]
006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ConsoleLoggerTest.cs: Added.
        * ProjectTest.cs, BuildItemTest.cs: More tests.

svn path=/trunk/mcs/; revision=69555

17 years ago2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 15 Dec 2006 23:21:07 +0000 (23:21 -0000)]
2006-12-16  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Items.cs, Conditions.cs, EvaluationOrder.cs: More tests.

svn path=/trunk/mcs/; revision=69554

17 years agoThis patch contains:
Miguel de Icaza [Fri, 15 Dec 2006 22:49:32 +0000 (22:49 -0000)]
This patch contains:

        SafeWaitHandle support for WaitHandles (2.0)

        A few APIs implemented from Marshal.

2006-12-11  Miguel de Icaza  <miguel@novell.com>

        * WaitHandle.cs: In 2.0 use SafeWaitHandles and the SafeWaitHandle
        patterns instead of using directly the IntPtr Handle.

        Refactor the code to reuse as much as possible, and follow the new
        conventions where appropriate.

2006-12-15  Miguel de Icaza  <miguel@novell.com>

        * Marshal.cs (SecureStringToCoTaskMemAnsi, SecureStringToBSTR,
        SecureStringToCoTaskMemUnicode, ZeroFreeCoTaskMemAnsi,
        ZeroFreeCoTaskMemUnicode, ZeroFreeGlobalAllocAnsi,
        ZeroFreeGlobalAllocUnicode): Implement.

        (StringToCoTaskAuto): return the same as Ansi.

        The ANSI code is out of sync with Mono, which treats ANSI as
        UTF-8.

        Code formatting changes

svn path=/trunk/mcs/; revision=69552

17 years agoThis patch contains:
Miguel de Icaza [Fri, 15 Dec 2006 22:47:09 +0000 (22:47 -0000)]
This patch contains:

SafeHandle implemenation
http://www.mono-project.com/SafeHandles for status

WaitHandle updates for using with new SafeWaitHandle.

Marshal replaces g_error with exceptions in a few areas.

2006-12-15  Miguel de Icaza  <miguel@novell.com>

* marshal.c (mono_free_bstr): On Unix, this is g_free.
(mono_string_from_bstr, mono_string_to_bstr): Implement bstr
conversions (for the tests in corlib to pass).

2006-12-14  Miguel de Icaza  <miguel@novell.com>

* marshal.c (emit_ptr_to_object_conv): For now, ignore
MONO_MARSHAL_CONV_SAFEHANDLE on return values (we need to throw an
exception if a ref SafeHandle in a struct has changed).

(emit_struct_conv): Do not perform layout checks for classes
derived from SafeHandle, as those are specially handled.

(emit_object_to_ptr_conv): Add support for
MONO_MARSHAL_CONV_SAFEHANDLE conversion.

(emit_marshal_safehandle): Implement conversion of return values
of safehandles (MARSHAL_ACTION_CONV_RESULT).

* threads.c: WaitHandle now is compiled with two different handles
"IntPtr os_handle" for 1.x and "SafeWaitHandle safe_wait_handle"
for 2.0.

(ves_icall_System_Threading_WaitHandle_WaitAll_internal)
(ves_icall_System_Threading_WaitHandle_WaitAny_internal): Adjust
these routines to cope with both kinds of fields.

2006-12-12  Miguel de Icaza  <miguel@novell.com>

* metadata.c (mono_type_to_unmanaged): Handle the case where
type->data.klass is a SafeHandle, and in that case, return the
size of a pointer (MONO_NATIVE_INT) and set the conversion to be
MONO_MARSHAL_CONV_SAFEHANDLE.

2006-12-11  Miguel de Icaza  <miguel@novell.com>

* marshal.c (emit_marshal): Hook up to the MONO_TYPE_CLASS and
MONO_TYPE_OBJECT cases and check for a SafeHandle here before
calling emit_marshal_object.

(emit_marshal_safehandle): Implement marshalling of
SafeHandle parameters (no ref support yet).

(MarshalAction): Document the defines as I implement
them for SafeHandle.

(emit_marshal_object): indentation police.

* class-internals.h: Define MonoSafeHandle.
Add safehandle_class to MonoDefaults type.

* verify.c: Add System.Runtime.InteropServices.SafeHandle to the
list of classes to check for fields.

* domain.c (mono_init_internal): Add SafeHandle to the list of
mono_defaults loaded.

svn path=/trunk/mono/; revision=69551

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 21:14:26 +0000 (21:14 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListViewGroup.cs: Added missing attributes.
* ListViewGroupCollection.cs: Added missing attributes.

svn path=/trunk/mcs/; revision=69548

17 years ago * Control.cs: Added missing 2.0 attributes
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 20:58:42 +0000 (20:58 -0000)]
* Control.cs: Added missing 2.0 attributes

2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>

svn path=/trunk/mcs/; revision=69547

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 20:42:45 +0000 (20:42 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.
Cloning works for bitmap. Metafiles aren't (actually) supported.

svn path=/trunk/mcs/; revision=69546

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 20:21:41 +0000 (20:21 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListViewItem.cs: fixed ListViewSubItem text property.
* ListViewCollectionsTest.cs: test works now on the 1.1 profile.
* ListViewItemTest.cs: add new ListViewSubItem text property test.

svn path=/trunk/mcs/; revision=69545

17 years ago2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 20:00:22 +0000 (20:00 -0000)]
2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiClient.cs: Added missing 2.0 attribute.
* MonthCalendar.cs: Added some missing 2.0 attributes
and properties.

svn path=/trunk/mcs/; revision=69544

17 years ago2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 19:30:52 +0000 (19:30 -0000)]
2006-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* Makefile: Execute PKITS tests only if the data is installed locally.
See System.dll unit tests for details.
* System.Security_test.dll.sources: Add some PKITS unit tests to the
build.

svn path=/trunk/mcs/; revision=69543

17 years ago2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 19:29:32 +0000 (19:29 -0000)]
2006-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* SignedCms.cs: Add missing TODO. Some code exists but depends on
other, unimplemented, stuff.

svn path=/trunk/mcs/; revision=69542

17 years ago2006-12-15 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 19:27:50 +0000 (19:27 -0000)]
2006-12-15  Sebastien Pouliot  <sebastien@ximian.com>

* PkitsTest.cs: New. Common test code to use the PKITS test data.
* Pkits_4_01_SignatureVerification.cs: New. Test signature on S/MIME
using the PKITS test data (if available).

svn path=/trunk/mcs/; revision=69541

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 18:56:32 +0000 (18:56 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListView.cs: implemented ListViewItemCollection Add 2.0 support.
* ListViewCollectionsTest.cs: new not working junk add test for ListViewItemCollection.

svn path=/trunk/mcs/; revision=69540

17 years ago * MdiChildContext.cs: Removed it, no longer used.
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 18:24:22 +0000 (18:24 -0000)]
* MdiChildContext.cs: Removed it, no longer used.
* MdiClient.cs: Added missing 2.0 attributes.

2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>

svn path=/trunk/mcs/; revision=69539

17 years ago2006-12-15 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 15 Dec 2006 18:15:45 +0000 (18:15 -0000)]
2006-12-15  Jonathan Pobst  <monkey@jpobst.com>

* MainMenu.cs: Add the new 2.0 constructor to help out people
using the MainMenu in VS2005.

svn path=/trunk/mcs/; revision=69538

17 years ago * InternalWindowManager.cs: Fix a NullRef with previous
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 17:55:15 +0000 (17:55 -0000)]
* InternalWindowManager.cs: Fix a NullRef with previous
changes for toolwindows.

2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>

svn path=/trunk/mcs/; revision=69537

17 years ago2006-12-15 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Fri, 15 Dec 2006 17:34:21 +0000 (17:34 -0000)]
2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* Control.cs:
- Added AfterTopMostControl to allow for certain controls
to always stay on top when normal controls are brought to
front.

* XplatUIWin32.cs:
- (DrawInversibleRectangle): Get window rectangle from Win32
in stead of from control, since Win32 doesn't calculate
screen coords correctly from control's Location if it
have docked siblings.

* MdiWindowManager.cs:
- Correct the control menu popup location when clicked on
the maximized form icon. (fixes #80223.1)
- Don't show moving rectangle if mouse hasn't moved from
the original clicked point.
- Removed FormGotFocus handler (not used).
- Calculate the control buttons location from the main
window's size and not client size (fixes #79770).
- Form is now closed when the form icon is double-clicked
(fixes #79775).
- Correct NCCalcSize numbers a little bit (fixes #80223.2)

* InternalWindowManager.cs:
- Moved some MDI-only methods to MdiWindowManager.
- Removed unused properties and methods.
- Unified method naming for methods handling wm messages.
- Moved all message handling to seperate methods for
each message.

* ThemeWin32Classic.cs:
- DrawManagedWindowDecorations now draws the title bar
with a gradient brush.
- Add a CPDrawButtonInternal that allows us to specify
light, normal and dark colors for the buttons (control
buttons for MDI children were drawn with the same light
color as the background, therefore loosing the 3D effect).

* SizeGrip.cs:
- Add a CapturedControl property that is used to
determine the control to resize (defaults to parent).
Needed for MdiClient, since its SizeGrip's parent is
MdiClient, but the control to resize is the main form.

* MdiClient.cs:
- Set SizeGrip's CapturedControl to the main form in order
to resize the main form and not the MdiClient.
- Override AfterTopMostControl to leave the scrollbars
always on top.

svn path=/trunk/mcs/; revision=69536

17 years ago* Marshal.cs: Use SystemDefaultCharSize to determine whether to
Gert Driesen [Fri, 15 Dec 2006 16:26:13 +0000 (16:26 -0000)]
* Marshal.cs: Use SystemDefaultCharSize to determine whether to
use Ansi or Unicode variant of StringToCoTaskMem.

svn path=/trunk/mcs/; revision=69534

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 15:52:28 +0000 (15:52 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListViewCollectionsTest.cs: new ListViewItemCollection AddRange tests

* ListView.cs: fixed ListViewItemCollection AddRange and
implemented ListViewItemCollection AddRange 2.0 support.

svn path=/trunk/mcs/; revision=69533

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 13:07:43 +0000 (13:07 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListViewCollectionsTest.cs: new ListViewItemCollection indexer test for #80199.

svn path=/trunk/mcs/; revision=69531

17 years ago2006-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Dec 2006 05:34:51 +0000 (05:34 -0000)]
2006-12-15  Miguel de Icaza  <miguel@novell.com>

* Marshal.cs (StringToCoTaskAuto): return the same as Ansi.

svn path=/trunk/mcs/; revision=69525

17 years ago2006-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Dec 2006 05:31:04 +0000 (05:31 -0000)]
2006-12-15  Miguel de Icaza  <miguel@novell.com>

* Marshal.cs: Code formatting changes

svn path=/trunk/mcs/; revision=69524

17 years ago2006-12-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 15 Dec 2006 05:24:32 +0000 (05:24 -0000)]
2006-12-15  Miguel de Icaza  <miguel@novell.com>

* FileInfo.cs: Empty implementations for Encrypt and Decrypt

svn path=/trunk/mcs/; revision=69523

17 years agoImprove message
Miguel de Icaza [Fri, 15 Dec 2006 05:23:57 +0000 (05:23 -0000)]
Improve message

svn path=/trunk/mcs/; revision=69522

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 03:39:04 +0000 (03:39 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* X500DistinguishedNameTest.cs: Add test case for Teletext/T61String.
* X509Certificate2Test.cs: Add test case for Teletext/T61String.

svn path=/trunk/mcs/; revision=69520

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 03:23:23 +0000 (03:23 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* X501Name.cs: Added support for (some cases of) T.61 strings, like
the latin-1 encoded accentued characters founds in some DN. Fix bug
#77295.

svn path=/trunk/mcs/; revision=69519

17 years agoD'oh!! guard 2.0 namespace with NET_2_0
Raja R Harinath [Fri, 15 Dec 2006 02:24:15 +0000 (02:24 -0000)]
D'oh!!  guard 2.0 namespace with NET_2_0

svn path=/trunk/mcs/; revision=69518

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 00:35:01 +0000 (00:35 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* X501NameTest.cs: Added test case with a DN using Teletex/T61String.

svn path=/trunk/mcs/; revision=69517

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 15 Dec 2006 00:33:51 +0000 (00:33 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* X501Name.cs: Added support for (some cases of) T.61 strings, like
the latin-1 encoded accentued characters founds in some DN. Fix bug
#77295.

svn path=/trunk/mcs/; revision=69516

17 years ago2006-12-15 Daniel Nauck <dna@mono-project.de>
Daniel Nauck [Fri, 15 Dec 2006 00:11:18 +0000 (00:11 -0000)]
2006-12-15  Daniel Nauck  <dna@mono-project.de>

* ListViewGroup.cs, ListViewGroupCollection.cs: Add
first part of ListViewGroups 2.0 support
* ListViewGroupTest.cs, ListViewGroupCollectionTest.cs: Add
tests for ListViewGroups
* ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
* ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
stub for ImageKey 2.0 support.

svn path=/trunk/mcs/; revision=69515

17 years agoComment
Miguel de Icaza [Fri, 15 Dec 2006 00:02:59 +0000 (00:02 -0000)]
Comment

svn path=/trunk/mcs/; revision=69514

17 years ago2006-12-14 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 14 Dec 2006 22:58:49 +0000 (22:58 -0000)]
2006-12-14  Mike Kestner  <mkestner@novell.com>

* ListView.cs: add text padding to the autocalculation for columns
of width -2.  Fixes #80207.

svn path=/trunk/mcs/; revision=69513

17 years agoThu Dec 14 21:42:39 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 20:43:06 +0000 (20:43 -0000)]
Thu Dec 14 21:42:39 CET 2006 Paolo Molaro <lupus@ximian.com>

* processes.c: fixed a few memory leaks when executing
processes.

svn path=/trunk/mono/; revision=69509

17 years ago2006-12-14 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 14 Dec 2006 20:41:48 +0000 (20:41 -0000)]
2006-12-14  Mike Kestner  <mkestner@novell.com>

* ListView.cs: add some index guarding for partial row navigation
logic.  Fixes #80250.

svn path=/trunk/mcs/; revision=69508

17 years ago* TabControlTest.cs: Added tests for Control.RemoveAt.
Gert Driesen [Thu, 14 Dec 2006 20:12:23 +0000 (20:12 -0000)]
* TabControlTest.cs: Added tests for Control.RemoveAt.

svn path=/trunk/mcs/; revision=69507

17 years agoThu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 19:25:03 +0000 (19:25 -0000)]
Thu Dec 14 20:24:09 CET 2006 Paolo Molaro <lupus@ximian.com>

* Process.cs: if a process object is restarted, close the
previous process handle (bug #80143).

svn path=/trunk/mcs/; revision=69505

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 14 Dec 2006 19:03:17 +0000 (19:03 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* AuthenticodeBase.cs: Support (strip) COFF symbol table when
calculating the hash value of a PE file.
* AuthenticodeDeformatter.cs: Adapt to changes in base class.
* AuthenticodeFormatter.cs: Reuse more code from base class. Strip
COFF symbol table (if present). Fix alignment (on 8 bytes) for the
signature location.

svn path=/trunk/mcs/; revision=69502

17 years ago2006-12-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 14 Dec 2006 18:59:10 +0000 (18:59 -0000)]
2006-12-14  Sebastien Pouliot  <sebastien@ximian.com>

* chktrust.cs: Display the error even if the root is trusted.

svn path=/trunk/mcs/; revision=69501

17 years ago* TypeBuilderTest.cs (MakeGenericType, Fail_MakeGenericType): New
Raja R Harinath [Thu, 14 Dec 2006 18:56:51 +0000 (18:56 -0000)]
* TypeBuilderTest.cs (MakeGenericType, Fail_MakeGenericType): New
tests inspired by #80253.

svn path=/trunk/mcs/; revision=69500

17 years agoFix #80253
Raja R Harinath [Thu, 14 Dec 2006 18:56:08 +0000 (18:56 -0000)]
Fix #80253
* reflection.c (mono_reflection_bind_generic_parameters): If the
generic type definition is a type builder, ensure that it is fully
initialized before instantiating it.  Kill some dead code.

svn path=/trunk/mono/; revision=69499

17 years agorevert r69151
Chris Toshok [Thu, 14 Dec 2006 18:44:35 +0000 (18:44 -0000)]
revert r69151

svn path=/trunk/mcs/; revision=69498

17 years ago* Type.cs (MakeGenericType): Can only be called on a generic type definition.
Raja R Harinath [Thu, 14 Dec 2006 18:30:01 +0000 (18:30 -0000)]
* Type.cs (MakeGenericType): Can only be called on a generic type definition.

svn path=/trunk/mcs/; revision=69497

17 years ago2006-12-14 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 14 Dec 2006 18:21:54 +0000 (18:21 -0000)]
2006-12-14  Mike Kestner  <mkestner@novell.com>

* ListView.cs: throw ArgumentExceptions when parented ListViewItems
are added or inserted to the collection.  Fixes #81099.

svn path=/trunk/mcs/; revision=69496

17 years agoUpdate copyrights
Miguel de Icaza [Thu, 14 Dec 2006 18:14:14 +0000 (18:14 -0000)]
Update copyrights

svn path=/trunk/mcs/; revision=69494

17 years agoAdding various attributes inheriting from MonoTODO.
Eyal Alalouf [Thu, 14 Dec 2006 17:37:34 +0000 (17:37 -0000)]
Adding various attributes inheriting from MonoTODO.

svn path=/trunk/mcs/; revision=69493

17 years agoThu Dec 14 17:02:59 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 16:18:22 +0000 (16:18 -0000)]
Thu Dec 14 17:02:59 CET 2006 Paolo Molaro <lupus@ximian.com>

* object.c: clear the loader_error () before loading
more metadata stuff (bug #80258).

svn path=/trunk/mono/; revision=69491

17 years ago2006-12-14 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 14 Dec 2006 15:50:24 +0000 (15:50 -0000)]
2006-12-14  Marek Safar  <marek.safar@gmail.com>

A fix for bug #79987
* decl.cs (DeclSpace.VerifyClsCompliance): External names cache is null
when assembly is not CLS compliant but type is. I have no idea why is this
allowed.

* typemanager.cs (Reset): Invalidate AllClsTopLevelTypes cache.

svn path=/trunk/mcs/; revision=69489

17 years agoThu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 14:23:32 +0000 (14:23 -0000)]
Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>

* mini.c: emit a break opcode where Debugger.Break () is called.

svn path=/trunk/mono/; revision=69488

17 years ago2006-12-14 Yoni Klain <yonik@mainsoft.com>
Yoni Klain [Thu, 14 Dec 2006 14:04:59 +0000 (14:04 -0000)]
2006-12-14  Yoni Klain         <yonik@mainsoft.com>
* ImageMapTest.cs:    added tests.

svn path=/trunk/mcs/; revision=69487

17 years agowin32 resource name is changed
Vladislav Spivak [Thu, 14 Dec 2006 13:54:22 +0000 (13:54 -0000)]
win32 resource name is changed

svn path=/trunk/mcs/; revision=69486

17 years ago2006-12-14 Yoni Klain <yonik@mainsoft.com>
Yoni Klain [Thu, 14 Dec 2006 12:53:13 +0000 (12:53 -0000)]
2006-12-14  Yoni Klain         <yonik@mainsoft.com>
* FormViewTest.cs:    added tests.

svn path=/trunk/mcs/; revision=69484

17 years agoThu Dec 14 13:50:48 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 12:51:31 +0000 (12:51 -0000)]
Thu Dec 14 13:50:48 CET 2006 Paolo Molaro <lupus@ximian.com>

* *.cs: added missing Serializable attributes.

svn path=/trunk/mcs/; revision=69483

17 years ago* Login.cs: refactored rendering, fixed OnAuthenticate event
Vladimir Krasnov [Thu, 14 Dec 2006 12:30:02 +0000 (12:30 -0000)]
* Login.cs: refactored rendering, fixed OnAuthenticate event
* LoginTest.cs: fixed controls id

svn path=/trunk/mcs/; revision=69481

17 years agoThu Dec 14 12:52:27 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 11:53:12 +0000 (11:53 -0000)]
Thu Dec 14 12:52:27 CET 2006 Paolo Molaro <lupus@ximian.com>

* MonoProperty.cs, ParameterInfo.cs, PropertyInfo.cs:
GetRequiredCustomModifiers()/GetOptionalCustomModifiers()
implementations.

svn path=/trunk/mcs/; revision=69474

17 years agoThu Dec 14 12:49:47 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 14 Dec 2006 11:50:56 +0000 (11:50 -0000)]
Thu Dec 14 12:49:47 CET 2006 Paolo Molaro <lupus@ximian.com>

* icall.c, icall-defs.h: type modifiers icalls for
parameters and properties.

svn path=/trunk/mono/; revision=69473

17 years ago2006-12-14 Yoni Klain <yonik@mainsoft.com>
Yoni Klain [Thu, 14 Dec 2006 09:44:44 +0000 (09:44 -0000)]
2006-12-14  Yoni Klain         <yonik@mainsoft.com>
* SiteMapPathTest.cs:    added tests.

svn path=/trunk/mcs/; revision=69470

17 years ago2006-12-13 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Thu, 14 Dec 2006 04:06:06 +0000 (04:06 -0000)]
2006-12-13  Everaldo Canuto  <everaldo@simios.org>

* MenuAPI.cs: Closes menu when right click out side of popup
it fix problem in ContextMenu and MainMenu. Fixes #80252.

svn path=/trunk/mcs/; revision=69468

17 years ago2006-12-13 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 13 Dec 2006 21:34:51 +0000 (21:34 -0000)]
2006-12-13  Miguel de Icaza  <miguel@novell.com>

* class.cs (ConstructorInitializer.Resolve): Allow for ":this()"
in struct constructors, they are basically no-ops.

svn path=/trunk/mcs/; revision=69464

17 years ago2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 13 Dec 2006 20:06:39 +0000 (20:06 -0000)]
2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs:
* ListViewCollectionsTest.cs: Add tests for the new 2.0
ListViewItemCollection methods (IndexOfKey, ContainsKey,
new indexer overload, Find, RemoveByKey).

svn path=/trunk/mcs/; revision=69463

17 years ago2006-12-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 13 Dec 2006 20:02:35 +0000 (20:02 -0000)]
2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs: Fix dumb error.

* ListView.cs: Add Find and ContainsKey methods in
ListViewItemCollection, and also return true for IsReadOnly
and IsFixedSize (changes for 2.0).

svn path=/trunk/mcs/; revision=69462

17 years ago* TextBoxTest.cs: Added test for bug #80163.
Gert Driesen [Wed, 13 Dec 2006 18:35:15 +0000 (18:35 -0000)]
* TextBoxTest.cs: Added test for bug #80163.

svn path=/trunk/mcs/; revision=69459

17 years ago* MutexTest.cs: Added test for bug #79358. Code formatting, no longer
Gert Driesen [Wed, 13 Dec 2006 18:29:50 +0000 (18:29 -0000)]
* MutexTest.cs: Added test for bug #79358. Code formatting, no longer
derive from (deprecated) TestCase.

svn path=/trunk/mcs/; revision=69457

17 years agoWed Dec 13 19:29:50 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 13 Dec 2006 18:23:22 +0000 (18:23 -0000)]
Wed Dec 13 19:29:50 CET 2006 Paolo Molaro <lupus@ximian.com>

* object.c, icall.c: fixed warnings.

svn path=/trunk/mono/; revision=69455

17 years agoWed Dec 13 17:21:40 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 13 Dec 2006 16:22:22 +0000 (16:22 -0000)]
Wed Dec 13 17:21:40 CET 2006 Paolo Molaro <lupus@ximian.com>

* mono-mmap.c, mono-mmap.h: use guint64 instead of off_t.

svn path=/trunk/mono/; revision=69453

17 years ago* ControlTest.cs: Improved Region test.
Gert Driesen [Wed, 13 Dec 2006 16:07:56 +0000 (16:07 -0000)]
* ControlTest.cs: Improved Region test.
* Control.cs: Allow Region to be set to null.

svn path=/trunk/mcs/; revision=69452

17 years ago2006-12-13 Yoni Klain <yonik@mainsoft.com>
Yoni Klain [Wed, 13 Dec 2006 15:41:08 +0000 (15:41 -0000)]
2006-12-13  Yoni Klain         <yonik@mainsoft.com>
* DetailsViewTest.cs:    added tests.

svn path=/trunk/mcs/; revision=69451

17 years ago2006-12-13 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Wed, 13 Dec 2006 14:10:25 +0000 (14:10 -0000)]
2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiWindowManager.cs: Remove unused (commented out) code.
* Form.cs: When the MdiChild is maximized, the form needs
WM_NCMOUSELEAVE, so request it.
* InternalWindowManager.cs:
- Added tooltips to control buttons.
- Removed duplicated control button handling code.
- Removed unused (commented out) code.

svn path=/trunk/mcs/; revision=69448

17 years agoWed Dec 13 12:04:02 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 13 Dec 2006 11:04:59 +0000 (11:04 -0000)]
Wed Dec 13 12:04:02 CET 2006 Paolo Molaro <lupus@ximian.com>

* Socket.cs: stub ReceiveBufferSize and SendBufferSize to
get ironpython to compile.

svn path=/trunk/mcs/; revision=69442

17 years ago2006-12-13 Yoni Klain <yonik@mainsoft.com>
Yoni Klain [Wed, 13 Dec 2006 09:46:13 +0000 (09:46 -0000)]
2006-12-13  Yoni Klain         <yonik@mainsoft.com>
* LoginTest.cs:    added tests.

svn path=/trunk/mcs/; revision=69441

17 years agoMailAddress compliance problem fixed
David Elkind [Wed, 13 Dec 2006 09:32:55 +0000 (09:32 -0000)]
MailAddress compliance problem fixed

svn path=/trunk/mcs/; revision=69440

17 years ago2006-12-13 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 13 Dec 2006 07:25:06 +0000 (07:25 -0000)]
2006-12-13  Miguel de Icaza  <miguel@novell.com>

* mini.c (mono_method_to_ir): Provide useful information on this
assert, to prevent others from debugging like I did.

svn path=/trunk/mono/; revision=69438

17 years agohispalinux -> myrealbox.
Atsushi Eno [Wed, 13 Dec 2006 02:48:50 +0000 (02:48 -0000)]
hispalinux -> myrealbox.

svn path=/trunk/mono/; revision=69434

17 years ago2006-12-12 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Wed, 13 Dec 2006 00:33:07 +0000 (00:33 -0000)]
2006-12-12  Everaldo Canuto  <everaldo@simios.org>

* MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor
was used because we must set cursor without trigger ChangeCursor event
and without change Cursor control property. Fixes #79963.

svn path=/trunk/mcs/; revision=69433

17 years ago2006-12-12 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Tue, 12 Dec 2006 20:46:54 +0000 (20:46 -0000)]
2006-12-12  Andreia Gaita  <avidigal@novell.com>

* Control.cs: Check if Region setter value is null, and ignore

svn path=/trunk/mcs/; revision=69432

17 years agoNew test.
Marek Safar [Tue, 12 Dec 2006 19:45:11 +0000 (19:45 -0000)]
New test.

svn path=/trunk/mcs/; revision=69431

17 years ago2006-12-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 12 Dec 2006 19:44:46 +0000 (19:44 -0000)]
2006-12-12  Marek Safar  <marek.safar@gmail.com>

* cs-tokenizer.cs (Position): Save preprocessor status too.

svn path=/trunk/mcs/; revision=69430

17 years agoTue Dec 12 20:35:10 CET 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 12 Dec 2006 19:36:13 +0000 (19:36 -0000)]
Tue Dec 12 20:35:10 CET 2006 Paolo Molaro <lupus@ximian.com>

* MethodBase.cs: added missing ComVisible attr.
* MethodInfo.cs: added a few missing methods that we implement
in derived classes.

svn path=/trunk/mcs/; revision=69429

17 years agoTest for .other event method handling.
Paolo Molaro [Tue, 12 Dec 2006 19:09:30 +0000 (19:09 -0000)]
Test for .other event method handling.

svn path=/trunk/mono/; revision=69428

17 years agoRemove commented code
Alp Toker [Tue, 12 Dec 2006 19:01:13 +0000 (19:01 -0000)]
Remove commented code

svn path=/trunk/mcs/; revision=69427