mono.git
18 years agoUnicodeEncoding.cs: Override GetString (byte [], int, int) in profile 1.x as well...
Kornél Pál [Tue, 6 Jun 2006 20:00:08 +0000 (20:00 -0000)]
UnicodeEncoding.cs: Override GetString (byte [], int, int) in profile 1.x as well because performance improvement is worth the signature difference. (Fix regression of r61250.)

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

18 years ago2006-06-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Jun 2006 19:00:05 +0000 (19:00 -0000)]
2006-06-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.

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

18 years ago2006-06-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Jun 2006 18:25:12 +0000 (18:25 -0000)]
2006-06-06  Zoltan Varga  <vargaz@gmail.com>

* mini.c (type_from_stack_type): Disable some changes which do not
seem to work.

* driver.c: Reenable opts.

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

18 years ago2006-06-06 Mike Kestner <mkestner@novell.com>
Mike Kestner [Tue, 6 Jun 2006 18:13:44 +0000 (18:13 -0000)]
2006-06-06  Mike Kestner  <mkestner@novell.com>

* CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.

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

18 years ago - Set the titlebar button locations as soon as they are created,
Jackson Harper [Tue, 6 Jun 2006 17:48:17 +0000 (17:48 -0000)]
    - Set the titlebar button locations as soon as they are created,
        otherwise they are not set correctly on win32.

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

18 years ago * InternalWindowManager.cs: The OS doesn't give us an NCPAINT
Jackson Harper [Tue, 6 Jun 2006 17:30:00 +0000 (17:30 -0000)]
    * InternalWindowManager.cs: The OS doesn't give us an NCPAINT
        * with
        resizes so we need to manually repaint the window decorations
here.

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

18 years ago2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 6 Jun 2006 17:06:42 +0000 (17:06 -0000)]
2006-06-06  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPath.cs: Fix IsOutlineVisible wrt API signature change.

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

18 years agoOk, we got a chronic case of problems with inline, we are turning it off now
Miguel de Icaza [Tue, 6 Jun 2006 16:45:57 +0000 (16:45 -0000)]
Ok, we got a chronic case of problems with inline, we are turning it off now

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

18 years ago2006-06-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Jun 2006 16:39:47 +0000 (16:39 -0000)]
2006-06-06  Zoltan Varga  <vargaz@gmail.com>

* Makefile (run-test): Split 'test' target into a 'compile' and 'run-test' target.

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

18 years ago2006-06-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Jun 2006 16:36:54 +0000 (16:36 -0000)]
2006-06-06  Zoltan Varga  <vargaz@gmail.com>

* make_tests.sh: Remove some stack merge tests which are verifiable.

* make_unary_test.sh *.cil Makefile: Change extension of all static and generated
test files to the standard .il.

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

18 years ago * Control.cs: Use the property (instead of the field) to get the
Jackson Harper [Tue, 6 Jun 2006 16:30:16 +0000 (16:30 -0000)]
    * Control.cs: Use the property (instead of the field) to get the
        default cursor so it is instantiated correctly.

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

18 years ago2006-06-06 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 6 Jun 2006 16:20:39 +0000 (16:20 -0000)]
2006-06-06  Chris Toshok  <toshok@ximian.com>

* CurrencyManager.cs (set_Position): call PullData before
OnCurrentChanged.
(AddNew): after calling IBindingList.AddNew, update our
listposition, and call OnCurrentChanged/OnPositionChanged (without
calling PullData).
(OnCurrentChanged): remove the call to PullData from here.
(OnItemChanged): remove the call to PushData from here.
(OnPositionChanged): change the test from == null to != null to
match the other methods.
(ListChangedHandler): the grossest part of the patch.  Implement
this such that it passes the unit tests in CurrencyManagerTest and
the output more or less matches that of MS's implementation.

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

18 years ago2006-06-06 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Tue, 6 Jun 2006 15:55:03 +0000 (15:55 -0000)]
2006-06-06  Miguel de Icaza  <miguel@novell.com>

* UnixRegistryApi.cs: Do not crash if there are no values stored.

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

18 years ago2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 6 Jun 2006 15:53:45 +0000 (15:53 -0000)]
2006-06-06  Sebastien Pouliot  <sebastien@ximian.com>

