mono.git
17 years agoImproved memory allocation time
Leszek 'skolima' Ciesielski [Fri, 19 Jan 2007 11:13:59 +0000 (11:13 -0000)]
Improved memory allocation time

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

17 years ago2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 19 Jan 2007 07:12:11 +0000 (07:12 -0000)]
2007-01-19  Atsushi Enomoto  <atsushi@ximian.com>

* ServiceDescriptionImporter.cs : initialize CodeGenerator with C#.
* SoapProtocolImporter.cs : use XmlMemberMapping.GenerateTypeName()
  instead of TypeFullName for 2.0 nullable support. Fixed bug #80551.

* ServiceDescriptionImporterTest.cs : new test.
* test2.wsdl : new test support file.

* System.Web.Services_test.dll.sources:
  Added ServiceDescriptionImporterTest.cs.
* Makefile : added test2.wsdl to EXTRA_DISTFILES.

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

17 years ago2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 19 Jan 2007 06:35:02 +0000 (06:35 -0000)]
2007-01-19  Atsushi Enomoto  <atsushi@ximian.com>

* XmlMemberMapping.cs : uhoh, there is a nasty trick to output
  Nullable info.

* XmlSchemaImporterTests.cs :
  Added ImportMembersMapping_NullableField().

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

17 years ago2007-01-19 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 19 Jan 2007 04:56:35 +0000 (04:56 -0000)]
2007-01-19  Atsushi Enomoto  <atsushi@ximian.com>

* Makefile: there are configuration dependency things in sys.xml too.

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 19 Jan 2007 02:04:56 +0000 (02:04 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
and less GDI object leaky-er.

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

17 years ago2007-01-18 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Thu, 18 Jan 2007 23:58:22 +0000 (23:58 -0000)]
2007-01-18  Andreia Gaita  <avidigal@novell.com>

* LinkLabel.cs: Add opaque control style

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

17 years ago * TextControl.cs: Calculate width properly.
Jackson Harper [Thu, 18 Jan 2007 21:46:13 +0000 (21:46 -0000)]
    * TextControl.cs: Calculate width properly.
        - Don't store the tag's X offset, this can be figured out very
        easily.
        - When getting the caret tag make sure to get the last empty
          tag.

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 18 Jan 2007 20:18:45 +0000 (20:18 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Recalculate our size after setting a new FormBorderStyle.
[Fixes bug #79959]

* Control.cs: Color.Empty shouldn't count for previous transparent
redraw changes.

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

17 years ago * TextBox.cs:
Jackson Harper [Thu, 18 Jan 2007 19:34:18 +0000 (19:34 -0000)]
    * TextBox.cs:
        * RichTextBox.cs:
        * TextControl.cs: Starting to merge in some pieces of my older
        undo work.  Basically just some slight cleanup of the undo API.

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

17 years ago2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Thu, 18 Jan 2007 18:24:17 +0000 (18:24 -0000)]
2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* StatusBarTest.cs: Added tests for StatusBarPanelCollection.
* StatusBarPanelTest.cs: Added tests for new properties in StatusBarPanel.

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

17 years ago2007-01-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Thu, 18 Jan 2007 18:21:42 +0000 (18:21 -0000)]
2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* TrackBar.cs: Fix signature of RightToLeftLayout.
* StatusBar.cs: Implemented missing 2.0 methods and attributes.
* StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
* Application.cs: Implemented UseWaitCursor.

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

17 years ago * TextControl.cs: We can't skip tags if any part of the tag is
Jackson Harper [Thu, 18 Jan 2007 18:16:59 +0000 (18:16 -0000)]
    * TextControl.cs: We can't skip tags if any part of the tag is
        visible.

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

17 years ago2007-01-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 18 Jan 2007 18:04:33 +0000 (18:04 -0000)]
2007-01-18  Sebastien Pouliot  <sebastien@ximian.com>
* TestImage.cs: Test cases Stream_Unlock and Stream_Lock both fails
under MS 1.x with ArgumentNullException.

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

17 years ago2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 18 Jan 2007 18:00:36 +0000 (18:00 -0000)]
2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>

* TypeData.cs : added get_IsGenericNullable.
* MapCodeGenerator.cs : in GetDomType(), return Nullable<T> when
  the TypeData.IsGenericNullable.
  Use GetDomType() instead of CodeTypeReference.ctor() to not lose
  Nullable<T> info.
