mono.git
17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 21:33:50 +0000 (21:33 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* AssemblyBuilderTest.cs: The GetType_IgnoreCase test case doesn't
work under MS.
* ConstructorBuilderTest.cs: The TestMethodHandle test case doesn't
work under MS.

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

17 years ago2006-07-31 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Mon, 31 Jul 2006 20:57:48 +0000 (20:57 -0000)]
2006-07-31  Alexander Olk  <alex.olk@googlemail.com>

* XplatUIX11.cs: Use the correct cursor shapes for arrow and default
  standard cursors.

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

17 years ago * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
Peter Dennis Bartok [Mon, 31 Jul 2006 20:17:44 +0000 (20:17 -0000)]
* TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
  selection drawing

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

17 years ago2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 31 Jul 2006 20:14:26 +0000 (20:14 -0000)]
2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>

* TextBoxBase.cs: Added internal property ShowSelection to allow controls
  that embed TextBox and need selections visible even if textbox is not
  focused to enforce that behaviour.

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

17 years ago2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 31 Jul 2006 19:04:55 +0000 (19:04 -0000)]
2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>

* TextControl.cs:
  - Added new SetSelectionStart/SetSelectionEnd overloads
  - Fixed viewport width assignment to be accurate
  - Adjusted alignment line shift calculations to allow cursor on right
    aligned lines to be always visible at the right border (like MS)
* TextBoxBase.cs:
  - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
  - TextBoxBase_SizeChanged: recalculating canvas on size changes
  - CalculateScrollBars: Use ViewPort size instead of window size, to
    properly consider space occupied by the border and scrollbars
    (Fixes #78661)
  - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll
    calculations; no longer leaves artifacts
  - CaretMoved: Adjusted window scrolling to match MS and fixed several
    calculation bugs (Still missing right/center align calculations)

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

17 years ago2006-07-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 31 Jul 2006 18:23:56 +0000 (18:23 -0000)]
2006-07-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* PagerSettings.cs: Fixed the pager range calculation formula. The old
one didn't work with more than 20 pages. Patch by Marek Habersack that
closes bug #78328.

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

17 years ago2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 31 Jul 2006 18:22:29 +0000 (18:22 -0000)]
2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>

* XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
  use of both scroll rect and clip rect, as they do the same.

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

17 years ago2006-07-31 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 31 Jul 2006 18:18:59 +0000 (18:18 -0000)]
2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key
  in the event handler (fixes #78912)

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

17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 17:35:16 +0000 (17:35 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* sn.cs: Catch exceptions, including reporting invalid number of
parameters. Fix bug #78977.

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

17 years ago * ThemeWin32Classic.cs: use grid.RowsCount here instead of
Chris Toshok [Mon, 31 Jul 2006 16:54:55 +0000 (16:54 -0000)]
* ThemeWin32Classic.cs: use grid.RowsCount here instead of
grid.ListManager.Count, since grid.ListManager might be null.
This of course begs the question "why are we drawing rows for a
grid with no list manager (and therefor no rows)?"  Fixes the
crash in bug #78929.

2006-07-31  Chris Toshok  <toshok@ximian.com>

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

17 years ago * RelatedPropertyManager.cs: Don't always chain up to the parent
Chris Toshok [Mon, 31 Jul 2006 16:46:49 +0000 (16:46 -0000)]
* RelatedPropertyManager.cs: Don't always chain up to the parent
ctor.  instead, call SetDataSource if the parent's position is !=
-1.  Fixes the crash in #78822.

2006-07-31  Chris Toshok  <toshok@ximian.com>

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

17 years ago2006-07-31 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 31 Jul 2006 16:46:44 +0000 (16:46 -0000)]
2006-07-31  Atsushi Enomoto  <atsushi@ximian.com>

* X509Certificate.cs :
  In 2.0 IntPtr constructor reject IntPtr.Zero as invalid handle.
  In 2.0 copy constructor rejects null argument.
  Equals() should return false if the argument cert is null.
  Also if both x509 and raw data are null it caused NRE.

* X509CapiTest.cs : ConstructorIntPtrZero() is valid only under 1.x.
* X509CertificateTest.cs :
  Added tests for equality and null certificate constructor.

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

17 years ago2006-07-31 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 31 Jul 2006 16:09:04 +0000 (16:09 -0000)]
2006-07-31  Chris Toshok  <toshok@ximian.com>