* gdipFunctions.cs: Fix API signature (missing pen pointer) for
GdipIsOutlineVisiblePathPoint[I] methods.
* FontFamily.cs: Delay the call to refreshName until it is actually
required.

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

18 years ago2006-06-06 Mike Kestner <mkestner@novell.com>
Mike Kestner [Tue, 6 Jun 2006 15:41:59 +0000 (15:41 -0000)]
2006-06-06  Mike Kestner  <mkestner@novell.com>

* ListView.cs : only update check state on single click.
* ThemeWin32Classic.cs : fix focus drawing for details view without
fullrowselect.  Fixes #78454.
* XplatUIX11.cs : fix for double click emission.

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

18 years ago2006-06-06 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 6 Jun 2006 14:56:01 +0000 (14:56 -0000)]
2006-06-06  Zoltan Varga  <vargaz@gmail.com>

* mini.h (MonoStackSlot): New structure to keep track of the verification state
of the evaluation stack.

* mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
evaluation stack trace at entry to the bblock.

* mini.c (merge_stacks): New function to perform verification of stack merges.
Turned off by default.

* mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
STACK_MP.

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

18 years agoAdd VARIANT marshalling to mono on windows.
Jonathan Chambers [Tue, 6 Jun 2006 13:29:29 +0000 (13:29 -0000)]
Add VARIANT marshalling to mono on windows.

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

18 years agoAdd VARIANT marshalling to mono on windows.
Jonathan Chambers [Tue, 6 Jun 2006 13:29:04 +0000 (13:29 -0000)]
Add VARIANT marshalling to mono on windows.

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

18 years ago2006-06-06 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Tue, 6 Jun 2006 11:41:58 +0000 (11:41 -0000)]
2006-06-06 Juraj Skripsky <js@hotfeet.ch>

* HtmlForm.cs (RenderAttributes): Sync with changes to HttpRequest.
Fixes bug #78591.

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

18 years agosvn path=/trunk/mcs/; revision=61481
Merav Sudri [Tue, 6 Jun 2006 10:43:23 +0000 (10:43 -0000)]
svn path=/trunk/mcs/; revision=61481

18 years agosvn path=/trunk/mcs/; revision=61480
Merav Sudri [Tue, 6 Jun 2006 09:23:53 +0000 (09:23 -0000)]
svn path=/trunk/mcs/; revision=61480

18 years ago * Makefile.am, bug-78311.cs, bug-78549.il: Added tests.
Massimiliano Mantione [Tue, 6 Jun 2006 08:55:10 +0000 (08:55 -0000)]
* Makefile.am, bug-78311.cs, bug-78549.il: Added tests.

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

18 years agodelete workarounds for the fixed bug
Andrew Skiba [Tue, 6 Jun 2006 08:54:23 +0000 (08:54 -0000)]
delete workarounds for the fixed bug

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

