mono.git
17 years agoGrasshopper project system now uses csproj extension
Noam Lampert [Mon, 12 Feb 2007 21:35:02 +0000 (21:35 -0000)]
Grasshopper project system now uses csproj extension

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

17 years ago2007-02-12 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 12 Feb 2007 21:20:13 +0000 (21:20 -0000)]
2007-02-12  Miguel de Icaza  <miguel@novell.com>

* CStreamWriter.cs (Write with char []): take the lock once for
all characters and call manually the InternalWriteChar properly to
speed things up.

(Write with string parameter): same thing, if the driver is not
initialized use a fast path.

If the driver has not been initialized, use a fast path instead.

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

17 years ago2007-02-12 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 12 Feb 2007 20:58:43 +0000 (20:58 -0000)]
2007-02-12  Everaldo Canuto  <everaldo@simios.org>

* Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
font height when compatible_text_rendering is false. Partially fix #80801.

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

17 years agoMon Feb 12 21:54:57 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 12 Feb 2007 20:56:30 +0000 (20:56 -0000)]
Mon Feb 12 21:54:57 CET 2007 Paolo Molaro <lupus@ximian.com>

* MonoType.cs: patch from Cedric Vivier <cedricv@neonux.com> to
get correctly non-public fields from generic types.

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

17 years agorevert r72565 and r72581. these will go on a branch and be merged back in once they...
Chris Toshok [Mon, 12 Feb 2007 20:27:27 +0000 (20:27 -0000)]
revert r72565 and r72581.  these will go on a branch and be merged back in once they stabilize and don't break everyone.

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

17 years agoMon Feb 12 21:10:07 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 12 Feb 2007 20:10:44 +0000 (20:10 -0000)]
Mon Feb 12 21:10:07 CET 2007 Paolo Molaro <lupus@ximian.com>

* loader.c: implemented typedef parent in field memberref.

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

17 years agoForget to commit.
Marek Safar [Mon, 12 Feb 2007 19:35:24 +0000 (19:35 -0000)]
Forget to commit.

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

17 years ago2007-02-12 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 12 Feb 2007 19:31:42 +0000 (19:31 -0000)]
2007-02-12  Everaldo Canuto  <everaldo@simios.org>

* LabelTest.cs: Rename PreferredSize test to PreferredWidth and
create PreferredHeight.

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

17 years agotest based on #80749
Marek Safar [Mon, 12 Feb 2007 18:27:45 +0000 (18:27 -0000)]
test based on #80749

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

17 years ago2007-02-12 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 12 Feb 2007 18:26:51 +0000 (18:26 -0000)]
2007-02-12  Marek Safar  <marek.safar@gmail.com>

A fix for bug #80749
* assign.cs (FieldInitializer): FieldInitializer has to keep track of
its parent container.

* class.cs (DefineFieldInitializers): Each initializer can has different
resolve context.

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

17 years ago2007-02-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 12 Feb 2007 18:19:43 +0000 (18:19 -0000)]
2007-02-12  Sebastien Pouliot  <sebastien@ximian.com>

* X509Certificate2Test.cs: Add test case for a certificate using dates
with an UTC offset (e.g. 990630000000+1000).

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

17 years ago2007-02-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 12 Feb 2007 18:18:51 +0000 (18:18 -0000)]
2007-02-12  Sebastien Pouliot  <sebastien@ximian.com>

* X509CertificateTest.cs: Add test case for a certificate using dates
with an UTC offset (e.g. 990630000000+1000).

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

17 years ago2007-02-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 12 Feb 2007 18:17:17 +0000 (18:17 -0000)]
2007-02-12  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1Convert.cs: Add support for decoding ASN.1 dates with an UTC
offset (e.g. 990630000000+1000) as some certificates use this format.

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

17 years ago2007-02-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 12 Feb 2007 18:16:23 +0000 (18:16 -0000)]
2007-02-12  Sebastien Pouliot  <sebastien@ximian.com>

* ASN1Convert.cs: Add support for decoding ASN.1 dates with an UTC
offset (e.g. 990630000000+1000) as some certificates use this format.

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

17 years agoTransforms on an infinite region do not change it
Konstantin Triger [Mon, 12 Feb 2007 17:50:27 +0000 (17:50 -0000)]
Transforms on an infinite region do not change it

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