* XmlSchemaImporter.cs : added isNullable argument to GetTypeData()
  so that it won't XmlSchemaElement.IsNillable.
* TypeTranslator.cs :
  Fixed wrong TypeData modification against non-nullable stuff.
  Added another GetTypeData() that takes isNullableRuntimeType so
  that it won't miss XmlSchemaElement.IsNillable.
  Added another GetPrimitiveTypeData() that takes nullable.

* XmlSchemaImporterTests.cs :
  test that <xs:element nillable='true' ...> is mapped to Nullable<T>.

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

17 years agoTest for bug #79215.
Paolo Molaro [Thu, 18 Jan 2007 17:39:23 +0000 (17:39 -0000)]
Test for bug #79215.

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

17 years agoThu Jan 18 18:37:28 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 18 Jan 2007 17:38:21 +0000 (17:38 -0000)]
Thu Jan 18 18:37:28 CET 2007 Paolo Molaro <lupus@ximian.com>

* metadata.h: fix MONO_TYPE_ISSTRUCT() to not consider
genericinst enums (bug #79215).

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 18 Jan 2007 17:08:01 +0000 (17:08 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* ContainerControl.cs: Override OnLayout.

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

17 years agoTest case for runtime bug 79956.
Paolo Molaro [Thu, 18 Jan 2007 17:03:37 +0000 (17:03 -0000)]
Test case for runtime bug 79956.

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 18 Jan 2007 17:00:55 +0000 (17:00 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* NotifyIcon.cs: Add ContextMenuStrip and Tag properties.

* ContextMenuStrip.cs: Make sure context menu is shown on top of
everything else.

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

17 years agodoh, remove the non-working interactive test
Chris Toshok [Thu, 18 Jan 2007 16:46:41 +0000 (16:46 -0000)]
doh, remove the non-working interactive test

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

17 years agoFix the fix
Miguel de Icaza [Thu, 18 Jan 2007 16:32:41 +0000 (16:32 -0000)]
Fix the fix

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

17 years ago2007-01-18 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 18 Jan 2007 16:12:09 +0000 (16:12 -0000)]
2007-01-18  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Fix the LoadIndexed test case as it's current
implementation leads to false conclusions. MS GDI+ upgrades the
indexed PNG images to 32bpp ARGB. BMP are kept indexed but it's not
possible to create a Graphics from them.

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

17 years ago2007-01-18 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 18 Jan 2007 16:05:50 +0000 (16:05 -0000)]
2007-01-18  Chris Toshok  <toshok@ximian.com>

* ContainerControl.cs: remove the partial handling of LBUTTONDOWN
(leftover from the container_selected days, I'd wager).  fixes bug
#80546.

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

17 years agoAdd extra checks to avoid NullReference exception
Konstantin Triger [Thu, 18 Jan 2007 16:01:29 +0000 (16:01 -0000)]
Add extra checks to avoid NullReference exception

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

17 years ago2007-01-18 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 18 Jan 2007 16:00:28 +0000 (16:00 -0000)]
2007-01-18  Miguel de Icaza  <miguel@novell.com>

* HttpCapabilitiesBase.cs: Fix the build, I kept an old code path
for 1.0

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

17 years agotest case for bug #78431.
Paolo Molaro [Thu, 18 Jan 2007 15:59:11 +0000 (15:59 -0000)]
test case for bug #78431.

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

17 years agoThu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 18 Jan 2007 15:54:36 +0000 (15:54 -0000)]
Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>

