mono.git
17 years ago2007-04-17 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 17 Apr 2007 15:50:15 +0000 (15:50 -0000)]
2007-04-17  Jonathan Chambers <joncham@gmail.com>

       * Makefile: Fix build, add $(TEST_RUNTIME) before call to culevel.

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

17 years ago2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 17 Apr 2007 15:43:46 +0000 (15:43 -0000)]
2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>

* HttpException.cs: used GetBaseException() instead InnerException.

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

17 years ago2007-04-17 Joel Reed <joelwreed@gmail.com>
Miguel de Icaza [Tue, 17 Apr 2007 15:31:22 +0000 (15:31 -0000)]
2007-04-17  Joel Reed  <joelwreed@gmail.com>

        * WebHeaderCollection.cs: www-authenticate should be multivalue.
        This fixes a bug related to RFC 2608 which says in section
        "15.2 Offering a Choice of Authentication Schemes"

        An HTTP/1.1 server may return multiple challenges with a 401
 (Authenticate) response, and each challenge may use a different
        scheme.  The order of the challenges returned to the user agent
is in
        the order that the server would prefer they be chosen. The
server
        should order its challenges with the "most secure"
authentication
        scheme first. A user agent should choose as the challenge to be
made
        to the user the first one that the user agent understands.

        Before this change, mono was choosing whatever was sent last,
        which was the most insecure authentication option.

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

17 years ago2007-04-17 Jeffrey Stedfast <fejj@gnome.org>
Jeffrey Stedfast [Tue, 17 Apr 2007 15:18:44 +0000 (15:18 -0000)]
2007-04-17  Jeffrey Stedfast  <fejj@gnome.org>

Turns out my last patch was broken wrt handling some special keys
like Backspace and anything else that changed the cursor position
in some non-standard way.

* CStreamWriter.cs (Write): Instead of calling NotifyWrite(), we
instead need to check IsSpecialKey(), and, if so, flush whatever
we have saved in our temporary buffer and then call
WriteSpecialKey(). Otherwise go on as we did in the last patch.

* TermInfoDriver.cs (NotifyWrite): Broken up into 2 functions:
(IsSpecialKey): Returns true if we need to do some special voodoo
for this key
(WriteSpecialKey): Write the special key (using whatever voodoo
necessary)

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

17 years agoAdd msbuild project
Konstantin Triger [Tue, 17 Apr 2007 15:08:22 +0000 (15:08 -0000)]
Add msbuild project

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

17 years ago * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
Everaldo Canuto [Tue, 17 Apr 2007 14:44:24 +0000 (14:44 -0000)]
* ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior
from win32. Fixes #81255.

2007-04-17  Everaldo Canuto  <everaldo@simios.org>

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

17 years agoEnable input filter
Konstantin Triger [Tue, 17 Apr 2007 14:44:07 +0000 (14:44 -0000)]
Enable input filter

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

17 years agoTARGET_JVM: move DoFilter function into compilation
Konstantin Triger [Tue, 17 Apr 2007 14:43:01 +0000 (14:43 -0000)]
TARGET_JVM: move DoFilter function into compilation

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

17 years ago2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 17 Apr 2007 14:39:23 +0000 (14:39 -0000)]
2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>

* HttpException.cs: shows message of InnerException in head of Page.

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

17 years agoAdd generation of System.Web\UplevelHelper.cs file
Konstantin Triger [Tue, 17 Apr 2007 14:23:31 +0000 (14:23 -0000)]
Add generation of System.Web\UplevelHelper.cs file

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

17 years ago2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 17 Apr 2007 13:16:49 +0000 (13:16 -0000)]
2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>

* HttpException.cs: fixed generated HTML formating.

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

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

* culevel/culevel.exe.sources: added

* culevel/Makefile (thisdir): added

* culevel/CompileUplevel.cs: added

* Makefile (thisdir): added the culevel subdirectory to the list.

2007-04-17  Marek Habersack  <mhabersack@novell.com>

* Makefile (thisdir): added tools/culevel to the list of
subdirectories - it must be compiled before compiling the classes
since System.Web depends on it.

2007-04-17  Marek Habersack  <mhabersack@novell.com>

* Makefile (System.Web/UplevelHelper.cs): autogenerate the file if
it doesn't exist.

* System.Web.dll.sources: added the System.Web/UplevelHelper.cs
file. It is autogenerated by the culevel compiler.