17 years agoTARGET_JVM: Add reference to System.Runtime.Serialization.Formatters.Soap
Konstantin Triger [Mon, 12 Feb 2007 17:32:41 +0000 (17:32 -0000)]
TARGET_JVM: Add reference to System.Runtime.Serialization.Formatters.Soap

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

17 years agoTest script fix for TARGET_JVM.
Boris Kirzner [Mon, 12 Feb 2007 16:34:45 +0000 (16:34 -0000)]
Test script fix for TARGET_JVM.

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

17 years ago2007-02-12 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Mon, 12 Feb 2007 15:49:53 +0000 (15:49 -0000)]
2007-02-12  Lluis Sanchez Gual  <lluis@novell.com>

* ChannelServices.cs: Added conditional calling of StartListener,
  to keep old software compatible with mono.

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

17 years agoIf reg1 and reg2 are declared on the same line, the type of reg2 will be
Miguel de Icaza [Mon, 12 Feb 2007 15:38:43 +0000 (15:38 -0000)]
If reg1 and reg2 are declared on the same line, the type of reg2 will be
struct even though MBREG_TYPE is declared as a pointer to struct.   Patch from Pekka Enberg <penberg@cs.helsinki.fi>

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

17 years agoAdd a comment.
Rolf Bjarne Kvinge [Mon, 12 Feb 2007 14:59:03 +0000 (14:59 -0000)]
Add a comment.

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

17 years agoMon Feb 12 15:50:24 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 12 Feb 2007 14:51:12 +0000 (14:51 -0000)]
Mon Feb 12 15:50:24 CET 2007 Paolo Molaro <lupus@ximian.com>

