mono.git
17 years ago2007-03-02 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Thu, 8 Mar 2007 11:19:25 +0000 (11:19 -0000)]
2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com>

* Makefile: Don't show obsolete warnings when compiling tests.

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

17 years ago2007-03-08 George Giolfan <georgegiolfan@yahoo.com>
George Giolfan [Thu, 8 Mar 2007 10:56:57 +0000 (10:56 -0000)]
2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>

* SystemInformation.cs: Add TerminalServerSession.

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

17 years ago* fixed validation errors
Vladimir Krasnov [Thu, 8 Mar 2007 09:54:23 +0000 (09:54 -0000)]
* fixed validation errors

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

17 years ago2007-03-08 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Thu, 8 Mar 2007 09:15:54 +0000 (09:15 -0000)]
2007-03-08  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Microsoft.CSharp.targets: Add @(ChildProjectReferences) to
        References.

* Microsoft.Common.targets: Add ResolveProjectReferences target.

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

17 years ago2007-03-08 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Thu, 8 Mar 2007 09:11:38 +0000 (09:11 -0000)]
2007-03-08  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * MSBuild.cs (Execute): Copy referenced project's dlls to output
        directory.

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

17 years ago2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 8 Mar 2007 09:10:36 +0000 (09:10 -0000)]
2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>

* DataGrid.cs: fixed:
Auto-generated columns are restored properly on postback from view state.

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