* UplevelHelperDefinitions.xml: added default uplevel browsers
definition file. This serves as input to the culevel compiler in
the tools directory at the top of the mcs tree.

2007-04-17  Marek Habersack  <mhabersack@novell.com>

* WebUIValidation_2.0.js: added HaveRegexp () function to detect
if the browser supports the RegExp class. Use GetElement ()
everywhere.

* WebUIValidation.js: added HaveRegexp () function to detect if
the browser supports the RegExp class.

* webform.js: use WebForm_GetElementById everywhere.

2007-04-17  Marek Habersack  <mhabersack@novell.com>

* HtmlForm.cs: use the new uplevel browser detection code.

2007-04-17  Marek Habersack  <mhabersack@novell.com>

* BaseValidator.cs: use the new uplevel browser detection code.

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

17 years ago2007-04-17 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 17 Apr 2007 11:54:25 +0000 (11:54 -0000)]
2007-04-17  Everaldo Canuto  <everaldo@simios.org>

* ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
already present in CalculateButtonTextAndImageLayout.

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

17 years ago2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 17 Apr 2007 11:32:12 +0000 (11:32 -0000)]
2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>

* HttpContext.cs: GetGlobalResourceObject, GetLocalResourceObject
use case-insensitive ResourceManager

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

17 years ago* XplatUIX11.cs: When setting min/max size for a window we need to
Rolf Bjarne Kvinge [Tue, 17 Apr 2007 09:43:17 +0000 (09:43 -0000)]
* XplatUIX11.cs: When setting min/max size for a window we need to
  translate the coordinates to x coordinates. Create an overload of
  SetWindowMinMax that takes a CreateParams handling this, and change
  SetWMStyles to call this function (can't use Control.FromHandle in
  the SetWindowMinMax to get the control/CreateParams from the handle
  because the handle might not have been assigned to the control
  yet). Fixes #81371.

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

17 years ago2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 17 Apr 2007 06:16:42 +0000 (06:16 -0000)]
2007-04-17  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationManagerTest.cs : added SectionCollectionEnumerator().
  Fixed NotWorking test OpenMachineConfiguration().

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

17 years ago2007-04-16 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 17 Apr 2007 05:15:28 +0000 (05:15 -0000)]
2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: In ItemControl.ItemMouseDown, don't change check state
if StateImageList is non-null and it has less than two items (match MS
behaviour). Also, in HandleNavKeys handle the Space key, calling
the new ToggleItemsCheckState method, which tries to change the
checked state of the selected items. Fixes part of #81191.

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

17 years ago2007-04-16 Jeffrey Stedfast <fejj@gnome.org>
Jeffrey Stedfast [Tue, 17 Apr 2007 03:33:59 +0000 (03:33 -0000)]
2007-04-16  Jeffrey Stedfast  <fejj@gnome.org>

* CStreamWriter.cs (Write): Instead of writing 1 char at a time,
copy the bytes into a temporary char array (with a fixed max size)
so that we can minimize the number of Write() calls we make on the
underlying stream (and thus on the write() system call).

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

17 years ago2007-04-17 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 17 Apr 2007 02:37:09 +0000 (02:37 -0000)]
2007-04-17  Alp Toker  <alp@atoker.com>

* mono-api-diff.cs:
* mono-api-info.cs:
* MissingMethod.cs: Treat IsVirtual and IsFinal as independent
attributes.

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

17 years agoFix test.
Jonathan Chambers [Tue, 17 Apr 2007 02:04:53 +0000 (02:04 -0000)]
Fix test.

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

17 years ago2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 17 Apr 2007 01:54:45 +0000 (01:54 -0000)]
2007-04-17  Atsushi Enomoto  <atsushi@ximian.com>

* ConfigurationSectionCollection.cs : GetEnumerator() should return
  IEnumerator for the items, not keys.
* ConfigurationProperty.cs : more helpful type mismatch message.

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

17 years ago2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 17 Apr 2007 01:49:12 +0000 (01:49 -0000)]
2007-04-17  Atsushi Enomoto  <atsushi@ximian.com>

* ProcessModelSection.cs : cpuMask default value should be int,
  not uint.

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

17 years ago2007-04-17 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 17 Apr 2007 00:59:26 +0000 (00:59 -0000)]
2007-04-17  Alp Toker  <alp@atoker.com>

* DateTimeFormatInfo.cs: Provide set accessor for MonthNames.

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