* shared.c: exit if semaphores can't be created (bug #80616).

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 14:36:39 +0000 (14:36 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* Literal.cs: implemented 2.0 feature - Mode.

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

17 years agoSources
Marek Habersack [Mon, 12 Feb 2007 14:17:49 +0000 (14:17 -0000)]
Sources

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 14:00:09 +0000 (14:00 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* ViewCollection.cs: fixed public API.

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

17 years agoSupport for preservation assembly mapping files (.compiled)
Marek Habersack [Mon, 12 Feb 2007 13:44:36 +0000 (13:44 -0000)]
Support for preservation assembly mapping files (.compiled)

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 13:25:14 +0000 (13:25 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* RepeaterItem.cs: implemented IDataItemContainer interface.

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 13:10:16 +0000 (13:10 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* TreeNodeStyle.cs: fixed public API.

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 13:08:09 +0000 (13:08 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* MenuItemStyle.cs: fixed public API.

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 12:37:52 +0000 (12:37 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* Calendar.cs:
* DayRenderEventArgs.cs:
implemented 2.0 feature - SelectUrl.

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 12:19:36 +0000 (12:19 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* GridViewRowCollection.cs: implemented IsReadOnly property.

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

17 years agoRemove unused csproj
Noam Lampert [Mon, 12 Feb 2007 11:17:55 +0000 (11:17 -0000)]
Remove unused csproj

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

17 years agoMon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 12 Feb 2007 10:55:02 +0000 (10:55 -0000)]
Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>

* Makefile.am: simplify and merge rules for cross-compilation.

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

17 years agoremove NotWorking category from the passing tests
Konstantin Triger [Mon, 12 Feb 2007 10:40:58 +0000 (10:40 -0000)]
remove NotWorking category from the passing tests

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

17 years agoremove NotWorking category from the passing tests
Konstantin Triger [Mon, 12 Feb 2007 10:25:32 +0000 (10:25 -0000)]
remove NotWorking category from the passing tests

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

17 years agofix typo
Konstantin Triger [Mon, 12 Feb 2007 10:19:21 +0000 (10:19 -0000)]
fix typo

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

17 years ago2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 12 Feb 2007 10:17:20 +0000 (10:17 -0000)]
2007-02-12 Igor Zelmanovich <igorz@mainsoft.com>

* BaseValidator.cs: implemented SetFocusOnError feature.

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

17 years agoTARGET_JVM: add SqlTypes tests and ignores to let them pass without failures
Konstantin Triger [Mon, 12 Feb 2007 09:13:38 +0000 (09:13 -0000)]
TARGET_JVM: add SqlTypes tests and ignores to let them pass without failures

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

17 years agoupdate
Miguel de Icaza [Sun, 11 Feb 2007 23:25:22 +0000 (23:25 -0000)]
update

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

17 years agoLambda expression support work:
Miguel de Icaza [Sun, 11 Feb 2007 20:30:59 +0000 (20:30 -0000)]
Lambda expression support work:

* Explicit typed parameters,
* Block bodies
* Expression bodies

All rules of compatibility have been implemented, this only works currently
for *one* probe of lambda expressions (no support for overload resolution yet).

2007-02-11  Miguel de Icaza  <miguel@novell.com>

* lambda.cs (LambdaExpression.Compatible): Remove some early code,
now all the heavy lifting to check that embedded statements or
expressions have the right form is done in the ContextualReturn.

(ContextualReturn): New class.

* ecore.cs (Error_InvalidExpressionStatement): Make a helper
method that can be invoked to report 201, so we do not replicate
this everywhere.

* cs-parser.jay: Reuse Error_InvalidExpressionStatement.

* cs-tokenizer.cs (xtoken): Correctly compute the column, it was
treating tabs as spaces.

2007-02-11  Miguel de Icaza  <miguel@novell.com>

* cs-parser.jay (lambda_expression_body): when the body is an
expression add a statement of the form:

contextual-return expression.

Where `contextual-return' is similar to `return', the difference
being that if the delegate that the lambda will be converted to
has a void return type, it will check that the result is a
ExpressionStatement and the result is a plain ret (no return
values on the stack).  If the return type of the delegate is of a
given type, this turns into a return with a value and does the
regular checking to check that the computed value can be
implicitly converted to the delegate return.

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

17 years ago2007-02-11 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 11 Feb 2007 17:15:05 +0000 (17:15 -0000)]
2007-02-11  Miguel de Icaza  <miguel@novell.com>

* cs-tokenizer.cs (xtoken): Correctly compute the column, it was
treating tabs as spaces.

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

17 years agotypo fix
Igor Zelmanovich [Sun, 11 Feb 2007 17:14:35 +0000 (17:14 -0000)]
typo fix

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

17 years ago2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 11 Feb 2007 17:09:34 +0000 (17:09 -0000)]
2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>

* Wizard.cs: refactoring:
used ContainedTable for ID attribute is rendered properly.

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

17 years agoAdded a 2.0 CompareTo override (refactoring)
Konstantin Triger [Sun, 11 Feb 2007 16:33:03 +0000 (16:33 -0000)]
Added a 2.0 CompareTo override (refactoring)

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

17 years ago2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 11 Feb 2007 16:16:45 +0000 (16:16 -0000)]
2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>

* CreateUserWizard.cs:
* Wizard.cs:
fixed SideBar.

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

17 years agoFix identified by Sebsatien
Miguel de Icaza [Sun, 11 Feb 2007 16:11:53 +0000 (16:11 -0000)]
Fix identified by Sebsatien

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

17 years ago2007-02-11 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Sun, 11 Feb 2007 16:10:36 +0000 (16:10 -0000)]
2007-02-11  Jonathan Chambers  <joncham@gmail.com>

* marshal.c: Fix warnings and remember to call Release on
IUnknown of RCW.

Code is contributed under MIT/X11 license.

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

17 years agoIfdef test not working in TARGET_JVM.
Boris Kirzner [Sun, 11 Feb 2007 15:19:32 +0000 (15:19 -0000)]
Ifdef test not working in TARGET_JVM.

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

17 years ago2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 11 Feb 2007 14:28:45 +0000 (14:28 -0000)]
2007-02-11 Igor Zelmanovich <igorz@mainsoft.com>

* DataList.cs: fixed: OnBubbleEvent() will return true if event is handled

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

17 years ago* SqlDateTime.cs: changed MaxValue and MinValue initialization, it was failing on...
Vladimir Krasnov [Sun, 11 Feb 2007 13:25:17 +0000 (13:25 -0000)]
* SqlDateTime.cs: changed MaxValue and MinValue initialization, it was failing on .net VM.

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

17 years ago* HttpApplication.cs: added exception pass through from processAction in j2ee portal
Vladimir Krasnov [Sun, 11 Feb 2007 09:50:38 +0000 (09:50 -0000)]
* HttpApplication.cs: added exception pass through from processAction in j2ee portal

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