* mini.c: match the generic definition to check for
private access with generic types (bug #78431).

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 18 Jan 2007 15:32:48 +0000 (15:32 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Apply patch from George to fix the new testcase on
bug #80451.  We can't just check for Color.Transparent, we need
to check if the back color's alpha channel is < 255.

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

17 years ago2007-01-18 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 18 Jan 2007 15:26:54 +0000 (15:26 -0000)]
2007-01-18  Jonathan Pobst  <monkey@jpobst.com>

* Form.cs: Move setting show_icon = true to before the constructor
so that the base constructor has that information when it calculates
the form's size.  Was causing forms to be (6, 6) bigger than they
were supposed to be.  Thanks for catching this Rolf!

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

17 years agoFix typo
Konstantin Triger [Thu, 18 Jan 2007 15:25:37 +0000 (15:25 -0000)]
Fix typo

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

17 years ago * TextControl.cs: When replacing a selection we need to
Jackson Harper [Thu, 18 Jan 2007 15:23:49 +0000 (15:23 -0000)]
    * TextControl.cs: When replacing a selection we need to
        * invalidate
        from the initial selection start, because selection start is
moved
        to the end of the replacement.

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

17 years ago* LinkLabel.cs: Missing ControlStyles. Fixes #80482
Andreia Gaita [Thu, 18 Jan 2007 15:22:53 +0000 (15:22 -0000)]
* LinkLabel.cs: Missing ControlStyles. Fixes #80482

2007-01-18  Andreia Gaita  <avidigal@novell.com>

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

17 years agoconsider Page's ClientTarget for BrowseCaps
Konstantin Triger [Thu, 18 Jan 2007 15:11:16 +0000 (15:11 -0000)]
consider Page's ClientTarget for BrowseCaps

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

17 years ago2007-01-18 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Thu, 18 Jan 2007 14:33:17 +0000 (14:33 -0000)]
2007-01-18  Adar Wesley <adarw@mainsoft.com>

        * Xml.cs: added support for XPathNavigator, fixed DocumentContent
        to be compatible with MS 2.0, implemented EnableTheming, implemented
        SkinID, fixed Focus behavior.

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

17 years agoremove the NotWorking's from a bunch of these
Chris Toshok [Thu, 18 Jan 2007 14:03:40 +0000 (14:03 -0000)]
remove the NotWorking's from a bunch of these

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

17 years ago2007-01-18 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 18 Jan 2007 14:01:16 +0000 (14:01 -0000)]
2007-01-18  Chris Toshok  <toshok@ximian.com>

* DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
I just added.

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

17 years agosvn path=/trunk/mcs/; revision=71257
Chris Toshok [Thu, 18 Jan 2007 13:36:11 +0000 (13:36 -0000)]
svn path=/trunk/mcs/; revision=71257

17 years agouse IEqualityComparer for key comparison
Konstantin Triger [Thu, 18 Jan 2007 12:41:05 +0000 (12:41 -0000)]
use IEqualityComparer for key comparison

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

17 years ago* Menu.js, Menu.js: added null reference checking for every getTree or getMenu call
Vladimir Krasnov [Thu, 18 Jan 2007 11:45:05 +0000 (11:45 -0000)]
* Menu.js, Menu.js: added null reference checking for every getTree or getMenu call

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

17 years agoAdded PortletNamespace proerty
Eyal Alalouf [Thu, 18 Jan 2007 10:57:54 +0000 (10:57 -0000)]
Added PortletNamespace proerty

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

17 years agoThu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Thu, 18 Jan 2007 10:51:13 +0000 (10:51 -0000)]
Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>

* genmdesc.pl, Makefile.am: perl implementation of genmdesc,
to make life easier for people cross-compiling that insist on not
using scratchbox.

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

17 years agoAvoid app_code et. al. assembly duplication on compilation error
Marek Habersack [Thu, 18 Jan 2007 10:40:39 +0000 (10:40 -0000)]
Avoid app_code et. al. assembly duplication on compilation error

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

17 years ago* ProfileModule.cs: fixed OnLeave, AutomaticSaveEnabled should be checked before...
Vladimir Krasnov [Thu, 18 Jan 2007 10:26:04 +0000 (10:26 -0000)]
* ProfileModule.cs: fixed OnLeave, AutomaticSaveEnabled should be checked before save

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

17 years ago2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 18 Jan 2007 10:23:33 +0000 (10:23 -0000)]
2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>

* CodeTypeReference.cs :
  Support generic type definition in .ctor(Type)
  Handle generic type in straightforward way in .ctor(Type), no need
  to do ToString() and Parse().
  Supply "`n" in .ctor(string,params CodeTypeReference[]).

* CSharpCodeGenerator.cs : for GenericTypeParameter, GetTypeOutput()
  should just print its name.
  For generic type definition, print "<>". OutputTypeArguments() was
  also causing IndexOutOfRangeException.