18 years agoFixed changelog date :-(
Massimiliano Mantione [Tue, 6 Jun 2006 08:33:11 +0000 (08:33 -0000)]
Fixed changelog date :-(

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

18 years ago * local-propagation.c: Fixed bug 78549.
Massimiliano Mantione [Tue, 6 Jun 2006 08:32:10 +0000 (08:32 -0000)]
* local-propagation.c: Fixed bug 78549.

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

18 years ago2006-06-05 Jonathan Chambers <jonathan.chambers@ansys.com>
Jonathan Chambers [Tue, 6 Jun 2006 03:44:45 +0000 (03:44 -0000)]
2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>

* PropertyGridView.cs : Applied Atsushi's patch to fix
font dialog bug  (#78197).

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

18 years ago * InternalWindowManager.cs: Set the bounds when updating the
Jackson Harper [Tue, 6 Jun 2006 00:26:22 +0000 (00:26 -0000)]
    * InternalWindowManager.cs: Set the bounds when updating the
        virtual position of a tool window.

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

18 years ago * TreeNode.cs: Compute the next node for expanding/collapsing
Jackson Harper [Mon, 5 Jun 2006 23:29:52 +0000 (23:29 -0000)]
    * TreeNode.cs: Compute the next node for expanding/collapsing
        correctly. We now factor in nodes without a NextNode
        correctly. (Fixes somes cases in nunit-gui).

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

18 years ago2006-06-05 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 5 Jun 2006 21:45:06 +0000 (21:45 -0000)]
2006-06-05  Chris Toshok  <toshok@ximian.com>

* DataGrid.cs: rename cached_currencymgr to list_manager.
(set_CurrentCell): move SetCurrentCell code here, and clean it up
some.
(CurrentRow, CurrentColumn): single accessors so we can make the
cursor movement code a lot easier to understand.
(CurrentRowIndex): implement this in terms of CurrentRow.
(BeginEdit): clean this up a bit.
(CancelEditing): sort out the is_editing/is_changing/is_adding
stuff a little.
(EndEdit): minor changes.
(OnKeyDown): add a comment about a (most likely) unnecessary
check.
(OnMouseDown): cancel editing when we click on a row header.  And
use the CurrentRow setter, not CurrentCell.
(ProcessDialogKey): directly call ProcessGridKey.
(UpdateSelectionAfterCursorMove): factor out this common block of
code (it's used everywhere that we move the cursor by updating row
or column).
(ProcessGridKey): pretty substantial overhaul.  Use the
CurrentRow/CurrentColumn properties to make the code a lot more
readable.  Only use the CurrentCell property when we have to
modify both row and column at once.  Tab behavior is still broken,
and Delete is untested.
(Select): if we have no selected rows, set selection_start to
@row.
(EditCurrentCell): rename EditCell this.  It was only ever invoked
with CurrentCell as the arg, so drop the arg and rename it.

* DataGridColumnStyle.cs: clean up the constructors a little, and
drop CommonConstructor().

* DataGridTextBox.cs (.ctor): set accepts_return to true so we
actually get notified when the user hits it.
(ProcessKeyMessage): *substantially* simplify this method.
There's no reason (that I can see) for the textbox to be making
calls into the datagrid at all.  Remove all of them but the ones
for Enter handling.  those will take some more work.

* DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
calling HideEditBox.
(HideEditBox): if we have an active textbox, render it invisible
without causing a re-layout of the datagrid.

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

18 years ago - Fix SetTop to work with new bound calculation code
Jackson Harper [Mon, 5 Jun 2006 21:37:41 +0000 (21:37 -0000)]
    - Fix SetTop to work with new bound calculation code
        - When scrollbars are no longer needed we need to reset
          scrolling
        vars and recalculate the visible order so the redraw is correct

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

18 years ago2006-06-05 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 5 Jun 2006 20:56:17 +0000 (20:56 -0000)]
2006-06-05  Mike Kestner  <mkestner@novell.com>

* ListView.cs : fix NRE crasher when focuseditem is cleared by
collection changes by resetting it to Items[0].  Fixes #78587.

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

18 years agomore test work
Chris Toshok [Mon, 5 Jun 2006 20:12:11 +0000 (20:12 -0000)]
more test work

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

18 years ago2006-06-05 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Mon, 5 Jun 2006 19:30:42 +0000 (19:30 -0000)]
2006-06-05 Juraj Skripsky <js@hotfeet.ch>

* HttpUtility.cs (ParseQueryString): move core of
ParseQueryString into internal method to make it available to
HttpRequest.

2006-06-05 Juraj Skripsky <js@hotfeet.ch>

* HttpRequest.cs: simplify code around uri_builder (and rename
to url_components). Move storage of query_string into
uri_builder.Query and initialize it lazily using
worker_request.GetQueryStringRawBytes() or GetQueryString().
(QueryString): Use HttpUtility.ParseQueryString instead of
duplicating its functionality.

2006-06-05 Juraj Skripsky <js@hotfeet.ch>

* HttpRequestTest.cs: add test case to verify that the correct
encoding is used during url-decoding of the query string.

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

18 years ago * TreeNode.cs: We can't expand/collapse nodes with no children.
Jackson Harper [Mon, 5 Jun 2006 19:10:37 +0000 (19:10 -0000)]
    * TreeNode.cs: We can't expand/collapse nodes with no children.

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

18 years ago - Fix Left/Right key handling to match MS. (It expand/collapses
Jackson Harper [Mon, 5 Jun 2006 19:08:54 +0000 (19:08 -0000)]
    - Fix Left/Right key handling to match MS. (It expand/collapses
        and moves to parents/first child but does not move selection to
        sibling nodes).

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

18 years ago2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 5 Jun 2006 18:24:02 +0000 (18:24 -0000)]
2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* MessageBox.cs: if the height of the text is larger than the icon_size,
use that. Fixes bug #78575.

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

