mono.git
17 years ago2007-04-26 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 26 Apr 2007 11:53:10 +0000 (11:53 -0000)]
2007-04-26  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Add basic test cases for GdipRecordMetafileFileName
and it's parameter's validations.

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

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

* Metafile.cs: Complete all ctors (except for stream-based one outside
Windows) with calls into GDI+.

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

17 years agogdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile[FileName|FromStream...
Sebastien Pouliot [Thu, 26 Apr 2007 11:51:37 +0000 (11:51 -0000)]
gdipFunctions.cs: Add p/invoke definitions for GdipRecordMetafile[FileName|FromStream][I].

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

17 years ago* Form.cs: Refactor WndProc into separate methods, just like Control is
Rolf Bjarne Kvinge [Thu, 26 Apr 2007 10:00:36 +0000 (10:00 -0000)]
* Form.cs: Refactor WndProc into separate methods, just like Control is
  doing it.

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

17 years ago2007-04-26 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 26 Apr 2007 09:28:04 +0000 (09:28 -0000)]
2007-04-26  Marek Habersack  <mhabersack@novell.com>

* PageCompiler.cs: the Master property must be in the partial
class if present. Fixes bug #81442

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

17 years ago* Control.cs: set_Text: move the call to the driver into a seperate
Rolf Bjarne Kvinge [Thu, 26 Apr 2007 08:59:00 +0000 (08:59 -0000)]
* Control.cs: set_Text: move the call to the driver into a seperate
  virtual method so that Form can override it.
