mono.git
17 years agoCopy this file
Miguel de Icaza [Wed, 14 Mar 2007 19:51:42 +0000 (19:51 -0000)]
Copy this file

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

17 years ago * TreeView.cs: Some workarounds so that we can match event order
Jackson Harper [Wed, 14 Mar 2007 19:38:41 +0000 (19:38 -0000)]
    * TreeView.cs: Some workarounds so that we can match event order
        * a
        little better.

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

17 years ago* ErrorProviderTest.cs: Enabled previously failing tests.
Gert Driesen [Wed, 14 Mar 2007 19:19:13 +0000 (19:19 -0000)]
* ErrorProviderTest.cs: Enabled previously failing tests.
* ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
#80803. Avoid NullReferenceException when Control does not have
parent. Fixed different blinkstyle issues. Only subscribe to Tick
event a single time. Only draw error icon when control is created and
visible. Fixes failing unit tests.

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

17 years ago2007-03-14 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Wed, 14 Mar 2007 18:25:08 +0000 (18:25 -0000)]
2007-03-14  Andreia Gaita  <avidigal@novell.com>

* TabControl.cs: Add support for 2.0 Deselecting, Deselected and
Selecting events. Fire Leave and Enter events when changing tabs.

* TabControlTest.cs: Add tests for Deselecting, Deselected,
Selecting events.

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

17 years ago2007-03-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Mar 2007 18:21:16 +0000 (18:21 -0000)]
2007-03-14  Zoltan Varga  <vargaz@gmail.com>

* process.c: Fix endianness issues. Fixes #81126.

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

17 years ago2007-03-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Mar 2007 17:49:13 +0000 (17:49 -0000)]
2007-03-14  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_reflection_create_dynamic_method): Fix the last change so
multiple circular calls made from the same DynamicMethod work. Fixes #81141.

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:38:59 +0000 (17:38 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:38:01 +0000 (17:38 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years ago2007-03-14 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 14 Mar 2007 17:36:40 +0000 (17:36 -0000)]
2007-03-14  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_lookup_resource): Make this work on big-endian
machines.Change API contract so the caller needs to free the return value.