18 years ago2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 5 Jun 2006 17:27:03 +0000 (17:27 -0000)]
2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* HttpApplication.cs: assign the context when run from a thread not in
the threadpool. Patch by Andrew Skiba. Fixes bug #78583.

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

18 years ago * TreeView.cs: Fix line drawing when scrolling. To do this each
Jackson Harper [Mon, 5 Jun 2006 17:24:31 +0000 (17:24 -0000)]
    * TreeView.cs: Fix line drawing when scrolling.  To do this each
        node is basically responsible for drawing its entire horizontal
        area.  When drawing a node it draws its parent node lines if
        needed.
        - Adjust the clip area to the viewport rectangle

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

18 years agoadd NunitWeb framework tests
Andrew Skiba [Mon, 5 Jun 2006 16:40:23 +0000 (16:40 -0000)]
add NunitWeb framework tests

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

18 years agoUpddate System.Query to LINQ May 2006 release.
Alejandro Serrano "Serras" [Mon, 5 Jun 2006 15:53:46 +0000 (15:53 -0000)]
Upddate System.Query to LINQ May 2006 release.

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

18 years ago2006-06-05 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 5 Jun 2006 14:12:57 +0000 (14:12 -0000)]
2006-06-05  Atsushi Enomoto  <atsushi@ximian.com>

* Uri.cs : revert the previous change as it caused UriTest.
  Constructors(#rel2a). ToString() for SourceString should be
  enough for lame users.

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

18 years agosleep before AppDomain.Unload (workaround)
Andrew Skiba [Mon, 5 Jun 2006 13:27:01 +0000 (13:27 -0000)]
sleep before AppDomain.Unload (workaround)

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

18 years agomodification for master page unitests
Yoni Klain [Mon, 5 Jun 2006 13:12:13 +0000 (13:12 -0000)]
modification for master page unitests

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

18 years agoworkaround for http://bugzilla.ximian.com/show_bug.cgi?id=78583
Andrew Skiba [Mon, 5 Jun 2006 13:02:50 +0000 (13:02 -0000)]
workaround for bugzilla.ximian.com/show_bug.cgi?id=78583

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

18 years agoStandalone test for a web hosting bug
Andrew Skiba [Mon, 5 Jun 2006 11:22:13 +0000 (11:22 -0000)]
Standalone test for a web hosting bug

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

18 years ago2006-06-05 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 5 Jun 2006 11:08:38 +0000 (11:08 -0000)]
2006-06-05  Zoltan Varga  <vargaz@gmail.com>

* libtest.c pinvoke17.cs: Rename definitions which conflict with win32 API names.

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

18 years agoSome touch ups
Miguel de Icaza [Mon, 5 Jun 2006 01:48:37 +0000 (01:48 -0000)]
Some touch ups

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

18 years agoAdd notice
Miguel de Icaza [Mon, 5 Jun 2006 01:41:54 +0000 (01:41 -0000)]
Add notice

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

18 years agoThe drawings for the /Compacting_GC page
Miguel de Icaza [Mon, 5 Jun 2006 01:39:54 +0000 (01:39 -0000)]
The drawings for the /Compacting_GC page

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

18 years ago2006-06-04 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 5 Jun 2006 00:54:11 +0000 (00:54 -0000)]
2006-06-04  Miguel de Icaza  <miguel@novell.com>

* OptionalFieldAttribute.cs, OnSerializedAttribute.cs,
OnSerializingAttribute.cs, OnDeserializedAttribute.cs,
OnDeserializingAttribute.cs: Added a few attributes for the
version tolerant serialization.

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

18 years ago2006-05-18 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Mon, 5 Jun 2006 00:52:33 +0000 (00:52 -0000)]
2006-05-18  Miguel de Icaza  <miguel@novell.com>

* Directory.cs (Exists): Ignore INVALID_HANDlE, return false.

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

18 years ago2006-06-04 Marek Safar <marek.safar@seznam.cz>
Marek Safar [Sun, 4 Jun 2006 20:39:43 +0000 (20:39 -0000)]
2006-06-04  Marek Safar  <marek.safar@seznam.cz>

* parameter.cs (Parameter.ApplyAttributeBuilder): More DefaultValue
attribute applicable tests for attribute argument.

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