* DataGrid.cs (get_ListManager): use field instead of property
accessors for datasource and datamember.
(RowsCount): make internal again.
(OnMouseDown): end edits before resizing columns/rows.
(OnMouseUp): restart edits after resizing columns/rows.

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

17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 14:02:38 +0000 (14:02 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* ConfigurationSettings.cs: Assert FileIOPermission when loading a
configuration file.
* ConfigXmlDocument.cs: Add an imperative demand for PathDiscovery on
all (many classes) Filename properties. Ensure we're not using the
property (but the member) inside the class itself.

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

17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 13:44:41 +0000 (13:44 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* EventLogEntry.cs: Add a linkdemand for unrestricted on class.
* EventLogTraceListener.cs: Add a linkdemand for unrestricted on class
* FileVersionInfo.cs: Add a linkdemand for unrestricted on class. Add
an imperative demand for FileIOPermission.Read on GetVersionInfo
method. Change ToString method to use a StringBuilder.
* PerformanceCounterCategory.cs: Add a linkdemand for unrestricted on
class.
* PerformanceCounterManager.cs: Add a linkdemand for unrestricted on
class. Add [Obsolete] for NET_2_0 profile.
* Process.cs: Add a linkdemand and an inheritancedemand for
unrestricted on class.
* ProcessStartInfo.cs: Add a linkdemand for unrestricted on class.

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

17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 13:30:22 +0000 (13:30 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* InvalidEnumArgumentException.cs: Updated to 2.0.
* LicenseException.cs: Updated to 2.0. Add a demand for
SerializationFormatter on GetObjectData method.
* TypeDescriptor.cs: Add linkdemand for ReflectionPermission on
CreateEvent and CreateProperties methods. Add linkdemand for
unrestricted on ComNativeDescriptorHandler get/set.
* WarningException.cs: Updated to 2.0. Add a demand for
SerializationFormatter on GetObjectData method.
* Win32Exception.cs: Add a demand for SerializationFormatter on
GetObjectData method.

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

17 years ago2005-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 13:15:09 +0000 (13:15 -0000)]
2005-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* FileSystemWatcher.cs: Add an EnvironmentPermission assert to read
environment variable MONO_MANAGED_WATCHER.

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

17 years agocorlib_test.dll.sources: Added unit tests for HMACSHA384 and HMACSHA512 to the build.
Sebastien Pouliot [Mon, 31 Jul 2006 13:07:21 +0000 (13:07 -0000)]
corlib_test.dll.sources: Added unit tests for HMACSHA384 and  HMACSHA512 to the build.

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

17 years ago2006-07-31 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Mon, 31 Jul 2006 13:04:56 +0000 (13:04 -0000)]
2006-07-31  Sebastien Pouliot  <sebastien@ximian.com>

* ObjectIDGenerator.cs: Fix ArgumentNullException parameter.

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

17 years agoAdded comment that all code I commit is contributed under the MIT/X11 license.
Jonathan Chambers [Mon, 31 Jul 2006 12:39:23 +0000 (12:39 -0000)]
Added comment that all code I commit is contributed under the MIT/X11 license.

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

17 years ago* WizardStepBaseTest.cs, MasterPageTest.cs, MenuTest.cs, GridViewTest.cs: removed...
Vladimir Krasnov [Mon, 31 Jul 2006 12:13:26 +0000 (12:13 -0000)]
* WizardStepBaseTest.cs, MasterPageTest.cs, MenuTest.cs, GridViewTest.cs: removed NotWorking attributes

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

17 years agoIn mcs and gmcs:
Raja R Harinath [Mon, 31 Jul 2006 11:38:18 +0000 (11:38 -0000)]
In mcs and gmcs:
* decl.cs (DeclSpace.PartialContainer): Move field from ...
* class.cs (TypeContainer.PartialContainer): ... here.
(TypeContainer.AddBasesForPart): New helper.
(MemberBase.ParentContainer): Remove.  Use Parent.PartialContainer
instead.
* cs-parser.jay (current_class): Convert to DeclSpace.
(struct_declaration, interface_declaration, class_declaration):
Use AddBasesForPart instead of .Bases directly.
* const.cs, iterators.cs: Update to changes.

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

17 years ago* MasterPage.cs: fixed default values, fixed AddContentTemplate
Vladimir Krasnov [Mon, 31 Jul 2006 11:29:43 +0000 (11:29 -0000)]
* MasterPage.cs: fixed default values, fixed AddContentTemplate

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

17 years agoRevert r63146
Raja R Harinath [Mon, 31 Jul 2006 10:11:56 +0000 (10:11 -0000)]
Revert r63146

It breaks building the testsuite of Mono.C5.

Note to Marek: Please use 'make compiler-tests' to verify that you don't
regress the compiler

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

17 years ago* Control.cs: fixed EnableTheming proprty, fixes the bug when skins are applied even...
Vladimir Krasnov [Mon, 31 Jul 2006 08:12:07 +0000 (08:12 -0000)]
* Control.cs: fixed EnableTheming proprty, fixes the bug when skins are applied even if EnableTheming property was set to false.

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

17 years agoNew tests
Marek Safar [Sun, 30 Jul 2006 20:07:25 +0000 (20:07 -0000)]
New tests

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

17 years ago2006-07-30 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sun, 30 Jul 2006 18:24:37 +0000 (18:24 -0000)]
2006-07-30  Miguel de Icaza  <miguel@novell.com>