* process.c (process_get_fileversion): Adapt to mono_image_lookup_resource ()
API change.

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:36:26 +0000 (17:36 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:33:08 +0000 (17:33 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:32:37 +0000 (17:32 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:30:52 +0000 (17:30 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:29:33 +0000 (17:29 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:29:03 +0000 (17:29 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:26:57 +0000 (17:26 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:25:03 +0000 (17:25 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:24:27 +0000 (17:24 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:24:11 +0000 (17:24 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years agorename jgac/vmw4j2ee_110 to jcag/framework
Noam Lampert [Wed, 14 Mar 2007 17:22:23 +0000 (17:22 -0000)]
rename jgac/vmw4j2ee_110 to jcag/framework

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

17 years ago* TemplateControl.jvm.cs: fixed WireupAutomaticEvents, performance optimization
Vladimir Krasnov [Wed, 14 Mar 2007 16:52:09 +0000 (16:52 -0000)]
* TemplateControl.jvm.cs: fixed WireupAutomaticEvents, performance optimization

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

17 years ago2007-03-14 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 14 Mar 2007 16:50:11 +0000 (16:50 -0000)]
2007-03-14  Martin Baulig  <martin@ximian.com>

* debug-helpers.c (mono_type_get_desc): In `MONO_TYPE_ARRAY', use
mono_type_get_desc() as well.

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

17 years ago* ProfileParser.jvm.cs: performance optimization
Vladimir Krasnov [Wed, 14 Mar 2007 16:45:09 +0000 (16:45 -0000)]
* ProfileParser.jvm.cs: performance optimization

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

17 years ago2007-03-14 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Wed, 14 Mar 2007 16:34:25 +0000 (16:34 -0000)]
2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>

* TreeView.cs: Add TreeViewNodeSorter.
* TreeNodeCollection.cs: Add sorter parameter to Sort method.
* TreeViewTest.cs: Add TreeViewNodeSorterTest.

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

17 years ago2007-03-14 Ivan N. Zlatev <contact@i-nz.net>
Sebastien Pouliot [Wed, 14 Mar 2007 15:46:46 +0000 (15:46 -0000)]
2007-03-14  Ivan N. Zlatev  <contact@i-nz.net>

* ToolboxItem.cs: Fixed GetType not to be
dependant on ITypeResolutionService.

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

17 years agoTARGET_JVM adjustments.
Eyal Alalouf [Wed, 14 Mar 2007 15:08:09 +0000 (15:08 -0000)]
TARGET_JVM adjustments.

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

17 years ago2007-03-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Mar 2007 14:11:57 +0000 (14:11 -0000)]
2007-03-14  Sebastien Pouliot  <sebastien@ximian.com>

* ToolboxItem.cs: Normalize line endings.

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

17 years ago2007-03-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 14 Mar 2007 13:57:18 +0000 (13:57 -0000)]
2007-03-14  Marek Habersack  <mhabersack@novell.com>

* AppResourcesCompiler.cs: Fix a bug with global resources file
grouping where no translated resources were processed due to base
name mismatch.

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

17 years agoMakefile: Add the new GIF87a test files to the dist.
Sebastien Pouliot [Wed, 14 Mar 2007 13:13:22 +0000 (13:13 -0000)]
Makefile: Add the new GIF87a test files to the dist.

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

17 years ago2007-03-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Mar 2007 13:11:50 +0000 (13:11 -0000)]
2007-03-14  Sebastien Pouliot  <sebastien@ximian.com>

* GifCodecTest.cs: Add test cases for a GIF87a image - which is the
format that GDI+ save GIF files (even if the original was a GIF89a).

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

17 years ago2007-03-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 14 Mar 2007 13:10:25 +0000 (13:10 -0000)]
2007-03-14  Sebastien Pouliot  <sebastien@ximian.com>

* TestImage.cs: Add test cases for loading invalid files as an Image.

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

17 years agoAdd a GIF version 87a test case
Sebastien Pouliot [Wed, 14 Mar 2007 13:00:41 +0000 (13:00 -0000)]
Add a GIF version 87a test case

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

17 years agoUpdate to ignore TargetJvmNotWorking & TargetJvmNotSupported
Eyal Alalouf [Wed, 14 Mar 2007 11:00:00 +0000 (11:00 -0000)]
Update to ignore TargetJvmNotWorking & TargetJvmNotSupported

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

17 years agoMark tests as not working under TARGET_JVM
Eyal Alalouf [Wed, 14 Mar 2007 10:47:05 +0000 (10:47 -0000)]
Mark tests as not working under TARGET_JVM

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

17 years agoremove TARGET_JVM
Konstantin Triger [Wed, 14 Mar 2007 09:27:37 +0000 (09:27 -0000)]
remove TARGET_JVM

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

17 years agoremove TARGET_JVM
Konstantin Triger [Wed, 14 Mar 2007 09:20:08 +0000 (09:20 -0000)]
remove TARGET_JVM

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

17 years agoit should have come with the previous commit
Marek Habersack [Wed, 14 Mar 2007 08:52:56 +0000 (08:52 -0000)]
it should have come with the previous commit

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

17 years ago2007-03-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 14 Mar 2007 08:52:12 +0000 (08:52 -0000)]
2007-03-14  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: hadle situations when there exist a
control in the page with id matching the name of a field/property
in the parent class. In this case we use 'protected new' to
override the parent.

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

17 years ago2007-03-14 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 14 Mar 2007 08:44:13 +0000 (08:44 -0000)]
2007-03-14  Marek Habersack  <mhabersack@novell.com>

        * data/net_2_0/machine.config: add two missing section handlers.

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

17 years ago2007-03-14 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 14 Mar 2007 07:02:36 +0000 (07:02 -0000)]
2007-03-14  Chris Toshok  <toshok@ximian.com>

* Form.cs: go ahead and remove the RecreateHandles that jpobst
removed earlier and I had him add back it.  It turns out metacity
*does* in fact handle the MOTIF_WM_HINTS property changing, it
just doesn't redraw the window titlebar until you resize the
window.  This also means we aren't recreating the entire window
hierarchy on X when you change this property.  And it looks better
on windows, too.

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

17 years ago2007-03-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 14 Mar 2007 06:47:51 +0000 (06:47 -0000)]
2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItem.cs:
* ListView.cs: Collecting selection information
is now done in SelectedIndexCollection rather than in
SelectedListViewItemCollection. This is done so we can
have the selection information code in one single place
(virtual mode selection information entirely depends on
SelectedIndexCollection).

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

17 years ago2007-03-14 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Wed, 14 Mar 2007 06:03:51 +0000 (06:03 -0000)]
2007-03-14  Nagappan A  <anagappan@novell.com>

* SqlCommandTest.cs (ExecuteScalarTest, ExecuteReaderTest)
(ExecuteReaderTest, PrepareTest, TransactionTest): Modified
expected exception to NullReferenceException as it has to be
thrown in 2.0 profile.

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

17 years ago2007-03-14 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Wed, 14 Mar 2007 05:57:41 +0000 (05:57 -0000)]
2007-03-14  Nagappan A  <anagappan@novell.com>

* SqlCommand.cs (CommandType): Exception type thrown in 2.0
profile is different than 1.0, ArgumentOutOfRangeException.
(Connection): Exception type thrown in 2.0 profile is different
than 1.0, ArgumentOutOfRangeException.
(Execute): If Size property is 0 for String and Binary type, then
throw InvalidOperationException.
(ValidateCommand): Exception type thrown in 2.0 profile is
different than 1.0, NullReferenceException.

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

17 years agoThis breaks buildbot, remove for now
Miguel de Icaza [Wed, 14 Mar 2007 04:59:12 +0000 (04:59 -0000)]
This breaks buildbot, remove for now

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

17 years agoAdd eglib
Miguel de Icaza [Wed, 14 Mar 2007 03:28:13 +0000 (03:28 -0000)]
Add eglib

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

17 years ago2007-03-13 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 14 Mar 2007 03:25:45 +0000 (03:25 -0000)]
2007-03-13  Miguel de Icaza  <miguel@novell.com>

* ErrorProvider.cs: Add stubs for ISupportInitialize

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

17 years agoFix output directory.
Jonathan Chambers [Wed, 14 Mar 2007 03:19:32 +0000 (03:19 -0000)]
Fix output directory.

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

17 years ago * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
Carlos Alberto Cortez [Wed, 14 Mar 2007 00:32:48 +0000 (00:32 -0000)]
* ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
in the right order with the right values, from the Checked property,
just as MS does (instead of triggering them from ListView).

* ListView.cs: Make OnItemCheck and OnItemChecked internal.

2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

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

17 years agoFix
Miguel de Icaza [Tue, 13 Mar 2007 23:57:25 +0000 (23:57 -0000)]
Fix

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

17 years ago* Makefile.am:
Wade Berrier [Tue, 13 Mar 2007 23:54:11 +0000 (23:54 -0000)]
* Makefile.am:
* msvc/Makefile.am:
Update EXTRA_DIST to take into account .vcproj file moves

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

17 years agoAssist in debugging
Miguel de Icaza [Tue, 13 Mar 2007 21:29:47 +0000 (21:29 -0000)]
Assist in debugging

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

17 years ago* PrintingServices.cs: Add missing static method SysPrn.GetPrintDialogInfo
Andreia Gaita [Tue, 13 Mar 2007 20:27:34 +0000 (20:27 -0000)]
* PrintingServices.cs: Add missing static method SysPrn.GetPrintDialogInfo
for SWF to call up printing dialogues.

2007-03-13  Andreia Gaita  <avidigal@novell.com>

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

17 years ago* ErrorProviderTest.cs: Improved GetandSetErrorTest. Marked failing
Gert Driesen [Tue, 13 Mar 2007 20:20:14 +0000 (20:20 -0000)]
* ErrorProviderTest.cs: Improved GetandSetErrorTest. Marked failing
test NotWorking. Removed extra tabs.
* System.Windows.Forms_test.dll.sources: Added ErrorProviderTest.cs.

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

17 years ago * TextBoxBase.cs: Calculate the document before the handle is
Jackson Harper [Tue, 13 Mar 2007 20:17:51 +0000 (20:17 -0000)]
    * TextBoxBase.cs: Calculate the document before the handle is
        created, so there isn't an extra invalidate called.

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

17 years ago2007-03-13 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 13 Mar 2007 20:00:05 +0000 (20:00 -0000)]
2007-03-13  Jonathan Chambers  <joncham@gmail.com>

* *.vcproj: Move to msvc directory.
* *.bat: Move to msvc directory.
* libgc/misc.c: Use correct string type for GetModuleHandle.

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

17 years ago2007-03-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 13 Mar 2007 19:53:04 +0000 (19:53 -0000)]
2007-03-13  Marek Habersack  <mhabersack@novell.com>

* AspParser.cs: fix an off-by-one parsing bug with server-side
includes.

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

17 years ago2007-03-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 13 Mar 2007 19:51:32 +0000 (19:51 -0000)]
2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Implement ItemChecked 2.0 event. Also cast to
the correct handler in OnItemCheck method (ItemCheckEventHandler
instead of EventHandler). This used to throw an InvalidCastException.

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

17 years ago * TextBoxBase.cs: Calculate the document before the handle is
Jackson Harper [Tue, 13 Mar 2007 19:49:38 +0000 (19:49 -0000)]
    * TextBoxBase.cs: Calculate the document before the handle is
        created, so there isn't an extra invalidate called.

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

17 years ago2007-03-13 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 13 Mar 2007 18:59:08 +0000 (18:59 -0000)]
2007-03-13  Alp Toker  <alp@atoker.com>

* TypeTest.cs: Add a regression test for #63841.

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

17 years agoRevert r74157 -- should not have been a compiler test
Alp Toker [Tue, 13 Mar 2007 18:56:25 +0000 (18:56 -0000)]
Revert r74157 -- should not have been a compiler test

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

17 years ago2007-03-13 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 13 Mar 2007 18:08:42 +0000 (18:08 -0000)]
2007-03-13  Jonathan Chambers  <joncham@gmail.com>

*.vcproj: Fix Release build target, add define to remove CRT warnings,
structure output folders a bit better, begin WIN64 port.
*.bat: Use output from current VS target for executable.
* icall.c: Fix environ access on windows.
* gc.h: Fix Win64 typedef.

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

17 years ago2007-03-13 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 13 Mar 2007 16:56:58 +0000 (16:56 -0000)]
2007-03-13  Alp Toker  <alp@atoker.com>

* cilc.exe.sources:
* cilc.cs:
* CodeWriter.cs: Split out CodeWriter class.

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

17 years ago2007-03-13 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 13 Mar 2007 16:52:28 +0000 (16:52 -0000)]
2007-03-13  Alp Toker  <alp@atoker.com>

* cilc.cs: Use String.Empty.

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

17 years ago*.class is forbidden
Yaacov Akiba Slama [Tue, 13 Mar 2007 16:48:49 +0000 (16:48 -0000)]
*.class is forbidden

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

17 years ago2007-03-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 13 Mar 2007 14:33:59 +0000 (14:33 -0000)]
2007-03-13  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Don't set owner in ShowDialog until we are sure
that we aren't going to throw an exception.  [Fixes bug #80773]

2007-03-13  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add test for bug #80773.

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

17 years ago * PageThemeCompiler.cs: let property builders through, stop the
Marek Habersack [Tue, 13 Mar 2007 14:31:46 +0000 (14:31 -0000)]
* PageThemeCompiler.cs: let property builders through, stop the
builders that have no control type. Fixes bug #81092

* TemplateControlCompiler.cs:
Make sure builders are in valid state before trying to use them.

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

17 years agoOoops, that was the old version of my patch.
Martin Baulig [Tue, 13 Mar 2007 14:10:12 +0000 (14:10 -0000)]
Ooops, that was the old version of my patch.

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

17 years ago2007-03-09 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 13 Mar 2007 13:28:28 +0000 (13:28 -0000)]
2007-03-09  Martin Baulig  <martin@ximian.com>

* enum.cs (Enum): Make this a TypeContainer.
(EnumMember): Derive from `Const'.

* const.cs
(Const.DoResolveValue): New protected virtual method; move most of
the functionality of ResolveValue() here so we can override it in
`EnumMember'.
(Const.CreateConstantReference): Make this virtual.

* class.cs (Kind): Add `Kind.Enum'.
(TypeContainer.Emit): Don't emit the enums here; they're already
in the `RootContext.typecontainer_resolve_order'.

* rootcontext.cs (RootContext.EmitCode): Don't emit the enums
here; they're already in the `typecontainer_resolve_order'.

* ecore.cs (EnumConstant.ConvertImplicitly): Add
TypeManager.DropGenericTypeArguments().

* typemanager.cs
(TypeManager.CSharpEnumValue): Add DropGenericTypeArguments().
(TypeManager.IsEnumType): Likewise.
(TypeManager.EnumToUnderlying): Likewise.
(TypeManager.IsEqual): Add support for enums.

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

17 years ago2007-03-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 13 Mar 2007 13:11:04 +0000 (13:11 -0000)]
2007-03-13  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: name generated classes the same way MS.NET
does - include the app-relative path to the control/page in the
class name.
* PageCompiler.cs: interfaces are to be implemented by the parent
partial class, not the generated one.
* TemplateControlCompiler.cs:
Put field declarations for controls in the partial class.
* BaseCompiler.cs:
Change the generated code model for pages/controls to comply with
the way MS.NET does (partial class contains only two properties
plus declarations of all the controls, the actual control/page
class inherits from the partial class). Fixes bug #81001.

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

17 years agoalign with recent changes
Konstantin Triger [Tue, 13 Mar 2007 10:49:22 +0000 (10:49 -0000)]
align with recent changes

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

17 years ago2007-03-13 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Tue, 13 Mar 2007 09:58:40 +0000 (09:58 -0000)]
2007-03-13  Adar Wesley <adarw@mainsoft.com>

        * Page.cs: improved Async Page implementation.

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

17 years ago2007-03-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 13 Mar 2007 09:56:36 +0000 (09:56 -0000)]
2007-03-13  Marek Habersack  <mhabersack@novell.com>

        * AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <mhabersack@novell.com>

        * AppResourceFilesCollection.cs: added separate constructor for
        local resources handling.

        * TemplateControlCompiler.cs: request the local resource object
        with proper virtual path.

        * BaseCompiler.cs: added code to assing AppRelativeVirtualPath
        property in the page/control constructor.

        * AppResourcesCompiler.cs: does not require specifying manually
        whether it's a global or local resource compiler anymore. New
        constructors take care of that.
        Changed to compile local resources on demand, when a control/page
        is parsed.

2007-03-13  Marek Habersack  <mhabersack@novell.com>

        * TemplateControl.cs: implement AppRelativeVirtualPath. Closes bug
        #80634.

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

17 years ago2007-03-13 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 13 Mar 2007 08:42:46 +0000 (08:42 -0000)]
2007-03-13 Igor Zelmanovich <igorz@mainsoft.com>

* HttpUtility.cs: fixed HttpUtillity.HtmlAttributeEncode
 '<' char must be encoded.

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

17 years ago2007-03-13 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 13 Mar 2007 05:46:50 +0000 (05:46 -0000)]
2007-03-13  Alp Toker  <alp@atoker.com>

* test-567.cs: New test based on #63841.

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

17 years ago2007-03-13 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 13 Mar 2007 05:46:40 +0000 (05:46 -0000)]
2007-03-13  Alp Toker  <alp@atoker.com>

* icall.c (ves_icall_MonoType_GetElementType): For enums, return null
rather than the underlying type. Based on a patch by Ben Maurer. Fixes
#63841.

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

17 years ago2007-03-12 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Mon, 12 Mar 2007 23:00:20 +0000 (23:00 -0000)]
2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>

* TreeView.cs: Make it compile.

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 22:16:35 +0000 (22:16 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Another place we don't call SizeFromClientSize.
* Form.cs: Another place we don't call SizeFromClientSize.
[Fixes bug #81125]

2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* ControlTest.cs: Add test for bug #81125.

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

17 years ago * TreeNode.cs: We need to start nodes with a zero visible order,
Jackson Harper [Mon, 12 Mar 2007 22:14:09 +0000 (22:14 -0000)]
    * TreeNode.cs: We need to start nodes with a zero visible order,
        because the order calcs are based on the first nodes order.

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

17 years ago - oops made scrolling backwards.
Jackson Harper [Mon, 12 Mar 2007 22:09:39 +0000 (22:09 -0000)]
    - oops made scrolling backwards.

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

17 years ago2007-03-12 Frederik Carlier <frederik.carlier@ugent.be>
Miguel de Icaza [Mon, 12 Mar 2007 21:43:56 +0000 (21:43 -0000)]
2007-03-12   Frederik Carlier <frederik.carlier@ugent.be>

* ResXFileRef.cs: Add support for byte[] types.

Fixes 81122

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

17 years ago * TreeView.cs: Basically emulating some strangness here with
Jackson Harper [Mon, 12 Mar 2007 21:21:44 +0000 (21:21 -0000)]
    * TreeView.cs: Basically emulating some strangness here with
        exanding nodes and setting node positions when windows aren't
        created.
        - Also attempting to walk the node tree less than previously,
          and
        just use visible order calculations for determining offsets.

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 21:09:50 +0000 (21:09 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Don't exit the program if RecreateHandle is called on
the main form.

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

17 years agoRevert r74140. Apparently the RecreateHandle is for proper behavior in X. Will...
Jonathan Pobst [Mon, 12 Mar 2007 21:00:31 +0000 (21:00 -0000)]
Revert r74140.  Apparently the RecreateHandle is for proper behavior in X.  Will fix another way.

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

17 years agoenable this test. works now.
Chris Toshok [Mon, 12 Mar 2007 20:56:07 +0000 (20:56 -0000)]
enable this test.  works now.

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

17 years ago2007-03-12 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 12 Mar 2007 20:40:40 +0000 (20:40 -0000)]
2007-03-12  Chris Toshok  <toshok@ximian.com>

* XEventQueue.cs: remove the use of PostQuitState.

* XplatUIX11.cs: remove the use of PostQuitState.  If we get a
WM_QUIT message in GetMessage, return false (and if we're in the
nested WaitForHwndMessage, repost the WM_QUIT message).

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 20:19:45 +0000 (20:19 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Don't call RecreateHandle when we change the MinimizeBox
or the MaximizeBox properties.  [Part of bug #80640]

2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Add a test showing we do not recreate the handle when
MinimizeBox or MaximizeBox is changed. [Part of bug #80640]

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

17 years agoadd test to confirm behavior of Control.SetVisibleCore, and remove some redundant...
Chris Toshok [Mon, 12 Mar 2007 20:09:19 +0000 (20:09 -0000)]
add test to confirm behavior of Control.SetVisibleCore, and remove some redundant tests which are covered by ControlHandleTest

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

17 years ago2007-03-12 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 12 Mar 2007 18:57:21 +0000 (18:57 -0000)]
2007-03-12  Everaldo Canuto  <everaldo@simios.org>

* LinkLabel.cs: When calculate pieces make LinkArea empty if theres
no links.

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 18:45:12 +0000 (18:45 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Fix some tests I broke by checking Visible
instead of visible.

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

17 years ago* FileDialog.cs: Use text of File name combobox to determine what
Gert Driesen [Mon, 12 Mar 2007 18:34:48 +0000 (18:34 -0000)]
* FileDialog.cs: Use text of File name combobox to determine what
files the user selected. Added tokenizer to parse the file names.
Fixes bug #81123.

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 16:25:57 +0000 (16:25 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* ControlTest.cs: Add test for bug #80621.

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

17 years agosmall bug fixes
Noam Lampert [Mon, 12 Mar 2007 16:22:41 +0000 (16:22 -0000)]
small bug fixes

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

17 years ago2007-03-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 12 Mar 2007 16:10:03 +0000 (16:10 -0000)]
2007-03-12  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: We can't call SizeFromClientSize in the constructor,
but we still need to do the same work, so make an internal version.
[Fixes bug #80621]

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

17 years agoMon Mar 12 17:07:32 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Mon, 12 Mar 2007 16:07:56 +0000 (16:07 -0000)]
Mon Mar 12 17:07:32 CET 2007 Paolo Molaro <lupus@ximian.com>

* amd64/amd64-codegen.h: removed some useless size rex prefixes.

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

17 years agoTD Bug fix: 7489 - the application should not throw an exception even if the configur...
Ilya Kharmatsky [Mon, 12 Mar 2007 14:44:08 +0000 (14:44 -0000)]
TD Bug fix: 7489 - the application should not throw an exception even if the configuration doesn't contain definition of JNDI entry for groups namespace.

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

17 years agoremove TARGET_JVM define
Konstantin Triger [Mon, 12 Mar 2007 14:28:44 +0000 (14:28 -0000)]
remove TARGET_JVM define

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

17 years agoTARGET_J2EE: Add stub for BuildManager
Konstantin Triger [Mon, 12 Mar 2007 14:26:15 +0000 (14:26 -0000)]
TARGET_J2EE: Add stub for BuildManager

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

17 years agoIn corlib/System.Runtime.InteropServices:
Raja R Harinath [Mon, 12 Mar 2007 13:31:45 +0000 (13:31 -0000)]
In corlib/System.Runtime.InteropServices:
* DefaultParameterValueAttribute.cs: Move to System.dll.

In System/System.Runtime.InteropServices:
* StandardOleMarshalObject.cs: New .net2.0 class.
* DefaultParameterValueAttribute.cs: Move here from corlib.

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

17 years ago2007-03-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 12 Mar 2007 12:58:31 +0000 (12:58 -0000)]
2007-03-12  Zoltan Varga  <vargaz@gmail.com>

* DynamicMethodTest.cs: Add a test for circular references.

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

17 years ago* typemanager.cs (InitCoreTypes) [NET_2_0]: Allow
Raja R Harinath [Mon, 12 Mar 2007 12:46:42 +0000 (12:46 -0000)]
* typemanager.cs (InitCoreTypes) [NET_2_0]: Allow
DefaultParameterValueAttribute to be undefined, say if System.dll
is not referenced.

(prepare to move DefaultParameterValueAttribute to System.dll)

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