17 years ago2007-04-17 Alp Toker <alp@atoker.com>
Alp Toker [Tue, 17 Apr 2007 00:38:06 +0000 (00:38 -0000)]
2007-04-17  Alp Toker  <alp@atoker.com>

* Array.cs: Make GetRank() icall private. Subclasses should use the
public Rank property.

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

17 years ago2007-04-16 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Mon, 16 Apr 2007 22:52:32 +0000 (22:52 -0000)]
2007-04-16  Jeffrey Stedfast  <fejj@novell.com>

* WindowsConsoleDriver.cs: Get rid of unused Echo property.

* NullConsoleDriver.cs: Get rid of Echo property.

* IConsoleDriver.cs: Get rid of Echo property.

* ConsoleDriver.cs (Echo::get/set): Removed, not needed.

* TermInfoDriver.cs (Echo::get/set): Removed, this isn't necessary
and is confusing.
(ReadKey): If we are intercepting the key, call SetEcho (false)
and then reset back to true after reading the key.
(ReadLine): Same idea here.
(GetCursorPosition): We no longer need to keep track of the
previous echo state, we no longer have it :)

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

17 years ago2007-04-16 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Mon, 16 Apr 2007 22:16:52 +0000 (22:16 -0000)]
2007-04-16  Jeffrey Stedfast  <fejj@novell.com>

Fix for bug #80710 (and a bug I introduced in my last fix due to
this code assuming the underlying term echo state was always
false) and other buglets that I noticed.

* TermInfoDriver.cs (ReadLine): Set (term) Echo to false as we do
our own manual echoing which prevents ^H from getting displayed on
the screen when the user hits backspace.
(ReadLine): If the user hits Backspace and builder.Length is 0, DO
NOT echo the backspace back to the console, ever.
(ReadLine): Only echo characters back to the console if echo is
set to true. Seems the Echo ConsoleDriver property is a Mono
extension, and I'm assuming this is the intended behavior? I can't
see what else the Echo property would be useful for...

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

17 years ago2007-04-16 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Mon, 16 Apr 2007 21:20:56 +0000 (21:20 -0000)]
2007-04-16  Jeffrey Stedfast  <fejj@novell.com>

Fixes bug #81050

* TermInfoDriver.cs: Renamed the noEcho variable to echo, makes
the logic cleaner/simpler/etc. Plus it was never actually used
other than in the property methods which are called Echo.
(Init): Call ConsoleDriver.SetEcho() with the 'echo' value -
allows for a slight optimization if called from within the
Echo::set property.
(GetCursorPosition): Instead of calling the Echo property methods,
call ConsoleDriver.SetEcho() directly to toggle echo off (if echo
isn't already off, and then back on once we're finished getting
the position - assuming the echo state is on, of course) - this
avoids calling back into Init() which just felt dirty.
(Echo::set): If the Echo state differs from our current state,
call ConsoleDriver.SetEcho() with the new state (this is the
important piece of the fix for bug #81050).
(ReadKey): Simplified the echo logic to make it a bit clearer.
(ReadLine): Same.

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

17 years ago * RichTextBox.cs: namespace cleanup.
Jackson Harper [Mon, 16 Apr 2007 21:17:47 +0000 (21:17 -0000)]
    * RichTextBox.cs: namespace cleanup.

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

17 years ago2006-04-16 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Mon, 16 Apr 2007 20:54:22 +0000 (20:54 -0000)]
2006-04-16  Jonathan Chambers  <joncham@gmail.com>

* List.cs: Clear entry in RemoveAt after removing item.
Fixes bug #81387.

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

17 years ago2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 16 Apr 2007 18:20:53 +0000 (18:20 -0000)]
2007-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* GifCodecTest.cs: Fix typo and add Stride check.
* IconCodecTest.cs: Fix typo.
* PngCodecTest.cs: Fix typo and add Stride check.
* TiffCodecTest.cs: Fix typo.

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

17 years ago * RTF.cs:
Jackson Harper [Mon, 16 Apr 2007 17:53:03 +0000 (17:53 -0000)]
            * RTF.cs:
        * Picture.cs: Save a step by loading the image data directly
        * into
        the picture's memory stream. (Aprox 15% speedup).

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

17 years ago2007-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 16 Apr 2007 17:30:32 +0000 (17:30 -0000)]
2007-04-16  Marek Safar  <marek.safar@gmail.com>