* MaskedTextBox.cs: Corcompare fixes.
* Form.cs: Override UpdateWindowText and only update the styles if the
  form has been shown (fixes #81405).

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 26 Apr 2007 04:34:04 +0000 (04:34 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* Driver.cs : use invariant culture to sort culture names.
  Fixed bug #81150, patch by Changwoo Ryu.

* culture-info-table.h : regenerated.

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

17 years ago2007-04-26 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 23:09:16 +0000 (23:09 -0000)]
2007-04-26  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
causes the corlib unit tests to fail.

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

17 years ago2007-04-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 25 Apr 2007 19:57:30 +0000 (19:57 -0000)]
2007-04-25  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
the form lost focus or another control was clicked.

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 19:37:49 +0000 (19:37 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : MinValue and MaxValue, same for ToDateTime().

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 19:31:47 +0000 (19:31 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : MinValue and MaxValue are unchanged by the
  serialization mode (unlike DateTime.ToString()).

* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.

* XmlConvertTests.cs : added test for MaxValue serialization with
  every XmlDateTimeSerializationMode.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 18:42:15 +0000 (18:42 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* appdomain.c (add_assemblies_to_domain): Fix crash when an assembly reference
is missing.

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 18:22:32 +0000 (18:22 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlConvert.cs : in 2.0, use F instead of f in dateTime formatting.

* XmlCustomFormatter.cs :
  in 2.0, use F instead of f for dateTime formatting.

* XmlSerializationWriterTests.cs, XmlSerializerTests.cs :
  fixed wrong dateTime formatting tests.

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

17 years ago* DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
Gert Driesen [Wed, 25 Apr 2007 17:59:34 +0000 (17:59 -0000)]
* DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
fixed.

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

17 years agoSetting svn:eol-style.
Rolf Bjarne Kvinge [Wed, 25 Apr 2007 17:31:45 +0000 (17:31 -0000)]
Setting svn:eol-style.

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

17 years ago* DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
Rolf Bjarne Kvinge [Wed, 25 Apr 2007 17:31:20 +0000 (17:31 -0000)]
* DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
  DrawListViewItemEventHandler.cs,
  DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
  Added.
* X11Structs.cs: More ToString implementation.

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

17 years ago2007-04-25 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 25 Apr 2007 17:31:19 +0000 (17:31 -0000)]
2007-04-25  Jonathan Chambers  <joncham@gmail.com>

* mono.sln: Added eglib projects.
* test_eglib.vcproj: Added.
* pedump.vcproj: Change output directories for uniformity.
* monodiet.vcproj: Change output directories for uniformity.

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 17:09:35 +0000 (17:09 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* DateTimeTest.cs : looks like 'F' even removes preceding '.' ...

* DateTimeTest.cs : test for 'F' rmoving preceding '.'

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

17 years ago2007-04-25 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 25 Apr 2007 17:00:04 +0000 (17:00 -0000)]
2007-04-25  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
* ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 16:43:44 +0000 (16:43 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.

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

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

* XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
  Fixed bug #81451, by Eric Mercier.

* XmlReaderCommonTests.cs : added test for bug #81451.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 15:39:48 +0000 (15:39 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 15:36:29 +0000 (15:36 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* DateTime.cs : implemented new-2.0 'F' pattern letter.

* DateTimeTest.cs : test for new-2.0 'F' pattern letter.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 15:23:24 +0000 (15:23 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional
opcodes to the comparison relations.

* mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional
opcodes to their types.

* mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 15:01:14 +0000 (15:01 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache
it in cfg->arch.cinfo.

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

17 years ago2007-04-25 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 25 Apr 2007 14:30:48 +0000 (14:30 -0000)]
2007-04-25  Zoltan Varga  <vargaz@gmail.com>

* local-propagation.c (mono_local_cprop_bb): Fix a warning.

* mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in
cfg->cil_offset_to_bb.

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

17 years ago2007-04-25 Dick Porter <dick@ximian.com>
Dick Porter [Wed, 25 Apr 2007 13:55:05 +0000 (13:55 -0000)]
2007-04-25  Dick Porter  <dick@ximian.com>

* Makefile.am: Put the mingw enforced-optimisation back into the
PLATFORM_WIN32 section.

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

17 years agoReinstate this change.
Dick Porter [Wed, 25 Apr 2007 13:53:05 +0000 (13:53 -0000)]
Reinstate this change.

2007-04-05  Dick Porter  <dick@ximian.com>

* Directory.cs: Pass combined path and pattern to
MonoIO.GetFileSystemEntries()

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

17 years agoReinstate this patch, now I've fixed a double-free bug. Thanks to Rolf for
Dick Porter [Wed, 25 Apr 2007 13:52:35 +0000 (13:52 -0000)]
Reinstate this patch, now I've fixed a double-free bug.  Thanks to Rolf for
the test that showed the problem.

2007-04-05  Dick Porter  <dick@ximian.com>

* file-io.c (ves_icall_System_IO_MonoIO_GetFileSystemEntries): use
FindFirstFile()/FindNextFile() to find entries.  This lets the
io-layer versions use MONO_IOMAP compatibility helpers.  Fixes bug
81038.

2007-04-05  Dick Porter  <dick@ximian.com>

* io.c:
* io-portability.c (_wapi_io_scandir): Moved from io.c, and
changed to use a cut-down version of glob(3) that has been
extended to match with case-insensitivity if needed.

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

17 years agoWeb Service' methods links in the test page are clear
Igor Zelmanovich [Wed, 25 Apr 2007 12:49:03 +0000 (12:49 -0000)]
Web Service' methods links in the test page are clear
Used right namespace for Soap 1.2 envelop

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

17 years ago2007-01-26 Hubert FONGARNAND <informatique.internet@fiducial.fr>
Marek Habersack [Wed, 25 Apr 2007 10:48:00 +0000 (10:48 -0000)]
2007-01-26  Hubert FONGARNAND <informatique.internet@fiducial.fr>

* SessionSQLServerHandler.cs: differentiate session between applications
this require to add an AppName column to the aspstatetempsessions table

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

17 years ago* Control.cs: Only raise OnVisibleChanged if we're not recreating the
Rolf Bjarne Kvinge [Wed, 25 Apr 2007 10:37:01 +0000 (10:37 -0000)]
* Control.cs: Only raise OnVisibleChanged if we're not recreating the
  handle.
* FormCollection.cs: Don't add a form if it's already in the
  collection.
* Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
  according to behaviour and MSDN. The ownerWin32 is the active
  window at the moment when we call ShowDialog, not the context's
  main form (the context's main form may open another form that opens
  a form with ShowDialog, the win32 owner is the second form). Add
  and remove forms to the Application.OpenForms in other places to
  better match MS behaviour. Add an IsActive property that raises
  On(de)Activated only if the active state has changed (we were
  raising OnDeactivated before OnActivated while creating forms).
* Application.cs: Refactor Enabling/Disabling of windows for modal
  dialog loops out to separate methods, and restore the thread
  context when we quit the method. Fixes #81407.

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

17 years ago* FormHandleTest.cs, ControlEventTest.cs, MenuStripTest.cs,
Rolf Bjarne Kvinge [Wed, 25 Apr 2007 10:28:27 +0000 (10:28 -0000)]
* FormHandleTest.cs, ControlEventTest.cs, MenuStripTest.cs,
  ProgressBarTest.cs, RichTextBoxTest.cs, ListViewEventTest.cs,
  TreeViewTest.cs, ColumnHeaderTest.cs, ApplicationContextTest.cs,
  MdiFormTest.cs, MenuItemTest.cs, TextBoxTest.cs, ListBoxTest.cs,
  ToolStripTest.cs, ToolStripMenuItemTest.cs, ControlTest.cs,
  ToolBarTest.cs: Dispose of the 61 forms we were keeping open while
  running the tests.
* ApplicationTest.cs: Dispose of the 61 forms we were keeping open
  while running the tests. Added OpenFormsTest.
* FormTest.cs: Dispose of the 61 forms we were keeping open while
  running the tests. Added DialogOwnerTest.

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

17 years ago* WriterTest.cs: Add a message if anyone forgets to close a form again.
Rolf Bjarne Kvinge [Wed, 25 Apr 2007 10:27:56 +0000 (10:27 -0000)]
* WriterTest.cs: Add a message if anyone forgets to close a form again.

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

17 years agoRemove writeline
Miguel de Icaza [Wed, 25 Apr 2007 09:54:32 +0000 (09:54 -0000)]
Remove writeline

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

17 years ago2007-04-25 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 25 Apr 2007 08:41:49 +0000 (08:41 -0000)]
2007-04-25  Atsushi Enomoto  <atsushi@ximian.com>

* XmlSchemas.cs : 1.1-only duplicate check does not seem to be
  required. This is also a workaround for 1.x ws proxy generation.

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

17 years agoOptimize configuration pathes to sections with allowDefinition="MachineToApplication"
Igor Zelmanovich [Wed, 25 Apr 2007 07:57:49 +0000 (07:57 -0000)]
Optimize configuration pathes to sections with allowDefinition="MachineToApplication"

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

17 years ago2007-04-25 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Wed, 25 Apr 2007 05:20:25 +0000 (05:20 -0000)]
2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: In ItemControl.HandleClicks, also fire
2.0 MouseClick or MouseDoubleClick events on the parent,
not only the Click/DoubleClick events.

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

17 years ago* TableLayoutSettings.cs:
Andreia Gaita [Wed, 25 Apr 2007 03:06:23 +0000 (03:06 -0000)]
* TableLayoutSettings.cs:
- Added a GetControls method and a support structure to help the
TypeConverter to enumerate the controls for serialization.
- Added a new serialization constructor.
- Added a isSerialized flag initialized to true on the
serialization constructor so that the TableLayoutPanel.LayoutSettings
setter does not throw the designed NotSupportedOperation exception
when the object is built through deserialization.
- Implemented GetObjectData

* TableLayoutPanel.cs: Added check on LayoutSettings.

System.Windows.Forms.Layout/:
* TableLayoutSettingsTypeConverter.cs: Implemented the converters
for TableLayoutSettings.

2007-04-24  Andreia Gaita  <avidigal@novell.com>

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

17 years agoAdd linq option
Miguel de Icaza [Wed, 25 Apr 2007 01:36:43 +0000 (01:36 -0000)]
Add linq option

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

17 years ago2007-04-23 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Wed, 25 Apr 2007 01:08:59 +0000 (01:08 -0000)]
2007-04-23  Miguel de Icaza  <miguel@novell.com>

* generic.cs: Large update to LambdaInfer, this is merely an
update to start the lambda type inference.   It is by no means
complete.  It is currently merely able to build a sample program
(with no iteration for the type parameters).

2007-04-24  Miguel de Icaza  <miguel@novell.com>

* lambda.cs (ContextualReturn.Resolve): if the return type is not
set, set it.

2007-04-23  Miguel de Icaza  <miguel@novell.com>

* anonymous.cs (AnonymousContainer): split the virtual Resolve
method in two methods: ResolveNoDefine and Resolve.

ResolveNoDefine will stop just after ResolveTopBlock has been
called.

Resolve will then continue by creating a method and issuing the
call to method.Define ().

(AnonymousMethod): Split and implement the new Resolve and
ResolveNoDefine as well.

* lambda.cs (LambdaExpression): Split the anonymous method
resolution code into a separate routine (CoreCompatibilityTest)
from DoCompatibleTest.

(LambdaExpression.TryBuild): New method, this method tries to
build the LambdaExpression with the given set of types to be used
as the types for the various parameters of the lambda expression.

If the compilation succeed with the given types, the infered type
of the Anonymous method is returned, otherwise null is returned.

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

17 years ago2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 24 Apr 2007 23:41:07 +0000 (23:41 -0000)]
2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Report Click and DoubleClick events to the parent
from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
from breaking the click count state when using dialog forms (Control
reports the clicks in a similar fashion). In the previous behaviour
the last WM_LBUTTONUP message in a  double click was sent to the
ListView's form, instead of the ListView, which was breaking the click
count for it. Fixes #80387.

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

17 years ago2007-04-24 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Tue, 24 Apr 2007 21:26:38 +0000 (21:26 -0000)]
2007-04-24  Jeffrey Stedfast  <fejj@novell.com>