18 years ago2006-06-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 4 Jun 2006 16:26:29 +0000 (16:26 -0000)]
2006-06-04  Zoltan Varga  <vargaz@gmail.com>

* mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.

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

18 years ago2006-06-04 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 4 Jun 2006 15:56:12 +0000 (15:56 -0000)]
2006-06-04  Zoltan Varga  <vargaz@gmail.com>

* InterlockedTest.cs: Fix Interlocked.Add tests.

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

18 years ago2006-06-03 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Sat, 3 Jun 2006 17:44:36 +0000 (17:44 -0000)]
2006-06-03  Miguel de Icaza  <miguel@novell.com>

* debug-mono-symfile.c: Revert Martin's previous patch which broke
stack trace line information:

(Martin) (mono_debug_symfile_lookup_location): Fix the algorithm:
(Martin) when looking up B which is between A and C, return A not C.

Bug is #78573.

Thanks to Alexander Olk for tracking this down.

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

18 years ago2006-06-03 John Luke <john.luke@gmail.com>
John Luke [Sat, 3 Jun 2006 15:50:07 +0000 (15:50 -0000)]
2006-06-03 John Luke <john.luke@gmail.com>

        * Path.cs: fix typo in [Obsolete] message

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

18 years ago2006-06-03 John Luke <john.luke@gmail.com>
John Luke [Sat, 3 Jun 2006 15:47:43 +0000 (15:47 -0000)]
2006-06-03  John Luke  <john.luke@gmail.com>

        * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
        so the colors work without dev packages

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

18 years ago2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 2 Jun 2006 22:59:44 +0000 (22:59 -0000)]
2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TestColor.cs: added 2 more tests for serialization and enabled one
that was not working.

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

18 years ago2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 2 Jun 2006 22:45:53 +0000 (22:45 -0000)]
2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* Color.cs: when deserializing from an MS generated stream, the value
for known colors was 0. These changes make our Color handle that case.
We won't serialize the name for known colors either, but the value will
be there, so we only check for a 0 value on a known color once.
Fixes bug #78265.

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

18 years ago2006-06-02 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 2 Jun 2006 21:45:22 +0000 (21:45 -0000)]
2006-06-02  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildItem.cs, BuildProperty.cs, BuildPropertyGroup.cs,
        BuildPropertyGroupCollection.cs: Fixed to match the tests.

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

18 years ago2006-06-02 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Fri, 2 Jun 2006 21:41:12 +0000 (21:41 -0000)]
2006-06-02  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * BuildPropertyTest.cs: Added.
* BuildPropertyGroupTest.cs: Added.
* BuildPropertyGroupCollectionTest.cs: Added.

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

18 years agofix namespace
Gonzalo Paniagua Javier [Fri, 2 Jun 2006 20:26:49 +0000 (20:26 -0000)]
fix namespace

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

18 years ago2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 2 Jun 2006 20:26:23 +0000 (20:26 -0000)]
2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* BinaryReader.cs: use BlockCopyInternal.

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

18 years ago2006-06-02 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Fri, 2 Jun 2006 20:10:54 +0000 (20:10 -0000)]
2006-06-02  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs
  - Select: Implemented to just use activate. Seems to match MS
    behaviour closest. Documented to only do actual control walking
    based on it's parameters if in a container control so I moved
    the code there.
  - Removed selection check logic from our internal Select() method
* ContainerControl.cs:
  - Select: Moved selection logic from Control here, since MS documents
    that containers obey the bool arguments. No longer calling base

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

18 years ago * TreeView.cs: If the selected node isn't changed when we get
Jackson Harper [Fri, 2 Jun 2006 19:59:15 +0000 (19:59 -0000)]
    * TreeView.cs: If the selected node isn't changed when we get
        focus update the previously selected node so that we see the
        selection box.

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

18 years ago2006-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 2 Jun 2006 18:40:25 +0000 (18:40 -0000)]
2006-06-02  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_set_last_error_windows): Fix build.

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

18 years ago2006-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Fri, 2 Jun 2006 17:36:41 +0000 (17:36 -0000)]
2006-06-02  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_emit_native_wrapper): Call GetLastError () early and without a wrapper to
avoid clobbering its value.
(mono_string_to_lpstr): Fix a warning on windows.

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