* CodeGeneratorFromTypeTestBase.cs :
  added GenerateGenericCodeTypeReferences() for generic type test.

* CodeGeneratorFromTypeTest.cs :
  Added test for generic type references output.

* CodeTypeReferenceTest.cs :
  Fixed generic type tests and let them involved in the actual tests.
  Added some more generic type tests, including generic type
  definition.

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

17 years ago* DerbyDBSchema.cs: added traces to unload handler
Vladimir Krasnov [Thu, 18 Jan 2007 10:18:45 +0000 (10:18 -0000)]
* DerbyDBSchema.cs: added traces to unload handler

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

17 years agouseDefaultCredentials is initialized to false
David Elkind [Thu, 18 Jan 2007 10:15:09 +0000 (10:15 -0000)]
useDefaultCredentials is initialized to false

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

17 years ago2007-01-18 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Thu, 18 Jan 2007 08:30:31 +0000 (08:30 -0000)]
2007-01-18  Adar Wesley <adarw@mainsoft.com>

        * SiteMapDataSource.cs: implemented logic of GetStartNode when
        StartingNodeOffset is positive.

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

17 years ago2007-01-18 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 18 Jan 2007 04:17:22 +0000 (04:17 -0000)]
2007-01-18  Atsushi Enomoto  <atsushi@ximian.com>

* System.dll.sources: added new sources:
  TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
  TraceEventCache.cs, TraceEventType.cs and SourceSwitch.cs.
* System_test.dll.sources: added new tests:
  TraceSourceTest.cs and SourceSwitchTest.cs.

* Switch.cs : added missing .ctor(), Attributes, Value,
  GetSupportedAttributes() and OnValueChanged().
* DiagnosticsConfigurationHandler.cs : added some hacky handler for
  new "sources" element. Don't wrap another ConfigurationException.
* TraceListener.cs : added missing trace methods.
* TraceSource.cs, SourceLevels.cs, CorrelationManager.cs,
  TraceEventCache.cs, TraceEventType.cs, SourceSwitch.cs:
  added missing 2.0 stuff, mostly just stubs.

* TraceSourceTest.cs, SourceSwitchTest.cs : new tests.
* SwitchesTest.cs : added test for GetSupportedAttributes().

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

17 years ago2007-01-17 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Wed, 17 Jan 2007 23:46:01 +0000 (23:46 -0000)]
2007-01-17  Everaldo Canuto  <everaldo@simios.org>

* ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every
layout methods and properties from ToolBarButton must be available
into ToolBarButtonInfo.

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

17 years ago2007-01-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 17 Jan 2007 23:16:38 +0000 (23:16 -0000)]
2007-01-17  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: If the control has a transparent background, we
need to refresh it when it moves and when it's parent's background
image changes.  [Fixes bug #80451]

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

17 years ago2007-01-17 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 17 Jan 2007 23:13:01 +0000 (23:13 -0000)]
2007-01-17  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!

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

17 years agoNew tests based on #80522
Marek Safar [Wed, 17 Jan 2007 22:19:37 +0000 (22:19 -0000)]
New tests based on #80522

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

17 years ago2007-01-17 Marek Safar <marek.safar@gmail.com>
Marek Safar [Wed, 17 Jan 2007 22:18:22 +0000 (22:18 -0000)]
2007-01-17  Marek Safar  <marek.safar@gmail.com>

A fix for bug #80368, #80522
* expression.cs (ArrayCreation.only_constant_initializers): Indicates
whether array initializer contains constants only.
(ArrayCreation.Emit): Use better formula to decide when
are array initializers for static initialization.
(ArrayCreation.EmitDynamicInitializers): When the array is small enough we
have to emit even constants otherwise they are pre-initialized.

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