Fixes the last of the bugs listed in bug #77525

* TermInfoDriver.cs (ctor): For known terminal types, set color16
to true (since we know they support 16 colours).
(Init): set the setlfgcolor and setlbgcolor format strings.
(BackgroundColor): Use the appropriate formatter string for
setting the bgcolor.
(ForegroundColor): Use the appropriate formatter string for
setting the fgcolor.
(TranslateColor): Now takes (and sets appropriately) an output
'bool light' argument.

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

17 years ago2007-04-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 24 Apr 2007 21:21:15 +0000 (21:21 -0000)]
2007-04-24  Jonathan Pobst  <monkey@jpobst.com>

* Makefile: Add new resources for BindingNavigator to build.

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

17 years agoFixed a few bugs in Binding Navigator that were revealed in the new NUnit tests.
Alan McGovern [Tue, 24 Apr 2007 20:01:28 +0000 (20:01 -0000)]
Fixed a few bugs in Binding Navigator that were revealed in the new NUnit tests.

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

17 years ago2007-04-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 24 Apr 2007 19:55:21 +0000 (19:55 -0000)]
2007-04-24  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
us from created dropdowns for menu items that do not have subitems.
* ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
Check HasDropDownItems before calling DropDown so a dropdown will not be
created if it isn't needed.

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