18 years ago2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Fri, 2 Jun 2006 16:26:38 +0000 (16:26 -0000)]
2006-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* WebProxy.cs: (IsBypassed) 'loopback', 'localhost' and any address
that starts with 127 are special.

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

18 years ago2006-06-02 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 2 Jun 2006 15:29:51 +0000 (15:29 -0000)]
2006-06-02  Mike Kestner  <mkestner@novell.com>

* ComboBox.cs: restructure grab and general mouse event handling.
Make the composite control raise mouse events like it was a single
control for leaves/enters/motion/up/down events.  fix dropdown list
coordinate mangling and refactor it into the scrollbar subclass to
reduce code duplication.  Fixes #78282 #78361 and #78457.

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

18 years ago2006-06-01 Mike Kestner <mkestner@novell.com>
Mike Kestner [Fri, 2 Jun 2006 15:16:53 +0000 (15:16 -0000)]
2006-06-01  Mike Kestner  <mkestner@novell.com>

* ScrollBar.cs: remove Capture setting/clearing, as it happens
automatically in the Control.WndProc.

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

18 years agooops
Miguel de Icaza [Fri, 2 Jun 2006 14:53:26 +0000 (14:53 -0000)]
oops

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

18 years ago2006-06-02 Miguel de Icaza <miguel@novell.com>
Miguel de Icaza [Fri, 2 Jun 2006 14:41:59 +0000 (14:41 -0000)]
2006-06-02  Miguel de Icaza  <miguel@novell.com>

* tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
tramp-arm.c, tramp-ia64.c
(mono_debugger_create_notification_function): Update signature to
new signature and use new protocol for creating the notification
function.

Should fix the build.

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

18 years agoFix #78079
Raja R Harinath [Fri, 2 Jun 2006 13:37:45 +0000 (13:37 -0000)]
Fix #78079
* mcs/expression.cs (Binary.DoNumericPromotions): Remove and rewrite.
(Binary.OverloadResolve_PredefinedIntegral): New.
(Binary.OverloadResolve_PredefinedFloating): New.
(Binary.OverloadResolve_PredefinedString): New.
(Binary.ResolveOperator): Use those instead of DoNumericPromotions.
Follow the standard more closely, and treat numeric promotions in
terms of overload resolution.
(Binary.CheckShiftArguments): Simplify.
* gmcs/expression.cs: Likewise.
* tests/test-520.cs: New test from #78079.

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

18 years ago* get.c (dis_stringify_method_signature_full): Fix two memory leaks.
Ankit Jain [Fri, 2 Jun 2006 11:54:43 +0000 (11:54 -0000)]
* get.c (dis_stringify_method_signature_full): Fix two memory leaks.

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

18 years ago* main.c (dis_method_list): Print only the method name in "{ // end
Ankit Jain [Fri, 2 Jun 2006 11:02:20 +0000 (11:02 -0000)]
* main.c (dis_method_list): Print only the method name in "{ // end
of.."

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

18 years ago* get.c (get_typedef): Return NULL for <Module> type.
Ankit Jain [Fri, 2 Jun 2006 10:42:32 +0000 (10:42 -0000)]
* get.c (get_typedef): Return NULL for <Module> type.
(get_escaped_class_name): Likewise.
(dis_stringify_object_with_class): Likewise.

(dis_stringify_type): Return NULL if the type name is NULL.
(get_escaped_name): Don't try to escape a NULL name.

(get_fieldref_signature): Type name can be null.
(get_field): Likewise.
(get_method_core): Likewise.
(get_methoddef): Likewise.

* main.c (dis_method_list): Print correct message for global methods.
(dis_globals): Don't print '<Module>' for global methods/fields.

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

18 years ago2006-06-02 Geoff Norton <gnorton@customerdna.com>
Geoff Norton [Fri, 2 Jun 2006 02:23:36 +0000 (02:23 -0000)]
2006-06-02  Geoff Norton  <gnorton@customerdna.com>

        * exceptions-ppc.c (mono_jit_walk_stack)
        (ves_icall_get_frame_info): Fix the build

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

18 years ago2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 1 Jun 2006 23:21:10 +0000 (23:21 -0000)]
2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FileDialog.cs: fix crash when running SharpChess, which sets the
FilterIndex to 2 with only one Filter.

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