* mono-service.cs: Create/open the lockfile exclusively to avoid
attacks.  Fixes #77340.

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

17 years agoFormView.cs: Render compatibility with .Net
Andrew Skiba [Sun, 30 Jul 2006 15:29:30 +0000 (15:29 -0000)]
FormView.cs: Render compatibility with .Net
FormViewTest.cs: fixes for several tests

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

17 years ago2006-07-30 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sun, 30 Jul 2006 15:02:42 +0000 (15:02 -0000)]
2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
  This fixes the situation where the last set cursor is displayed
  whenever the mouse is over scrollbars.

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

17 years ago* WizardTest.cs: fixed test, removed NotWorking attributes
Vladimir Krasnov [Sun, 30 Jul 2006 11:43:27 +0000 (11:43 -0000)]
* WizardTest.cs: fixed test, removed NotWorking attributes

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

17 years ago* Wizard.cs: fixed return value of OnBubbleEvent
Vladimir Krasnov [Sun, 30 Jul 2006 11:31:41 +0000 (11:31 -0000)]
* Wizard.cs: fixed return value of OnBubbleEvent

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

17 years ago* FormView.cs: init BottomPagerRow.ItemIndex with 0; gracefully handle null result...
Andrew Skiba [Sun, 30 Jul 2006 10:54:52 +0000 (10:54 -0000)]
* FormView.cs: init BottomPagerRow.ItemIndex with 0; gracefully handle null result of GetData().

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

17 years ago2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 30 Jul 2006 10:53:19 +0000 (10:53 -0000)]
2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* System.Windows.Forms_test.dll.sources: Added PrintDialogTest.cs

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

17 years ago2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 30 Jul 2006 10:52:20 +0000 (10:52 -0000)]
2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PrintDialogTest.cs: Added.

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

17 years ago2006-07-30 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Sun, 30 Jul 2006 10:50:20 +0000 (10:50 -0000)]
2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PrintDialog.cs: Fix the behaviour of PrinterSettings and
Document properties, as well as initial values.

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

17 years agooops
Andrew Skiba [Sun, 30 Jul 2006 09:37:06 +0000 (09:37 -0000)]
oops

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

17 years ago* FormView.cs: use TableStyle for ControlStyle
Andrew Skiba [Sun, 30 Jul 2006 08:59:50 +0000 (08:59 -0000)]
* FormView.cs: use TableStyle for ControlStyle

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