17 years agoFix
Miguel de Icaza [Tue, 24 Apr 2007 19:54:38 +0000 (19:54 -0000)]
Fix

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

17 years ago2007-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 24 Apr 2007 19:52:06 +0000 (19:52 -0000)]
2007-04-24  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_image_load_module_dynamic): Fix crash introduced by previous
patch.

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

17 years ago * TreeView.cs: Set the first node to the selected node when we
Jackson Harper [Tue, 24 Apr 2007 19:16:22 +0000 (19:16 -0000)]
    * TreeView.cs: Set the first node to the selected node when we
        * get
        focus if there is no selected node.

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

17 years ago* MimeIcon.cs: remove using blocks so that image streams are
Andreia Gaita [Tue, 24 Apr 2007 18:47:24 +0000 (18:47 -0000)]
* MimeIcon.cs: remove using blocks so that image streams are
not disposed of. Fixes #80151

2007-04-24  Andreia Gaita  <avidigal@novell.com>

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

17 years ago2007-04-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 24 Apr 2007 18:27:09 +0000 (18:27 -0000)]
2007-04-24  Jonathan Chambers  <joncham@gmail.com>

* eglib.vcproj: Fix.

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

17 years ago2007-04-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 24 Apr 2007 18:21:18 +0000 (18:21 -0000)]
2007-04-24  Jonathan Chambers <joncham@gmail.com>

        Patch from Michael Jerris <mike@jerris.com>
        * src/gspawn.c: Start msvc build.
        * src/gpath.c: Start msvc build.
        * src/gmarkup.c: Start msvc build.
        * src/gshell.c: Start msvc build.
        * src/gstr.c: Start msvc build.
        * src/glist.c: Start msvc build.
        * src/glib.h: Start msvc build.
        * src/gdate.c: Start msvc build.
        * src/gpattern.c: Start msvc build.
        * src/gdir.c: Start msvc build.
        * src/gfile.c: Start msvc build.
        * src/gtimer.c: Start msvc build.
        * src/gmodule.c: Start msvc build.
        * src/gunicode.c: Start msvc build.

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