17 years ago2007-01-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 17 Jan 2007 22:10:46 +0000 (22:10 -0000)]
2007-01-16  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIWin32.cs: Implement proper double buffering for Windows.
[Fixes bug #80447, and probably speeds up things as well]

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

17 years ago * class.c: Fix bug 80307.
Massimiliano Mantione [Wed, 17 Jan 2007 21:35:11 +0000 (21:35 -0000)]
* class.c: Fix bug 80307.

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

17 years ago * bug-80307.cs, Makefile.am: Added test for bug 80307.
Massimiliano Mantione [Wed, 17 Jan 2007 21:33:36 +0000 (21:33 -0000)]
* bug-80307.cs, Makefile.am: Added test for bug 80307.

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

17 years agoCompilation fixes
Marek Habersack [Wed, 17 Jan 2007 21:24:52 +0000 (21:24 -0000)]
Compilation fixes

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

17 years agoenable a couple more assertions
Chris Toshok [Wed, 17 Jan 2007 21:23:58 +0000 (21:23 -0000)]
enable a couple more assertions

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

17 years ago * inssel-long.brg: patch to deal with mips missing flags
Mark Mason [Wed, 17 Jan 2007 20:17:41 +0000 (20:17 -0000)]
* inssel-long.brg: patch to deal with mips missing flags
* inssel-long32-mips.brg: implement overflow checks
* insset-mips.brg: implement overflow checks
* mini-mips.h: implement conditional exception handling
* mini-mips.c: add mips_emit_exc_by_name(), implement
conditional exception handling.
  Remove unused code, minor cleanups.
* exceptions-mips.c: minor cleanups
* mini-ops.h: add mips conditional exception ops
* cpu-mips.md: add mips conditional exception ops

These changes contributed under the MIT/X11 license.

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

17 years ago2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Wed, 17 Jan 2007 19:15:13 +0000 (19:15 -0000)]
2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* XplatUIX11.cs: Caption height for MDI children is 19, not 26.
* XplatUIWin32.cs: We need to recalculate NC size after changing
window style to toolwindow (otherwise the client rectangle will be
3 pixels to small for some reason).
* MdiWindowManager.cs: Revert NC size calculations to match how
they are calculated only based on window styles (to match
Win32AdjustWindowRectEx, since otherwise when setting size or
location, Control will call Win32AdjustWindowRectEx to update client
size, which would provoke a paint, then we'd get a NCCALCSIZE and
calculate a different value of client size causing another paint
(and flickering))
* InternalWindowManager.cs: When moving or resizing a window only
update size or location if they actually changed.
* ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
(seems to match Windows behaviour better). Cleaned up
ManagedWindowDecorations to draw what's needed and nothing else
(was drawing borders and lines where they shouldn't be)
* Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
(style = 0xFFFF) and takes into account caption height when
calculating window rectangle.

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

17 years agoNew test.
Marek Safar [Wed, 17 Jan 2007 19:08:31 +0000 (19:08 -0000)]
New test.

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

17 years agoWed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 17 Jan 2007 18:23:33 +0000 (18:23 -0000)]
Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>

* inssel.brg: patch from Mark Mason <mason@broadcom.com>
to deal with mips missing of flags.

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

17 years ago2007-01-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 17 Jan 2007 17:30:12 +0000 (17:30 -0000)]
2007-01-17  Atsushi Enomoto <atsushi@ximian.com>

* XmlCanonicalizer.cs : don't output default namespace when the node's
  namespace is not empty. Check "visibly utilized" namespace nodes in
  exc-c14n. Also, in exc-c14n, rendered namespaces are not written.
  Added InclusiveNamespaces PrefixList field (not in use yet).

* XmlDsigExcC14NTransform.cs :
  re-imported from XmlDsigC14NTransform.cs.

* System.Security_test.dll.sources : added
  XmlDsigExcC14NTransformTest.cs.

* XmlDsigExcC14NTransformTest.cs : new tests, mostly copied from
  non-exc test.

* xmldsig.cs : exc-c14n tests could be run under 2.0 profile (and
  they are not working correctly yet).
* Makefile : Added net_2_0 profile support.

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

17 years agoToString the validating property value, if null return an empty string
Konstantin Triger [Wed, 17 Jan 2007 17:00:06 +0000 (17:00 -0000)]
ToString the validating property value, if null return an empty string

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

17 years agoToString the validating property value, if null return an empty string
Konstantin Triger [Wed, 17 Jan 2007 16:56:41 +0000 (16:56 -0000)]
ToString the validating property value, if null return an empty string

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

17 years agoWed Jan 17 17:26:08 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 17 Jan 2007 16:26:58 +0000 (16:26 -0000)]
Wed Jan 17 17:26:08 CET 2007 Paolo Molaro <lupus@ximian.com>