* Char.cs (IsLetter): Faster version.

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

17 years agoMinor rename.
Marek Safar [Mon, 16 Apr 2007 17:16:41 +0000 (17:16 -0000)]
Minor rename.

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

17 years ago * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
Everaldo Canuto [Mon, 16 Apr 2007 17:07:02 +0000 (17:07 -0000)]
* XplatUIWin32.cs: Back last parameter to true in SetClipRegion.

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

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

17 years agoRevert this while I figure out why monodevelop breaks
Dick Porter [Mon, 16 Apr 2007 17:02:21 +0000 (17:02 -0000)]
Revert this while I figure out why monodevelop breaks

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

17 years agoRevert this while I figure out why monodevelop breaks
Dick Porter [Mon, 16 Apr 2007 17:02:22 +0000 (17:02 -0000)]
Revert this while I figure out why monodevelop breaks

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

17 years ago2007-04-16 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Mon, 16 Apr 2007 16:49:49 +0000 (16:49 -0000)]
2007-04-16  Everaldo Canuto  <everaldo@simios.org>

[Fixes #79447]
* Control.cs: Call invalidate in set_Region.

* XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
it dont works here.

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

17 years ago * TextBoxBase.cs: When enter is pressed, we need to update all
Jackson Harper [Mon, 16 Apr 2007 15:34:46 +0000 (15:34 -0000)]
    * TextBoxBase.cs: When enter is pressed, we need to update all
        lines below the current.

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

17 years agologically move the *.config files under META-INF folder
Konstantin Triger [Mon, 16 Apr 2007 15:17:31 +0000 (15:17 -0000)]
logically move the *.config files under META-INF folder

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

17 years ago2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 16 Apr 2007 14:10:48 +0000 (14:10 -0000)]
2007-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Add test cases for 16bpp formats (NotWorking) and
reworked LockUnlockBitmap (e.g. add assert messages).

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

17 years ago2007-04-16 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 16 Apr 2007 13:46:29 +0000 (13:46 -0000)]
2007-04-16  Jonathan Pobst  <monkey@jpobst.com>

* ButtonTest.cs, ToolStripItemTest.cs: Remove image stretching
from ImageList tests and reenable tests.

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

17 years ago2007-04-16 Jonathan Pobst <jpobst@monkey.com>
Jonathan Pobst [Mon, 16 Apr 2007 13:36:31 +0000 (13:36 -0000)]
2007-04-16  Jonathan Pobst  <jpobst@monkey.com>

* MdiClient.cs: Implement implicit menu merging for MDI
children.  When a child form is active, if it has a menustrip
and the parent form has a MainMenuStrip, automatically merge
the menus.

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

17 years ago2007-04-16 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 16 Apr 2007 13:05:17 +0000 (13:05 -0000)]
2007-04-16  Marek Safar  <marek.safar@gmail.com>

* PersianCalendar: Removed twoDigitYearMax field.

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

17 years ago2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 16 Apr 2007 12:58:17 +0000 (12:58 -0000)]
2007-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Add test cases for GdipBitmap[Get|Set]Pixel on an
indexed bitmap (1bpp) and on a 16bpp grayscale bitmap.
* TestBitmap.cs: Add test cases for Format[1,4,8]bppIndexed and
Format16bppGrayScale.

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

17 years ago2007-04-16 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 16 Apr 2007 12:58:04 +0000 (12:58 -0000)]
2007-04-16  Sebastien Pouliot  <sebastien@ximian.com>

* Bitmap.cs: Add check in SetPixel for Format16bppGrayScale (but
without requiring a second unmanaged call on each SetPixel call).

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

17 years ago * VBCodeGenerator.cs: Small fix in GenerateBinaryOperatorExpression to always emit...
Rolf Bjarne Kvinge [Mon, 16 Apr 2007 12:18:01 +0000 (12:18 -0000)]
* VBCodeGenerator.cs: Small fix in GenerateBinaryOperatorExpression to always emit the IdentityInequality comparisons with Nothing in the same order (first object, then Nothing).

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

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

17 years ago2007-04-16 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Mon, 16 Apr 2007 10:17:42 +0000 (10:17 -0000)]
2007-04-16  Marek Habersack  <mhabersack@novell.com>

* SectionGroupInfo.cs: another (and final, hopefully) fix for bug
#81321 and several other related issues that were discovered by
the way. Thanks to Atsushi for help with XmlReader!

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