18 years ago2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 1 Jun 2006 22:53:03 +0000 (22:53 -0000)]
2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* ToolBar.cs: add SizeSpecified property.
* ToolBarButton.cs: when the ButtonSize is calculated by the container,
try to figure out our real size, otherwise fallback to what the
container says.

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

18 years ago2006-06-02 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Jun 2006 22:48:29 +0000 (22:48 -0000)]
2006-06-02  Zoltan Varga  <vargaz@gmail.com>

* mini.c (mono_set_defaults): Fix the handling of -O=-all.

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

18 years ago2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 1 Jun 2006 22:43:57 +0000 (22:43 -0000)]
2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
* Control.cs (WndProc): MS always calls the DefWndProc to pass
  up the event

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

18 years ago2006-06-01 Mike Kestner <mkestner@novell.com>
Mike Kestner [Thu, 1 Jun 2006 21:42:44 +0000 (21:42 -0000)]
2006-06-01  Mike Kestner  <mkestner@novell.com>

* ListView.cs: revamp the focus management in ListView.  It still
causes churn of LostFocus/GotFocus emissions on clicks, but it's
better than not handling focus at all.  Will revisit when pdb feels
the general focus handling is solid.  Fixes #78526.

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

18 years ago TreeNode.cs: Make is_expanded internal so the treenode
Jackson Harper [Thu, 1 Jun 2006 20:53:10 +0000 (20:53 -0000)]
     TreeNode.cs: Make is_expanded internal so the treenode
        collection can change it without firing the whole event chain.
        * TreeNodeCollection.cs: When clearing all the child nodes make
        sure to recalc the visible order.
        - Improve algo for remove the top node

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

18 years ago * TreeView.cs: Set the default border style in the constructor.
Jackson Harper [Thu, 1 Jun 2006 20:48:42 +0000 (20:48 -0000)]
    * TreeView.cs: Set the default border style in the constructor.
        - Move painting to use OnPaintInternal instead of capturing
        WM_PAINT, this is the correct way of doing things
        - UpdateBelow shouldn't invalidate the scrollbar area
        - Cap the top on update below in case the node was above the top
        of the viewport rectangle.
        - ExpandBelow and Collapse below need to obey Begin/End Update.

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

18 years ago2006-06-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Jun 2006 20:23:22 +0000 (20:23 -0000)]
2006-06-01  Sebastien Pouliot  <sebastien@ximian.com>

* TestHatchBrush.cs: Some were surprisingly similar until...

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

18 years ago2006-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 1 Jun 2006 18:57:18 +0000 (18:57 -0000)]
2006-05-31  Zoltan Varga  <vargaz@gmail.com>

* threadpool.c: Make ASyncCall a copy of the managed MonoAsyncCall class so
it gets GC tracking.

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

18 years ago2006-06-01 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 1 Jun 2006 18:43:17 +0000 (18:43 -0000)]
2006-06-01  Chris Toshok  <toshok@ximian.com>

* CurrencyManagerTest.cs: add a few tests to see what events are
being emitted in which order from AddNew, CancelCurrentEdit and
EndCurrentEdit.

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

18 years ago * TreeView.cs: Set the default border style in the constructor.
Jackson Harper [Thu, 1 Jun 2006 17:45:25 +0000 (17:45 -0000)]
    * TreeView.cs: Set the default border style in the constructor.

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

18 years ago2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 1 Jun 2006 16:48:02 +0000 (16:48 -0000)]
2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
  SendMessage directly calling window procedures, which in turn might
  call SetFocus()

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

18 years ago2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Thu, 1 Jun 2006 15:55:36 +0000 (15:55 -0000)]
2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>

* Control.cs: Don't handle WM_SETFOCUS if the same window already
  has focus (works around X11 sending a FocusIn after our SetFocus)
* XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window

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

18 years ago2006-06-01 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Thu, 1 Jun 2006 15:20:24 +0000 (15:20 -0000)]
2006-06-01  Alexander Olk  <alex.olk@googlemail.com>

* Mime.cs: Fix for the NET_2_0 build.
  NameValueCollection needs StringComparer now.

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