17 years agoremove files to comply to .net public interface
Konstantin Triger [Sun, 11 Feb 2007 09:24:19 +0000 (09:24 -0000)]
remove files to comply to .net public interface

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

17 years agoAdd support for HandleRef to the Marshaller
Miguel de Icaza [Sun, 11 Feb 2007 03:40:33 +0000 (03:40 -0000)]
Add support for HandleRef to the Marshaller

2007-02-10  Miguel de Icaza  <miguel@novell.com>

* class-internals.h: Add MonoHandleRef definition, and
handleref_class to mono_defaults.

* metadata.c (mono_type_to_unmanaged): If we find HandleRefs in a
structure, use new conversion MONO_MARSHAL_CONV_HANDLEREF.

* marshal.c (emit_ptr_to_object_conv): Add support for HandleRefs
(do nothing on this stage)
(emit_object_to_ptr_conv): Extract the handle from the HandleRef.
(emit_marshal_handleref): New method, used for argument handling
of HandleRefs.

Tests are a simplified version of SafeHandle tests

Fixes: 80515

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

17 years ago2007-02-10 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 10 Feb 2007 16:21:47 +0000 (16:21 -0000)]
2007-02-10  Chris Toshok  <toshok@ximian.com>

* XplatUIWin32.cs (CreateWindow): reinstate the assignment of
hwnd.ClientWindow to properly associate Hwnd to Handle.  This
should be handled by the HwndCreating stuff, but it's not being
handled properly.  Fixes #80782.

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

17 years ago* PrintDialogTest.cs: Fixed DefaultValues test on 2.0 profile.
Gert Driesen [Sat, 10 Feb 2007 14:25:37 +0000 (14:25 -0000)]
* PrintDialogTest.cs: Fixed DefaultValues test on 2.0 profile.
* ToolStripTest.cs: Added test for bug #80762. Enabled ignored test.

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

17 years agoRemoved bogus eol-style:native properties.
Gert Driesen [Sat, 10 Feb 2007 13:26:56 +0000 (13:26 -0000)]
Removed bogus eol-style:native properties.

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

17 years agoRemoved bogus eol-style:native properties.
Gert Driesen [Sat, 10 Feb 2007 13:25:54 +0000 (13:25 -0000)]
Removed bogus eol-style:native properties.

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

17 years ago* FontUnitTest.cs: Added test to verify locale dependent behavior of
Gert Driesen [Sat, 10 Feb 2007 13:24:08 +0000 (13:24 -0000)]
* FontUnitTest.cs: Added test to verify locale dependent behavior of
FontUnit(string) ctor.
* FontUnit.cs: Fixed ToString () to use current locale.
* FormsAuthenticationTest.cs: Fixed build using csc 1.x.

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

17 years ago* ResXResourceReader.cs: Add additional checks for validity of reader
Gert Driesen [Sat, 10 Feb 2007 09:24:32 +0000 (09:24 -0000)]
* ResXResourceReader.cs: Add additional checks for validity of reader
and writer.
* ResXResourceReaderTest.cs: Fixed warnings, improve existing tests. Added
test for invalid reader and writer.

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

17 years ago* Form.cs: Fixed typo in exception message. Fixes bug #80779.
Gert Driesen [Sat, 10 Feb 2007 08:17:23 +0000 (08:17 -0000)]
* Form.cs: Fixed typo in exception message. Fixes bug #80779.

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

17 years ago2007-02-09 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 10 Feb 2007 02:35:10 +0000 (02:35 -0000)]
2007-02-09  Chris Toshok  <toshok@ximian.com>

* System.Windows.Forms_test.dll.sources: add ControlHandleTest.cs

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

17 years ago2007-02-09 Chris Toshok <toshok@ximian.com>
Chris Toshok [Sat, 10 Feb 2007 02:33:49 +0000 (02:33 -0000)]
2007-02-09  Chris Toshok  <toshok@ximian.com>