17 years ago2007-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Mon, 16 Apr 2007 09:23:33 +0000 (09:23 -0000)]
2007-04-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* System_test.dll.sources: Added CodeGeneratorFromBinaryOperatorTest.cs.

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

17 years ago2007-04-13 Frederik Carlier <frederik.carlier@carlier-online.be>
Rolf Bjarne Kvinge [Mon, 16 Apr 2007 09:21:52 +0000 (09:21 -0000)]
2007-04-13  Frederik Carlier  <frederik.carlier@carlier-online.be>

    * CodeGeneratorFromBinaryOperatorTest.cs: Regression test for bug 81372, test
    for code generated when comparing against null (Nothing in Visual Basic)

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

17 years ago2007-04-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Mon, 16 Apr 2007 09:19:51 +0000 (09:19 -0000)]
2007-04-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* VBCodeCompiler.cs: In CreateErrorFromString don't return null if the message couldn't be parsed. Temporary fix for ASP.Net to show more helpful fail messages. In CompileFromFileBatch don't try to load the assembly if the compilation returned a non-zero exit code.

2007-04-13  Frederik Carlier  <frederik.carlier@carlier-online.be>

* VBCodeGenerator.cs: Added support for the IdentityInequality operator when comparing against Nothing.

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

17 years ago2007-04-16 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 16 Apr 2007 08:37:02 +0000 (08:37 -0000)]
2007-04-16  Atsushi Enomoto  <atsushi@ximian.com>

* Uri.cs : in Uri(baseUri,relativeUri,noEscape), relativeUri could
  contain a URI scheme. In such cases the relativeUri could be still
  relative (i.e. not always equivalent to absolute). Fixed bug #81382.

* UriTest.cs : added relative .ctor() test where the relativeUris
  contain URI schemes.

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

17 years ago2007-04-15 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Sun, 15 Apr 2007 20:12:12 +0000 (20:12 -0000)]
2007-04-15  Andreia Gaita  <avidigal@novell.com>

* TabControl.cs: Refactored sizing methods to not repeat
code all over the place. Tab bounds are now calculated
as if alignment is top and single line, and only when
setting the bounds are the positions adjusted according
to alignment. Replaced hardcoded positions, spacings and
paddings by getting the values the ThemeEngine. Fixes #79619.

* Theme.cs: Change TabControl properties and methods so
that all start with TabControl*. Added more properties
to help remove hardcoded values on tabcontrol.
Add CPDrawBorder3D declaration so the Theming classes
can access it.

* ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
* ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
on the Theming namespace, and call the appropriate methods here.
Change CPDrawBorder3D to public.

Theming namespace

* ThemeElements.cs: Load themes by reflection according to theme
name. If the theme is not implemented yet, load the default theme.
Theme classes just give access to the *Painter classes, that
implement drawing of each control. Only the Default.*Painter
class needs to be implemented and referenced on ThemeDefault,
all others inherit from this one. Check the ThemeElementsNice
class for an example.

* ThemeElementsDefault.cs,
  ThemeElementsClearlooks.cs (new),
  ThemeElementsNice.cs (new),
  ThemeElementsGtk.cs (new): Theme classes to access *Painter implementations.

* ButtonPainter.cs: refactoring of the button drawing
that was originally located in ThemeElementsDefault

* TabControlPainter.cs: refactoring of the tabcontrol
drawing code originally located in the ThemeWin32Classic.
Also, fixes and changes:
- replaced most hardcoded values with properties to
make it easier to customize implementations.
- fixed left and right alignment drawing problems
- fixed flatbutton border drawing on left and
right alignment
- fixed #79619
- fixed paddings, spacings and positioning.

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

17 years ago2007-04-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sun, 15 Apr 2007 18:27:58 +0000 (18:27 -0000)]
2007-04-15  Marek Safar  <marek.safar@gmail.com>

* ListDictionary: Removed not used variable.

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

17 years ago2007-04-15 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sun, 15 Apr 2007 18:22:04 +0000 (18:22 -0000)]
2007-04-15  Marek Safar  <marek.safar@gmail.com>

* monoresgen.cs: Use invariant ToLower.

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

17 years ago2007-04-15 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 15 Apr 2007 16:52:46 +0000 (16:52 -0000)]
2007-04-15  Miguel de Icaza  <miguel@novell.com>

* trace.c (is_filenamechar): - is also a filename char.

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