17 years ago2007-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 24 Apr 2007 18:21:17 +0000 (18:21 -0000)]
2007-04-24  Zoltan Varga  <vargaz@gmail.com>

* liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
created becase of initlocals.

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

17 years ago2007-04-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 24 Apr 2007 18:19:38 +0000 (18:19 -0000)]
2007-04-24  Jonathan Chambers  <joncham@gmail.com>

        * eglib.vcproj: Added.

Contributed under MIT/X11 license.

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

17 years ago * TextBoxBase.cs: Fixup the height of textboxes when the control
Jackson Harper [Tue, 24 Apr 2007 17:45:28 +0000 (17:45 -0000)]
    * TextBoxBase.cs: Fixup the height of textboxes when the control
        is created.

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

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

* InternalConfigurationHost.cs : machine configuration covers all
  ConfigurationAllowDefinition values.

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

17 years ago2007-04-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 24 Apr 2007 17:23:35 +0000 (17:23 -0000)]
2007-04-24  Jonathan Pobst  <monkey@jpobst.com>

* ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
for each ToolStripItem when the parent's RightToLeftChanged is called.

2007-04-24  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripDropDownTest.cs: Add Assert for default orientation.
* ToolStripTest.cs: Enable tests for CanOverflow and DefaultDropDownDirection.
Add test for GetNextItem.

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

17 years ago2007-04-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 24 Apr 2007 16:47:28 +0000 (16:47 -0000)]
2007-04-24  Zoltan Varga  <vargaz@gmail.com>

* image.c (mono_image_load_module): New API function to load a module reference.

* image.c (load_modules): Load modules lazily. Fixes #80812.

* class.c (mono_class_from_typeref): Use mono_image_load_module.

* reflection.c (mono_image_load_module_dynamic): Copy image->modules_loaded too.

* object-internals.h reflection.c icall-def.h (mono_image_load_module): Rename this
to mono_image_load_module_dynamic.

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

17 years ago* ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 16:32:37 +0000 (16:32 -0000)]
* ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
  Fixes #80163.
* Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
  property, so that the setter can be overriden too.
* TextBox.cs: Change GetContextMenuInternal() to use
  ContextMenuInternal.

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

17 years ago* MdiFormTest.cs: Added tests for #81409.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 16:29:51 +0000 (16:29 -0000)]
* MdiFormTest.cs: Added tests for #81409.

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

17 years agoFix lineendings.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 16:06:37 +0000 (16:06 -0000)]
Fix lineendings.

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

17 years ago* MdiFormTest.cs: Added tests for #81409.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 16:05:35 +0000 (16:05 -0000)]
* MdiFormTest.cs: Added tests for #81409.

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

17 years agoFix, add -ldl
Miguel de Icaza [Tue, 24 Apr 2007 15:42:32 +0000 (15:42 -0000)]
Fix, add -ldl

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

17 years ago* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 15:37:18 +0000 (15:37 -0000)]
* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
  #81406.

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

17 years ago2007-04-24 Dick Porter <dick@ximian.com>
Dick Porter [Tue, 24 Apr 2007 14:56:49 +0000 (14:56 -0000)]
2007-04-24  Dick Porter  <dick@ximian.com>

* sockets.c (_wapi_recvfrom, socket_close): Force recvfrom() to
error if the socket is closed while the receive is blocking.
Fixes bug 75705.

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

17 years ago* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 14:55:32 +0000 (14:55 -0000)]
* ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
  #81406.

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

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

* XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
  XmlSchemaNotation.cs XmlSchemaComplexType.cs
  XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
  XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
  XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
  avoid incorrect compilation of included schemas, fixed bug #81360.
  more fix for wrong targetNamespace propagation within current
  processing model. Replaced ParentIsSchema field with a property.

