Jordi Mas i Hernandez [Sun, 15 Jan 2006 21:08:20 +0000 (21:08 -0000)]
2006-01-15 Jordi Mas <jordimash@gmail.com>
* Adds GraphicsUnits.cs
svn path=/trunk/mcs/; revision=55605
Zoltan Varga [Sun, 15 Jan 2006 20:26:08 +0000 (20:26 -0000)]
2006-01-15 Zoltan Varga <vargaz@gmail.com>
* liveness.c: Update after monobitset changes.
svn path=/trunk/mono/; revision=55602
Zoltan Varga [Sun, 15 Jan 2006 20:25:22 +0000 (20:25 -0000)]
2006-01-15 Zoltan Varga <vargaz@gmail.com>
* monobitset.h monobitset.c: Use 64 bit chunks on 64 bit machines.
svn path=/trunk/mono/; revision=55601
Jonathan Pryor [Sun, 15 Jan 2006 18:29:30 +0000 (18:29 -0000)]
* UnixUserInfo.cs: The UnixUserInfo(Native.Passwd) constructor and
ToPasswd() should clone the underlying Native.Passwd, so
that it doesn't get changed from underneath it.
* UnixGroupInfo.cs: The UnixGroupInfo(Native.Group) constructor should also
clone the provided Native.Group instance.
svn path=/trunk/mcs/; revision=55600
Konstantin Triger [Sun, 15 Jan 2006 13:23:27 +0000 (13:23 -0000)]
fixing visibility bahavior
svn path=/trunk/mcs/; revision=55598
Atsushi Eno [Sun, 15 Jan 2006 13:01:30 +0000 (13:01 -0000)]
2006-01-15 Atsushi Enomoto <atsushi@ximian.com>
* RdpPatterns.cs : lazy evaluate Group branches. If left hand is
notAllowed, the returned value is always NotAllowed, no need to
compute another branch.
svn path=/trunk/mcs/; revision=55597
Jonathan Pryor [Sun, 15 Jan 2006 03:38:03 +0000 (03:38 -0000)]
* UnixGroupInfo.cs: ToGroup() should clone the underlying Native.Group, so
that it doesn't get changed from underneath it.
svn path=/trunk/mcs/; revision=55591
Alexander Olk [Sat, 14 Jan 2006 21:32:53 +0000 (21:32 -0000)]
2006-01-14 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: When the file listview is focused hitting the
backspace key moves the fileview to the parent directory
svn path=/trunk/mcs/; revision=55588
Zoltan Varga [Sat, 14 Jan 2006 21:02:21 +0000 (21:02 -0000)]
2006-01-14 Zoltan Varga <vargaz@gmail.com>
* mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
svn path=/trunk/mono/; revision=55583
Ankit Jain [Sat, 14 Jan 2006 20:36:55 +0000 (20:36 -0000)]
* get.c (get_method_override): Get full signature of the method.
* main.c (dis_code): Emit ".override method" for full signature
of the method.
svn path=/trunk/mono/; revision=55582
Ankit Jain [Sat, 14 Jan 2006 20:34:07 +0000 (20:34 -0000)]
In ilasm/tests:
* test-override-1.il:
* test-override-2.il: New. Test for 'full' syntax of specifying
overrides. (.override method ..full sig.. )
In ilasm/parser:
* ILParser.jay (method_decl): Add new "full" syntax specifying overrides.
svn path=/trunk/mcs/; revision=55581
Robert Jordan [Sat, 14 Jan 2006 10:15:26 +0000 (10:15 -0000)]
2006-01-13 Robert Jordan <robertj@gmx.net>
* corlib.dll.sources: Added System.Resources/ResourceManagerTest.cs
svn path=/trunk/mcs/; revision=55574
Robert Jordan [Sat, 14 Jan 2006 10:14:45 +0000 (10:14 -0000)]
2006-01-13 Robert Jordan <robertj@gmx.net>
* ResourceManager.cs: Fixed GetString/GetObject's recursion
which never fall back to the invariant or neutral culture if
the key was not found in a specific culture. Fixes bug #77242.
svn path=/trunk/mcs/; revision=55573
Robert Jordan [Sat, 14 Jan 2006 10:14:01 +0000 (10:14 -0000)]
2006-01-13 Robert Jordan <robertj@gmx.net>
* ResourceManagerTest.cs: New. Unit tests for ResourceManager.
See bug #77242.
svn path=/trunk/mcs/; revision=55572
Peter Dennis Bartok [Sat, 14 Jan 2006 06:53:16 +0000 (06:53 -0000)]
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added RecreateHandle call when changing taskbar visibility to
trigger reparenting in Win32 driver (Fixes #75719)
- If a window has minimize or maximize buttons, it cannot have
a help button
* XplatUIWin32.cs:
- CreateWindow: When no WS_EX_APPWINDOW style is found we parent
the toplevel form with FosterParent (A toolwindow not on the
taskbar) (Fixes #75719)
- Made FosterParent a toolwindow
svn path=/trunk/mcs/; revision=55571
César Natarén [Sat, 14 Jan 2006 01:53:09 +0000 (01:53 -0000)]
2006-01-13 Cesar Lopez Nataren <cnataren@novell.com>
* mjs-most.tests: Enable ecma/FunctionObjects/15.3.3.1-2.js,
ecma/Math/15.8.1.js, ecma/Number/15.7.3.1-3.js,
ecma/Number/15.7.3.2-4.js, ecma/Number/15.7.3.3-4.js,
ecma/Number/15.7.3.4-4.js, ecma/Number/15.7.3.5-4.js,
ecma/Number/15.7.3.6-4.js, ecma/Statements/12.6.3-1.js,
ecma/Statements/12.6.3-11.js, ecma/String/15.5.3.1-1.js,
ecma/String/15.5.4.8-3.js and js1_2/regress/regress-7703.js.
svn path=/trunk/mcs/; revision=55566
César Natarén [Sat, 14 Jan 2006 01:06:48 +0000 (01:06 -0000)]
2006-01-13 Cesar Lopez Nataren <cnataren@novell.com>
* mjs-most.fail: Delete ecma/Statements/12.6.3-10.js and
ecma/Statements/12.6.3-19.js as they no longer fail.
svn path=/trunk/mcs/; revision=55564
César Natarén [Sat, 14 Jan 2006 00:45:07 +0000 (00:45 -0000)]
2006-01-13 Cesar Lopez Nataren <cnataren@novell.com>
* ForIn.cs: implement for (x in obj) logic.
svn path=/trunk/mcs/; revision=55563
Ankit Jain [Fri, 13 Jan 2006 23:05:07 +0000 (23:05 -0000)]
* GenericParamRef.cs (GenericParamRef.Resolve): Apply modifications to the
cached type.
svn path=/trunk/mcs/; revision=55559
Chris Toshok [Fri, 13 Jan 2006 22:31:22 +0000 (22:31 -0000)]
2006-01-13 Chris Toshok <toshok@ximian.com>
* AppSettingsSection.cs (GetRuntimeObject): only access
Settings[key] once per iteration.
svn path=/trunk/mcs/; revision=55558
Ankit Jain [Fri, 13 Jan 2006 22:22:10 +0000 (22:22 -0000)]
In ilasm/tests:
* gen-instr1.il: New. Test for using GenericParams as operands to
type instructions.
In ilasm/codegen:
* GenericParamRef.cs (GenericParamRef.Resolve): Set PeapiType of the instance
to the cached one.
svn path=/trunk/mcs/; revision=55557
Peter Dennis Bartok [Fri, 13 Jan 2006 22:14:10 +0000 (22:14 -0000)]
* TextControl.cs: Draw text in gray if control is disabled
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
svn path=/trunk/mcs/; revision=55556
Alexander Olk [Fri, 13 Jan 2006 22:13:29 +0000 (22:13 -0000)]
* FileDialog.cs: Don't crash if InitialDirectory doesn't exist
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
svn path=/trunk/mcs/; revision=55555
Alexander Olk [Fri, 13 Jan 2006 21:44:01 +0000 (21:44 -0000)]
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
* ToolTip.cs: If SetToolTip is called from a control and the mouse
is currently over that control, make sure that tooltip_window.Text
gets updated
svn path=/trunk/mcs/; revision=55551
Mike Kestner [Fri, 13 Jan 2006 21:09:50 +0000 (21:09 -0000)]
2006-01-13 Mike Kestner <mkestner@novell.com>
* MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
svn path=/trunk/mcs/; revision=55550
John Luke [Fri, 13 Jan 2006 20:55:56 +0000 (20:55 -0000)]
2006-1-13 John Luke <john.luke@gmail.com>
* MailMessage.cs: add [MonoTODO] for FormatException in ctor,
throw ArugmentNullException's from the ctors,
add internal BodyContentType property,
change BodyEncoding to use BodyContentType,
change IsBodyHtml to use BodyContentType,
* SmtpClient.cs: set timeout initially to 100000,
don't throw ArgumentOutOfRangeException when Timeout = 0,
add [MonoTODO] for set_host, and throw Exceptions for it,
add [MonoTODO] for UseDefaultCredentials,
get messageContentType from the message,
use "127.0.0.1" for Host and 25 for Port
if host or port is not specified until reading
them from the configuration files is done
svn path=/trunk/mcs/; revision=55549
Jackson Harper [Fri, 13 Jan 2006 20:41:38 +0000 (20:41 -0000)]
* TreeView.cs: On MS GetNodeAt never actually factors in the X
value passed. Also redraw the selected node when we recieve
focus, so tabbing between trees works correctly.
svn path=/trunk/mcs/; revision=55548
Sebastien Pouliot [Fri, 13 Jan 2006 20:05:00 +0000 (20:05 -0000)]
2006-01-13 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPathTest.cs: New. Added multiple test cases to check null
handling and how the points are generated for the Add* methods.
* PathDataTest.cs: New. Added clone test case.
svn path=/trunk/mcs/; revision=55544
Sebastien Pouliot [Fri, 13 Jan 2006 20:04:49 +0000 (20:04 -0000)]
2006-01-13 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPath.cs: Added more parameter checks to methods (to match
unit tests). Added descriptions to TODOs.
* PathData.cs: Don't clone the arrays! Removed unused internal
properties.
svn path=/trunk/mcs/; revision=55543
Alexander Olk [Fri, 13 Jan 2006 19:43:42 +0000 (19:43 -0000)]
2006-01-13 Alexander Olk <alex.olk@googlemail.com>
* MimeIcon.cs: GnomeHandler: older gnome versions don't have
~/.gconf/%gconf-tree.xml, so use
.gconf/desktop/gnome/interface/%gconf.xml
svn path=/trunk/mcs/; revision=55540
John Luke [Fri, 13 Jan 2006 19:18:00 +0000 (19:18 -0000)]
2006-01-13 John Luke <john.luke@gmail.com>
* ContentDisposition.cs: use String.Compare instead
of comparing .ToLower's
svn path=/trunk/mcs/; revision=55539
Peter Dennis Bartok [Fri, 13 Jan 2006 19:16:29 +0000 (19:16 -0000)]
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* TreeView.cs: Draw the focus rectangle outside the highlight, to
make sure it's always visible. Fixes #76680.
svn path=/trunk/mcs/; revision=55538
Peter Dennis Bartok [Fri, 13 Jan 2006 18:38:19 +0000 (18:38 -0000)]
- Shouldn't put fixme notes in if it doesn't need fixing. Also simplified a bit
svn path=/trunk/mcs/; revision=55537
Peter Dennis Bartok [Fri, 13 Jan 2006 18:28:29 +0000 (18:28 -0000)]
2006-01-13 Peter Dennis Bartok <pbartok@novell.com>
* TreeView.cs: Implemented Wheel scrolling. Fixes #76531
svn path=/trunk/mcs/; revision=55535
Gonzalo Paniagua Javier [Fri, 13 Jan 2006 17:47:07 +0000 (17:47 -0000)]
2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
Glenn for pointing this out.
svn path=/trunk/mcs/; revision=55524
Atsushi Eno [Fri, 13 Jan 2006 17:21:15 +0000 (17:21 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* XsdValidatingReader.cs : whitespace nodes should be allowed inside
empty or element-only content types. Fixed bug #77241.
* XsdValidatingReaderTests.cs : test from bug #77241.
svn path=/trunk/mcs/; revision=55523
Miguel de Icaza [Fri, 13 Jan 2006 16:38:57 +0000 (16:38 -0000)]
2006-01-13 Miguel de Icaza <miguel@novell.com>
* Region.cs: Revert the Region.cs check in GetHrgn as it was used
by our Windows.Forms implementation.
svn path=/trunk/mcs/; revision=55522
Miguel de Icaza [Fri, 13 Jan 2006 16:24:12 +0000 (16:24 -0000)]
Fix, INTL is the same on ia64 as LIBC
svn path=/trunk/mono/; revision=55520
Ankit Jain [Fri, 13 Jan 2006 16:10:53 +0000 (16:10 -0000)]
In ilasm/codegen:
* GenericParamRef.cs (GenericParamRef.Resolve): Ensure no duplicate
GenParams get added to the TypeSpec table.
* GenericMethodSig.cs (GenericMethodSig.GetInstance): Cache sigs in a
static hashtable.
* BaseMethodRef.cs (BaseMethodRef.GetGenericMethodRef): Cache GenericMethodRefs.
In ilasm/parser:
* ILParser.jay: Update to use codegen.GetTypeRef instead of creating
TypeRefs.
Update to use BaseMethodRef.GetGenericMethodRef instead of creating them.
In class/PEAPI:
* Metadata.cs (GenericMethodSig): Ensure sig is added to the blob only once.
svn path=/trunk/mcs/; revision=55519
Jonathan Chambers [Fri, 13 Jan 2006 16:09:11 +0000 (16:09 -0000)]
2006-1-12 Jonathan Chambers <jonathan.chambers@ansys.com>
* build-csproj: Fixed so the csproj is usable.
svn path=/trunk/mcs/; revision=55518
Ankit Jain [Fri, 13 Jan 2006 15:30:59 +0000 (15:30 -0000)]
In ilasm/codegen:
Create BaseMethodRef from IMethodRef. Replace usage of IMethodRef
with BaseMethodRef in *all* files.
Remove implementations of IMethodRef's methods from derived classes.
* BaseMethodRef.cs: New.
In ilasm:
* ilasm.exe.sources: Replace IMethodRef.cs with BaseMethodRef.cs
svn path=/trunk/mcs/; revision=55516
Jonathan Pryor [Fri, 13 Jan 2006 15:16:23 +0000 (15:16 -0000)]
* Catalog.cs, UnixMarshal.cs: Throw `UnixIOException(Native.Errno.ENOMEM)`
instead of System.OutOfMemoryException. OOME should be reserved for use
by the CLR (according to FxDG).
svn path=/trunk/mcs/; revision=55514
Ben Maurer [Fri, 13 Jan 2006 15:16:01 +0000 (15:16 -0000)]
In Test/System.IO:
2006-01-13 Ben Maurer <bmaurer@andrew.cmu.edu>
* TextWriterTest.cs: Make sure TextWriter calls the char[],int,int
overload when calling the char[].
In System.IO:
2006-01-13 Ben Maurer <bmaurer@andrew.cmu.edu>
* TextWriter.cs: Call char[],int,int from the Write(char[]) method
both for msft compat and for performance. Thanks to "Mike Glenn"
<mglenn@zoominternet.net> for pointing.
svn path=/trunk/mcs/; revision=55513
Gonzalo Paniagua Javier [Fri, 13 Jan 2006 14:55:45 +0000 (14:55 -0000)]
2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* RangeValidator.cs: allow empty data from the control. Patch from Marek
Habersack that fixes bug #77239.
svn path=/trunk/mcs/; revision=55510
Ben Maurer [Fri, 13 Jan 2006 14:32:42 +0000 (14:32 -0000)]
2006-01-13 Ben Maurer <bmaurer@andrew.cmu.edu>
* ServiceInstaller.cs: Stubs for 2.0 stuff
svn path=/trunk/mcs/; revision=55507
Jonathan Chambers [Fri, 13 Jan 2006 13:20:37 +0000 (13:20 -0000)]
2006-1-12 Jonathan Chambers <jonathan.chambers@ansys.com>
* System.Windows.Forms.dll.sources: Added PageSetupDialog.cs.
svn path=/trunk/mcs/; revision=55503
Ankit Jain [Fri, 13 Jan 2006 13:07:09 +0000 (13:07 -0000)]
In ilasm/codegen:
Move caching of method-refs and field-refs to BaseTypeRef, and use
CreateMethodRef & CreateFieldRef for creating the actual object.
Override these in derived classes to return the right objects.
* BaseTypeRef.cs (BaseTypeRef.CreateMethodRef): New.
(BaseTypeRef.CreateFieldRef): New.
(BaseTypeRef.GetMethodRef): Implement caching.
(BaseTypeRef.GetFieldRef): Likewise.
GenericTypeInst and PrimitiveTypeRef are not cached, so static hashtables
are used here for caching their MethodRefs n FieldRefs.
* GenericTypeInst.cs (GenericTypeInst.GetMethodRef): Override and use
static hashtable to do caching.
(GenericTypeInst.GetFieldRef): Likewise.
* PrimitiveTypeRef.cs (PrimitiveTypeRef.GetMethodRef): Likewise.
(PrimitiveTypeRef.GetFieldRef): Likewise.
* CodeGen.cs (CodeGen.GetGlobalMethodRef): New. Cache global method refs.
(CodeGen.GetGlobalFieldRef): New. Cache global field refs.
In ilasm/parser:
* ILParser.jay: Update to use CodeGen.GetGlobalMethodRef &
CodeGen.GetGlobalFieldRef instead of creating objects.
svn path=/trunk/mcs/; revision=55502
Jonathan Chambers [Fri, 13 Jan 2006 13:05:51 +0000 (13:05 -0000)]
2006-01-13 Jonathan Chambers <jonathan.chambers@ansys.com>
* PageSetupDialog.cs: Added.
* PrintDialog.cs: Attributes.
* PrintPreviewControl.cs: Updates.
* PrintPreviewDialog.cs: Updates.
svn path=/trunk/mcs/; revision=55501
Atsushi Eno [Fri, 13 Jan 2006 11:26:04 +0000 (11:26 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* CP932.cs : GetByteCount() returned insufficient count at PrivateUse
area. Fixed bug #77724.
(Additionally, reduced extraneous indentation in switch-cases).
svn path=/trunk/mcs/; revision=55499
Atsushi Eno [Fri, 13 Jan 2006 10:08:05 +0000 (10:08 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* RelaxngValidatingReader.cs : actually using Hashtable of Hashtable
(instead of ArrayList of custom MemoizationStart class) is much
better for performance. It makes StartTagOpenDeriv and
StartAttDeriv more than 10x faster than before.
svn path=/trunk/mcs/; revision=55498
Atsushi Eno [Fri, 13 Jan 2006 09:38:11 +0000 (09:38 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* RdpObjects.cs, RdpPatterns.cs : introduced "IsContextDependent"
optimization; when a pattern is (namespace) context independent
(almost all cases except for QName validation), new TextDeriv()
overload that takes MemoizationStore memoizes TextDeriv results.
* RelaxngDatatype.cs, RelaxngDefaultDatatypes.cs,
XsdDatatypeProvider.cs, RelaxngValidatingReader.cs :
Memoize TextDeriv() results for context independent inputs.
Due to the API freeze they are kept as internal virtual for now.
svn path=/trunk/mcs/; revision=55497
Raja R Harinath [Fri, 13 Jan 2006 09:00:47 +0000 (09:00 -0000)]
* data/net_2_0/machine.config: Fix a couple of typos in type names.
svn path=/trunk/mono/; revision=55496
Raja R Harinath [Fri, 13 Jan 2006 08:31:56 +0000 (08:31 -0000)]
* TypeElementTest.cs (Ctors1): Don't expect a null-reference exception.
svn path=/trunk/mcs/; revision=55495
Ankit Jain [Fri, 13 Jan 2006 08:09:42 +0000 (08:09 -0000)]
In ilasm/codegen:
Create BaseClassRef, BaseGenericTypeRef from IClassRef & IGenTypeRef.
Replace usage of interfaces ITypeRef, IClassRef & IGenTypeRef with their
corresponding Base* types.
* BaseTypeRef.cs: New. Combine ITypeRef and ModifiableType into this.
* BaseClassRef.cs: New.
* BaseGenericTypeRef.cs: New.
* TypeSpecMethodRef.cs (TypeSpecMethodRef.ctor): Slight change in order
of params.
In ilasm/parser:
* ILParser.jay: Update to use Base* instead of ITypeRef, IClassRef
& IGenTypeRef.
svn path=/trunk/mcs/; revision=55494
Atsushi Eno [Fri, 13 Jan 2006 06:38:10 +0000 (06:38 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* GenericOutputter.cs : When writing string, use WriteWhitespace()
instead of WhiteString() when its state is not Content. This fixes
BVTs_bvt066 case (broken after implementing strict state check in
XmlTextWriter).
* XslTransformTests.cs : added DocTypeAfterText().
svn path=/trunk/mcs/; revision=55493
Raja R Harinath [Fri, 13 Jan 2006 06:19:54 +0000 (06:19 -0000)]
*** merge revisions from mcs: 55367, 55370, 55372, 55427, 55460
svn path=/trunk/mcs/; revision=55492
Peter Dennis Bartok [Fri, 13 Jan 2006 05:48:19 +0000 (05:48 -0000)]
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Undid my selection check fix, since it's not needed
* TextBoxBase.cs:
- Now considering the presence of hscroll/vscroll when sizing
vscroll/hscroll respectively. Fixed bug #77077
- Added Left/Up/Down/Right to IsInputKey list to prevent
ContainerControl from stealing them. This fixes what I broke
with my last checkin.
svn path=/trunk/mcs/; revision=55491
Atsushi Eno [Fri, 13 Jan 2006 05:03:39 +0000 (05:03 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs : Fixed bug #77082.
When the state was Start, after WriteProcessingInstruction() and
WriteWhitespace() change it to Prolog.
After WriteDocType() set state to WriteState.Element.
* XmlTextWriterTests.cs : added some tests for XMLdecl state check.
* XslTransformTests.cs : Output_Indent_Xml_DocType() is working now.
svn path=/trunk/mcs/; revision=55487
Peter Dennis Bartok [Fri, 13 Jan 2006 04:53:45 +0000 (04:53 -0000)]
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
I finally understand how the property can be set without a setter :-)
svn path=/trunk/mcs/; revision=55486
Atsushi Eno [Fri, 13 Jan 2006 04:02:57 +0000 (04:02 -0000)]
silly backporting failure here as well :-(
svn path=/trunk/mcs/; revision=55481
Atsushi Eno [Fri, 13 Jan 2006 03:56:09 +0000 (03:56 -0000)]
oops, silly failure to backport.
svn path=/trunk/mcs/; revision=55479
Atsushi Eno [Fri, 13 Jan 2006 03:54:10 +0000 (03:54 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
merged r55413 and r55428 from trunk.
svn path=/trunk/mcs/; revision=55478
Atsushi Eno [Fri, 13 Jan 2006 03:48:50 +0000 (03:48 -0000)]
2006-01-13 Atsushi Enomoto <atsushi@ximian.com>
merged r55360 from trunk.
svn path=/trunk/mcs/; revision=55477
Ben Maurer [Fri, 13 Jan 2006 03:22:19 +0000 (03:22 -0000)]
In Test/System.IO:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* FileTest.cs: Tests tests for read/writealltext.
In System.IO:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* File.cs: Support for Read/WriteAllText
svn path=/trunk/mcs/; revision=55475
Ben Maurer [Fri, 13 Jan 2006 03:20:13 +0000 (03:20 -0000)]
In Microsoft.Win32.SafeHandles:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* SafeHandleZeroOrMinusOneIsInvalid.cs: Update to RTM api
* SafeFileHandle.cs: Update to RTM api
In System.Runtime.InteropServices:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* SafeHandle.cs: Update to RTM api
svn path=/trunk/mcs/; revision=55474
Ben Maurer [Fri, 13 Jan 2006 03:18:53 +0000 (03:18 -0000)]
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* WebClientProtocol.cs: Add a 2.0 stub
svn path=/trunk/mcs/; revision=55473
Peter Dennis Bartok [Fri, 13 Jan 2006 02:39:39 +0000 (02:39 -0000)]
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* Application.cs:
- Switched RunLoop to use static Message.Create to create a
Message object
- Added PreProcessMessage call in runloop for keyboard events; this
is part of the fix for #77219, I overlooked this originally in the
MSDN doc for PreProcessMessage
* Control.cs:
- Removed call to PreProcessMessage from handling of keyboard
messages; it's supposed to be done in the message pump
- Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
per MSDN documentation.
- IsInputChar: All chars are input chars by default; removed the
parent calling chain, MS does not document that
- PreProcessMessage: If IsInputChar is true, we want to return false
to allow dispatching of the message
- When selecting the next control, now also check that we're not
selecting ourselves again and therefore return a false positive.
* TextBoxBase.cs:
- Tried to match return values for IsInputKey and ProcessDialogKey
to what MS returns; moved processing of our special keys outside
ProcessDialogKey since MS does not seem to return true on those.
- Moved code that previously was in ProcessDialogKey into new private
ProcessKey method, which gets called upon receipt of WM_KEYDOWN
- Reworked handling of WM_CHAR to not have to duplicate code from
Control.cs anymore, instead we simply call down to base.
svn path=/trunk/mcs/; revision=55472
Ben Maurer [Fri, 13 Jan 2006 01:08:07 +0000 (01:08 -0000)]
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* ConsoleTraceListener.cs: New 2.0 class
svn path=/trunk/mcs/; revision=55470
Jackson Harper [Thu, 12 Jan 2006 23:59:16 +0000 (23:59 -0000)]
* Control.cs: Don't create the creator_thread until the controls
handle is created. Also in InvokeRequired we check if the
creator_thread is null. This gives the effect of InvokeRequired
returning true if the controls handle is not created yet, and
matches MS.
svn path=/trunk/mcs/; revision=55463
Ben Maurer [Thu, 12 Jan 2006 23:07:39 +0000 (23:07 -0000)]
In gmcs:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* expression.cs: Fix Console.WriteLine ((this = x).foo);
In tests:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* test-437.cs: New test for Console.WriteLine ((this = x).foo)
In mcs:
2006-01-12 Ben Maurer <bmaurer@andrew.cmu.edu>
* expression.cs: Fix Console.WriteLine ((this = x).foo);
svn path=/trunk/mcs/; revision=55462
Miguel de Icaza [Thu, 12 Jan 2006 21:55:56 +0000 (21:55 -0000)]
2006-01-12 Miguel de Icaza <miguel@novell.com>
This fixes the problem where we used ldfld instead of ldflda to
load the "THIS" pointer on captured parameters, when THIS is a
value type. See bug #77205.
* iterators.cs (CapturedThisReference.Emit): Pass false to
EmitThis (we do not need the address).
* codegen.cs (EmitThis): it needs to know whether we need the
address of `this' or not. This is used by value types.
* expression.cs (This.AddressOf): Pass true to the EmitThis call,
every other call passes false.
svn path=/trunk/mcs/; revision=55460
Miguel de Icaza [Thu, 12 Jan 2006 21:44:50 +0000 (21:44 -0000)]
2006-01-12 Miguel de Icaza <miguel@novell.com>
* cs-tokenizer.cs (Position): New class used to save and restore
the position state in the tokenizer. Before this patch the save
and restore was not complete enough so the line and columns would
start to drift and the debugger and stack traces will get the
wrong data.
svn path=/trunk/mcs/; revision=55459
Peter Dennis Bartok [Thu, 12 Jan 2006 20:55:17 +0000 (20:55 -0000)]
2006-01-12 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs:
- Added StartLoop() driver method. This is used to allow drivers to
prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
loop for a particular thread
- Added EndLoop() driver method. This is called once the message
pump for the thread is shut down
- Added SupportsTransparency method to allow the driver to indicate
opacity support for windows
* Form.cs:
- Removed TODO attribute, completed AllowTransparency property
- Added documented logic to Opacity
* GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
versions of CompatibleTextRendering
* X11Structs.cs: Added opacity atom to our atom enumeration
* Hwnd.cs: Added opacity tracking (we need to track since the opacity
of a form might be set before it's reparented by the WM, and we need
the opacity value without calling up to Form)
* XplatUIDriver.cs: Added StartLoop(), EndLoop() and
SupportsTransparency() driver methods
* Application.cs: Now calling StartLoop and EndLoop driver methods
* XplatUIX11.cs:
- Added opacity atom registration
- Added StartLoop()/EndLoop() methods. They're empty right now but
will need to get implemented when we switch to a per-thread queue
- Implemented SupportsTransparency() method
- Implemented SetWindowTransparency() method
- Added support for setting the opacity value when a window is
reparented (since the opacity needs to be set on the WM frame)
* XplatUIOSX.cs, XplatUIWin32.cs:
- Added SupportsTransparency(), StartLoop() and EndLoop() methods
svn path=/trunk/mcs/; revision=55458
Jonathan Pryor [Thu, 12 Jan 2006 19:23:18 +0000 (19:23 -0000)]
* UnixPath.cs: Add ReadLink() and TryReadLink() methods.
svn path=/trunk/mcs/; revision=55450
Jonathan Pryor [Thu, 12 Jan 2006 19:23:02 +0000 (19:23 -0000)]
* UnixPath.cs: Add ReadLink() and TryReadLink() methods.
svn path=/trunk/mcs/; revision=55449
Gonzalo Paniagua Javier [Thu, 12 Jan 2006 18:56:42 +0000 (18:56 -0000)]
add Oleg to the list of authors
svn path=/trunk/mcs/; revision=55447
Sebastien Pouliot [Thu, 12 Jan 2006 18:55:45 +0000 (18:55 -0000)]
2006-01-12 Sebastien Pouliot <sebastien@ximian.com>
* System.Drawing_test.dll.sources: Added unit tests for GraphicsPath
and PathData.
svn path=/trunk/mcs/; revision=55446
Sebastien Pouliot [Thu, 12 Jan 2006 18:54:36 +0000 (18:54 -0000)]
2006-01-12 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPathTest.cs: New. Basic test cases for empty path and
cloning.
* PathDataTest.cs: New. Test cases for PathData.
svn path=/trunk/mcs/; revision=55445
Sebastien Pouliot [Thu, 12 Jan 2006 18:50:48 +0000 (18:50 -0000)]
2006-01-12 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPath.cs: Throw an ArgumentException if either PathPoints or
PathTypes properties are empty (0 length). Note that PathData property
still works in that case.
* PathData.cs: Don't clone empty arrays (results in NRE).
svn path=/trunk/mcs/; revision=55444
Martin Baulig [Thu, 12 Jan 2006 18:27:40 +0000 (18:27 -0000)]
2006-01-12 Martin Baulig <martin@ximian.com>
* icall.c (ves_icall_MonoGenericClass_GetInterfaces): Inflate the
interfaces on-the-fly; fixes #76625.
* class-internals.h
(MonoDynamicGenericClass): Removed `ifaces' and `count_ifaces'; we
don't need that anymore.
svn path=/trunk/mono/; revision=55441
Martin Baulig [Thu, 12 Jan 2006 18:27:18 +0000 (18:27 -0000)]
New test.
svn path=/trunk/mcs/; revision=55440
Alexander Olk [Thu, 12 Jan 2006 17:57:48 +0000 (17:57 -0000)]
* ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
2006-01-12 Alexander Olk <alex.olk@googlemail.com>
svn path=/trunk/mcs/; revision=55439
Miguel de Icaza [Thu, 12 Jan 2006 17:35:47 +0000 (17:35 -0000)]
2006-01-12 Miguel de Icaza <miguel@novell.com>
* PeerCred.cs: Turn PeerCredData into a toplevel class and make it
internal, so it can be used from Mono.Unix.PeerCred.
2006-01-12 Miguel de Icaza <miguel@novell.com>
* PeerCred.cs: Do not define PeerCredData as this is a structure
known to the runtime. Instead use the Mono.Posix.PeerCredData
internal class.
svn path=/trunk/mcs/; revision=55436
Miguel de Icaza [Thu, 12 Jan 2006 17:34:41 +0000 (17:34 -0000)]
2006-01-12 Miguel de Icaza <miguel@novell.com>
* socket-io.c
(ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal):
To avoid initing the nested_classes when not needed I turned the
PeerCredData as a toplevel internal class, as it has to be shared
anyways.
Fixes the CASA issue.
svn path=/trunk/mono/; revision=55435
Alexander Olk [Thu, 12 Jan 2006 16:29:46 +0000 (16:29 -0000)]
2006-01-12 Alexander Olk <alex.olk@googlemail.com>
* FileDialog.cs: Added ToolTip for MWFFileView
* MimeIcon.cs: Rewrote GnomeHandler.
- Get currently used gnome icon theme from
($HOME)/.gconf/%gconf-tree.xml
- Make use of inherited icon themes
- Support SVG icon themes like Tango via librsvg
svn path=/trunk/mcs/; revision=55434
Jonathan Chambers [Thu, 12 Jan 2006 15:54:58 +0000 (15:54 -0000)]
2006-1-12 Jonathan Chambers <jonathan.chambers@ansys.com>
* System.Windows.Forms.dll.sources: Added printing items and *committed* file this time.
svn path=/trunk/mcs/; revision=55433
Atsushi Eno [Thu, 12 Jan 2006 15:53:04 +0000 (15:53 -0000)]
2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
* RdpPattern.cs :
Introduced EmptyTextDeriv() so that the results could be memoized.
* RelaxngValidatingReader.cs : Use RdpPattern.EmptyTextDeriv(). It
significantly improves performance wrt empty text nodes.
svn path=/trunk/mcs/; revision=55432
Ankit Jain [Thu, 12 Jan 2006 15:37:41 +0000 (15:37 -0000)]
* MethodDef.cs (MethodDef.CreateSignature): Use "`n" only for generic
methods.
svn path=/trunk/mcs/; revision=55431
Miguel de Icaza [Thu, 12 Jan 2006 14:49:55 +0000 (14:49 -0000)]
2006-01-12 Miguel de Icaza <miguel@novell.com>
Revert's Jackson's revert which broke 2.0 builds. Fix both
builds.
* Application.cs: Move the use_compatible_text_rendering outside
the NET_2_0 define. If we ever need to use the
use_compatible_text_rendering on the individual controls they will
access the variable from the common shared code paths.
svn path=/trunk/mcs/; revision=55429
Atsushi Eno [Thu, 12 Jan 2006 14:23:18 +0000 (14:23 -0000)]
2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
* CP51932.cs : oops, another extra debugging code was remaining.
Fixed bug #77223.
svn path=/trunk/mcs/; revision=55428
Raja R Harinath [Thu, 12 Jan 2006 14:08:52 +0000 (14:08 -0000)]
Fix #77221.
* mcs/typemanager.cs (TryGetBaseDefinition): Rename from the mis-named
GetOverride.
* mcs/expression.cs (Invocation.OverloadResolve): Update.
(Invocation.DoResolve): Avoid double resolution of invocation.
* tests/test-486.cs: New test from #77221.
svn path=/trunk/mcs/; revision=55427
Peter Dennis Bartok [Thu, 12 Jan 2006 07:20:56 +0000 (07:20 -0000)]
- Part of the previus checkin, missed these files
svn path=/trunk/mcs/; revision=55422
Peter Dennis Bartok [Thu, 12 Jan 2006 07:19:58 +0000 (07:19 -0000)]
2006-01-12 Peter Dennis Bartok <pbartok@novell.com
* XplatUI.cs:
- Added more granular debug options
- Added method to print both window text and id
- Switched debug output to use new Window() debug method
- Added IsEnabled() driver method
- Added EnableWindow() driver method
* Form.cs:
- Removed end_modal; no longer needed, new loop handles termination
via 'closing' variable
- If form is modal, setting DialogResult will now initiate loop
termination via 'closing' variable
- Added support for is_enabled/WS_DISABLED to CreateParams
- Close() now just send the WM_CLOSE message; the WM_CLOSE handler
does all the work
- Removed code that's now in RunLoop from ShowDialog()
- Added various documented sanity checks to ShowDialog()
- Added handling of WM_DESTROY message; we set 'closing' on getting
the message to indicate the message pump to terminate
- Added handling of new internal WM_CLOSE_INTERNAL message - it's
send by the Application.ExitThread method. (We send the message
to destroy the window after all other events have been
processed through the queue, instead of destroying the handle
directly)
- Moved code from Close() method to WM_CLOSE handler; added logic
to only send close-related events if the form is not displayed
modal
* Splitter.cs (..ctor): Fixed typo in resource name
* Control.cs:
- DrawBackgroundImage: Explicitly selecting the wrap mode for the
brush now
- set_Cursor: Now only setting calling into XplatUI if the handle for
the control is already created; this avoids implict handle creation
or crashes if it's not created
- set_Enabled: Now setting the enabled state via the new driver method
instead of just tracking it
- CreateParams: Added logic to set WS_DISABLED based on enabled state
- CreateControl: Reordered event firing and method calls to more
closely fire events in the order MS does. Now setting the
enabled state in the driver when creating the control.
- SetVisibleCore: Moved when the OnVisibleChanged event is fired to
match MS order
* FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED
* XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
* Hwnd.cs:
- Added tracking of window enabled state (get_Enabled/set_Enabled)
- Added EnabledHwnd property to easily allow a driver to find the
handle of the first enabled window in the parent chain (this is
used by drivers to pass up input events of disabled windows)
* XplatUIDriver.cs: Added IsEnabled() method
* Application.cs:
- Removed crude and obsolete exiting tracking variable
- Removed internal ModalRun(); replaced by RunLoop()
- Implemented private CloseForms() method to allow closing all
windows owned by a particular (or all) threads
- Exit() now properly closes all windows without forcing the message
pump to quit
- Removed obsolete InternalExit() method
- Changed Run() methods to use new RunLoop() message pump
- Implemented new RunLoop() method for both modal and non-modal forms
* CommonDialog.cs:
- get_CreateParams: Added setting of WS_DISABLED
- Simplified ShowDialog(); now all the work is done in RunLoop(),
invoked via Form.ShowDialog()
* NativeWindow.cs: We don't remove the window from the collection when
the handle is destroyed; there might still be messages for it in the
queue (mainly the resulting WM_DESTROY); instead it will be removed
when Control calls InvalidateHandle in the WM_DESTROY handler
* XplatUIX11.cs:
- CreateWindow: Added logic to handle the WS_DISABLED window style
- EnableWindow: Implemented based on Hwnd.Enabled
- GetMessage: Reset PostQuitState so the method can be called again
- Implemented support for disabled windows (passing messages to the
first enabled parent) in handling all input messages
- Added optimizations for handling Expose events
- Implemeted new driver method IsEnabled()
- Now always resetting paint pending tracking vars when we start paint
- Re-implemented UpdateWindow via just sending a WM_PAINT message
* XplatUIOSX.cs: Added IsEnabled method stub
* XplatUIWin32.cs: Implemented new IsEnabled() method
svn path=/trunk/mcs/; revision=55421
Raja R Harinath [Thu, 12 Jan 2006 07:18:58 +0000 (07:18 -0000)]
* Makefile: Revert my '2006-01-10' commit. Prefer the more
generic fix to build/executable.make.
(DISTFILES): Distribute nunit-console.exe.config.net_2_0.
* nunit-console.exe.net_2_0.config: Delete.
svn path=/trunk/mcs/; revision=55420
Jackson Harper [Thu, 12 Jan 2006 07:00:28 +0000 (07:00 -0000)]
* ColorDialog.cs: Clear out the old form before adding the new
panel.
svn path=/trunk/mcs/; revision=55419
Atsushi Eno [Thu, 12 Jan 2006 06:03:06 +0000 (06:03 -0000)]
2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs : Do not local duplicate of automatically-created
prefixes (i.e. check local autocreated prefixes other than
namespaces from ancestors). Fixed bug #77086 and #77087.
* XmlTextWriterTests.cs : Split AutoCreatePrefixes() and marked as
Ignore rather than NotWorking. Also it is not for bug #77086 and
#77077 (they were fixed). See bug #77088.
svn path=/trunk/mcs/; revision=55418
Jackson Harper [Thu, 12 Jan 2006 05:35:44 +0000 (05:35 -0000)]
* ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate
the
variables a little.
svn path=/trunk/mcs/; revision=55417
César Natarén [Thu, 12 Jan 2006 05:16:31 +0000 (05:16 -0000)]
2006-01-11 Cesar Lopez Nataren <cnataren@novell.com>
* Parser.cs (StatementHelper): Avoid null reference exception
using the new EmptyAST node in case we have an empty stm (Token.SEMI).
svn path=/trunk/mcs/; revision=55416
Atsushi Eno [Thu, 12 Jan 2006 05:04:09 +0000 (05:04 -0000)]
2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
ArgumentException in WriteNmTokenInternal().
* XmlTextWriterTests.cs : re-enabled WriteNmToken_InvalidChars().
svn path=/trunk/mcs/; revision=55415
Atsushi Eno [Thu, 12 Jan 2006 04:47:39 +0000 (04:47 -0000)]
2006-01-12 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
such invalid "xml" prefix which is being mapped to different
namespace URI than the predefined one.
Removed comment that does not make sense.
* XmlNamespaceManager.cs : IsValidDeclaration() could be private.
Added some comments.
* XmlTextWriterTests.cs : re-enabled bug #77094 related tests.
svn path=/trunk/mcs/; revision=55414