17 years agoAdded eol.
Marek Sieradzki [Thu, 8 Mar 2007 09:07:07 +0000 (09:07 -0000)]
Added eol.

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

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 22:41:11 +0000 (22:41 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
TreeView code.

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

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 22:31:11 +0000 (22:31 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIWin32.cs: The no_activate stuff was forcing us to create a
Handle before we were supposed to.  Now checks ActivateOnShow property
in Control.
* Control.cs: Add internal ActivateOnShow property.
* ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
for ActivateOnShow.
* Hwnd.cs Remove no longer needed no_activate field.

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

17 years ago* SqlCommand.cs (ExecuteScalar): when calling stored procedures,
Andreia Gaita [Wed, 7 Mar 2007 22:06:29 +0000 (22:06 -0000)]
* SqlCommand.cs (ExecuteScalar): when calling stored procedures,
implement support for return of output values in the parameter
collection.

2007-03-07  Andreia Gaita <avidigal@novell.com>

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

17 years ago * TreeView.cs: Implement owner draw tree nodes. And a couple
Jackson Harper [Wed, 7 Mar 2007 21:58:21 +0000 (21:58 -0000)]
    * TreeView.cs: Implement owner draw tree nodes.  And a couple
        * more
        2.0 properties
        * DrawTreeNodeEventHandler.cs: Add
        * DrawTreeNodeEventArgs.cs: Correct default value.

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

17 years agotrack changes to .dll.sources
Chris Toshok [Wed, 7 Mar 2007 21:40:44 +0000 (21:40 -0000)]
track changes to .dll.sources

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

17 years ago2007-03-07 Chris Toshok <toshok@ximian.com>
Chris Toshok [Wed, 7 Mar 2007 21:40:28 +0000 (21:40 -0000)]
2007-03-07  Chris Toshok  <toshok@ximian.com>

* XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
to be called before NativeWindow.WndProc.  Put the HwndCreating
magic there to hook up our Hwnd's to handles.

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

17 years ago* DataGridView.cs: Comment out debug code.
Gert Driesen [Wed, 7 Mar 2007 21:14:00 +0000 (21:14 -0000)]
* DataGridView.cs: Comment out debug code.

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

17 years agoIn Test/System.Windows.Forms:
Chris Toshok [Wed, 7 Mar 2007 20:22:27 +0000 (20:22 -0000)]
In Test/System.Windows.Forms:
2007-03-05  Chris Toshok  <toshok@ximian.com>

[merge -r72718:73765 from mwf-handle-branch]

2007-03-05  Chris Toshok  <toshok@ximian.com>

* ControlHandleTest.cs: make this build on both 1.1 and 2.0
profiles.

2007-02-28  Chris Toshok  <toshok@ximian.com>

* ControlTest.cs: Flesh out ControlInvokeTest to make sure that
the Control thread dies (that Application.Run returns, basically).
This works in isolation, but for some reason it isn't exiting when
run in concert with other tests (this test is the cause of the
hangs running the unit tests.)  Marking NotWorking for the time
being.  This needs to be fixed before merging back to the
mainline, imo.

In System.Windows.Forms:
2007-03-07  Chris Toshok  <toshok@ximian.com>

[merge -r72718:73765 from mwf-handle-branch, and include 2 changes
to make the rest of the world happy]

* Control.cs (CreateHandle): there's no need to call
XplatUI.SetVisible here, it's effectively done by
XplatUI.CreateWindow on X now, and always was on windows.

* XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
shortcircuit out of the loop if we have a message loop running on
this thread.

[Changelog from merge]

2007-03-05  Chris Toshok  <toshok@ximian.com>

* Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
causes handle creation.

2007-02-28  Chris Toshok  <toshok@ximian.com>

* ApplicationContext.cs: Add a flag to make sure we only raise the
ThreadExit event once (ExitThreadCore can be indirectly called
from a few places.)  I don't like the additional flag, but it
makes the event ordering/count correct.

* Application.cs (MWFThread.LoopCount): don't use an enumerator
without locking the collection.  An enumerator doesn't give us any
protection from modification anyway.  Lock the thread hash and
replace the complicated enumerator loop with a foreach.
(Application.CloseForms): make internal so it can be called from
ApplicationContext.  This should probably be moved to MWFThread.
(Application.ExitThread): don't call MWFThread.Current.Exit()
here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
when the runloop exits (in response to WM_QUIT.)
(Application.RunLoop): add a comment (and check) for
context.MainForm being null after setting context.MainForm.Visible
= true.  This is because you're perfectly free to dispose of a
form in VisibilityChanged.  Chalk this up to another case where we
need to synchronously generate WM_ACTIVATE from Control.Show.
Also, add handling for WM_QUIT here so we'll exit the loop.

* XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
fact that we don't wait if we're only unmapping the whole_window
makes me a bit nervous, but it doesn't seem to cause any problems
yet.

also, add a comment about the stupid, broken and wrong resetting
of PostQuitState to false in GetMessage().

In PostQuitMessage, we need to add a WM_QUIT message to the
thread's queue.  We use the FosterParent to get the right
handle/hwnd/queue.

Lastly, in SetVisible, we need to unmap both windows, since the
waiting only happens when we're unmapping the client window.  So
now, the *only* time we unmap just the whole_window is in the hack
for resizing a control to 0,0.

2007-02-21  Chris Toshok  <toshok@ximian.com>

* Application.cs (CloseForms): rewrite this so that we don't
modify the list while we're traversing it.

2007-02-20  Chris Toshok  <toshok@ximian.com>

* ListBox.cs (.ctor): move the Control.AddImplicits here instead
of OnHandleCreated.
(HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
handle is created.  otherwise we'll create it here.
(VerticalScrollEvent): same here.

* Application.cs (CloseForms): call Form.Dispose, don't post
WM_CLOSE_INTERNAL.

* Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
here. Application should Dispose() of the Form's.

* XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
WM_DESTROY as well.
(MapWindow,UnmapWindow): only actually do the waiting for
SHOWWINDOW if the control we're dealing with is a Form.
(CreateWindow): if the control isn't a form, SendMessage
WM_SHOWWINDOW here (if the WS_VISIBLE style is set).

* Control.cs (SetVisibleCore): always use is_visible here, not
value.  If we use value, we can end up re-setting something
visible if, for instance, you do Control.Hide() in a delegate
attached to VisibleChanged as we do in FormTest.ShowDialogTest.

2007-02-20  Chris Toshok  <toshok@ximian.com>

* XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
the message we need.  PeekMessage returning false should not be a
condition under which we exit the loop.

2007-02-15  Chris Toshok  <toshok@ximian.com>

* Control.cs (Refresh): only refresh if we've got a handle and are
visible.
(CreateAccessibilityInstance): CreateControl() here.
(UpdateChildrenZOrder): complicate the code loop even more by
taking into account controls that haven't had their handle
created, and those that aren't visible.  But on the flip side,
simplify the code by splitting it into two loops.  one which
builds up the list of child controls we're interested in, and the
other that sets the z order of those children.

2007-02-14  Chris Toshok  <toshok@ximian.com>

* Control.cs: Control.AccessibilityObject causes the control to be
created, not just the handle.

2007-02-14  Chris Toshok  <toshok@ximian.com>

* Control.cs: rework UpdateChildrenZOrder to correctly handle the
problem on X where a window might have its handle created (and be
visible) while the window is unmapped.  calling XConfigureWindow
on an unmapped window is bad, and generates X errors.

2007-02-13  Chris Toshok  <toshok@ximian.com>

* Control.cs (CreateHandle): don't loop over our children setting
their parent here.  do it when in WndProc when we're shown.
(UpdateChildrenZOrder): make this internal so we can call it from
ScrollableControl.
(WndProc): for WM_SHOWWINDOW, reparent the child control after
creating its handle.  Also, remove the calls to PerformLayout from
here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
OnVisibleChanged only seems to be called directly here for the
toplevel control.  It's propagated down the window hierarchy by
calls to child.OnParentVisibleChanged.
(OnVisibleChanged): don't do layout here - it's done (oddly
enough, according to a glance at stack traces on ms.net..) in
ScrollableControl.

* ScrollableControl.cs (OnVisibleChanged): make sure we update the
z order of our children before calling PerformLayout.

2007-02-12  Chris Toshok  <toshok@ximian.com>

[big change, fixes #80020]

* AccessibleObject.cs: we need to make owner internal again to fix
some of ControlAccessibleObject.

* Control.cs: lots of changes here.  add support for WM_CREATE,
for which we generate OnHandleCreated.  Remove the OnHandleCreated
call from CreateHandle.  Also add support for WM_SHOWWINDOW where
we create child controls.  leave the MonoTODO's for the
accessibility calls, but fix the exceptions so the tests pass.

Add the InvalidOperationExceptions to Invoke methods, and remove a
couple of InvokeInternal methods we aren't using.

Also, add a couple of CreateHandle calls in places where we know
the handles are being created but our code doesn't reference
.Handle.

Make SetVisibleCore call OnVisibleChange if the handle isn't
created.  If the handle is created, we rely on XplatUI.SetVisible
generating the event synchronously.

Lastly, make sure we don't use this.Handle inside CreateHandle,
because we can call back into client (and that code can dispose of
the control).

* XplatUIStructs.cs: misc/cleanup.

* XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
although we don't populate the wParam properly.
(CreateWindow): generate WM_CREATE.
(MapWindow,UnmapWindow): make these calls synchronous, at great
performance expense (particularly in the unmap case), to match
win32 behavior.

* Form.cs (.ctor): remove the call to UpdateBounds. we don't need
to call it.
(set_MdiParent): don't recreate the handle unless it's been
created already.

* MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
it's created.

* NativeWindow.cs: this is probably the weirdest part of the
patch.  We need a way to link up the window being created to the
WM_CREATE message.  Since we can only be creating one window at a
time on a given thread, we keep track of a per-thread reference so
we can dispatch it properly.  We also need to keep track of the
Hwnd currently being created so that the win32 backend doesn't
have problems.

* XplatUIWin32.cs: a similar change to the one we made in
NativeWindow.cs.

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

17 years ago2007-03-07 Martin Baulig <martin@ximian.com>
Martin Baulig [Wed, 7 Mar 2007 20:10:34 +0000 (20:10 -0000)]
2007-03-07  Martin Baulig  <martin@ximian.com>

* statement.cs (Block.Resolve): Don't crash on error; bug #80715.

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

17 years ago* EnumBuilderTest.cs: Enabled test that failed due to bug #81037.
Gert Driesen [Wed, 7 Mar 2007 19:49:45 +0000 (19:49 -0000)]
* EnumBuilderTest.cs: Enabled test that failed due to bug #81037.
Coding style fixes.

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

17 years ago* ModuleBuilderTest.cs: Avoid compiler warning in test for bug #80435.
Gert Driesen [Wed, 7 Mar 2007 19:44:46 +0000 (19:44 -0000)]
* ModuleBuilderTest.cs: Avoid compiler warning in test for bug #80435.
Use Assert instead of deprecated Assertion class. Number tests.

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

17 years ago2007-03-07 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 7 Mar 2007 19:40:32 +0000 (19:40 -0000)]
2007-03-07  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripItem.cs: Make CalculatePreferredSize virtual.
* ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
to draw the menu shortcut string.

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

17 years ago* corlib_test.dll.sources: Added IListTest.cs.
Gert Driesen [Wed, 7 Mar 2007 19:08:24 +0000 (19:08 -0000)]
* corlib_test.dll.sources: Added IListTest.cs.
* IListTest.cs: Added test for bug #80260.

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

17 years ago * TreeNode.cs: Add the 2.0 collapse method.
Jackson Harper [Wed, 7 Mar 2007 18:59:23 +0000 (18:59 -0000)]
    * TreeNode.cs: Add the 2.0 collapse method.

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

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 17:18:33 +0000 (17:18 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).

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

17 years agoGlobal resources fix
Roei Erez [Wed, 7 Mar 2007 17:00:13 +0000 (17:00 -0000)]
Global resources fix

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

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 16:52:04 +0000 (16:52 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Change DataSource will clear column and row
lists. Call Invalidate() to reflect DataSource change.

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

17 years agoupdate to reflect failing tests due to reverts
Raja R Harinath [Wed, 7 Mar 2007 16:44:22 +0000 (16:44 -0000)]
update to reflect failing tests due to reverts

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

17 years agoReapply
Miguel de Icaza [Wed, 7 Mar 2007 16:41:21 +0000 (16:41 -0000)]
Reapply

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

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 15:50:32 +0000 (15:50 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Add rows when DataSource is System.Data.DataView
and a new row is added to it.

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

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 15:41:51 +0000 (15:41 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* aot-runtime.c (mono_aot_get_class_from_name): Add a cache.

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

17 years ago* TestBitmap.cs, TestFont.cs, TestIcon.cs, TestRegion.cs: removed tests for TARGET_JV...
Vladimir Krasnov [Wed, 7 Mar 2007 14:51:22 +0000 (14:51 -0000)]
* TestBitmap.cs, TestFont.cs, TestIcon.cs, TestRegion.cs: removed tests for TARGET_JVM with not supported method calls

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

17 years ago* removed tests with not supported calls for TARGET_JVM because of validation failures
Vladimir Krasnov [Wed, 7 Mar 2007 13:45:42 +0000 (13:45 -0000)]
* removed tests with not supported calls for TARGET_JVM because of validation failures

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

17 years ago2007-03-07 Pedro Martínez Juliá <pedromj@gmail.com>
Pedro Martínez Juliá [Wed, 7 Mar 2007 13:20:36 +0000 (13:20 -0000)]
2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>

* DataGridView.cs: Add columns when DataSource is en empty list but
is a System.Data.DataView (from a System.Data.DataTable).

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

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:57:07 +0000 (12:57 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* aot-compiler.c (encode_patch): Remove an obsolete comment.

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

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:45:37 +0000 (12:45 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* docs/aot-compiler.txt: Add into about the PLT.

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

17 years ago2007-03-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Mar 2007 12:38:12 +0000 (12:38 -0000)]
2007-03-07  Zoltan Varga  <vargaz@gmail.com>

* docs/aot-compiler.txt: Update a bit to reflect recent changes.

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

17 years ago* Label.cs: Implement AutoEllipsis (2.0)
Andreia Gaita [Tue, 6 Mar 2007 23:01:17 +0000 (23:01 -0000)]
* Label.cs: Implement AutoEllipsis (2.0)

2007-03-06  Andreia Gaita  <avidigal@novell.com>

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

17 years agoRevert Paolo's fix, this one fixes the build
Miguel de Icaza [Tue, 6 Mar 2007 22:37:04 +0000 (22:37 -0000)]
Revert Paolo's fix, this one fixes the build

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

17 years agoReapply Zoltan's patch
Miguel de Icaza [Tue, 6 Mar 2007 22:27:18 +0000 (22:27 -0000)]
Reapply Zoltan's patch

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

17 years agoReapply Zoltan's patch
Miguel de Icaza [Tue, 6 Mar 2007 22:27:01 +0000 (22:27 -0000)]
Reapply Zoltan's patch

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

17 years ago - Implement 2.0 image key feature.
Jackson Harper [Tue, 6 Mar 2007 21:32:20 +0000 (21:32 -0000)]
    - Implement 2.0 image key feature.

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

17 years agoRevert accidental WIP commit, ugh
Marek Habersack [Tue, 6 Mar 2007 20:47:40 +0000 (20:47 -0000)]
Revert accidental WIP commit, ugh

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

17 years agoremove accidental commit
Marek Habersack [Tue, 6 Mar 2007 20:41:40 +0000 (20:41 -0000)]
remove accidental commit

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

17 years agoRevert 73804
Marek Habersack [Tue, 6 Mar 2007 20:38:43 +0000 (20:38 -0000)]
Revert 73804

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

17 years agoRevert 73805, 73806, 73807
Marek Habersack [Tue, 6 Mar 2007 20:37:07 +0000 (20:37 -0000)]
Revert 73805, 73806, 73807

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

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:39:03 +0000 (19:39 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * Project.cs (Build): Add outputs to targetOutputs.

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

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:37:28 +0000 (19:37 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildPropertyTest.cs, ProjectTest.cs: More tests.

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

17 years ago - Implement 2.0 LineColors property. Lets you change the color
Jackson Harper [Tue, 6 Mar 2007 19:27:47 +0000 (19:27 -0000)]
    - Implement 2.0 LineColors property.  Lets you change the color
          of
        the lines in the tree. Terribly useful for creating non cohesive
        desktops.

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

17 years ago2007-03-06 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Tue, 6 Mar 2007 19:22:28 +0000 (19:22 -0000)]
2007-03-06  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * ExpressionCollection.cs (ConvertToArray): Simplify.

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

17 years agoMore Lambda work
Miguel de Icaza [Tue, 6 Mar 2007 18:16:18 +0000 (18:16 -0000)]
More Lambda work

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

17 years ago - Implement 2.0 Sort method.
Jackson Harper [Tue, 6 Mar 2007 18:01:59 +0000 (18:01 -0000)]
    - Implement 2.0 Sort method.

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

17 years agoTemporarily remove
Miguel de Icaza [Tue, 6 Mar 2007 17:54:29 +0000 (17:54 -0000)]
Temporarily remove

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

17 years ago * TreeView.cs: Implement 2.0 TopNode setter property.
Jackson Harper [Tue, 6 Mar 2007 17:52:37 +0000 (17:52 -0000)]
    * TreeView.cs: Implement 2.0 TopNode setter property.
        - Use a local var instead of the skipped_nodes field for
          computing
        how many nodes to skip.  Otherwise we won't scroll because the
        valuechanged handler checks if skipped_nodes is equal to the new
        value.

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

17 years agooops
Gonzalo Paniagua Javier [Tue, 6 Mar 2007 17:44:52 +0000 (17:44 -0000)]
oops

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

17 years ago* StaticFileHandler.cs: fixed ProcessRequest TARGET_JVM path, if_modified_since fixed...
Vladimir Krasnov [Tue, 6 Mar 2007 17:21:24 +0000 (17:21 -0000)]
* StaticFileHandler.cs: fixed ProcessRequest TARGET_JVM path, if_modified_since fixed in WAR mode

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

17 years ago* BaseHttpServlet.cs: added .appStartTime value to app domain
Vladimir Krasnov [Tue, 6 Mar 2007 17:18:10 +0000 (17:18 -0000)]
* BaseHttpServlet.cs: added .appStartTime value to app domain

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

17 years ago2007-03-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 6 Mar 2007 16:59:57 +0000 (16:59 -0000)]
2007-03-06  Miguel de Icaza  <miguel@novell.com>

* convert.cs (ExplicitReferenceConversionExists): Sync this method
with the changes from David, fixes the build.

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

17 years agoUse context class loader, if available
Konstantin Triger [Tue, 6 Mar 2007 16:58:09 +0000 (16:58 -0000)]
Use context class loader, if available

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

17 years ago * TreeView.cs: We can't get the bounds of the nodes before
Jackson Harper [Tue, 6 Mar 2007 16:55:48 +0000 (16:55 -0000)]
    * TreeView.cs: We can't get the bounds of the nodes before
        * raising
        the AfterSelect event, because that event could change the
node's
        bounds (scrolling, font change, etc).

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

17 years ago1. Support of PortalPreferences, not defined in Web.config (and defined in portlet...
Ilya Kharmatsky [Tue, 6 Mar 2007 16:47:53 +0000 (16:47 -0000)]
1. Support of PortalPreferences, not defined in Web.config (and defined in portlet.xml)
2. Bug fixes

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 16:07:19 +0000 (16:07 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* metadata.c (mono_type_to_unmanaged): Only convert object to
MARSHAL_CONV_SAFEHANDLE on the 2.0 profile.

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

17 years ago* XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
Rolf Bjarne Kvinge [Tue, 6 Mar 2007 15:33:54 +0000 (15:33 -0000)]
* XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
* Form.cs: Don't recreate handle when creating FormWindowManager, just
  update window styles. In CreateParams us VisibleInternal instead of
  VIsible to get the actual visible flag set for this form.
* FormWindowManager.cs: Activate the form whenever the mouse clicks on
  the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
  handle the case when the form is already maximized, in which case
  it should be restored. Fixes #81043.

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 15:19:09 +0000 (15:19 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.

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

17 years agoTue Mar 6 15:39:48 CET 2007 Paolo Molaro <lupus@ximian.com>
Paolo Molaro [Tue, 6 Mar 2007 14:40:06 +0000 (14:40 -0000)]
Tue Mar 6 15:39:48 CET 2007 Paolo Molaro <lupus@ximian.com>

* class-internals.h, class.c, metadata.c, reflection.c: removed unused
(and incorrectly set) is_reference field from MonoGenericInst.

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

17 years ago2007-03-06 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Tue, 6 Mar 2007 14:39:32 +0000 (14:39 -0000)]
2007-03-06  Adar Wesley <adarw@mainsoft.com>

        * PagesSection.cs: improve Enum parsing and strongly typed default values.

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

17 years agoAdd
Miguel de Icaza [Tue, 6 Mar 2007 14:33:20 +0000 (14:33 -0000)]
Add

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

17 years agoAdd System.Text/UTF32EncodingTest.cs
Miguel de Icaza [Tue, 6 Mar 2007 14:32:29 +0000 (14:32 -0000)]
Add System.Text/UTF32EncodingTest.cs

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

17 years ago* System_Web/PageDirectories: net test case added
Vladimir Krasnov [Tue, 6 Mar 2007 14:03:26 +0000 (14:03 -0000)]
* System_Web/PageDirectories: net test case added
* reference20: added reference test for PageDirectories tests

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:56:06 +0000 (13:56 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_method_to_ir): Add a workaround for bug #80733.

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:51:08 +0000 (13:51 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* assembly.c (mono_assembly_load_from_full): Call mono_assemblies_unlock ()
a little earlier.

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

17 years agoFix monobuild/tests as UTF32EncodingTest.cs source file wasn't added in r73779
Sebastien Pouliot [Tue, 6 Mar 2007 13:42:13 +0000 (13:42 -0000)]
Fix monobuild/tests as UTF32EncodingTest.cs source file wasn't added in r73779

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:37:27 +0000 (13:37 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* TypeTest.cs: Add a regression test for #81037.

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:33:56 +0000 (13:33 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* Type.cs (Equals): Remove a useless check.

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:31:29 +0000 (13:31 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* Type.cs: Rename Type:Equals(Type) to EqualsInternal, and add support for checking
UnderlyingSystemType. Fixes #81037.

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

17 years ago2007-03-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Mar 2007 13:30:06 +0000 (13:30 -0000)]
2007-03-06  Zoltan Varga  <vargaz@gmail.com>

* icall.c (ves_icall_type_Equals): Rename this to ves_icall_System_Type_EqualsInternal.

* icall-def.h: Rename Type:Equals to Type:EqualsInternal.

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

17 years agoAdd PageAsyncTask.cs
Noam Lampert [Tue, 6 Mar 2007 12:40:35 +0000 (12:40 -0000)]
Add PageAsyncTask.cs

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

17 years ago2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 6 Mar 2007 12:25:57 +0000 (12:25 -0000)]
2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>

* StaticSiteMapProviderTest.cs: removed NotWorking attributes..

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

17 years agoAdd graceful handling of various types of values in session removal callback
Marek Habersack [Tue, 6 Mar 2007 11:46:47 +0000 (11:46 -0000)]
Add graceful handling of various types of values in session removal callback

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

17 years ago2007-03-06 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Tue, 6 Mar 2007 11:39:23 +0000 (11:39 -0000)]
2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com>

* XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.

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

17 years agoPort FileStreamTest to TARGET_JVM.
Eyal Alalouf [Tue, 6 Mar 2007 10:41:16 +0000 (10:41 -0000)]
Port FileStreamTest to TARGET_JVM.

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

17 years ago2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 6 Mar 2007 10:14:29 +0000 (10:14 -0000)]
2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>

* Style.cs: fixed:
when AddAttributesToRender(System.Web.UI.HtmlTextWriter, WebControl)
is called, WebControl parameter is passed as argument to
FillStyleAttributes (CssStyleCollection, IUrlResolutionService) method.

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

17 years ago2007-03-06 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Tue, 6 Mar 2007 10:00:18 +0000 (10:00 -0000)]
2007-03-06  Adar Wesley <adarw@mainsoft.com>

        * Page.cs: initial implementation of support for Async=true.  Added
        initial support for ViewStateEncryption.  Implemented
        CreateHtmlTextWriterFromType.

        * PageAsyncTask.cs: Created class to support Async pages.

        * ObjectStateFormatter.cs: Added support for ViewState encryption.

        * HtmlTextWriter.cs: Fixed constructor to accept null TextWriter
        to conform to MS behavior.

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

17 years agoAdd webServices/conformanceWarnings defaults and use to the DefaultWsdlHelpGenerator...
Konstantin Triger [Tue, 6 Mar 2007 09:53:10 +0000 (09:53 -0000)]
Add webServices/conformanceWarnings defaults and use to the DefaultWsdlHelpGenerator.aspx

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

17 years ago2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 6 Mar 2007 09:28:50 +0000 (09:28 -0000)]
2007-03-06 Igor Zelmanovich <igorz@mainsoft.com>

* DataList.cs:
* DataListItem.cs:
fixed applying styles if ExtractTemplateRows=true.

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

17 years agogetRealPath returns path without trailing DirectorySeparatorChar; fixes TD #7498
Konstantin Triger [Tue, 6 Mar 2007 09:24:15 +0000 (09:24 -0000)]
getRealPath returns path without trailing DirectorySeparatorChar; fixes TD #7498

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

17 years agoIn System.Reflection.Emit:
Rolf Bjarne Kvinge [Tue, 6 Mar 2007 08:46:17 +0000 (08:46 -0000)]
In System.Reflection.Emit:
2007-03-06  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* MonoArrayMethod.cs: Use 'void' as return type in ToString when
the return type is null. Fixes #80435.

In Test/System.Reflection.Emit:
2007-03-06  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* ModuleBuilderTest.cs: Added GetArrayMethodToStringTest () -#80435.

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

17 years ago2007-03-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Mar 2007 07:14:20 +0000 (07:14 -0000)]
2007-03-06  Atsushi Enomoto  <atsushi@ximian.com>

* StringTest.cs : revert r73699 which does not make sense.

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

17 years ago2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 Mar 2007 06:58:16 +0000 (06:58 -0000)]
2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* TermInfoDriver.cs: adjust buffer indexes after *every* read. Fixes
bug #80329.

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

17 years ago2007-03-06 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Tue, 6 Mar 2007 06:52:49 +0000 (06:52 -0000)]
2007-03-06  Atsushi Enomoto  <atsushi@ximian.com>

* SimpleCollator.cs : disable QuickCheckPossible(), which is
  inaccurate and inefficient. Fixed bug #79714.

* CompareInfoTest.cs : added test for bug #79714.

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

17 years agoFrom Peter Dettman:
Miguel de Icaza [Tue, 6 Mar 2007 05:08:35 +0000 (05:08 -0000)]
From Peter Dettman:

The above patch for System.Configuration includes a new standalone
test for this bug, and a fix to KeyValueInternalCollection.cs to get
the test  to pass.

I think there may be more bugs revealed by the example, this just
fixes the original InvalidCastException.

Fixes bug 79097

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

17 years ago2007-03-01 Peter Dettman <peter.dettman@iinet.net.au>
Miguel de Icaza [Tue, 6 Mar 2007 05:03:47 +0000 (05:03 -0000)]
2007-03-01  Peter Dettman  <peter.dettman@iinet.net.au>

* mjs-most.tests: Enable ecma/Boolean/15.6.3.1-3.js.

* mjs-most.fail: Delete ecma/String/15.5.5.1.js,
ecma/FunctionObjects/15.3.3.1-3.js, ecma/Number/15.7.3.3-2.js,
and ecma/Number/15.7.3.5-2.js, as they no longer fail.

2007-03-01  Peter Dettman  <peter.dettman@iinet.net.au>

* expression.cs: Expression.Emit changed to correctly leave a value on the
stack or not according to the 'no_effect' field, including the case where
the final AST in the list is an Assign. Fixed a reentrancy bug in Args.Emit.

* Block.cs, ForIn.cs, Statement.cs: Correctly resolve child expressions with
"no effect" where they should behave as statements.

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

17 years ago2007-03-05 Peter Dettman <peter.dettman@iinet.net.au>
Miguel de Icaza [Tue, 6 Mar 2007 04:59:30 +0000 (04:59 -0000)]
2007-03-05  Peter Dettman <peter.dettman@iinet.net.au>

* Codegenerator.cs: I noticed an `unreachable code' warning while
building Mono:

System.CodeDom.Compiler/CodeGenerator.cs(1229,42): warning CS0162:
Unreachable code detected

This turned out to be in the method
CodeGenerator.IsValidLanguageIndependentIdentifier, which was
broken.

The following patch contains a unit test to demonstrate the
problem (checked against MS.NET), and a fix to CodeGenerator.cs.

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

17 years ago2007-03-05 Peter Dettman <peter.dettman@iinet.net.au>
Miguel de Icaza [Tue, 6 Mar 2007 04:52:35 +0000 (04:52 -0000)]
2007-03-05  Peter Dettman <peter.dettman@iinet.net.au>

* Enum.cs: The above patch makes the formatting for specifiers 'x'
and 'X' behave like MS.NET, including the correct length for each
possible underlying type, and correctly using capital letters for
the 'X' case.

Patch also includes some more test cases in EnumTests.cs.

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

17 years ago2007-03-05 Peter Dettman <peter.dettman@iinet.net.au>
Miguel de Icaza [Tue, 6 Mar 2007 04:46:30 +0000 (04:46 -0000)]
2007-03-05  Peter Dettman <peter.dettman@iinet.net.au>

* Binder.cs: The patch changes Binder.Default.GetBetterMethod to
prefer methods in subclasses if the arg types can't disambiguate
them.

Also fixes a typo in the CallingConventions comparison.

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

17 years agoAdd support for detecting UTF32 and UTF-32 bigendian
Miguel de Icaza [Tue, 6 Mar 2007 04:26:50 +0000 (04:26 -0000)]
Add support for detecting UTF32 and UTF-32 bigendian

patch from  Peter Dettman (peter.dettman@iinet.net.au)

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

17 years agoRevert, this breaks the build
Miguel de Icaza [Tue, 6 Mar 2007 04:24:27 +0000 (04:24 -0000)]
Revert, this breaks the build

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

17 years ago2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Tue, 6 Mar 2007 02:35:10 +0000 (02:35 -0000)]
2007-03-05 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* HttpWebRequest.cs: properly handle OPTIONS, which may or may not
have a request body. Fixes bug #80686.

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

17 years ago2007-03-05 Wade Berrier <wberrier@novell.com>
Wade Berrier [Tue, 6 Mar 2007 02:21:22 +0000 (02:21 -0000)]
2007-03-05  Wade Berrier  <wberrier@novell.com>

* atomic.h: atomic fixes from Michael Matz for for s390
and s390x ( bnc #237611 and bxc #80892 )

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

17 years ago2007-03-05 Peter Dettman <peter.dettman@iinet.net.au>
Miguel de Icaza [Tue, 6 Mar 2007 00:53:43 +0000 (00:53 -0000)]
2007-03-05  Peter Dettman  <peter.dettman@iinet.net.au>

* Uri.cs: This patch straightens out Equals/GetHashCode for the
Uri class:

- GetHashCode gives sensible values for relative Uri's.
- Uri's that compare equal will give same hashcode.
- operator == now uses Equals.

All existing tests still pass, and I have added some extra test
cases specifically for Equals/GetHashCode on relative Uri's
(included in patch).

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

17 years agoFix for bug 80682
Marek Habersack [Tue, 6 Mar 2007 00:51:45 +0000 (00:51 -0000)]
Fix for bug 80682

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

17 years ago2007-03-05 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 6 Mar 2007 00:48:54 +0000 (00:48 -0000)]
2007-03-05  Miguel de Icaza  <miguel@novell.com>

* file-io.c (ves_icall_System_IO_MonoIO_Open): Use the new
FileOptions.1 value to mean "temporary", map that to
FILE_ATTRIBUTE_TEMPORARY and use that to signal 600 permissions.

Fixes 80688

2007-03-05  Miguel de Icaza  <miguel@novell.com>

* io.c (CreateFile): Use FILE_ATTRIBUTE_TEMPORARY to mean 0600
permissions.  For 80688

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

17 years ago2007-03-05 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 6 Mar 2007 00:46:44 +0000 (00:46 -0000)]
2007-03-05  Miguel de Icaza  <miguel@novell.com>

* Path.cs: Manually call FileStream and pass the new internal
FileOptions.1 flag that means "This is a temporary file, use 600
permissions".

* FileOptions.cs: Document the new private enum value.

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