* main.c: if a file can't be loaded as an assembly, load it as a
modules, so monodis can be used also for netmodules.

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

17 years agoWed Jan 17 17:09:20 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 17 Jan 2007 16:11:55 +0000 (16:11 -0000)]
Wed Jan 17 17:09:20 CET 2007 Paolo Molaro <lupus@ximian.com>

* image.c: if the file table is not present, try to load
all the modules, since we don't have info about them
having or not metadata (bug #80517).
* assembly.c: allow mono_assembly_load_references () to
work for netmodules.

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

17 years ago * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
Everaldo Canuto [Wed, 17 Jan 2007 16:10:18 +0000 (16:10 -0000)]
* ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button
can be added to toolbar multiple times, we need to maintain a list of
button information for each positions.

2007-01-16  Everaldo Canuto  <everaldo@simios.org>

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

17 years agoIn mcs:
Raja R Harinath [Wed, 17 Jan 2007 15:45:46 +0000 (15:45 -0000)]
In mcs:
2007-01-17  Bill Holmes  <bill.holmes@ansys.com>
    Raja R Harinath  <rharinath@novell.com>

Fix emit order of 'get' vs. 'set'.
* support.cs (Accessors): New.
* cs-parser.jay (accessor_declarations): Use it instead of 'Pair'.
Note the order in which accessors are declared in the source.
* class.cs (PropertyBase.DefineGet, PropertyBase.DefineSet): New.
Refactored from Property.Define and Indexer.Define.
(PropertyBase.DefineAccessors): New helper that calls the above in
appropriate order as noted by the parser.
(Property.Define, Indexer.Define): Update to changes.
(PropertyBase.SetMethod.PropertyInfo): Don't return a null.

In gmcs:
2007-01-17  Bill Holmes  <bill.holmes@ansys.com>
    Raja R Harinath  <rharinath@novell.com>

* cs-parser.jay (accessor_declarations): Use it instead of 'Pair'.
Note the order in which accessors are declared in the source.

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

17 years ago* TreeView.cs: fixed RegisterStyle, style names should be without leading underscore...
Vladimir Krasnov [Wed, 17 Jan 2007 14:41:30 +0000 (14:41 -0000)]
* TreeView.cs: fixed RegisterStyle, style names should be without leading underscore. fixed RenderNode, node icons should be taken also from level styles

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

17 years ago2007-01-17 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 17 Jan 2007 14:23:10 +0000 (14:23 -0000)]
2007-01-17  Sebastien Pouliot  <sebastien@ximian.com>

* gdipFunctions.cs: Added Win32 CreateIconIndirect and DestoryIcon
imports. Both are required under Win32 to get HICON stuff working.
Added some GDI+ Metafile related definitions too.
* gdipStructs.cs: Update IconInfo structure so it can be used when
calling CreateIconIndirect on Win32.
* Icon.cs: Add support for handles under Win32.

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

17 years agoAuto app restart on folder changes
Marek Habersack [Wed, 17 Jan 2007 14:22:28 +0000 (14:22 -0000)]
Auto app restart on folder changes

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

17 years agothead/tbody aren't ignored anymore
Marek Habersack [Wed, 17 Jan 2007 14:02:03 +0000 (14:02 -0000)]
thead/tbody aren't ignored anymore

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

17 years agoNew sqlite ado.net 2.0 stuff
Marek Habersack [Wed, 17 Jan 2007 13:58:30 +0000 (13:58 -0000)]
New sqlite ado.net 2.0 stuff

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

17 years ago2007-01-17 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Wed, 17 Jan 2007 13:46:30 +0000 (13:46 -0000)]
2007-01-17  Adar Wesley <adarw@mainsoft.com>

        * Repeater.cs: refactored GetData to return data both from DataSource
        and DataSrouceID, Implemented EnableTheming, updated initialization of
        DataBinding according to the pattern of BaseDataBoundControl, fixed
        SelectArguments implementation to call the virtual
        CreateDataSourceSelectArguments method.

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

17 years agodon't force creating rows collection when SelectedIndex changes; RequireBinding on...
Konstantin Triger [Wed, 17 Jan 2007 13:42:45 +0000 (13:42 -0000)]
don't force creating rows collection when SelectedIndex changes; RequireBinding on select

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