* XsdValidatingReaderTests.cs : added test for bug #81360.

* 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.

* Makefile : added distfiles.

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

17 years ago2007-04-24 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 24 Apr 2007 12:13:23 +0000 (12:13 -0000)]
2007-04-24  Jonathan Chambers  <joncham@gmail.com>

* EnumeratorToEnumVariantMarshaler.cs: Implement.

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

17 years ago* SWF.csproj, SWF2k5.csproj, SWF2k5-tests.csproj: Update.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 12:06:42 +0000 (12:06 -0000)]
* SWF.csproj, SWF2k5.csproj, SWF2k5-tests.csproj: Update.
* System.Windows.Forms.dll.sources: Add MaskedTextBox.

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

17 years ago* MaskedTextBox.cs: Commit this so nobody else starts working on it and
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 12:06:30 +0000 (12:06 -0000)]
* MaskedTextBox.cs: Commit this so nobody else starts working on it and
  avoid duplicate work. Mostily skeleton code, it's not working at
  all yet.

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

17 years ago* BindingNavigatorTest.cs (CheckStandardItems): Avoid use of NUnit
Raja R Harinath [Tue, 24 Apr 2007 11:58:49 +0000 (11:58 -0000)]
* BindingNavigatorTest.cs (CheckStandardItems): Avoid use of NUnit
API newer than present in the tree.

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

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

* CapabilitiesLoader.cs: Hashtables used as property containers
should not be case-insensitive as we now preload the property
hashes with default properties, to make the code work in case
browscap.ini is broken or missing. Instead, the keys are
lower-cased and trimmed before indexing the Hashtable.
Added all the missing capabilities to the defaultCaps Hashtable.
The returned Hashtable is not reversed in GetCapabilities anymore
- it might make the code faster, but it also makes it mismatch
browsers (e.g. Firefox 2.0 is mismatched for Mozilla 1.8).
All of the above fixes bug #81437.

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

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

* TermInfoDriver.cs: don't include debug stuff by default - it
breaks multithreaded applications (they all attempt to open
console.log and fail because of sharing violation).

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

17 years agoPatch by Leszek Ciesielski.
Rolf Bjarne Kvinge [Tue, 24 Apr 2007 08:28:40 +0000 (08:28 -0000)]
Patch by Leszek Ciesielski.

2007-04-20  Leszek Ciesielski <skolima@gmail.com>

* NotifyIcon.cs : stub for MouseClick event
* Application.cs: stub for SetUnhandledExceptionMode

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

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

* WebConfigurationHost.cs: Look for types in the top-level assemblies (App_Code and
friends).

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

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

* XmlSchema.cs XmlSchemaSimpleTypeList.cs
  XmlSchemaComplexContentRestriction.cs XmlSchemaGroup.cs
  XmlSchemaComplexContentExtension.cs XmlSchemaSequence.cs
  XmlSchemaSimpleContentRestriction.cs
  XmlSchemaSimpleContentExtension.cs
  XmlSchemaElement.cs XmlSchemaAll.cs XmlSchemaComplexType.cs
  XmlSchemaAttributeGroup.cs XmlSchemaSimpleTypeRestriction.cs
  XmlSchemaSimpleContent.cs XmlSchemaChoice.cs
  XmlSchemaSimpleType.cs XmlSchemaIdentityConstraint.cs
  XmlSchemaSimpleTypeUnion.cs XmlSchemaRedefine.cs
  XmlSchemaComplexContent.cs XmlSchemaAttribute.cs
  XmlSchemaObject.cs : set parent component in prior to compilation,
  bringing Parent to 1.x as internal. Moving toward fixing #81360.

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

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

* HttpRequest.cs: MS.NET throws HttpException for invalid paths,
not ArgumentNullException.

* HttpException.cs: wrap GetHtmlErrorMessage internals in
try/catch to capture possible exceptions in HttpContext.

* HttpContext.cs: IsCustomErrorEnabled is used from within
HttpException, make sure it gets the section in a safe way and
resorts to the default settings.

* HttpResponse.cs: HeaderEncoding is used in the same context as
above. Take the same precautions.

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