[big change, fixes #80020]

* AccessibleObject.cs: we need to make owner internal again to fix
some of ControlAccessibleObject.

* Control.cs: lots of changes here.  add support for WM_CREATE,
for which we generate OnHandleCreated.  Remove the OnHandleCreated
call from CreateHandle.  Also add support for WM_SHOWWINDOW where
we create child controls.  leave the MonoTODO's for the
accessibility calls, but fix the exceptions so the tests pass.

Add the InvalidOperationExceptions to Invoke methods, and remove a
couple of InvokeInternal methods we aren't using.

Also, add a couple of CreateHandle calls in places where we know
the handles are being created but our code doesn't reference
.Handle.

Make SetVisibleCore call OnVisibleChange if the handle isn't
created.  If the handle is created, we rely on XplatUI.SetVisible
generating the event synchronously.

Lastly, make sure we don't use this.Handle inside CreateHandle,
because we can call back into client (and that code can dispose of
the control).

* XplatUIStructs.cs: misc/cleanup.

* XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
although we don't populate the wParam properly.
(CreateWindow): generate WM_CREATE.
(MapWindow,UnmapWindow): make these calls synchronous, at great
performance expense (particularly in the unmap case), to match
win32 behavior.

* Form.cs (.ctor): remove the call to UpdateBounds. we don't need
to call it.
(set_MdiParent): don't recreate the handle unless it's been
created already.

* MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
it's created.

* NativeWindow.cs: this is probably the weirdest part of the
patch.  We need a way to link up the window being created to the
WM_CREATE message.  Since we can only be creating one window at a
time on a given thread, we keep track of a per-thread reference so
we can dispatch it properly.  We also need to keep track of the
Hwnd currently being created so that the win32 backend doesn't
have problems.

* XplatUIWin32.cs: a similar change to the one we made in
NativeWindow.cs.

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

17 years agoTest based on #80315
Marek Safar [Fri, 9 Feb 2007 23:01:56 +0000 (23:01 -0000)]
Test based on #80315

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

17 years ago2007-02-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 9 Feb 2007 22:45:55 +0000 (22:45 -0000)]
2007-02-09  Marek Safar  <marek.safar@gmail.com>

A fix for bug #80315 by martin.voelkle@gmail.com (Martin Voelkle)
* assign.cs: Use full implicit conversion for right side check.

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

17 years agoNew test.
Marek Safar [Fri, 9 Feb 2007 22:08:51 +0000 (22:08 -0000)]
New test.

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

17 years ago2007-02-09 Marek Safar <marek.safar@gmail.com>
Marek Safar [Fri, 9 Feb 2007 22:08:05 +0000 (22:08 -0000)]
2007-02-09  Marek Safar  <marek.safar@gmail.com>

* statement.cs (Switch): Switch over boolean type is not standardized.

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

17 years ago* Form.cs: Improved exception messages in ShowDialog.
Gert Driesen [Fri, 9 Feb 2007 21:12:16 +0000 (21:12 -0000)]
* Form.cs: Improved exception messages in ShowDialog.
* FormTest.cs: Added tests for bug #80773.

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

17 years agosync up the project files
Chris Toshok [Fri, 9 Feb 2007 16:20:13 +0000 (16:20 -0000)]
sync up the project files

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

17 years ago2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 9 Feb 2007 16:09:46 +0000 (16:09 -0000)]
2007-02-09  Sebastien Pouliot  <sebastien@ximian.com>

* Icon.cs: Resurrected some old Icon to Bitmap code from SVN history
to handle convertion for Win32, where MS GDI+ ICO codec doesn't
support all the icon formats supported by the Icon class.

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

17 years ago2007-02-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 9 Feb 2007 14:19:48 +0000 (14:19 -0000)]
2007-02-09  Sebastien Pouliot  <sebastien@ximian.com>