18 years ago* mcs/flowanalysis.cs (MyBitVector): Simplify representation.
Raja R Harinath [Thu, 1 Jun 2006 14:51:02 +0000 (14:51 -0000)]
* mcs/flowanalysis.cs (MyBitVector): Simplify representation.
(MyBitVector.Clone): Avoid allocating BitArray.
(MyBitVector.operator&): Rename from MyBitVector.And and make symmetric.
(MyBitVector.operator|): Likewise, with MyBitVector.Or.
(*): Update.  Change all references to MyBitVector.And and
MyBitVector.Or to &= and |=.
* gmcs/flowanalysis.cs: Likewise.

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

18 years ago2006-06-01 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 1 Jun 2006 13:47:43 +0000 (13:47 -0000)]
2006-06-01  Sebastien Pouliot  <sebastien@ximian.com>

* RandomNumberGeneratorTest.cs: Don't forget the last run in Runs.
Track both 0 and 1 runs. Changed runs ranges to match FIPS140-2 Change
Notice #1 (fixes bug #78560). Updated test cases to NUnit 2.2 format.

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

18 years ago* Nullable.cs (operator==, operator!=): Remove.
Raja R Harinath [Thu, 1 Jun 2006 13:08:52 +0000 (13:08 -0000)]
* Nullable.cs (operator==, operator!=): Remove.

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

18 years ago* declsec.c (dump_declsec_entry20): Fix a warning.
Ankit Jain [Thu, 1 Jun 2006 10:47:34 +0000 (10:47 -0000)]
* declsec.c (dump_declsec_entry20): Fix a warning.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Thu, 1 Jun 2006 10:32:30 +0000 (10:32 -0000)]
In ilasm/codegen:
* MethodDef.cs (GetNamedParamPos): Return -1 if param_list is null.

In ilasm/errors:
* err-ldarg.il: New.

In ilasm/parser:
* ILParser.jay (instr | INSTR_PARAM ..): Report error if the param is not
found.

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

18 years agoIn ilasm/tests:
Ankit Jain [Thu, 1 Jun 2006 09:33:05 +0000 (09:33 -0000)]
In ilasm/tests:

* test-cattr-1.il: New. Test for custom attributes on return type of
a method.

In ilasm/codegen:

* MethodDef.cs (MethodDef): Use a ParamDef for return type, instead of a
BaseTypeRef.
(MethodDef.ctor): Update.
(MethodDef.AddParamDefaultValue): Remove.
(MethodDef.GetParam): Likewise.
(MethodDef.Resolve): Update to use ret_param instead of ret_type.

In ilasm/errors:

* err-cattr.il: New.

In ilasm/parser:

* ILParser.jay (method_decl | D_PARAM ..): Param index is zero-based,
with zero representing the return value.
Update to check CurrentCustomAttrTarget for null before using it.

In class/PEAPI:

* PEAPI.cs (PEFile.AddMethod): Add overload for return type as Param
instead of PEAPI.Type .
* Metadata.cs (MetaDataElement.HasCustomAttr): New. Temporary hack.
(Param.HasMarshalInfo): New.
(ClassDef.AddMethod): Add overload for return type as Param.
(MethodDef.ctor): Change internal .ctor's sig to take Param instead of
PEAPI.Type for return type.
(MethodDef.retType): Remove.
(MethodDef.TypeSig): Update to use ret_param always.
(MethodDef.BuildTables): Add ret_param to Param table only if it has
marshal info or custom attributes.

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

18 years ago2006-06-01 Zac Bowling <zac@zacbowling.com>
Zac Bowling [Thu, 1 Jun 2006 06:47:14 +0000 (06:47 -0000)]
2006-06-01 Zac Bowling <zac@zacbowling.com>
* configure.in, quick fix for typo breaking build (test instead of text on last output texted added by miguel earlier)

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

18 years ago2006-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 May 2006 20:55:44 +0000 (20:55 -0000)]
2006-05-31  Zoltan Varga  <vargaz@gmail.com>

* class-internals.h (MonoClass): Removed obsolete 'dummy' flag.

* reflection.c loader.c: Removed references to 'dummy' flag.

* loader.c (mono_loader_error_prepare_exception): Fix a warning.

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

18 years ago2006-05-31 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 31 May 2006 20:48:47 +0000 (20:48 -0000)]
2006-05-31  Zoltan Varga  <vargaz@gmail.com>

* MonoDummy.cs: Removed as it is no longer needed.

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