17 years ago* FormView.cs: save DefaultMode and DataKeyMode in control state.
Andrew Skiba [Sun, 30 Jul 2006 08:19:53 +0000 (08:19 -0000)]
* FormView.cs: save DefaultMode and DataKeyMode in control state.

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

17 years ago* FormView.cs: init DataKeys and fix null reference.
Andrew Skiba [Sun, 30 Jul 2006 08:01:58 +0000 (08:01 -0000)]
* FormView.cs: init DataKeys and fix null reference.

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

17 years ago- Don't always reset the border styles or forms will be messed up.
Peter Dennis Bartok [Sat, 29 Jul 2006 22:36:39 +0000 (22:36 -0000)]
- Don't always reset the border styles or forms will be messed up.

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

17 years ago2006-07-29 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Sat, 29 Jul 2006 21:59:21 +0000 (21:59 -0000)]
2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIWin32.cs (SetBorderStyle): Setting both border
  and ClientEdge results in a 3-pixel border, which is
  wrong.

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

17 years agoUpdated
Marek Safar [Sat, 29 Jul 2006 19:41:28 +0000 (19:41 -0000)]
Updated

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

17 years ago2006-07-29 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sat, 29 Jul 2006 18:26:50 +0000 (18:26 -0000)]
2006-07-29  Marek Safar  <marek.safar@seznam.cz>

* anonymous.cs(AnonymousDelegate.Emit): Uses Constructor filter when
looking for ctor.
* decl.cs (MemberCache.FindMembers): When container is interface we need to
search all base interfaces as a member can be ambiguous.
* delegate.cs (Delegate.FindMembers): Fixed to return valid data for
Constructor member type filter.
(Delegate.ResolveConstructorMethod) Uses Constructor filter.
* ecore.cs: (Expression.MemberLookup): Implemented ambiguity error/warning
reporting for returned memberinfos.
* expresssion.cs (IndexerAccess.DoResolve): Fixed to report correct error
message.
* report.cs: Updated.
* typemanager.cs (TypeManager.LookupBaseInterfacesCache): Uses TypeManager
version to work on all runtimes.
(TypeManager.RealMemberLookup): Removed members filtering.

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

17 years ago * TreeNodeCollection.cs: Fix the clear method.
Jackson Harper [Fri, 28 Jul 2006 22:13:44 +0000 (22:13 -0000)]
    * TreeNodeCollection.cs: Fix the clear method.
        - Fix the Shrink also

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

17 years ago * TreeNodeCollection.cs: Fix the clear method.
Jackson Harper [Fri, 28 Jul 2006 21:42:38 +0000 (21:42 -0000)]
    * TreeNodeCollection.cs: Fix the clear method.

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

17 years agoAdded the latest version of my anonymous methods patch to SVN so I can't
Martin Baulig [Fri, 28 Jul 2006 21:09:57 +0000 (21:09 -0000)]
Added the latest version of my anonymous methods patch to SVN so I can't
accidentally delete it.

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

17 years ago2006-07-28 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Fri, 28 Jul 2006 19:36:25 +0000 (19:36 -0000)]
2006-07-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* PrintDocument.cs: When null is passed to PrinterSettings,
it should be set to a new PrinterSettings instance, and should never
be null.

* PrinterSettings.cs: Default value for Copies should be 1. Also
add a space in the ToString method, to correctly show the printer
info.

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

17 years ago2006-07-28 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 28 Jul 2006 19:12:52 +0000 (19:12 -0000)]
2006-07-28  Jonathan Chambers  <joncham@gmail.com>

Added support for marshalling COM RCWs.

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

17 years ago2006-07-28 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Fri, 28 Jul 2006 19:11:23 +0000 (19:11 -0000)]
2006-07-28  Jonathan Chambers  <joncham@gmail.com>

Added support for marshalling COM RCWs.

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

17 years ago2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 28 Jul 2006 19:06:41 +0000 (19:06 -0000)]
2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* PageThemeCompiler.cs: Don't generate a 'Items.Clear ()' call if
the property Items does not exist. Patch by Marek Habersack that fixes
bug #78971.

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