* PrintingServicesUnix.cs: Ensure we free the original pointer in
GetAlternativeDefaultPrinter (not the one used for iteration).

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:54:45 +0000 (13:54 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* System.Data_test.dll.sources: Added
System.Data.SqlTypes/SqlBytesTest.cs,
System.Data.SqlTypes/SqlCharsTest.cs.

* System.Data.dll.sources: Removed
System.Data.SqlTypes/SqlDate.cs, System.Data.SqlTypes/SqlTime.cs,
System.Data.SqlTypes/SqlUtcDateTime.cs,
System.Data.SqlTypes/SqlXmlReader.cs as they are not part of 2.0
profile.

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:53:25 +0000 (13:53 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* SqlBytesTest.cs: Added new tests

* SqlCharsTest.cs: Added new tests

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:52:48 +0000 (13:52 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* TestFile5.xml: Added new XML file required for tests.

* TestFile3.xml: Added new XML file required for tests.

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:51:10 +0000 (13:51 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* DbProviderFactory.cs: Derived class has to implement all the
methods of this class.

* DbProviderFactoriesConfigurationHandler.cs (Create): Removed
bogus MonoTODO

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:49:49 +0000 (13:49 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* SqlConnection.cs (SetConnectionString): Fixes bug # 80712. A
small typo.

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:49:06 +0000 (13:49 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* OdbcDataReader.cs (GetDecimal): Implemented new API.

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:48:28 +0000 (13:48 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* SqlNotFilledException.cs: Removed APIs that are not part of both
1.0 and 2.0.

* SqlTypeException.cs: Implemented missing attributes.

* SqlChars.cs, SqlBytes.cs: Implemented missing attributes,
methods and added IXmlSerializable.

* SqlDouble.cs, SqlSingle.cs, SqlBinary.cs, SqlString.cs:
Implemented missing attributes, added IXmlSerializable.

* SqlXml.cs, SqlInt16.cs, SqlInt32.cs, SqlInt64.cs: Implemented
missing attributes, added IXmlSerializable.

* SqlDateTime.cs, SqlDecimal.cs, SqlMoney.cs, SqlGuid.cs:
Implemented missing attributes, added IXmlSerializable

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

17 years ago2007-02-09 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Fri, 9 Feb 2007 13:47:41 +0000 (13:47 -0000)]
2007-02-09  Nagappan A  <anagappan@novell.com>

* DataSet.cs, DataRelationCollection.cs: Updated code as
        per coding standards.

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

17 years ago* PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
Gert Driesen [Fri, 9 Feb 2007 07:53:18 +0000 (07:53 -0000)]
* PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
if not set. Fixes bug #80764. Avoid accessing current_settings field
directly.
* PrintDialogTest.cs: Added test for bug #80764

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

17 years ago2007-02-08 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Thu, 8 Feb 2007 23:47:10 +0000 (23:47 -0000)]
2007-02-08  Everaldo Canuto  <everaldo@simios.org>

* Theme.cs: An new property MenuAccessKeysUnderlined added with default value
false.

* SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
public in 2.0 and for easy maintenance and dont break compatibility it is
internal in 1.1.

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

17 years ago2007-02-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 8 Feb 2007 22:20:32 +0000 (22:20 -0000)]
2007-02-08  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Implement using images from ImageList.

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

17 years ago2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 8 Feb 2007 20:30:32 +0000 (20:30 -0000)]
2007-02-08  Sebastien Pouliot  <sebastien@ximian.com>

* Bitmap.cs: Adapt code wrt Image changes. Reuse the serialization
ctor from Image to avoid duplicate code.
* gdipEnums.cs: Added ImageType. Clean up extra stuff.
* gdipFunctions.cs: Added GdipGetImageType and some metafile
definitions.
* Image.cs: Refactor code not to create a Bitmap for every images
(e.g. FromFile, FromStream) as the result can also be a Metafile.

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

17 years ago* DateTimePicker.cs: Change default date-formatting culture from
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 20:11:32 +0000 (20:11 -0000)]
* DateTimePicker.cs: Change default date-formatting culture from
  CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
  seems to be the way MS does it.

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

17 years ago* FormTest.cs: Improved test for bug #80604.
Gert Driesen [Thu, 8 Feb 2007 19:37:32 +0000 (19:37 -0000)]
* FormTest.cs: Improved test for bug #80604.

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

17 years ago* ControlTest.cs: Removed use of #pragma to allow tests to be built using
Gert Driesen [Thu, 8 Feb 2007 19:22:09 +0000 (19:22 -0000)]
* ControlTest.cs: Removed use of #pragma to allow tests to be built using
csc 1.x.

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

17 years ago2007-02-08 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Thu, 8 Feb 2007 19:17:49 +0000 (19:17 -0000)]
2007-02-08  Jonathan Chambers  <joncham@gmail.com>

        Add support for COM Callable Wrappers.

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

17 years ago* LogGenerator.cs: Generate code that can be built using csc 1.x.
Gert Driesen [Thu, 8 Feb 2007 19:17:40 +0000 (19:17 -0000)]
* LogGenerator.cs: Generate code that can be built using csc 1.x.
* ControlLogger.cs: Fixed code to compile using csc 1.x.

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

17 years ago2007-02-08 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Thu, 8 Feb 2007 19:16:27 +0000 (19:16 -0000)]
2007-02-08  Jonathan Chambers  <joncham@gmail.com>