17 years agoTest case for bug #80487.
Paolo Molaro [Wed, 17 Jan 2007 13:31:19 +0000 (13:31 -0000)]
Test case for bug #80487.

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

17 years agoWed Jan 17 14:28:30 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Wed, 17 Jan 2007 13:30:09 +0000 (13:30 -0000)]
Wed Jan 17 14:28:30 CET 2007 Paolo Molaro <lupus@ximian.com>

* image.c, metadata-internals.h, object.c: execute module
cctors when running on the 2 runtime if present (bug #80487).

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

17 years ago2007-01-16 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Wed, 17 Jan 2007 13:10:58 +0000 (13:10 -0000)]
2007-01-16  Everaldo Canuto  <everaldo@simios.org>

* ToolBar.cs: Some small stetic changes.

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

17 years ago* TreeNode.cs: fixed Bind, fixed Value updating
Vladimir Krasnov [Wed, 17 Jan 2007 13:02:58 +0000 (13:02 -0000)]
* TreeNode.cs: fixed Bind, fixed Value updating

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

17 years agoFix cs0029-6.cs and gcs0029-2.cs (regression)
Raja R Harinath [Wed, 17 Jan 2007 12:46:29 +0000 (12:46 -0000)]
Fix cs0029-6.cs and gcs0029-2.cs (regression)
* ecore.cs (EmptyConstantCast.ConvertImplicitly): Check that
there's an implicit conversion from the current type to the target
type before converting the underlying constant.

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

17 years agoremove spurious error in code
Raja R Harinath [Wed, 17 Jan 2007 11:03:11 +0000 (11:03 -0000)]
remove spurious error in code

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

17 years ago* DataList.cs: fixed OnBubbleEvent, added SelectedIndex updating
Vladimir Krasnov [Wed, 17 Jan 2007 10:27:34 +0000 (10:27 -0000)]
* DataList.cs: fixed OnBubbleEvent, added SelectedIndex updating

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

17 years ago2007-01-17 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Wed, 17 Jan 2007 10:14:27 +0000 (10:14 -0000)]
2007-01-17  Adar Wesley <adarw@mainsoft.com>

        * ApplicationHost.cs: tweaking CreateApplicationHost to throw the
        right exceptions so the tests will pass.

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

17 years ago* DetailsView.cs: fixed CreateChildControls, PageIndex cannot be less than zero
Vladimir Krasnov [Wed, 17 Jan 2007 09:55:26 +0000 (09:55 -0000)]
* DetailsView.cs: fixed CreateChildControls, PageIndex cannot be less than zero

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

17 years ago2007-01-17 Alp Toker <alp@atoker.com>
Alp Toker [Wed, 17 Jan 2007 08:01:39 +0000 (08:01 -0000)]
2007-01-17  Alp Toker  <alp@atoker.com>

* gacutil.1: Spelling and grammar fixes.

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

17 years agoSmall grammar fix.
Alp Toker [Wed, 17 Jan 2007 07:21:10 +0000 (07:21 -0000)]
Small grammar fix.

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

17 years ago2007-01-17 Alp Toker <alp@atoker.com>
Alp Toker [Wed, 17 Jan 2007 07:14:37 +0000 (07:14 -0000)]
2007-01-17  Alp Toker  <alp@atoker.com>

* sn.1: Spelling and grammar fixes.

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

17 years ago2007-01-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 16 Jan 2007 23:40:42 +0000 (23:40 -0000)]
2007-01-16  Marek Safar  <marek.safar@gmail.com>

* const.cs (ResolveValue): Updated after constant conversion was made more
generic.

* constant.cs (GetAttributableValue): constant to object conversion is
used for attributes only.
(IntConstant.ConvertImplicitly): Moved from convert to be used in all
constant conversions.
(LongConstant.ConvertImplicitly): Ditto.

* convert.cs (ImplicitNumericConversion): Extracted constant bussiness.
(ImplicitConversionStandard): Handle constant conversion as extra step.
It solves the issue when constant conversion was called indirectly like
inside array initializer and constant folding was skipped.

* literal.cs (NullLiteral.ConvertImplicitly): Fixed an issue exposed by
this change.

* statement.cs(ImplicitConversionStandard): Updated after constant
conversion was made more generic.

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