* WebConfigurationHost.cs: wrap MapPath calls in try/catch,
because bad URLs can cause it to throw exceptions. If such
exception is caught, throw a HttpException for Bad Request (400).

* WebConfigurationManager.cs: added two internal methods for safe
retrieval of config sections.

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

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

* XmlCustomFormatter.cs : ditto for reader method generation.
* SerializationCodeGenerator.cs : for generic nullable values it
  needs to store ReadNullableString() result to a temporary variable.

* XmlSerializerTests.cs : another case on #80759 from gert.

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

17 years agoCoding style changes
Miguel de Icaza [Mon, 23 Apr 2007 23:49:38 +0000 (23:49 -0000)]
Coding style changes

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

17 years agoAdd comments on InferReturnType from my tree
Miguel de Icaza [Mon, 23 Apr 2007 23:48:33 +0000 (23:48 -0000)]
Add comments on InferReturnType from my tree

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

17 years agoInitial implementation of BindingNavigator with NUnit tests.
Alan McGovern [Mon, 23 Apr 2007 23:25:36 +0000 (23:25 -0000)]
Initial implementation of BindingNavigator with NUnit tests.

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

17 years agoComments
Miguel de Icaza [Mon, 23 Apr 2007 23:07:30 +0000 (23:07 -0000)]
Comments

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

17 years ago * TreeView.cs: Do not create the treeview's handle when setting
Jackson Harper [Mon, 23 Apr 2007 21:00:20 +0000 (21:00 -0000)]
    * TreeView.cs: Do not create the treeview's handle when setting
        the scroll position.
        - ExpandAll needs to compute the scrollbars so it knows which
        position to set the bar too.
        * TreeNode.cs:
        * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars

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

17 years agoadd disambiguating line about CategoryAttribute
Chris Toshok [Mon, 23 Apr 2007 20:48:55 +0000 (20:48 -0000)]
add disambiguating line about CategoryAttribute

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

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

* TermInfoDriver.cs (ReadKeyInternal): Since our input stream is
buffered, check if it has more buffered input in addition to our
timeout check. This makes it such that we will actually correctly
match multi-char escape sequences.
(Read): Changed the logic slightly wrt 'fresh' echoing. Once we
encounter a fresh char, all chars afterward should also be
considered 'fresh' even if 'fresh' is returned as false later.
(ReadLine): Same logic here.

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

17 years ago2007-04-23 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 23 Apr 2007 19:21:12 +0000 (19:21 -0000)]
2007-04-23  Marek Safar  <marek.safar@gmail.com>

A fix for bug #81414
* delegate.cs: Better fix, moved ApplyAttributes from Define to Emit.

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

17 years ago2007-04-23 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Mon, 23 Apr 2007 18:44:27 +0000 (18:44 -0000)]
2007-04-23  Jonathan Chambers  <joncham@gmail.com>

* marshal.c: Fix calling convention for CCW on non-windows
platforms. STDCALL on windows, CDECL everywhere else to work
with XPCOM and MainWin COM.

Code is contributed under MIT/X11 license.

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

17 years ago2007-04-23 Jeffrey Stedfast <fejj@novell.com>
Jeffrey Stedfast [Mon, 23 Apr 2007 18:42:15 +0000 (18:42 -0000)]
2007-04-23  Jeffrey Stedfast  <fejj@novell.com>

Fixes bug #80702 (via getting rid of the casting) and more.

The following change makes it such that even if an application
calls Console.SetOut() with its own output stream, we can still
properly echo user-input from stdin to the real stdout.

* TermInfoDriver.cs (ctor): Grab a reference to the original
Console.stdout so we can be sure we always echo to console.
(QueueEcho): No need to cast Console.stdout anymore.
(EchoFlush): Same.
(WriteConsole: Here too.

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

17 years ago * TextBoxBase.cs: Non multiline textboxes shouldn't take the
Jackson Harper [Mon, 23 Apr 2007 18:23:31 +0000 (18:23 -0000)]
    * TextBoxBase.cs: Non multiline textboxes shouldn't take the
        * enter
        key. Fixes #81408.

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

17 years ago2007-04-23 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 23 Apr 2007 16:33:54 +0000 (16:33 -0000)]
2007-04-23  Chris Toshok  <toshok@ximian.com>