Add support for COM Callable Wrappers.

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

17 years agoForgot the changelog for rev 72500 :p
Andreia Gaita [Thu, 8 Feb 2007 19:03:55 +0000 (19:03 -0000)]
Forgot the changelog for rev 72500  :p

2007-02-08  Andreia Gaita  <avidigal@novell.com>

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

17 years ago* PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
Andreia Gaita [Thu, 8 Feb 2007 18:59:26 +0000 (18:59 -0000)]
* PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image
(the 6 was cut off on the right side)

2007-02-08  Andreia Gaita  <avidigal@novell.com>

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

17 years agoNew test based on #80755
Marek Safar [Thu, 8 Feb 2007 18:20:09 +0000 (18:20 -0000)]
New test based on #80755

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

17 years agoTestRegion.cs: Add test cases for matrix operations on infinite regions (result is...
Sebastien Pouliot [Thu, 8 Feb 2007 18:20:07 +0000 (18:20 -0000)]
TestRegion.cs: Add test cases for matrix operations on infinite regions (result is always an infinite region). Add test cases for scale and scale+translate on regions (to see that they do not trigger a convertion into bitmap-based regions).

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

17 years ago2007-02-08 Marek Safar <marek.safar@gmail.com>
Marek Safar [Thu, 8 Feb 2007 18:19:29 +0000 (18:19 -0000)]
2007-02-08  Marek Safar  <marek.safar@gmail.com>

A fix for bug #80755
* decl.cs (FindBaseEvent): Don't use method cache for events.

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

17 years ago2007-02-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 8 Feb 2007 17:42:43 +0000 (17:42 -0000)]
2007-02-08  Chris Toshok  <toshok@ximian.com>

* X11Display.cs: port over some more changes from XplatUIX11.cs.

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

17 years ago2007-02-08 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 8 Feb 2007 17:24:43 +0000 (17:24 -0000)]
2007-02-08  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Tell MenuStrips to close when the form is clicked.
* MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs,
ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add
support for Overflow, where items that do not fit are automatically
reparented to a drop down menu.
* ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
Also: fixes bug #80747.

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

17 years agoAccidentally committed a working copy of MaskedTextBox.cs, deleting it.
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 16:49:52 +0000 (16:49 -0000)]
Accidentally committed a working copy of MaskedTextBox.cs, deleting it.

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

17 years ago* ComboBox.cs: Remove warning (unused code).
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 16:43:55 +0000 (16:43 -0000)]
* ComboBox.cs: Remove warning (unused code).
* ScrollableControl.cs: Remove warning for 1.1 profile.

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

17 years ago* Form.cs: Remove a warning.
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 16:39:58 +0000 (16:39 -0000)]
* Form.cs: Remove a warning.

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

17 years ago* DateTimePickerTest.cs: Created more tests for DateTimePicker, now
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 16:34:32 +0000 (16:34 -0000)]
* DateTimePickerTest.cs: Created more tests for DateTimePicker, now
  tests a lot of different custom formats.

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

17 years ago* DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
Rolf Bjarne Kvinge [Thu, 8 Feb 2007 16:33:28 +0000 (16:33 -0000)]
* DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
  'g' specifier, not documented anywhere, but seems to always show up
  as a single space (might have something to do with the DateTime 'g'
  specifier, which is the era format, but since DateTimePicker can't
  go earlier than 1753 it wouldn't matter) . Fixed quote handling,
  won't crash if the format has an unmatched quote. Now shows
  single-character formats correctly. Fixes #80744.

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

17 years ago2007-02-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 8 Feb 2007 15:40:02 +0000 (15:40 -0000)]
2007-02-08  Sebastien Pouliot  <sebastien@ximian.com>

* TestBmpCodec.cs: Add test case for non-inverted bitmaps #80751

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