17 years ago2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 28 Jul 2006 18:50:22 +0000 (18:50 -0000)]
2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TemplateControlCompiler.cs: support assigning nullable types.
Patch by Marek Habersack that fixes bug #78970.

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

17 years ago2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 28 Jul 2006 18:46:40 +0000 (18:46 -0000)]
2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TreeView.cs: several changes to improve compatibility with MS.
Patch by Marek Habersack that fixes bug #77551.

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

17 years ago2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 28 Jul 2006 18:35:59 +0000 (18:35 -0000)]
2006-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Style.cs: output the text-decoration value even when it is 'none'.
Patch by Marek Habersack that fixes bug #78968.

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

17 years agoComment on single graphic context usage
Jordi Mas i Hernandez [Fri, 28 Jul 2006 18:04:53 +0000 (18:04 -0000)]
Comment on single graphic context usage

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

17 years agoFri Jul 28 19:04:34 CEST 2006 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Fri, 28 Jul 2006 17:06:09 +0000 (17:06 -0000)]
Fri Jul 28 19:04:34 CEST 2006 Paolo Molaro <lupus@ximian.com>

* image.c: avoid tentative loading of modulerefs that contain
no metadata (P/Invoke library names).

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

17 years agoRevert this patch. Paolo pointed out that it will slow us down very much for assembl...
Miguel de Icaza [Fri, 28 Jul 2006 16:35:30 +0000 (16:35 -0000)]
Revert this patch.  Paolo pointed out that it will slow us down very much for assemblies with many p/invokes

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

17 years ago2006-07-28 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Fri, 28 Jul 2006 15:45:18 +0000 (15:45 -0000)]
2006-07-28  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
  should not cause indentation override like text, cdata and
  whitespaces do.
  Fixed some error messages on node kind.
* XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
  (I don't want to remove old great code but it confused mike today.)

* XmlTextWriterTests.cs : added test case for comments, PIs and
  indentation.

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

17 years ago2006-07-28 Dick Porter <dick@ximian.com>
Dick Porter [Fri, 28 Jul 2006 14:00:52 +0000 (14:00 -0000)]
2006-07-28  Dick Porter  <dick@ximian.com>

        * loader.c (mono_loader_cleanup): mono_loader_cleanup() is racing
        mono_loader_lock() somewhere, so don't delete the critical section
        for now.  Found by running and exiting monodevelop.

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

17 years agoIn mcs and gmcs:
Raja R Harinath [Fri, 28 Jul 2006 11:32:37 +0000 (11:32 -0000)]
In mcs and gmcs:
* class.cs (TypeContainer.AddMemberType): Rename from
AddToTypeContainer.
(TypeContainer.AddMember): Rename from AddToMemberContainer.
(AddTypeContainer): New.  Combine AddClassOrStruct and
AddInterface.
(AddPartial): Update.  Add 'is_partial' argument.
* roottypes.cs: Update to changes.
* cs-parser.jay (push_current_class): New helper for handling
current_container and current_class.
(struct_declaration, interface_declaration, class_declaration):
Use it.

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

17 years ago2006-07-27 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Thu, 27 Jul 2006 21:20:34 +0000 (21:20 -0000)]
2006-07-27  Miguel de Icaza  <miguel@novell.com>

* image.c (load_modules): Use the implmap table to find out which
external modules are actually native libraries.  With this
information, we avoid loading the module in the first place.

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

17 years ago * TreeView.cs: Make sure the visible order is computed when we
Jackson Harper [Thu, 27 Jul 2006 21:19:27 +0000 (21:19 -0000)]
    * TreeView.cs: Make sure the visible order is computed when we
        attempt to size the scrollbars (for trees that mess with the
        scrolling when they shouldn't.
        - Make sure to give the scrollbars valid values.

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

17 years ago2006-07-27 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 27 Jul 2006 16:37:56 +0000 (16:37 -0000)]
2006-07-27  Zoltan Varga  <vargaz@gmail.com>

* libtest.c: Add a newline at the EOF.

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

17 years ago2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 27 Jul 2006 16:30:53 +0000 (16:30 -0000)]
2006-07-26  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs: Move motion compression code to where it
  has less performance impact

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