* TestHelper.cs: move RunningOnUnix here.

* FocusTest.cs: use TestHelper.RunningOnUnix.

* FormTest.cs: use TestHelper.RunningOnUnix.

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

17 years agodatabinding test work
Chris Toshok [Mon, 23 Apr 2007 16:22:20 +0000 (16:22 -0000)]
databinding test work

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

17 years agoHttpRequestTest.cs: Added test EmptyQueryValueParams.
Joshua Tauberer [Mon, 23 Apr 2007 16:09:55 +0000 (16:09 -0000)]
HttpRequestTest.cs: Added test EmptyQueryValueParams.

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

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

* TableLayoutTest.cs: Add a bunch of tests I thought I had lost
before I lose them for real.

2007-04-23  Jonathan Pobst  <monkey@jpobst.com>

* System.Windows.Forms_test.dll.sources: Add TableLayoutTest.cs.

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

17 years agoRevert WriteLine
Miguel de Icaza [Mon, 23 Apr 2007 15:50:34 +0000 (15:50 -0000)]
Revert WriteLine

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

17 years ago2007-04-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 23 Apr 2007 15:37:44 +0000 (15:37 -0000)]
2007-04-23  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Make GetImageSize internal.
* ToolStripMenuItem.cs: Use GetImageSize to determine the size we
need to draw an item.  Fixes a reported issue where images on menus
that were not 16x16 were drawing incorrectly.

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

17 years ago2007-04-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 23 Apr 2007 15:22:12 +0000 (15:22 -0000)]
2007-04-19  Chris Toshok  <toshok@ximian.com>

* DataColumnCollection.cs (Add): the Element in our
CollectionChangedEventArgs should be the column, not the
collection.  Also, add an event handler for the column's
PropertyChanged event so we can propagate metadata changes.
(Remove): Analogous change to the CollectionChangedEventArgs as in
Add.  Also, unhook the column's PropertyChanged event.
(OnCollectionmetaDataChanged): emit our new event.
(ColumnPropertyChanged): called when the column's ColumnName
property changes.  Emit the proper CollectionChangeEvent.

* DataView.cs (ColumnCollectionChanged): fix up the comment about
CollectionChangeAction.Refresh, and make explicit what generates
it.
(RegisterEventHandlers): hook up
DataColumnCollectoin.CollectionMetaDataChanged.
(RegisterEventHandlers): unhook
DataColumnCollectoin.CollectionMetaDataChanged.

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

17 years ago2007-04-22 Joshua Tauberer <jit@occams.info>
Miguel de Icaza [Mon, 23 Apr 2007 15:15:51 +0000 (15:15 -0000)]
2007-04-22 Joshua Tauberer <jit@occams.info>

  * HttpParamsCollection.cs: Fix IndexOutOfRangeException.

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

17 years ago2007-04-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 23 Apr 2007 13:10:21 +0000 (13:10 -0000)]
2007-04-23  Atsushi Enomoto  <atsushi@ximian.com>

* TypeStubManager.cs : fix binding enumeration on finding by name.
  fix wrong ONLY_1_1.
* ServerType.cs : ONLY_1_1 is evil enough to make sources confusing.
  Use it only when it is really needed.

* SoapServerTypeTest.cs : added new test (one is not working yet).
  It will be very useful when we test service type generation.

* System.Web.Services_test.dll.sources: added SoapServerType.cs.

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

17 years ago2007-04-23 Martin Baulig <martin@ximian.com>
Martin Baulig [Mon, 23 Apr 2007 13:05:34 +0000 (13:05 -0000)]
2007-04-23  Martin Baulig  <martin@ximian.com>

Fix #80969.

* loader.c
(method_from_memberref): Added `gboolean *used_context' argument.
(mono_get_method_from_token): Likewise.
(mono_get_method_full): Don't insert the method in the cache when
`used_context' is true.

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

17 years ago* monodiet.c (add_types_from_method): Fix "wrong type" warning.
Raja R Harinath [Mon, 23 Apr 2007 13:04:56 +0000 (13:04 -0000)]
* monodiet.c (add_types_from_method): Fix "wrong type" warning.

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