Atsushi Eno [Sat, 28 Jan 2006 07:53:16 +0000 (07:53 -0000)]
2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs, XmlIteratorNodeList.cs :
Now we can enable XmlIteratorNodeList again (mcs, incorrectly
removing nodes in the node list, was fixed).
svn path=/trunk/mcs/; revision=56200
Atsushi Eno [Sat, 28 Jan 2006 07:03:20 +0000 (07:03 -0000)]
2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
* XmlDocument.cs : in ReadNode() to consume element node, switched
to MoveToAttribute(int) since MoveToNextAttribute() was somehow
not working fine. It is needed to avoid Sys.Data test breakage
and anything else should be fixed indeed.
svn path=/trunk/mcs/; revision=56199
Atsushi Eno [Sat, 28 Jan 2006 06:09:49 +0000 (06:09 -0000)]
2006-01-28 Atsushi Enomoto <atsushi@ximian.com>
* doc.cs : To process "include" elements, first we should create
another list than XmlNodeList, because it could result in node
removal, which could result in that the XmlNodeList gives up
yielding next node.
(Also made code identical to gmcs again.)
svn path=/trunk/mcs/; revision=56198
Mike Kestner [Fri, 27 Jan 2006 22:38:16 +0000 (22:38 -0000)]
svn path=/trunk/mcs/; revision=56196
Mike Kestner [Fri, 27 Jan 2006 22:27:52 +0000 (22:27 -0000)]
2006-01-20 Mike Kestner <mkestner@novell.com>
* Form.cs: Add ActiveTracker property to do Captures and perform mouse
event forwarding when menus are active.
* MenuAPI.cs: kill the GrabControl hack. Use Form.ActiveTracker.
svn path=/trunk/mcs/; revision=56195
Paolo Molaro [Fri, 27 Jan 2006 22:25:05 +0000 (22:25 -0000)]
Twice:-(
svn path=/trunk/mono/; revision=56194
Paolo Molaro [Fri, 27 Jan 2006 22:22:11 +0000 (22:22 -0000)]
Typo.
svn path=/trunk/mono/; revision=56193
Ankit Jain [Fri, 27 Jan 2006 22:03:39 +0000 (22:03 -0000)]
* MethodDef.cs:
* TypeManager.cs:
* MethodPointerTypeRef.cs:
* ExternMethodRef.cs: Remove unused variables to fix warnings.
svn path=/trunk/mcs/; revision=56192
Ankit Jain [Fri, 27 Jan 2006 21:45:45 +0000 (21:45 -0000)]
In ilasm/scanner:
* ILTables.cs (keywords): Fix typos in entry for 'charmaperror'.
In ilasm/parser:
* ILParser.jay (pinv_attr | ..): Fix typo.
svn path=/trunk/mcs/; revision=56191
Ankit Jain [Fri, 27 Jan 2006 21:26:37 +0000 (21:26 -0000)]
* TypeDef.cs (GenericInfo):
* MethodDef.cs (GenericInfo): Remove (unused).
svn path=/trunk/mcs/; revision=56190
Ankit Jain [Fri, 27 Jan 2006 20:48:52 +0000 (20:48 -0000)]
* get.c (get_method_core): Emit generic arity for a MemberRef.
(get_method_override): Emit full sig only if its a generic type.
svn path=/trunk/mono/; revision=56189
Paolo Molaro [Fri, 27 Jan 2006 20:12:20 +0000 (20:12 -0000)]
Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
* mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
to speedup StringBuilder.
svn path=/trunk/mono/; revision=56187
Paolo Molaro [Fri, 27 Jan 2006 19:40:37 +0000 (19:40 -0000)]
Fri Jan 27 20:39:48 CET 2006 Paolo Molaro <lupus@ximian.com>
* XmlTextReader.cs, XmlChar.cs: more tweaks and speedups.
svn path=/trunk/mcs/; revision=56186
Chris Toshok [Fri, 27 Jan 2006 19:36:29 +0000 (19:36 -0000)]
2006-01-27 Chris Toshok <toshok@ximian.com>
* MasterPage.cs (ContentTemplatesInternal): add get/set for the
actual Hashtable.
* Page.cs (SaveExistingContentTemplates): store off the existing
MasterPage content templates so they can be reapplied when setting
MasterPageFile to something else.
(ReapplyExistingContentTemplates): set masterPage's
ContentTemplates to our saved copy.
(set_MasterPageFile): save off the current content templates
before clearing masterPage.
(get_Master): reapply the saved content templates after we create
the new MasterPage.
svn path=/trunk/mcs/; revision=56185
Sebastien Pouliot [Fri, 27 Jan 2006 19:29:31 +0000 (19:29 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* ImageAttributes.cs: Ensure Marshal.FreeHGlobal is called for all
unmanaged memory allocated with AllocHGlobal.
* ImageCodecInfo.cs: Ensure Marshal.FreeHGlobal is called for all
unmanaged memory allocated with AllocHGlobal.
svn path=/trunk/mcs/; revision=56183
Zoltan Varga [Fri, 27 Jan 2006 19:27:58 +0000 (19:27 -0000)]
2006-01-27 Zoltan Varga <vargaz@gmail.com>
* DateTime.cs: Add some 2.0 methods and properties.
svn path=/trunk/mcs/; revision=56182
Sebastien Pouliot [Fri, 27 Jan 2006 19:16:23 +0000 (19:16 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* PrintingServicesWin32.cs: Ensure Marshal.FreeHGlobal is called for
all unmanaged memory allocated with AllocHGlobal.
svn path=/trunk/mcs/; revision=56181
Chris Toshok [Fri, 27 Jan 2006 19:13:07 +0000 (19:13 -0000)]
add tests from bugzilla bugs 75402 and 77278
svn path=/trunk/mcs/; revision=56180
Ankit Jain [Fri, 27 Jan 2006 19:11:10 +0000 (19:11 -0000)]
* ILParser.jay (method_ref): Remove 2 redundant productions.
(method_decl | D_OVERRIDE K_METHOD ..): New production for overriding
generic methods.
svn path=/trunk/mcs/; revision=56179
Sebastien Pouliot [Fri, 27 Jan 2006 19:01:31 +0000 (19:01 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* Font.cs: Ensure unmanaged memory is free correctly in ToLogFont
even if GDIPlus.CheckStatus throws an exception;
* Image.cs: Ensure unmanaged memory is free correctly even if
GDIPlus.CheckStatus throws an exception. Note: the SetPropertyItem use
case is unclear to me (and unimplemented in libgdiplus);
* Region.cs: Ensure unmanaged memory is free correctly in
GetRegionScans even if GDIPlus.CheckStatus throws an exception;
svn path=/trunk/mcs/; revision=56178
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 18:43:47 +0000 (18:43 -0000)]
2006-01-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* TextWriter.cs: Dispose () is public in 2.0.
svn path=/trunk/mcs/; revision=56176
Zoltan Varga [Fri, 27 Jan 2006 18:30:13 +0000 (18:30 -0000)]
2006-01-27 Zoltan Varga <vargaz@gmail.com>
* dominators.c (mono_compute_natural_loops): Fix detection of
loop body start blocks.
svn path=/trunk/mono/; revision=56175
Sebastien Pouliot [Fri, 27 Jan 2006 18:28:21 +0000 (18:28 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* Matrix.cs: Ensure we call Marshal.FreeHGlobal even if CheckStatus
throws an exception.
svn path=/trunk/mcs/; revision=56174
Atsushi Eno [Fri, 27 Jan 2006 16:51:55 +0000 (16:51 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs : optimization patch by Paolo.
Fast path optimization in PeekChar().
Avoid double-evaluation of PeekChar() and ReadChar() by new
Advance() method.
svn path=/trunk/mcs/; revision=56171
Sebastien Pouliot [Fri, 27 Jan 2006 16:45:48 +0000 (16:45 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* GraphicsPathTest.cs: Removed "NotWorking" from existing Flatten
tests and added more test cases (for each type of shape).
svn path=/trunk/mcs/; revision=56170
Sebastien Pouliot [Fri, 27 Jan 2006 16:41:26 +0000 (16:41 -0000)]
2006-01-27 Sebastien Pouliot <sebastien@ximian.com>
* RegionNonRectTest.cs: Updated comments on a test that fails on both
1.x and 2.0 MS runtime.
* TestFont.cs: Converted tests to NUnit 2.2 and added descriptions to
each asserts.
svn path=/trunk/mcs/; revision=56169
Raja R Harinath [Fri, 27 Jan 2006 16:11:48 +0000 (16:11 -0000)]
Fix couple of typos: I forgot to save the final version before committing
svn path=/trunk/mono/; revision=56168
Senganal T [Fri, 27 Jan 2006 15:54:36 +0000 (15:54 -0000)]
2006-01-27 Senganal T <tsenganal@novell.com>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
- Modified GetSqlMoney () , to set the precision and Scale correctly.
- Modified ProcessColumnDetails , to set the schema values correctly.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsDataColumn.cs : Added some default values for the column schema
* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : corrected a failing testcase
* System.Data/System.Data.SqlTypes/SqlDateTime : Corrected the MaxValue for SqlDateTime
* System.Data/System.Data.Common/DbDataAdapter.cs :
- Modified schema population to follow MissingSchemaAction and MissingMappingAction
- Add a column to the Primary Key only if its not a hidden key
- Added some argument checks
- Removed some redundant code
* System.Data/System.Data.Common/DataAdapter :
- Added argument checks
* System.Data/System.Data.Common/ExceptionHelper :
- Added InvalidEnumException , a helper function to print error msg
* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs :
- Modified CreateUpdateCommand,CreateDeleteCommand , to not include
column name in the query if its a expression col.
Also, modified the queries to match the generated queries in ms.net
* System.Data/System.Data.SqlClient/SqlCommand.cs :
- Modifed Prepare, to check if Parameter is explicitly initialized
* System.Data/System.Data.SqlClient/SqlParameter.cs :
- Added CheckIfInitialized : Checks if datatype is explicitly set and
non-zero size is set for variable datatypes.
* System.Data/System.Data.SqlClient/SqlDataReader.cs :
- Added code for GetSqlBinary ()
- Fixed GetFieldCount ()
- Added more checks and exceptions.
Fixes most of the failing SqlClient Provider Tests .
svn path=/trunk/mcs/; revision=56167
Ankit Jain [Fri, 27 Jan 2006 15:38:01 +0000 (15:38 -0000)]
* get.c (get_methodref_signature): Remove 'context' parameter.
Update call sites.
* get.h (get_methodref_signature): Update.
* dump.c (dump_table_memberref): Update.
svn path=/trunk/mono/; revision=56166
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 14:56:46 +0000 (14:56 -0000)]
added .dll to the list of forbidden files
svn path=/trunk/mono/; revision=56165
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 14:56:12 +0000 (14:56 -0000)]
added .dll to the list of forbidden files
svn path=/trunk/mono/; revision=56164
Sebastien Pouliot [Fri, 27 Jan 2006 14:42:22 +0000 (14:42 -0000)]
GraphicsPath.cs: Removed TODO on Flatten methods (now supported in libgdiplus). Added a private constant for FlatnessDefault (0.25). Added MonoTODO on IsVisible* methods (not supported in libgdiplus).
svn path=/trunk/mcs/; revision=56163
Zoltan Varga [Fri, 27 Jan 2006 14:27:40 +0000 (14:27 -0000)]
2006-01-27 Zoltan Varga <vargaz@gmail.com>
* mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
svn path=/trunk/mono/; revision=56161
Raja R Harinath [Fri, 27 Jan 2006 13:32:12 +0000 (13:32 -0000)]
In metadata:
Fix tests/find-method.2.il
* loader.c (find_method, find_method_in_class): Remove is_inflated
argument. Revert 2006-01-18 change.
(method_from_memberref) [MONO_MEMBERREF_PARENT_TYPESPEC]: If type
is generic, search for method in its generic definition.
* class.c (mono_class_setup_vtable_general): Print generic
arguments of generic types in debugging printf.
In tests:
* Makefile.am (TEST_PROG_RUN, JITTEST_PROG_RUN): Don't set MONO_PATH.
(with_mono_path2, RUNTIME2, GMCS, ILASM2): New.
(TEST_CS2_SRC, TEST_IL2_SRC): New.
(EXTRA_DIST): Add them.
(testjit-default, testjit-net_2_0): New. Copies of old testjit,
updated to use appropriate runtimes.
(testjit): Depend on them.
svn path=/trunk/mono/; revision=56160
Ankit Jain [Fri, 27 Jan 2006 13:01:55 +0000 (13:01 -0000)]
* ILParser.jay (formal_typars_clause): Allow generics only for NET_2_0 profile.
(typars_clause): Likewise.
svn path=/trunk/mcs/; revision=56159
Jordi Mas i Hernandez [Fri, 27 Jan 2006 11:41:25 +0000 (11:41 -0000)]
2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
* gdipFunctions.cs: New gdiplus imports
* Font.cs: Use gdiplus calls to get font height and size
svn path=/trunk/mcs/; revision=56157
Jordi Mas i Hernandez [Fri, 27 Jan 2006 11:28:27 +0000 (11:28 -0000)]
2006-01-27 Jordi Mas i Hernandez <jordimash@gmail.com>
* Adds PrintFontSample.cs
svn path=/trunk/mcs/; revision=56155
Atsushi Eno [Fri, 27 Jan 2006 10:22:40 +0000 (10:22 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
some kind of regression under mcs/tests/xml-025.cs.
svn path=/trunk/mcs/; revision=56153
Atsushi Eno [Fri, 27 Jan 2006 09:32:28 +0000 (09:32 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollection.cs :
Replaced all Nodes.Count with Count (it could avoid extraneous
ArrayList creation in XmlNamedNodeMap). ID attribute adjustment
was extraneously done against all attribute nodes and thus there
was a plenty of call to Value.
* XmlNamedNodeMap.cs : added comment on SetNamedItem() W3C spec
violation.
svn path=/trunk/mcs/; revision=56152
Atsushi Eno [Fri, 27 Jan 2006 08:38:28 +0000 (08:38 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs,
XmlDocument.cs,
XmlAttribute.cs,
XmlElement.cs :
Added internal AppendChild() override that omites node type
checking, and used it in many places.
svn path=/trunk/mcs/; revision=56151
Atsushi Eno [Fri, 27 Jan 2006 08:06:49 +0000 (08:06 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlDocument.cs : optimized ReadAttributeNode() to not call
MoveToAttribute() unneccesarily (call it only when ReadNode() is
called on an attribute node).
svn path=/trunk/mcs/; revision=56150
Atsushi Eno [Fri, 27 Jan 2006 07:06:09 +0000 (07:06 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* XmlNode.cs :
in get_InnerText(), avoid extraneous StringBuilder creation.
svn path=/trunk/mcs/; revision=56149
Atsushi Eno [Fri, 27 Jan 2006 06:29:26 +0000 (06:29 -0000)]
2006-01-27 Atsushi Enomoto <atsushi@ximian.com>
* System.Xml.dll.sources : added XmlIteratorNodeList.cs.
* XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
It does not iterate all nodes in advance.
* XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
svn path=/trunk/mcs/; revision=56148
Peter Dennis Bartok [Fri, 27 Jan 2006 04:57:12 +0000 (04:57 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs:
Removed GetMenuDC and ReleaseMenuDC methods; replaced
by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
* Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
* InternalWindowManager.cs: Added use of PaintEventStart/End to
handling of WM_NCPAINT message, now passing the PaintEventArgs to
the PaintWindowDecorations method
* MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
* MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
* MenuAPI.cs: Made tracker window invisible
* XplatUIWin32.cs:
- Removed GetMenuDC and ReleaseMenuDC methods
- Implemented the client=false path for PaintEventStart and
PaintEventEnd
svn path=/trunk/mcs/; revision=56147
Chris Toshok [Fri, 27 Jan 2006 04:29:20 +0000 (04:29 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: ignore runtime and startup
sections.
svn path=/trunk/mono/; revision=56146
Peter Dennis Bartok [Fri, 27 Jan 2006 03:41:00 +0000 (03:41 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
* XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
styles
* Form.cs:
- MaximizeBox, MinimizeBox: Recreate the handle when setting
the style
- CreateParams: Reworked the styles to match MS look'n'feel,
removed automatic setting of MinimizeBox, MaximizeBox, etc. via
the WS_OVERLAPPEDWINDOW style. This fixes #76823.
svn path=/trunk/mcs/; revision=56144
Peter Dennis Bartok [Fri, 27 Jan 2006 02:53:23 +0000 (02:53 -0000)]
- Oops, forgot to check in
svn path=/trunk/mcs/; revision=56143
Jonathan Pryor [Fri, 27 Jan 2006 02:44:09 +0000 (02:44 -0000)]
* UnixMarshal.cs: Check for null arguments in PtrToString() and
PtrToStringArray().
svn path=/trunk/mcs/; revision=56140
Chris Toshok [Fri, 27 Jan 2006 02:20:08 +0000 (02:20 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* WebEncoding.cs: rework this so we cache the section, and so we
swallow exceptions based on a broken configuration.
svn path=/trunk/mcs/; revision=56139
Chris Toshok [Fri, 27 Jan 2006 02:18:12 +0000 (02:18 -0000)]
add HttpConfigurationSystem.cs
svn path=/trunk/mcs/; revision=56138
Chris Toshok [Fri, 27 Jan 2006 02:17:41 +0000 (02:17 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* HttpConfigurationSystem.cs: new class that gets sections from
web.config files.
* WebConfigurationManager.cs: change a lot of the
NotImplementedExceptions to NotSupportedExceptions.
(AppSettings): implement by just returning
ConfigurationManager.AppSettings (note this is broken because
ConfigurationManager.AppSettings are read-only, but it works for
reading.)
(ConnectionStrings): same (and probably broken in the same way..)
(Init): replace the 2.0 IInternalConfigSystem with our
HttpConfigurationSystem.
* WebConfigurationHost.cs: add a comment about how things are
likely to work in the face of IRemoteWebConfigurationHostServer.
(CreateConfigurationContext): return a WebContext instance.
svn path=/trunk/mcs/; revision=56137
Chris Toshok [Fri, 27 Jan 2006 02:10:44 +0000 (02:10 -0000)]
Add ClientConfigurationSystem.cs to the build
svn path=/trunk/mcs/; revision=56136
Chris Toshok [Fri, 27 Jan 2006 02:10:20 +0000 (02:10 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* SectionGroupInfo.cs (ReadContent): handle "location" (seemingly)
correctly.
* InternalConfigurationRoot.cs: misc logical additions. still
isn't useful.
* ConfigurationManager.cs (OpenExeConfigurationInternal): throw an
exception if both calling_assembly and exePath are null. Allow
the exePath to be a path to a config file as well, checking to see
if it ends in .config before appending.
(OpenExeConfiguration): stop blindly passing
Assembly.GetCallingAssembly. I'm assuming this will likely break
.dll.config usage. need to investigate that (and write more unit
tests.)
(GetSection): call configSystem.GetSection.
(RefreshSection): call configSystem.RefreshSection.
(ChangeConfigurationSystem): modeled after the
ConfigurationSettings System.Web hack - allow
WebConfigurationManager to replace the current
IInternalConfigSystem.
* InternalConfigurationHost.cs (InternalConfigurationHost): make
abstract, and remove all the NotImplenmentedException's.
* ConfigurationElement.cs (DeserializeElement): store off the xml
namespace if there is one.
(SerializeElement): write out the namespace if there was one.
* ClientConfigurationSystem.cs: new class, based on some stack
traces I've seen in tests. Kinda (well, not *kinda*..) hacky.
* Configuration.cs (NamespaceDeclared): implement.
(Load): don't swallow all exceptions, just the ones raised when we
open the stream for reading.
(ReadConfigFile): handle xmlns.
svn path=/trunk/mcs/; revision=56135
Chris Toshok [Fri, 27 Jan 2006 01:54:16 +0000 (01:54 -0000)]
clean up
svn path=/trunk/mcs/; revision=56134
Peter Dennis Bartok [Fri, 27 Jan 2006 00:46:40 +0000 (00:46 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs(GetWindowState): Now throwing an exception when the
window is not mapped, since otherwise every form that's being
created is considered minimized, which is wrong.
* Form.cs: Catching the exception and returning our internal value
instead
svn path=/trunk/mcs/; revision=56133
Peter Dennis Bartok [Fri, 27 Jan 2006 00:35:09 +0000 (00:35 -0000)]
- Added bug number to changelog fix entry
svn path=/trunk/mcs/; revision=56132
Peter Dennis Bartok [Fri, 27 Jan 2006 00:34:15 +0000 (00:34 -0000)]
2006-01-26 Peter Dennis Bartok <pbartok@novell.com>
* XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
SetWindowMinMax() to have means to tell the driver about the minimum,
maximum and maximized state window sizes. (Part of the fix for #76485)
* Form.cs:
- Implemented tracking of minimum and maximum window size, now calling
new SetWindowMinMax() driver method to tell the driver (Part of the
fix for #76485)
- Finished handling of WM_GETMINMAXINFO method, now setting all values
(Completes fix for #76485)
- Calling new SetWindowMinMax driver method when the handle for a
form is created, to make sure the driver knows about it even if
the values have been set before the window was created
- Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
to avoid messing up our anchoring calculations (partial fix
for #77355)
* XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
* XplatUIX11.cs:
- Added _NET_WM_STATE_HIDDEN property for detecting minimized state
- Improved GetWindowState() to detect 'Minimized' state on Metacity
(and presumably other freedesktop.org compliant WMs). Left the
assumption unmapped=minimized, needed for SetVisible to work.
- Now setting the window state when creating windows
- Fixed SetVisible to consider/set the window state when mapping
a Form. We cannot set the state before it's mapped, and we cannot
use Form.WindowState once it's mapped (since it would ask the
driver and get 'normal'. Therefore, we grab the state before
mapping, map, and then set state.
- Implmemented SetWindowMinMax method; Metacity does not seem to
honor the ZoomHints, though.
* XplatUIWin32.cs:
- Removed MINMAXINFO (moved to XplatUIStructs)
- Added SetWindowMinMax stub (on Win32 the only way to set that
information is in response to the WM_GETMINMAXINFO message, which
is handled in Form.cs)
- Added logic to SetVisible to set the proper window state when a
form is made visible
svn path=/trunk/mcs/; revision=56131
Gonzalo Paniagua Javier [Fri, 27 Jan 2006 00:18:43 +0000 (00:18 -0000)]
2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebClient.cs: (2.0) UploadString() returns string, not void.
svn path=/trunk/mcs/; revision=56129
Chris Toshok [Thu, 26 Jan 2006 23:23:49 +0000 (23:23 -0000)]
2006-01-26 Chris Toshok <toshok@ximian.com>
* AssemblyResourceLoader.cs (GetResourceUrl): if the assembly
corresponds to an on-disk file, append the last write time to the
url so we can enable client side caching.
(ProcessRequest): tell the client to cache the url for 1 year, and
have it vary by 'r' (resource name) and 't' (assembly timestamp).
svn path=/trunk/mcs/; revision=56127
Gonzalo Paniagua Javier [Thu, 26 Jan 2006 23:11:14 +0000 (23:11 -0000)]
2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
set cache_control through the property to update the cachebility
accordingly. When using the cached headers, don't add again all the
headers to that collection.
* HttpCacheVaryByParams.cs: if there are no params, return null.
Otherwise we get an empty 'Vary' header.
svn path=/trunk/mcs/; revision=56125
Jackson Harper [Thu, 26 Jan 2006 22:19:43 +0000 (22:19 -0000)]
* Control.cs (BeginInvoke): Automagically handle EventHandlers
* the
same way we handle them with Invoke.
svn path=/trunk/mcs/; revision=56124
Jonathan Pryor [Thu, 26 Jan 2006 21:02:33 +0000 (21:02 -0000)]
* ChangeLog: Started
* mono-shlib-cop.1: Document another BUG/design issue that it doesn't check
for; formatting/style changes.
svn path=/trunk/mono/; revision=56121
Miguel de Icaza [Thu, 26 Jan 2006 19:56:15 +0000 (19:56 -0000)]
Commit temporary fix for static partial classes (bug 77027) from Atsushi
svn path=/trunk/mcs/; revision=56118
Sebastien Pouliot [Thu, 26 Jan 2006 18:59:07 +0000 (18:59 -0000)]
2006-01-26 Sebastien Pouliot <sebastien@ximian.com>
* FontFamily.cs: Free the memory allocated with Marshal.AllocHGlobal.
* Region.cs: Updated TODO to reflect current status.
svn path=/trunk/mcs/; revision=56117
Miguel de Icaza [Thu, 26 Jan 2006 18:53:19 +0000 (18:53 -0000)]
Update man page
svn path=/trunk/mono/; revision=56116
Boris Kirzner [Thu, 26 Jan 2006 17:35:04 +0000 (17:35 -0000)]
Tests refactoring for TARGET_JVM.
svn path=/trunk/mcs/; revision=56114
Zoltan Varga [Thu, 26 Jan 2006 17:20:49 +0000 (17:20 -0000)]
svn path=/trunk/mcs/; revision=56111
Zoltan Varga [Thu, 26 Jan 2006 17:19:59 +0000 (17:19 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* DebuggerNonUserCodeAttribute.cs: New file.
svn path=/trunk/mcs/; revision=56110
Zoltan Varga [Thu, 26 Jan 2006 17:19:01 +0000 (17:19 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* corlib.dll.sources: Add DebuggerNonUserCodeAttribute.cs and
SuppressMessageAttribute.cs.
svn path=/trunk/mcs/; revision=56109
Zoltan Varga [Thu, 26 Jan 2006 16:10:25 +0000 (16:10 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* thread-dump.cs: New file.
svn path=/trunk/mono/; revision=56108
Zoltan Varga [Thu, 26 Jan 2006 16:08:36 +0000 (16:08 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
#75145.
svn path=/trunk/mono/; revision=56107
Boris Kirzner [Thu, 26 Jan 2006 16:01:10 +0000 (16:01 -0000)]
Added ifdefs, projects, solutions and support for TARGET_JVM.
svn path=/trunk/mcs/; revision=56106
Zoltan Varga [Thu, 26 Jan 2006 15:54:04 +0000 (15:54 -0000)]
2006-01-26 Zoltan Varga <vargaz@gmail.com>
* object-internals.h (MonoThread): Add 'thread_dump_requested' field.
* threads.c (mono_threads_request_thread_dump): New helper function.
svn path=/trunk/mono/; revision=56105
Svetlana Zholkovsky [Thu, 26 Jan 2006 14:02:32 +0000 (14:02 -0000)]
BinaryCore.cs: TARGET_JVM related changes
svn path=/trunk/mcs/; revision=56101
Konstantin Triger [Thu, 26 Jan 2006 12:56:49 +0000 (12:56 -0000)]
TARGET_JVM: catch ObjectDisposedException in addition to ThreadAbortException; optimizing byte[] <-> sbyte[] conversion
svn path=/trunk/mcs/; revision=56097
Robert Jordan [Thu, 26 Jan 2006 07:50:03 +0000 (07:50 -0000)]
2006-01-15 Robert Jordan <robertj@gmx.net>
* WebUIValidation.js (CustomValidatorEvaluateIsValid):
Allow empty/missing ControlToValidate attributes.
* WebUIValidation.js (ValidatorSucceeded):
Hide validator's view. Fixes bug #77261.
svn path=/trunk/mcs/; revision=56093
Chris Toshok [Thu, 26 Jan 2006 04:10:03 +0000 (04:10 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: ignore mscorlib,
system.runtime.remoting, and strongNames sections.
svn path=/trunk/mono/; revision=56092
Atsushi Eno [Thu, 26 Jan 2006 03:42:52 +0000 (03:42 -0000)]
2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
* mono-api-info.cs
mono-api-diff.cs : show MethodAttributes difference (as long as
they make sense).
svn path=/trunk/mcs/; revision=56091
Miguel de Icaza [Thu, 26 Jan 2006 01:47:04 +0000 (01:47 -0000)]
Fix the build
svn path=/trunk/mcs/; revision=56089
Raja R Harinath [Thu, 26 Jan 2006 00:52:10 +0000 (00:52 -0000)]
* get.c (stringify_double): Simplify, and avoid 'E' too.
svn path=/trunk/mono/; revision=56088
Peter Dennis Bartok [Thu, 26 Jan 2006 00:38:33 +0000 (00:38 -0000)]
2006-01-25 Peter Dennis Bartok <pbartok@novell.com>
* Form.cs:
- Added tracking of window state so CreateParams can return
the appropriate style
- Moved setting of WS_CAPTION style in CreateParams to allow
styles without caption
* DataGridTextBoxColumn.cs: We are now also creating the TextBox
control if the TextBox property is accessed. Fixes #77345
* Control.cs:
- get_Created: now uses is_disposed and is_created to determine
return value (suggested by Jackson)
- CreateHandle: No longer exits if the handle is being recreated
- RecreateHandle: If the handle is not yet created call the
appropriate method to create either control or handle. If the
control is already created CreateHandle will simply exit instead
of just creating the handle
* Hwnd.cs: Removed expose_pending tracking, no longer needed since we
now SendMessage WM_DESTROY directly to the control when DestroyWindow
is called.
* XplatUIX11.cs:
- When DestroyWindow is called, instead of waiting for the
DestroyNotification from X11, we directly post it to the WndProc
and immediately dispose the hwnd object.
Same applies to DestroyChildWindows, and this obsoletes the
expose_pending tracking. Contrary to Win32 behaviour we destroy our
child windows before our own, to avoid X11 errors.
- Removed the direct sending of WM_PAINT on UpdateWindow
* XplatUIWin32.cs:
- Reworked DoEvents and GetMessage to allow access to internal queue
even when trying non-blocking access to the queue. Fixes #77335.
Based on a patch suggestion by Don Edvalson. The new private
GetMessage can now also be used as a backend for a PeekMessage
frontend version.
* XplatUI.cs: Improved debug output for CreateWindow
svn path=/trunk/mcs/; revision=56087
Chris Toshok [Wed, 25 Jan 2006 23:49:20 +0000 (23:49 -0000)]
add two tests for <location> elements at various levels in a configuration
svn path=/trunk/mcs/; revision=56086
Chris Toshok [Wed, 25 Jan 2006 23:26:09 +0000 (23:26 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
and if there's a configuration error, output it and end things
immediately.
svn path=/trunk/mcs/; revision=56085
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 23:14:48 +0000 (23:14 -0000)]
new file and fixes
svn path=/trunk/mcs/; revision=56084
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 23:10:15 +0000 (23:10 -0000)]
2006-01-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* VirtualPathProviderTest.cs: new tests.
svn path=/trunk/mcs/; revision=56083
Chris Toshok [Wed, 25 Jan 2006 22:53:38 +0000 (22:53 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ConfigInfo.cs (ThrowException): throw a
ConfigurationErrorsException, not a ConfigurationException.
* SectionGroupInfo.cs (ReadContent): throw an exception
unconditionally if we see a <location>. they aren't valid in
section groups.
svn path=/trunk/mcs/; revision=56082
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 22:02:19 +0000 (22:02 -0000)]
new source files
svn path=/trunk/mcs/; revision=56077
Gonzalo Paniagua Javier [Wed, 25 Jan 2006 22:01:59 +0000 (22:01 -0000)]
2006-01-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* VirtualDirectory.cs:
* VirtualPathProvider.cs:
* VirtualFileBase.cs:
* VirtualFile.cs: implemented this base classes.
* HostingEnvironment.cs: implemented a few properties by using the ones
in HttpRuntime.
svn path=/trunk/mcs/; revision=56076
Chris Toshok [Wed, 25 Jan 2006 21:51:18 +0000 (21:51 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ClientScriptManager.cs (RegisterClientScriptResource): last
patch, I swear. How can 1 line of code have 3 bugs?
svn path=/trunk/mcs/; revision=56074
Jackson Harper [Wed, 25 Jan 2006 21:35:11 +0000 (21:35 -0000)]
* Help.cs: Allow param to be null. Patch by Don Edvalson.
svn path=/trunk/mcs/; revision=56073
Ankit Jain [Wed, 25 Jan 2006 21:23:47 +0000 (21:23 -0000)]
* get.c (stringify_double): Remove trailing '.' if it has 'e'.
svn path=/trunk/mono/; revision=56068
Miguel de Icaza [Wed, 25 Jan 2006 21:18:20 +0000 (21:18 -0000)]
2006-01-25 Miguel de Icaza <miguel@novell.com>
* ecore.cs: Introduce an error report that we were not catching
before, if not silent, we must report the error. Gonzalo ran into
it.
svn path=/trunk/mcs/; revision=56065
Chris Toshok [Wed, 25 Jan 2006 21:13:53 +0000 (21:13 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* ClientScriptManager.cs (RegisterClientScriptResource): gah, fix
problem with last commit - unquote "resourceName" so it uses the
parameter instead of the string constant.
svn path=/trunk/mcs/; revision=56063
Rafael Teixeira [Wed, 25 Jan 2006 20:17:26 +0000 (20:17 -0000)]
2006-01-23 Jelmer Vernooij <jelmer@samba.org>
* Test/tests/typemembers/EventP.vb: Add tests that check for
more complex constructions in AddHandler / RemoveHandler.
* Test/tests/typemembers/EventO.vb: Test for parsing a WITHEVENTS
variable declaration after it is being used in a 'Handles ...' clause.
svn path=/trunk/mcs/; revision=56060
Chris Toshok [Wed, 25 Jan 2006 18:47:48 +0000 (18:47 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* data/net_2_0/machine.config: for system.web, add default
<authorization> section that allows everything. also, add
System.Configuration to system.web/compilation/assemblies.
svn path=/trunk/mono/; revision=56057
Chris Toshok [Wed, 25 Jan 2006 18:44:55 +0000 (18:44 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationSection.cs (IsValidUser): instead of a blanket
false for a null user, just set the username to "" and short
circuit out the check for roles.
svn path=/trunk/mcs/; revision=56055
Chris Toshok [Wed, 25 Jan 2006 17:58:20 +0000 (17:58 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationRule.cs (CheckUser): handle * and ?, and use
String.Compare instead of ==.
(CheckVerb): use String.Compare instead of ==.
* AuthorizationSection.cs (IsValidUser): return false for a null
user.
svn path=/trunk/mcs/; revision=56052
Chris Toshok [Wed, 25 Jan 2006 16:58:04 +0000 (16:58 -0000)]
2006-01-25 Chris Toshok <toshok@ximian.com>
* KeyValueInternalCollection.cs: don't use a nested collection,
just defer to our base class. This fixes usage of
ConfigurationManager.AppSettings.Keys.
svn path=/trunk/mcs/; revision=56049
Atsushi Eno [Wed, 25 Jan 2006 15:36:37 +0000 (15:36 -0000)]
2006-01-26 Atsushi Enomoto <atsushi@ximian.com>
* XmlWriter.cs : Dispose() is protected.
* XmlSchemaValidationException.cs : fixed .ctor() signatures.
* XPathNavigator.cs : fixed IsNode signature found by updated
corcompare.
svn path=/trunk/mcs/; revision=56048
Atsushi Eno [Wed, 25 Jan 2006 15:34:17 +0000 (15:34 -0000)]
2006-01-25 Atsushi Enomoto <atsushi@ximian.com>
* XsltContext.cs : fixed method signatures found by updated
corcompare.
svn path=/trunk/mcs/; revision=56047