17 years ago2007-04-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Sun, 15 Apr 2007 14:03:40 +0000 (14:03 -0000)]
2007-04-12 Igor Zelmanovich <igorz@mainsoft.com>

* SqlDataSourceView.cs: fixed: InitializeParameters:
restored flow, broken in r75137.

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

17 years ago2007-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 15 Apr 2007 13:47:17 +0000 (13:47 -0000)]
2007-04-15  Marek Habersack  <mhabersack@novell.com>

* SectionGroupInfo.cs: another incarnation of the fix for bug
#81321.

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

17 years agoAdd implementation for GetGlobalResourceObject(...Type,String) and GetLocalResourceOb...
Konstantin Triger [Sun, 15 Apr 2007 12:46:28 +0000 (12:46 -0000)]
Add implementation for GetGlobalResourceObject(...Type,String) and GetLocalResourceObject(...Type,String)

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

17 years ago2007-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 15 Apr 2007 12:28:48 +0000 (12:28 -0000)]
2007-04-15  Marek Habersack  <mhabersack@novell.com>

* AppCodeCompiler.cs: Make sure there's actually anything to compile.

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

17 years ago2007-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 15 Apr 2007 12:18:53 +0000 (12:18 -0000)]
2007-04-15  Marek Habersack  <mhabersack@novell.com>

* data/net_2_0/web.config: add the default build providers
configuration.

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

17 years ago2007-04-15 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Sun, 15 Apr 2007 12:15:27 +0000 (12:15 -0000)]
2007-04-15  Marek Habersack  <mhabersack@novell.com>

* VirtualPathUtility.cs: converted to LF line endings and set the
svn:eol-style property to 'native'

2007-04-15  Marek Habersack  <mhabersack@novell.com>

* AppCodeCompiler.cs: properly convert physical file path to
virtual path for build providers.

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

17 years ago* tramp.c: Add MONO_TYPE_PTR case.
Neale Ferguson [Sun, 15 Apr 2007 09:11:00 +0000 (09:11 -0000)]
* tramp.c: Add MONO_TYPE_PTR case.
* mini-s390.c: Correct checking for enum type in return value processing.

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

17 years agoBug fix - wrong JRE path
Noam Lampert [Sun, 15 Apr 2007 08:36:43 +0000 (08:36 -0000)]
Bug fix - wrong JRE path

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

17 years agoTARGET_JVM: #7168 is fixed
Konstantin Triger [Sun, 15 Apr 2007 08:32:23 +0000 (08:32 -0000)]
TARGET_JVM: #7168 is fixed

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

17 years agoremove MaskedTextProviderTest test from compilation
Konstantin Triger [Sun, 15 Apr 2007 07:59:39 +0000 (07:59 -0000)]
remove MaskedTextProviderTest test from compilation

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

17 years ago2007-04-15 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 15 Apr 2007 04:33:57 +0000 (04:33 -0000)]
2007-04-15  Alp Toker  <alp@atoker.com>

* Decimal.cs: Provide 2.0 Round() overloads using System.Math.

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

17 years ago2007-04-15 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 15 Apr 2007 04:11:07 +0000 (04:11 -0000)]
2007-04-15  Alp Toker  <alp@atoker.com>

* ConstructorBuilder.cs: Make use of
ConstructorInfo.TypeConstructorName/ConstructorName.

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

17 years ago2007-04-15 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 15 Apr 2007 02:59:54 +0000 (02:59 -0000)]
2007-04-15  Alp Toker  <alp@atoker.com>

* Activator.cs: CreateInstance(Type,object[]) was not params before
2.0.

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

17 years ago2007-04-15 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 15 Apr 2007 01:56:08 +0000 (01:56 -0000)]
2007-04-15  Alp Toker  <alp@atoker.com>

* NonSerializedAttribute.cs: Inherited=false in 2.0.

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

17 years ago2007-04-15 Alp Toker <alp@atoker.com>
Alp Toker [Sun, 15 Apr 2007 00:26:20 +0000 (00:26 -0000)]
2007-04-15  Alp Toker  <alp@atoker.com>

* Marshal.cs: Add new 2.0 Copy() from IntPtr[] overload.

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

17 years ago2007-04-14 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Sat, 14 Apr 2007 16:17:26 +0000 (16:17 -0000)]
2007-04-14  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Always test buffer byte-by-byte to avoid endian
issues.

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