17 years ago * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
Jackson Harper [Tue, 16 Jan 2007 20:23:42 +0000 (20:23 -0000)]
    * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
        that allow us to have nested recalc = false blocks.
        - Add paste support for images in the RichTextBox
        * RichTextBox.cs: flush the text after the color is changed, so
        the change takes effect.
        - Use SuspendRecalc
        - Some extra debugging info
        * TextControl.cs: Tags no longer track their length, it is just
        computed from the next tags length, this makes things a little
        simpler and reduces places that we have to track length changes.
        - Refactored the linetag class a little so we could make it
        a base class for different kinds of tags
        - Created a image tag, a tag that can have a single image
          inserted
        into it
        - Replace the norecalc flag with a Suspend/Resume Recalc pair,
          so
        that we can call suspend multiple times.
        - Add some debugging methods

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

17 years ago2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Tue, 16 Jan 2007 19:37:52 +0000 (19:37 -0000)]
2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiClient.cs: Add ActivatePreviousChild for
mdi child window navigation.
* Form.cs: Use MdiClient.ActivateNextChild/
ActivatePreviousChild instead of Form.SelectNextControl
to select the next/previous child since
SelectNextControl doesn't do it in the same order
as mdi children should do it.

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

17 years ago2007-01-16 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 16 Jan 2007 19:19:02 +0000 (19:19 -0000)]
2007-01-16  Chris Toshok  <toshok@ximian.com>

* Control.cs: remove container_selected field.

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

17 years agoTue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 16 Jan 2007 19:01:45 +0000 (19:01 -0000)]
Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>

* exceptions-ppc.c: execute fault handlers.

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

17 years agoTue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 16 Jan 2007 18:59:19 +0000 (18:59 -0000)]
Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>

* mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.

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

17 years ago2007-01-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Tue, 16 Jan 2007 18:45:40 +0000 (18:45 -0000)]
2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiClient.cs: Update main form's ActiveChild when
updating keyboard focus for the mdi child.

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

17 years ago2007-01-16 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 16 Jan 2007 18:41:40 +0000 (18:41 -0000)]
2007-01-16  Chris Toshok  <toshok@ximian.com>

* UpDownTest.cs: add UpDownActiveControlTest.

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

17 years ago* RoleManagerModule.cs: fixed OnPostAuthenticateRequest, CacheRolesInCookie not suppo...
Vladimir Krasnov [Tue, 16 Jan 2007 17:44:01 +0000 (17:44 -0000)]
* RoleManagerModule.cs: fixed OnPostAuthenticateRequest, CacheRolesInCookie not supported yet
* Roles.cs: fixed DeleteCookie, CacheRolesInCookie not supported yet

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

17 years ago2007-01-16 Jonathan Pobst <jpobst@novell.com>
Jonathan Pobst [Tue, 16 Jan 2007 17:22:15 +0000 (17:22 -0000)]
2007-01-16  Jonathan Pobst  <jpobst@novell.com>

* ControlPropertyEventsTest.cs: Enable PropertyMinimumSize test.

* ControlTest.cs: Move ControlCollection tests to ControlCollectionTest.cs.

* EventArgsTest.cs, FlowPanelTests.cs: Change namespace to match all other tests.

* FormTest.cs: Add tests for FormClosed event and Show (IWin32Window).

* MenuStripTest.cs: Add test for MDI.

* SplitContainerTest.cs: Change namespace, remove TestNotRelaventProperties.

* ToolStripMenuItemTest.cs: Add test for MDI.

* ToolStripTest.cs: Ignore ControlStyle, Un-Ignore PropertyAutoSize.

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

17 years agoIn Test/System.Windows.Forms:
Rolf Bjarne Kvinge [Tue, 16 Jan 2007 16:57:50 +0000 (16:57 -0000)]
In Test/System.Windows.Forms:
2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MdiFormTest.cs: Added tests for ActiveChild for mdi parents.

In System.Windows.Forms:
* MdiClient.cs: Update main form's ActiveChild when
activating a mdi child.

2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

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

17 years ago* HtmlLink.cs: fixed RenderAttributes, href should be resolved
Vladimir Krasnov [Tue, 16 Jan 2007 16:52:52 +0000 (16:52 -0000)]
* HtmlLink.cs: fixed RenderAttributes, href should be resolved

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