17 years ago* FormViewTest.cs: fix few tests.
Andrew Skiba [Thu, 27 Jul 2006 15:33:48 +0000 (15:33 -0000)]
* FormViewTest.cs: fix few tests.

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

17 years ago* FormView.cs: initialize PageCount with 0; fix IsBindableType to include Decimal.
Andrew Skiba [Thu, 27 Jul 2006 15:23:40 +0000 (15:23 -0000)]
* FormView.cs: initialize PageCount with 0; fix IsBindableType to include Decimal.

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

17 years agoUpdate
Miguel de Icaza [Thu, 27 Jul 2006 15:16:21 +0000 (15:16 -0000)]
Update

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

17 years agoRevert this patch from Kornel, it triggers a P/Invoke lookup on all operating systems...
Miguel de Icaza [Thu, 27 Jul 2006 15:16:02 +0000 (15:16 -0000)]
Revert this patch from Kornel, it triggers a P/Invoke lookup on all operating systems, due to the inliner, this must be discussed before it goes in

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 15:15:12 +0000 (15:15 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs, XmlSchemaSimpleTypeList.cs,
  XmlSchemaSimpleContentRestriction.cs, XmlSchemaUtil.cs,
  XmlSchemaSimpleContentExtension.cs, XmlSchemaElement.cs,
  XmlSchemaComplexType.cs, XmlSchemaSimpleTypeRestriction.cs,
  XmlSchemaSimpleTypeUnion.cs, XmlSchemaAttribute.cs :
  Finally fixed bugs around cross-referencing importing schema
  components (namely, #77489 and #78220) by resolving referenced
  components via new internal Find[Element|Attribute|AttributeGroup|
  SchemaType] methods in XmlSchema.

* XmlSchemaSetTest.cs : added bug #77489 case.
* XmlSchemaCollectionTests.cs : removed NotWorking from #77820 case.

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 14:46:58 +0000 (14:46 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs : set ValidationEventHandler to XmlSchemaSet only
  when the argument event handler is not null.
  Validate() is internal to open it to XmlSchemaSet.
* XmlSchemaSet.cs : removed extraneous "handler" field and method
  "OnValidationError". Now ValidationEventHandler just works since
  we don't have to care about XmlSchemaCollection's event (it just
  reuses XmlSchemaSet's event now).
  Split Compile() process to collect components first, and to
  validate next.

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 14:40:45 +0000 (14:40 -0000)]
2006-07-27  Atsushi Enomoto  <atsushi@ximian.com>

* xsdtest.cs :
  It has been running some extra instance validation and reporting
  errors where a schema is invalid and therefore no instance
  validation could be done.
  Now --reportsuccess works fine for tests that should fail (reports
  "OK" when it successfully failed).

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

17 years agoDetailsViewRowCollection: return this in SyncRoot.
Andrew Skiba [Thu, 27 Jul 2006 14:28:30 +0000 (14:28 -0000)]
DetailsViewRowCollection: return this in SyncRoot.

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

17 years ago* FormView.cs: throw ArgumentOutOfRange exception on bad CellSpacing and CellPadding.
Andrew Skiba [Thu, 27 Jul 2006 14:26:52 +0000 (14:26 -0000)]
* FormView.cs: throw ArgumentOutOfRange exception on bad CellSpacing and CellPadding.

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

17 years agofix tests.
Andrew Skiba [Thu, 27 Jul 2006 14:09:43 +0000 (14:09 -0000)]
fix tests.

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

17 years agoConsole.cs: Use correct code pages on Windows and initialize InputEncoding and Output...
Kornél Pál [Thu, 27 Jul 2006 13:32:03 +0000 (13:32 -0000)]
Console.cs: Use correct code pages on Windows and initialize InputEncoding and OutputEncoding to the actual encodings used.

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

17 years agofix the documentation
Andrew Skiba [Thu, 27 Jul 2006 12:22:53 +0000 (12:22 -0000)]
fix the documentation

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

17 years ago* ObjectDataSource.cs: add doc and fix usage of MergeParameterValues
Andrew Skiba [Thu, 27 Jul 2006 09:25:05 +0000 (09:25 -0000)]
* ObjectDataSource.cs: add doc and fix usage of MergeParameterValues

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

17 years ago* AutoGeneratedField.cs: fix the internal constructor according to test DetailsView_C...
Andrew Skiba [Thu, 27 Jul 2006 09:22:48 +0000 (09:22 -0000)]
* AutoGeneratedField.cs: fix the internal constructor according to test DetailsView_CreateAutoGenerateRow

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 06:33:39 +0000 (06:33 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs : compiling and validating external components in
  prior to direct components in a schema does block my refactoring.
  Removed extraneous call to XmlSchemaSet.Add().

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

17 years ago * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
Jackson Harper [Thu, 27 Jul 2006 06:11:42 +0000 (06:11 -0000)]
    * XEventQueue.cs: Peek on both the x11 queue and the lock queue.

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

17 years ago A test that currently fails, using GetNextControl on two
Jackson Harper [Thu, 27 Jul 2006 06:04:23 +0000 (06:04 -0000)]
    A test that currently fails, using GetNextControl on two
controls with the same TabIndex.  Also a standard GetNextControl with
tab index test, just for sanity.

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

17 years ago * UpDownBase.cs: When the control is selected make the child
Jackson Harper [Thu, 27 Jul 2006 04:18:11 +0000 (04:18 -0000)]
    * UpDownBase.cs: When the control is selected make the child
        controls non selectable, so that a click on them won't do a
        focus/unfocus cycle.
        - Don't give focus to the text box when the spinner is selected.

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 04:06:02 +0000 (04:06 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchema.cs, XmlSchemaSet.cs : some minor refactoring to make
  Compile() simple two phase (i.e. CompileSubset() and Validate()).

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 03:02:24 +0000 (03:02 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaException.cs : oops, .ctor(string) was only for 2.0.

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

17 years ago2006-07-27 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 27 Jul 2006 02:58:28 +0000 (02:58 -0000)]
2006-07-27  Atsushi Enomoto <atsushi@ximian.com>

* XmlSchemaCollection.cs :
  eliminated call to XmlSchema.CompileSubset(). Now XmlSchemaSet is
  the only starter of the compilation.
* XmlSchemaSet.cs : added targetNamespace check.

* XmlSchemaSetTests.cs : added AddWrongTargetNamespace().

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

17 years ago2006-07-26 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Jul 2006 23:13:55 +0000 (23:13 -0000)]
2006-07-26  Chris Toshok  <toshok@ximian.com>

* ThemeWin32Classic.cs: add print preview rendering.  I'm not
satisfied with this solution.  If the bitmaps are small, we should
just cache them in the PrintPreviewDialog and draw them here.
Also, the layout is broken for the 2-up and 3-up cases.

* Theme.cs: add PrintPReviewControlPaint.

* PrintPreviewDialog.cs: first pass implementation.

* PrintPreviewControl.cs: first pass implementation.  No
scrollbars yet.

* PrintDialog.cs: only validate fields if that particular portion
of the UI is enabled.  Also, set the document's controller to a
PrintControllerWithStatusDialog wrapping the document's print
controller.

* PrintControllerWithStatusDialog.cs: if we're printing to a file,
bring up a SaveFileDialog (i hope we don't want to match the
behavior of the crappy windows file entry) and set the
PrinterSettings.PrintFileName accordingly.

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

17 years agoadd some resources for use by the print preview dialog
Chris Toshok [Wed, 26 Jul 2006 23:06:58 +0000 (23:06 -0000)]
add some resources for use by the print preview dialog

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

17 years ago2006-07-26 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 26 Jul 2006 23:02:29 +0000 (23:02 -0000)]
2006-07-26  Chris Toshok  <toshok@ximian.com>

* PrinterSettings.cs: expose PrintFileName in the 1.1 case as an
internal property, so we can get at it from MWF.

* PrintingServicesUnix.cs: handle print to file, and also remove
the temp file after sending the data to the printer.  fix some
dllimports to match the rest of system.drawing.

* PreviewPrintController.cs: implement this (warning, it'll eat
all your memory until we get a real Metafile implementation, as
we're storing bitmaps).

* PrintDocument.cs: shift the graphics context stuff around a bit
in Print(), so that the events after OnStartPrint are passed the
graphics context the controller created there, and we use the
return value of OnStartPage to do all drawing.

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

17 years ago * ContainerControl.cs: Add a field that disables auto selecting
Jackson Harper [Wed, 26 Jul 2006 19:11:10 +0000 (19:11 -0000)]
    * ContainerControl.cs: Add a field that disables auto selecting
        the next control in a container when the container is activated.
        * UpDownBase.cs: Don't select the text box when the up down is
        selected.

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

17 years agoupdated
Marek Safar [Wed, 26 Jul 2006 18:30:53 +0000 (18:30 -0000)]
updated

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

17 years ago2006-07-26 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 26 Jul 2006 18:25:55 +0000 (18:25 -0000)]
2006-07-26  Peter Dennis Bartok  <pbartok@novell.com>

* XEventQueue.cs: Added methods for peeking (used for compression
  of successive events)
* XplatUIX11.cs (GetMessage): We're now compressing consecutive
  mouse move events (fixes #78732)

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

17 years ago2006-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 26 Jul 2006 18:16:25 +0000 (18:16 -0000)]
2006-07-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* filewatcher.c: define the inotify syscalls when we're building on
linux and have sys/syscall.h. The build system might not have support
for inotify but the target system might have it.

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

17 years ago2006-07-26 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 26 Jul 2006 18:06:43 +0000 (18:06 -0000)]
2006-07-26  Miguel de Icaza  <miguel@novell.com>

        * domain.c: Documentation updates.

        * loader.c (mono_free_method): Do not release the method
        information if we are being profiled, as profilers will use this
        information at shut down to present some data to the user.

        This is needed so that the profiler does not crash, as the
        profiler tends to keep MonoMethods around, and they might become
        invalid if we free these.

        (mono_get_method_constrained): Return the original CIL stream
        method as well, so verification can be performed against it.

2006-07-13  Miguel de Icaza  <miguel@novell.com>

        * mini.c (mono_method_to_ir): Obtain the original method in the
        CIL stream and use this to perform validation.

        Fixed: #78816

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

17 years agofix RH9 build
Gonzalo Paniagua Javier [Wed, 26 Jul 2006 17:50:01 +0000 (17:50 -0000)]
fix RH9 build

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

17 years ago* NunitWebTest.cs: fixed HtmltoXml, removes spaces and crlf before converting
Vladimir Krasnov [Wed, 26 Jul 2006 16:34:58 +0000 (16:34 -0000)]
* NunitWebTest.cs: fixed HtmltoXml, removes spaces and crlf before converting

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

17 years ago* XmlDataSourceTest.cs: fixed aspx based tests
Vladimir Krasnov [Wed, 26 Jul 2006 16:28:36 +0000 (16:28 -0000)]
* XmlDataSourceTest.cs: fixed aspx based tests

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

17 years agovisual studio ifdef
Andrew Skiba [Wed, 26 Jul 2006 16:19:27 +0000 (16:19 -0000)]
visual studio ifdef

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

17 years ago* XmlDataSource.cs: implemented XSLT, removed properties from view state
Vladimir Krasnov [Wed, 26 Jul 2006 16:19:01 +0000 (16:19 -0000)]
* XmlDataSource.cs: implemented XSLT, removed properties from view state
* XmlDataSourceView.cs: fixed default xpath

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

17 years agofix a test (incomplete)
Andrew Skiba [Wed, 26 Jul 2006 15:22:22 +0000 (15:22 -0000)]
fix a test (incomplete)

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

17 years agofix few DetailsView tests
Andrew Skiba [Wed, 26 Jul 2006 14:58:04 +0000 (14:58 -0000)]
fix few DetailsView tests

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

17 years agorefactor arguments
Andrew Skiba [Wed, 26 Jul 2006 14:39:11 +0000 (14:39 -0000)]
refactor arguments

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