17 years ago* Makefile.am (BUILT_SOURCES): Add 'version.h'.
Raja R Harinath [Sat, 14 Apr 2007 13:20:11 +0000 (13:20 -0000)]
* Makefile.am (BUILT_SOURCES): Add 'version.h'.
(version.h): Makefile is in the build directory.

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

17 years ago2007-04-13 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 13 Apr 2007 22:40:59 +0000 (22:40 -0000)]
2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
the control after firing the OnMouseUp event, instead of sending
the message before the mentioned event. This is so we can match the
MS behaviour. Fixes part of #80385.

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

17 years agoAdd branch, version number
Miguel de Icaza [Fri, 13 Apr 2007 22:01:38 +0000 (22:01 -0000)]
Add branch, version number

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

17 years ago2007-04-13 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 13 Apr 2007 18:24:16 +0000 (18:24 -0000)]
2007-04-13  Martin Baulig  <martin@ximian.com>

Rewrote implicit reference conversions.  We need to distinguish
between implicit reference conversions (13.1.4) and implicit
boxing conversions (13.1.5).

According to the spec, there's an an implicit conversion
"From a one-dimensional array-type S[] to IList<T> and base
interfaces of this interface, provided there is an implicit
reference conversion from S to T."  Note that this does not
include boxing conversions.

* convert.cs
(Convert.ImplicitTypeParameterBoxingConversion): New method.
(Convert.ImplicitReferenceConversion): Split into
ImplicitReferenceConversionCore() and
ImplicitBoxingConversionExist().
(Convert.ImplicitReferenceConversionExists): Use the new
ImplicitReferenceConversionCore() and ImplicitBoxingConversionExists().

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

17 years ago2007-04-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 13 Apr 2007 18:07:33 +0000 (18:07 -0000)]
2007-04-13  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItemTest.cs: Enable a bunch of tests for recently
implemented properties.
* ToolStripManager.cs: Add tests for Merge and RevertMerge.

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

17 years ago2007-04-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 13 Apr 2007 18:05:08 +0000 (18:05 -0000)]
2007-04-13  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Call the RightToLeftChanged event when setting the
RightToLeft property.

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

17 years ago2007-04-13 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Fri, 13 Apr 2007 17:38:51 +0000 (17:38 -0000)]
2007-04-13  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Add properties and internal methods to support merging.
* ToolStripItem.cs: Add MergeAction and MergeIndex.
* ToolStripItemCollection.cs: Add Insert and Remove methods that do
not trigger reparenting or layouts.
* ToolStripManager.cs: Add Merge and RevertMerge methods.
* ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
is hosting the overflow menu.

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

17 years agoadd some (mostly non-working) data binding tests
Chris Toshok [Fri, 13 Apr 2007 17:03:24 +0000 (17:03 -0000)]
add some (mostly non-working) data binding tests

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

17 years agoUpdate
Miguel de Icaza [Fri, 13 Apr 2007 16:39:44 +0000 (16:39 -0000)]
Update

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

17 years ago * TextControl.cs: Set the line ending correctly for the first
Jackson Harper [Fri, 13 Apr 2007 16:11:36 +0000 (16:11 -0000)]
    * TextControl.cs: Set the line ending correctly for the first
        inserted line.

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

17 years ago2007-04-13 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 13 Apr 2007 16:09:07 +0000 (16:09 -0000)]
2007-04-13  Dick Porter  <dick@ximian.com>

* shared.h:
* shared.c: Complete the reimplementation of disabling of shared
memory, by not allocating sysv semaphores when shm disabling has
been requested (either at compile time or run time.)

* processes.c (CreateProcess): Don't synchronize locking across
processes when forking, when shared memory has been disabled.

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

17 years ago2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 13 Apr 2007 12:45:21 +0000 (12:45 -0000)]
2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>

* Brush.cs: Ensure we're zeroing the handle before calling
CheckStatus. Some clean up.
* Pen.cs: Ensure we're zeroing the handle before calling CheckStatus.
Use Locale.GetText for exceptions.

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

17 years ago2007-04-13 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 13 Apr 2007 12:26:28 +0000 (12:26 -0000)]
2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>

* Theme.cs: Update GetMethod to get the new definition for
KnownColors.Update (and fix theme color updates).

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

17 years ago2007-04-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 13 Apr 2007 10:27:51 +0000 (10:27 -0000)]
2007-04-13  Marek Habersack  <mhabersack@novell.com>

* ApplicationHost.cs: clear the dynamic base directory before
creating the host. Fixes bug #80635

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

17 years ago2007-04-12 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Fri, 13 Apr 2007 10:04:15 +0000 (10:04 -0000)]
2007-04-12  Everaldo Canuto  <everaldo@simios.org>

* MessageBox.cs: Fix some test and button position.

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

17 years ago2007-04-13 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Fri, 13 Apr 2007 07:54:24 +0000 (07:54 -0000)]
2007-04-13  Marek Habersack  <mhabersack@novell.com>

* SiteMap.cs: try to look up the current map node in providers
other than the current one. Patch from Mike Morano
<mmorano@mikeandwan.us>. Fixes bug #81366.

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

17 years ago2007-04-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Thu, 12 Apr 2007 22:35:03 +0000 (22:35 -0000)]
2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* Form.cs: Consider the implicit controls in
GetRealChildAtPoint. We need it since this method
is called on Form when handling the some messages in
WndProc, and need to consider those implicit ones too.
Fixes #80385.

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

17 years ago2007-04-12 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 12 Apr 2007 21:26:53 +0000 (21:26 -0000)]
2007-04-12  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
if there are no ShortcutKeys set.
* ToolStripProfessionalRenderer.cs: If an item has had its BackColor
set, use it when painting.

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

17 years ago* tramp.c: Add MONO_TYPE_PTR case.
Neale Ferguson [Thu, 12 Apr 2007 20:45:34 +0000 (20:45 -0000)]
* tramp.c: Add MONO_TYPE_PTR case.

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

17 years ago2007-04-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 12 Apr 2007 20:26:51 +0000 (20:26 -0000)]
2007-04-12  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Rework a test under 2.0 to see if GdipLockBits leaks
if in particular case (it doesn't). Added Categoty("Valgrind") to a
test know to leak due to the API design.

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

17 years ago2007-04-06 Andreas Faerber <andreas.faerber@web.de>
Zoltan Varga [Thu, 12 Apr 2007 16:40:43 +0000 (16:40 -0000)]
2007-04-06  Andreas Faerber  <andreas.faerber@web.de>

* mini-amd64.h: fix for assertion failure on Solaris/amd64

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

17 years ago2007-04-06 Andreas Faerber <andreas.faerber@web.de>
Zoltan Varga [Thu, 12 Apr 2007 16:40:11 +0000 (16:40 -0000)]
2007-04-06  Andreas Faerber  <andreas.faerber@web.de>

* configure.in: Added support for Solaris/amd64. Fixes bug #81325

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

17 years agoDuncan was right
Miguel de Icaza [Thu, 12 Apr 2007 14:55:45 +0000 (14:55 -0000)]
Duncan was right

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

17 years agodon't put null values
Konstantin Triger [Thu, 12 Apr 2007 14:21:08 +0000 (14:21 -0000)]
don't put null values

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

17 years ago2007-04-12 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 12 Apr 2007 14:00:16 +0000 (14:00 -0000)]
2007-04-12  Marek Habersack  <mhabersack@novell.com>

* RoleManagerModule.cs: do not try to decrypt encryption tickets
from cookies with empty values.

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

17 years ago2007-04-12 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 12 Apr 2007 13:19:23 +0000 (13:19 -0000)]
2007-04-12 Igor Zelmanovich <igorz@mainsoft.com>

* Menu.cs: popup menu is posed correctly if menu is placed within
container with position=relative

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

17 years ago2007-04-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 12 Apr 2007 13:07:36 +0000 (13:07 -0000)]
2007-04-12  Sebastien Pouliot  <sebastien@ximian.com>

* TestBitmap.cs: Split LockBitmap into several tests and do not modify
the data when using ImageLockMode.ReadOnly (this makes some results
random when using MS GDI+).

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

17 years agoCopyright headers added
Vladimir Krasnov [Thu, 12 Apr 2007 13:04:48 +0000 (13:04 -0000)]
Copyright headers added

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

17 years ago2007-04-12 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 12 Apr 2007 13:04:40 +0000 (13:04 -0000)]
2007-04-12  Sebastien Pouliot  <sebastien@ximian.com>

* TestBmpCodec.cs: Reenable some NotWorking test case.
* TestJpegCodec.cs: Reenable some NotWorking test case.
* TiffCodecTest.cs: Reenable some NotWorking test case.

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