mono.git
18 years agoThe regression is now fixed.
Martin Baulig [Tue, 13 Jun 2006 20:09:44 +0000 (20:09 -0000)]
The regression is now fixed.

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

18 years agooops
Chris Toshok [Tue, 13 Jun 2006 20:02:09 +0000 (20:02 -0000)]
oops

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

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

* DataGridColumnStyle.cs: Invalidate the column when HeaderText is
modified.  Also, guard against grid or grid_drawing being null in
Invalidate.

* DataGrid.cs: Reformat tons of getters/setters.  In the
DataMember setter, just call SetNewDataSource instead of
duplicating some of its functionality.  In SetNewDataSource, don't
check ListManager for null, since the property getter creates the
object if needed.

* DataGridTableStyle.cs: don't set TableStyle or call
SetDataGridInternal on the column here, it's done in
GridColumnStylesCollection.Add.

* GridColumnStylesCollection.cs: fix all the explicit interface
implementations to just call our methods.  Nuke AddInternal() and
move the body of it to Add().  Also, add a call to
column.SetDataGridInternal to Add().

* DataGridTextBoxColumn.cs (.ctors): call this() instead of
base()+duplicate code.  Also, use the Format property instead of
format to generate an Invalidate ala MS.  Lastly, create the
textbox here, unconditionally.
(set_Format): call Invalidate.
(get_TextBox): no need to call EnsureTextBox.
(Commit): remove the message box.
(Edit) remove the call to EnsureTextBox.
(EndEdit): call HideEditBox instead of ReleaseHostedControl.
(EnterNullValue): no need to check textbox for null.
(HideEditBox): no need to check textbox for null.
(SetDataGridInColumn): add the textbox to the grid's controls.
(EnsureTextBox): nuke.

>>>>>>> .r61675

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

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

* mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
No idea why this worked before.

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

18 years ago * MdiWindowManager.cs: Hook up to the maximized menus paint
Jackson Harper [Tue, 13 Jun 2006 18:42:08 +0000 (18:42 -0000)]
    * MdiWindowManager.cs: Hook up to the maximized menus paint
        * event
        and redraw the buttons when needed. Unhook when the window is
        unmaximized.
        * MainMenu.cs: Add an internal Paint event, the mdi window
        * manager
        needs this so that it can redraw its buttons when the menu is
        repainted.
        * InternalWindowManager.cs:
        * Form.cs: The method order has changed for
        * DrawMaximizedButtons,
        so that it can be a PaintEventHandler.

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

18 years agoByteEncoding.cs: Use unsafe code in GetString() that results in significant performan...
Kornél Pál [Tue, 13 Jun 2006 18:31:27 +0000 (18:31 -0000)]
ByteEncoding.cs: Use unsafe code in GetString() that results in significant performance improvement.

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

18 years ago Open up CreateButtons to base classes
Jackson Harper [Tue, 13 Jun 2006 17:56:02 +0000 (17:56 -0000)]
    Open up CreateButtons to base classes
        so they can recreate the buttons on state changes.

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

18 years ago - When a new window is activated repaint the decorations of the
Jackson Harper [Tue, 13 Jun 2006 17:21:36 +0000 (17:21 -0000)]
    - When  a new window is activated repaint the decorations of the
        old one, so that it no longer has the Active "look" (the blue
        titlebar).

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

18 years ago * MdiClient.cs: When we close a maximized mdi window, the next
Jackson Harper [Tue, 13 Jun 2006 16:55:17 +0000 (16:55 -0000)]
    * MdiClient.cs: When we close a maximized mdi window, the next
        * mdi
        window is activated and maximized, even if it wasn't before.
        * InternalWindowManager.cs: Open up CreateButtons to base
        * classes
        so they can recreate the buttons on state changes.
        - If a window is maximized give it all three buttons
        * MdiWindowManager.cs: Create the titlebar buttons when the
        * state
        is changed, this is needed because a toolwindow will not have
all
        three buttons until it is maximized.

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

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

* branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
which branch to outer exception clauses since they could skip the
inner finally clauses. Fixes #78633.

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

18 years ago2006-06-13 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 13 Jun 2006 15:52:59 +0000 (15:52 -0000)]
2006-06-13  Zoltan Varga  <vargaz@gmail.com>

* branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
which branch to outer exception clauses since they could skip the
inner finally clauses. Fixes #78633.

* exceptions.cs: Add a test for the above.

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

18 years ago2006-06-13 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 13 Jun 2006 15:51:36 +0000 (15:51 -0000)]
2006-06-13  Martin Baulig  <martin@ximian.com>

* ecore.cs (SimpleName.DoSimpleNameResolve): Check whether we have
type arguments and create a ConstructedType if necessary.  Fixes #78400.

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

18 years agoRevert last change. It broke the build.
Gonzalo Paniagua Javier [Tue, 13 Jun 2006 14:57:04 +0000 (14:57 -0000)]
Revert last change. It broke the build.

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

18 years agoBaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed...
Vladimir Krasnov [Tue, 13 Jun 2006 13:08:48 +0000 (13:08 -0000)]
BaseDataList.cs: added ConnectToDataSource method that called from OnLoad, fixed GetData method

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

18 years ago2006-06-13 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 13 Jun 2006 13:06:55 +0000 (13:06 -0000)]
2006-06-13  Martin Baulig  <martin@ximian.com>

* known-issuses-mcs, known-issues-gmcs: Disable test-408.cs.

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

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

* mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
Fixes #78629.

* iltests.il: Add a test for the above.

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

18 years agoRepeater.cs: fixed ConnectToDataSource method, subscribed to DataSourceViewChanged...
Vladimir Krasnov [Tue, 13 Jun 2006 12:55:51 +0000 (12:55 -0000)]
Repeater.cs: fixed ConnectToDataSource method, subscribed to DataSourceViewChanged, looks for a datasource in its parent control
fixed GetData method, should not get data if datasource is null

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

18 years agoraise OnDataSourceViewChanged events when data changes
Konstantin Triger [Tue, 13 Jun 2006 08:22:09 +0000 (08:22 -0000)]
raise OnDataSourceViewChanged events when data changes

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

18 years ago2006-06-13 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 12 Jun 2006 23:26:54 +0000 (23:26 -0000)]
2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>

* ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
  Fixed bug #78609.

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

18 years ago* Makefile: Update for dialog-question3.png -> dialog-question.png rename
Wade Berrier [Mon, 12 Jun 2006 22:52:14 +0000 (22:52 -0000)]
* Makefile: Update for dialog-question3.png -> dialog-question.png rename
to fix 'make dist'

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

18 years ago2006-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Mon, 12 Jun 2006 22:51:32 +0000 (22:51 -0000)]
2006-06-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* TestBitmap.cs: add test for stride with 1bpp indexed bitmap.

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

18 years ago * KeysConverter.cs: Make sure we handle the Ctrl special case
Jackson Harper [Mon, 12 Jun 2006 22:46:42 +0000 (22:46 -0000)]
    * KeysConverter.cs: Make sure we handle the Ctrl special case
        if its the only key.

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

18 years ago * Theme.cs: Add a method to get the size of a managed window
Jackson Harper [Mon, 12 Jun 2006 22:17:15 +0000 (22:17 -0000)]
    * Theme.cs: Add a method to get the size of a managed window
        toolbar button.
        * InternalWindowManager.cs: Remove the ButtonSize property, this
        should be retrieved from the theme.
        * MdiWindowManager.cs: Get the button size from the theme
        * ThemeWin32Classic.cs: Make the method to get the managed
        * window
        titlebar button size public.
        - Handle the different button sizes of maximized toolwindows
        (should match any maximized window).
        - Get the titlebar height from the theme, not the WM (which gets
        it from the theme).

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

18 years agoCorrect typo
Miguel de Icaza [Mon, 12 Jun 2006 22:12:24 +0000 (22:12 -0000)]
Correct typo

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

18 years ago - When doing PointToClient contain it in the workable desktop
Jackson Harper [Mon, 12 Jun 2006 20:25:15 +0000 (20:25 -0000)]
    - When doing PointToClient contain it in the workable desktop
        area, this prevents windows from changing size when the cursor
is
        pulled outside of the working area while sizing.

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

18 years ago * InternalWindowManager.cs: Handle NC Double Clicks, passing the
Jackson Harper [Mon, 12 Jun 2006 19:02:55 +0000 (19:02 -0000)]
    * InternalWindowManager.cs: Handle NC Double Clicks, passing the
        event down to the mdi window manager.
        - Expose some extra stuff to base classes
        - Make sure to end the Capture on an NC Mouse up, so that we can
        get double clicks properly, and the sizing doens't stick.
        * MdiWindowManager.cs: When we get a double click maximize the
        window.
        - Reset the cursor after handling mode changes.

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

18 years ago2006-06-12 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Mon, 12 Jun 2006 18:03:36 +0000 (18:03 -0000)]
2006-06-12  Peter Dennis Bartok  <pbartok@novell.com>

* XplatUIX11.cs (WorkingArea): Read the actual workarea for the
  current desktop, instead of just assuming a 0, 0 origin. This
  is needed for our internal window manager, to know the top
  margin of the desktop

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

18 years ago * DataGrid.cs (set_CurrentCell): concede focus as we move around.
Chris Toshok [Mon, 12 Jun 2006 16:29:36 +0000 (16:29 -0000)]
* DataGrid.cs (set_CurrentCell): concede focus as we move around.
we need this to get rid of the selected background in the bool
column.
(CancelEditing): move the ConcedeFocus call to above the Abort
call.  Also, set is_changing to false and invalidate the row
header if we were changing before.
(ProcessKeyPreviewInternal): remove, since noone outside this
class calls it anymore.  Roll the code into ProcessKeyPreview.
(EndEdit): remove the internal version.
(InvalidateCurrentRowHeader): make private.

* DataGridBoolColumn.cs: simplify this class a bunch.  remove the
Keys.Escape handling (and with it the last call to
DataGrid.EndEdit from outside the class.)

2006-06-12  Chris Toshok  <toshok@ximian.com>

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

18 years ago * DataGridTextBox.cs (.ctor): isedit defaults to false.
Chris Toshok [Mon, 12 Jun 2006 15:42:06 +0000 (15:42 -0000)]
* DataGridTextBox.cs (.ctor): isedit defaults to false.
(OnKeyPress): set isedit to true.
(ProcessKeyMessage): remove Keys.Enter handling from here.  it's
already handled by the grid.

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

18 years ago2006-06-12 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 12 Jun 2006 15:35:20 +0000 (15:35 -0000)]
2006-06-12  Chris Toshok  <toshok@ximian.com>

* DataGrid.cs (set_CurrentCell): more work here.  it's still not
right.  ugh.
(set_DataSource): SetDataSource always returns true, so stop
putting it in an if statement.
(EndEdit): get rid of some {}'s
(ProcessGridKey): return true in case Keys.Escape.
(ProcessKeyPreviewInternal): only handle KEYDOWN messages.
(ConnectListManagerEvents,DisconnectListManagerEvents): connect to
PositionChanged, stopped connecting to CurrentChanged.
(GetDataSource): simplify this a bunch.
(SetDataSource): change return type from bool to void.
(OnListManagerPositionChanged): rename OnListManagerCurrentChanged
to this, and make sure we don't set ListManager.Position inside
set_CurrentCell.
(OnListManagerItemChanged): if we're passed an actual index,
redraw that row.

* CurrencyManager.cs (set_Position): don't call PullData here.

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

18 years ago2006-06-12 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Mon, 12 Jun 2006 14:16:59 +0000 (14:16 -0000)]
2006-06-12  Zoltan Varga  <vargaz@gmail.com>

* mini.c (remove_block_if_useless): Do not remove the bblock immediately
after the end of a try bblock, to prevent asserts in mini_method_compile ().

* iltests.il: Add a test for the above.

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

18 years ago2006-06-12 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 12 Jun 2006 08:38:50 +0000 (08:38 -0000)]
2006-06-12  Atsushi Enomoto  <atsushi@ximian.com>

* culture-info-table.h : oops, forgot to make it nsync with r61548.

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

18 years agoadd an overload for RunUrl method with no delegates
Andrew Skiba [Mon, 12 Jun 2006 07:53:52 +0000 (07:53 -0000)]
add an overload for RunUrl method with no delegates

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

18 years agoFix for building mono in VS, and implement reading/writing USER/MACHINE level environ...
Jonathan Chambers [Mon, 12 Jun 2006 00:54:02 +0000 (00:54 -0000)]
Fix for building mono in VS, and implement reading/writing USER/MACHINE level environment variables.

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

18 years agoFix for building mono in VS, and implement reading/writing USER/MACHINE level environ...
Jonathan Chambers [Mon, 12 Jun 2006 00:53:44 +0000 (00:53 -0000)]
Fix for building mono in VS, and implement reading/writing USER/MACHINE level environment variables.

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

18 years agoset the row index from GridRowView if CommandArgument does not contain this information
Konstantin Triger [Sun, 11 Jun 2006 07:53:47 +0000 (07:53 -0000)]
set the row index from GridRowView if CommandArgument does not contain this information

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

18 years agoreturn documented default for OldValuesParameterFormatString
Konstantin Triger [Sun, 11 Jun 2006 07:44:32 +0000 (07:44 -0000)]
return documented default for OldValuesParameterFormatString

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

18 years ago2006-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 10 Jun 2006 13:34:28 +0000 (13:34 -0000)]
2006-06-10  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.

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

18 years ago2006-06-10 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 10 Jun 2006 13:26:58 +0000 (13:26 -0000)]
2006-06-10  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
methods as instrinsics.

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

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

* interlocked-2.2.cs: Make the return values positive.

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

18 years ago2006-06-10 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Sat, 10 Jun 2006 06:44:22 +0000 (06:44 -0000)]
2006-06-10  Atsushi Enomoto  <atsushi@ximian.com>

* SectionGroupInfo.cs : skip <dllmap> in configuration.

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

18 years ago* Makefile.am: Fix sources list for svn rename so that make dist succeeds
Wade Berrier [Fri, 9 Jun 2006 21:02:44 +0000 (21:02 -0000)]
* Makefile.am: Fix sources list for svn rename so that make dist succeeds
(simple-cee-ops.h ssapre-mini-ops.h)

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

18 years ago - Don't need an internal constructor anymore.
Jackson Harper [Fri, 9 Jun 2006 20:27:18 +0000 (20:27 -0000)]
    - Don't need an internal constructor anymore.

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

18 years ago * Form.cs: Layout the MDI child windows when creating the parent
Jackson Harper [Fri, 9 Jun 2006 20:13:23 +0000 (20:13 -0000)]
    * Form.cs: Layout the MDI child windows when creating the parent
        * form.
        * MdiClient.cs: use the parent form width/height (if available)
        when laying out the child windows, we do this because the
        mdiclient isn't docked yet when the initial layout is done.

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

18 years ago* mono/mini/mini-s390.c: Correct ATOMIC operations (incorrect register for CS
Neale Ferguson [Fri, 9 Jun 2006 19:53:21 +0000 (19:53 -0000)]
* mono/mini/mini-s390.c: Correct ATOMIC operations (incorrect register for CS
instruction).
* mono/mini/mini-s390.h: Simplify MCONTEXT_GET_BP.
* mono/io-layer/ChangeLog: Move comment from mono/mini
* mono/mini/ChangeLog: Correct comments

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

18 years ago* mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
Neale Ferguson [Fri, 9 Jun 2006 19:08:15 +0000 (19:08 -0000)]
* mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
* mono/io-layer/atomic.h: Fix atomic operations for s390x (not really broken
but changed to use full 64-bit opcodes).
* mono/mini/mini-s390x.c: Correct ATOMIC operations (incorrect register for CS
instruction).
* mono/mini/mini-s390x.h: Simplify MCONTEXT_GET_BP.
* mono/mini/cpu-s390x.md: Fix max. length values for a couple of instructions.

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

18 years ago * TreeNode.cs: Recalculate the visible order before doing the
Jackson Harper [Fri, 9 Jun 2006 17:41:55 +0000 (17:41 -0000)]
    * TreeNode.cs:  Recalculate the visible order before doing the
        Expand/Collapse Below calls, because those calls generate an
        expose.
        - Reduce calls to the TreeView property, which is mildly
          expensive
        by using a local var.

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

18 years agoMinor fixes for building mono in Visual Studio.
Jonathan Chambers [Fri, 9 Jun 2006 12:35:48 +0000 (12:35 -0000)]
Minor fixes for building mono in Visual Studio.

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

18 years ago2006-06-09 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Fri, 9 Jun 2006 12:29:43 +0000 (12:29 -0000)]
2006-06-09  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPathTest.cs: Added test cases for IsVisible methods.

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

18 years ago2006-06-09 Martin Baulig <martin@ximian.com>
Martin Baulig [Fri, 9 Jun 2006 12:01:22 +0000 (12:01 -0000)]
2006-06-09  Martin Baulig  <martin@ximian.com>

* debug-mono-symfile.c: Put this back and really fix it this
time. Sorry for all the trouble.

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

18 years ago2006-06-09 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Fri, 9 Jun 2006 09:17:40 +0000 (09:17 -0000)]
2006-06-09  Juraj Skripsky <js@hotfeet.ch>

* Tokenizer.cs (ProcessEscapes): Inspect the next character, not the one
after that.

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

* DataTableTest.cs (SelectEscaping): Add tests for calling Select()
with escaped string literals.

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

18 years ago * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
Massimiliano Mantione [Fri, 9 Jun 2006 06:37:04 +0000 (06:37 -0000)]
* ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
* simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
* ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
* simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
* local-propagation.c: In mono_cprop_invalidate_values use a whitelist
of opcodes, so that bug 78549 should not happen again.
* ssapre.c: Updated to use the renamed files.

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

18 years ago2006-06-08 Cesar Lopez Nataren <cesar.nataren@medsphere.com>
César Natarén [Fri, 9 Jun 2006 05:57:15 +0000 (05:57 -0000)]
2006-06-08  Cesar Lopez Nataren  <cesar.nataren@medsphere.com>

* Added the NPL license (as that's the header the original java
files have) header to Token.cs, TokenStream.cs, Parser.cs and
Decompiler.cs to avoid confusion. Also, the notice has always been
stated in mcs/LICENSE that:

"The Microsoft.JScript assembly is covered by the
MIT X11 and the Mozilla MPL license as it contains
ported pieces of code from Rhino, the Mozilla JavaScript
implementations"

And we include mcs/LICENSE.MPL

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

18 years ago2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 8 Jun 2006 21:30:49 +0000 (21:30 -0000)]
2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FileDialog.cs: handle access errors when trying to create a folder
or changing to a directory. No need to initialize out parameters.

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

18 years ago2006-06-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 8 Jun 2006 21:21:07 +0000 (21:21 -0000)]
2006-06-08  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPath.cs: Update/remove some MonoTODO on IsVisible methods.

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

18 years ago2006-06-08 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 8 Jun 2006 21:19:05 +0000 (21:19 -0000)]
2006-06-08  Sebastien Pouliot  <sebastien@ximian.com>

* ClientRecordProtocol.cs: Avoid a NRE when the server request a
re-negotiation of the security parameters. Possible fix for #78597.

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

18 years ago * FileDialog.cs: Append a number when creating a new folder if the
Alexander Olk [Thu, 8 Jun 2006 20:58:17 +0000 (20:58 -0000)]
* FileDialog.cs: Append a number when creating a new folder if the
  folder already exists (use parenthesis instead of square brackets)

2006-06-08  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago * mini.c: Fixed bug 77996, and settled some debugging code.
Massimiliano Mantione [Thu, 8 Jun 2006 20:49:05 +0000 (20:49 -0000)]
* mini.c: Fixed bug 77996, and settled some debugging code.

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

18 years ago2006-06-08 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Thu, 8 Jun 2006 20:38:11 +0000 (20:38 -0000)]
2006-06-08  Alexander Olk  <alex.olk@googlemail.com>

* FileDialog.cs:
  - Disabled registry support for windows and added better registry
    error checking for other systems (need to investigate why it
    works perfectly on my system)
  - If a folder already exist show an error MessageBox instead of
    trying to create an indexed name.
  - Fixed a non intentional typo.

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

18 years ago2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Thu, 8 Jun 2006 20:14:42 +0000 (20:14 -0000)]
2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.

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

18 years ago * FileDialog.cs: When creating a new folder don't crash if the
Alexander Olk [Thu, 8 Jun 2006 19:54:24 +0000 (19:54 -0000)]
* FileDialog.cs: When creating a new folder don't crash if the
  folder already exists.

2006-06-08  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago2006-06-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 8 Jun 2006 19:10:41 +0000 (19:10 -0000)]
2006-06-08  Zoltan Varga  <vargaz@gmail.com>

* mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move
in OP_ATOMIC_EXCHANGE_I4.

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

18 years ago * FileDialog.cs: Allmost a complete rewrite.
Alexander Olk [Thu, 8 Jun 2006 19:09:29 +0000 (19:09 -0000)]
* FileDialog.cs: Allmost a complete rewrite.
  - added a "virtual" file system that handles the differences
    between unix and windows file systems (especially the directory
    structure). Moved most of the directory and file handling code
    into the vfs.
    Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
    UnixFileSystem and FSEntry.
  - Recently used folder/directory, size, location and used file names
    (file name ComboBox) are now stored in the registry and get read
    before the dialog shows up (fixes part 6 of bug #78446).
  - Creation of new folders/directories is now possible (context menu
    or ToolBar). Added TextEntryDialog for this that fills in the gap
    until ListView.LabelEdit works.
  - Fixed cursor handling (bug #78527) and focus handling for
    PopupButtonPanel
  - Various "Search in" ComboBox enhancements. The content of the
    dropdown listbox now almost matches ms.
  - Changed the behaviour when the user switches to SpecialFolder
    Recent to show the ListView in View.Details.
  - Beside using the ToolBar to change the View property of the
    file ListView it is now possible to use the context menu too.

2006-06-08  Alexander Olk  <alex.olk@googlemail.com>

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

18 years ago2006-06-08 Alexander Olk <alex.olk@googlemail.com>
Alexander Olk [Thu, 8 Jun 2006 17:38:02 +0000 (17:38 -0000)]
2006-06-08  Alexander Olk  <alex.olk@googlemail.com>

* ComboBox.cs: Don't create a new ObjectCollection when an item
  gets inserted. Just insert the item in the existing object_items
  ArrayList.

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

18 years agoRevert until Martin is online to debug
Miguel de Icaza [Thu, 8 Jun 2006 17:33:58 +0000 (17:33 -0000)]
Revert until Martin is online to debug

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

18 years agoRevert until Martin is online to debug
Miguel de Icaza [Thu, 8 Jun 2006 17:33:41 +0000 (17:33 -0000)]
Revert until Martin is online to debug

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

18 years ago * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
Jackson Harper [Thu, 8 Jun 2006 16:33:28 +0000 (16:33 -0000)]
    * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
        that the treeview and root node checks are done also, this fixes
a
        regression i caused in the unit tests.

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

18 years ago2006-06-08 Chris Toshok <toshok@ximian.com>
Chris Toshok [Thu, 8 Jun 2006 14:50:38 +0000 (14:50 -0000)]
2006-06-08  Chris Toshok  <toshok@ximian.com>

* WebConfigurationHost.cs (InitForConfiguration): i know this is
going to bite me in the ass, but guard against configPath being ==
to "/", since this will result in an infinite loop.
(MapPath): fix a NRE.

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

18 years ago2006-06-08 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 8 Jun 2006 14:49:54 +0000 (14:49 -0000)]
2006-06-08  Zoltan Varga  <vargaz@gmail.com>

* icall.c (mono_class_get_throw): Fix a warning.
(ves_icall_System_Reflection_Assembly_GetTypes): Allways throw
ReflectionTypeLoadException if needed. Fixes #78606.

* class.c (mono_class_setup_vtable_general): Handle loader errors a bit better.
(mono_class_init): Ditto.

* loader.c (mono_loader_set_error_assembly_load): Display a separate warning for
ref_only exceptions.
(mono_loader_clear_error): Make this work even if there is no error.

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

18 years agoIn System.Web.Services.Description:
Chris Toshok [Thu, 8 Jun 2006 14:48:28 +0000 (14:48 -0000)]
In System.Web.Services.Description:
2006-06-08  Chris Toshok  <toshok@ximian.com>

* ExtensionManager.cs: remove the CONFIGURATION_2_0 from ifdefs.
NET_2_0 implies this now.

In System.Web.Services.Protocols:
2006-06-08  Chris Toshok  <toshok@ximian.com>

* WebServiceHandlerFactory.cs: remove the CONFIGURATION_2_0 from
ifdefs. NET_2_0 implies this now.

* SoapExtension.cs: same.

* SoapDocumentationHandler.cs: same.

In .:
2006-06-08  Chris Toshok  <toshok@ximian.com>

* Makefile (LIB_MCS_FLAGS): remove the CONFIGURATION_2_0 define.
NET_2_0 implies this now.

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

18 years ago2006-06-06 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 8 Jun 2006 14:06:34 +0000 (14:06 -0000)]
2006-06-06  Sebastien Pouliot  <sebastien@ximian.com>

* notused.cs, reftype1-4.cs: Fix compiler warnings.

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

18 years agoForgot to commit ChangeLog
Jonathan Chambers [Thu, 8 Jun 2006 13:18:24 +0000 (13:18 -0000)]
Forgot to commit ChangeLog

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

18 years agoImplement Marshal.GetComSlotForMethodInfo
Jonathan Chambers [Thu, 8 Jun 2006 13:15:50 +0000 (13:15 -0000)]
Implement Marshal.GetComSlotForMethodInfo

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

18 years agoImplement Marshal.GetComSlotForMethodInfo
Jonathan Chambers [Thu, 8 Jun 2006 13:15:26 +0000 (13:15 -0000)]
Implement Marshal.GetComSlotForMethodInfo

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

18 years agoload themes relative to context root
Konstantin Triger [Thu, 8 Jun 2006 11:35:11 +0000 (11:35 -0000)]
load themes relative to context root

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

18 years ago* PEAPI.cs (PEFile.GetNextSectStart): Handle the case when (tide %
Ankit Jain [Thu, 8 Jun 2006 09:28:06 +0000 (09:28 -0000)]
* PEAPI.cs (PEFile.GetNextSectStart): Handle the case when (tide %
SectionAlignment) == 0 . Patch by Carlo Kok. Fixes bug #78182.

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

18 years ago2006-06-08 Martin Baulig <martin@ximian.com>
Martin Baulig [Thu, 8 Jun 2006 07:34:31 +0000 (07:34 -0000)]
2006-06-08  Martin Baulig  <martin@ximian.com>

* debug-mono-symfile.c: Put this back and fix it.

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

18 years ago2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 8 Jun 2006 02:39:12 +0000 (02:39 -0000)]
2006-06-08  Atsushi Enomoto <atsushi@ximian.com>

* XmlTextWriter2.cs : if an attribute being written has the same
  non-empty namespace URI as current default namespace, its prefix
  should be written. Fixed bug #78598.

* XmlTextWriterTests.cs : added test for bug #78598.

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

18 years ago2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 8 Jun 2006 02:08:21 +0000 (02:08 -0000)]
2006-06-08 Atsushi Enomoto  <atsushi@ximian.com>

* DateTimeFormatInfoTest.cs : added test for bug #78569.

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

18 years ago2006-06-08 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Thu, 8 Jun 2006 01:53:28 +0000 (01:53 -0000)]
2006-06-08  Atsushi Enomoto  <atsushi@ximian.com>

* en.xml, en-US.xml : move US-only date patterns from en.xml to
  en-US.xml. Fixed bug #78569.

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

18 years ago* Makefile: Make sure mainsoft NunitWeb files are included for make dist
Wade Berrier [Thu, 8 Jun 2006 00:50:52 +0000 (00:50 -0000)]
* Makefile: Make sure mainsoft NunitWeb files are included for make dist

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

18 years ago* RichTextBox.cs: More ISO8859-1 -> unicode
Wade Berrier [Wed, 7 Jun 2006 22:27:29 +0000 (22:27 -0000)]
* RichTextBox.cs: More ISO8859-1 -> unicode

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

18 years ago2006-06-07 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 7 Jun 2006 21:19:46 +0000 (21:19 -0000)]
2006-06-07  Zoltan Varga  <vargaz@gmail.com>

* class-internals.h: Add a new kind of loader error LOADER_ERROR_ASSEMBLY plus
a function for signalling it.

* class.c (mono_class_from_typeref): Use the new kind of loader error when
a referenced assembly is not found.

* loader.c (mono_loader_error_prepare_exception): Add support for
LOADER_ERROR_ASSEMBLY.

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

18 years ago2006-06-07 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 7 Jun 2006 20:03:33 +0000 (20:03 -0000)]
2006-06-07  Mike Kestner  <mkestner@novell.com>

* ComboBox.cs : use items to hold highlight/selection so that
collection insertions don't require synchronization.

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

18 years ago* Makefile.am: add test-inline-call-stack-library.cs and test-inline-call-stack.cs
Wade Berrier [Wed, 7 Jun 2006 20:01:28 +0000 (20:01 -0000)]
* Makefile.am: add  test-inline-call-stack-library.cs and test-inline-call-stack.cs
to EXTRA_DIST so that tests can be run from a dist tarball

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

18 years ago * InternalWindowManager.cs: Simplify (and FIX) the window sizing
Jackson Harper [Wed, 7 Jun 2006 19:59:43 +0000 (19:59 -0000)]
    * InternalWindowManager.cs: Simplify (and FIX) the window sizing
        routine.  We now always keep the sized edge at the cursor
instead
        of computing movement and adjusting rects.  There is one buglet
        with this method though when the cursor is moved over area that
        the window can not expand too (such as the toolbars on the
desktop).

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

18 years ago2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 7 Jun 2006 19:36:01 +0000 (19:36 -0000)]
2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
here. Fixes crash on startup in AlbumSurfer.

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

18 years ago2006-06-07 Peter Dennis Bartok <pbartok@novell.com>
Peter Dennis Bartok [Wed, 7 Jun 2006 18:17:53 +0000 (18:17 -0000)]
2006-06-07  Peter Dennis Bartok  <pbartok@novell.com>

* RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
  values

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

18 years ago2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Gonzalo Paniagua Javier [Wed, 7 Jun 2006 17:53:31 +0000 (17:53 -0000)]
2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
statement to avoid calling XNextEvent which will block if another thread
took the event that we were expecting. Fixes bug #78605.

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

18 years ago* tramp-s390.c: Fix s390 build (add missing pointer declarations
Wade Berrier [Wed, 7 Jun 2006 16:24:01 +0000 (16:24 -0000)]
* tramp-s390.c: Fix s390 build (add missing pointer declarations
in mono_debugger_create_notification_function)

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

18 years ago2006-06-07 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 7 Jun 2006 15:42:49 +0000 (15:42 -0000)]
2006-06-07  Mike Kestner  <mkestner@novell.com>

* ListView.cs : isolated checkbox clicking from the selection logic.
Toggle check state on item doubleclicks.  Really fixes #78454 part2.

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

18 years ago2006-06-07 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Wed, 7 Jun 2006 15:25:12 +0000 (15:25 -0000)]
2006-06-07 Juraj Skripsky <js@hotfeet.ch>

   * HttpException.cs (GetHtmlizedErrorMessage): Beautify compilation error
   page by showing multiple errors on separate lines.

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

18 years ago2006-06-07 Lluis Sanchez Gual <lluis@novell.com>
Lluis Sanchez [Wed, 7 Jun 2006 14:33:48 +0000 (14:33 -0000)]
2006-06-07  Lluis Sanchez Gual  <lluis@novell.com>

* XmlTypeMapMember.cs: Added GlobalIndex property.
* XmlTypeMapping.cs: When adding a member, initialize its GlobalIndex
  property.
* SerializationCodeGenerator.cs:
* XmlSerializationWriterInterpreter.cs:
* XmlSerializationReaderInterpreter.cs: Use GlobalIndex instead of
  Index to get/set the values from the input array, since some Index
  values are shared between attribute and element members. Fixes
  bug #78562.

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

18 years ago2006-06-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 Jun 2006 14:00:46 +0000 (14:00 -0000)]
2006-06-07  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPathTest.cs: Added test cases for IsOutlineVisible methods.

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

18 years ago2006-06-07 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 7 Jun 2006 13:59:36 +0000 (13:59 -0000)]
2006-06-07  Sebastien Pouliot  <sebastien@ximian.com>

* GraphicsPath.cs: IsOutlineVisible throws ArgumentNullException
if a null pen is supplied. Update/remove some MonoTODO on
IsOutlineVisible methods.

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

18 years ago* err-abstract.il: Make the class abstract.
Ankit Jain [Wed, 7 Jun 2006 13:43:58 +0000 (13:43 -0000)]
* err-abstract.il: Make the class abstract.

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

18 years agoIn ilasm/tests:
Ankit Jain [Wed, 7 Jun 2006 13:22:15 +0000 (13:22 -0000)]
In ilasm/tests:

* test-no-body.il: New. Test for method with no body.
* test-perm-pass-3.il: Make the class abstract.

In ilasm/codegen:
* TypeDef.cs (TypeDef.IsAbstract): New.
* MethodDef.cs (MethodDef.WriteCode): Parent type must also be abstract
for an abstract method. Abstract methods cannot have a body.
Report errors for body with different implementation attributes like
native/runtime/unmanaged etc.
If the method has no body, then emit a 'ret'.

In ilasm/errors:

* err-native.il:
* err-pinvoke-a.il:
* err-abstract.il:
* err-runtime.il:
* err-internalcall.il: New.

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

18 years agomono-service.cs: Run service using AppDomain.ExecuteAssembly () to ensure EntryPoint...
Kornél Pál [Wed, 7 Jun 2006 12:43:36 +0000 (12:43 -0000)]
mono-service.cs: Run service using AppDomain.ExecuteAssembly () to ensure EntryPoint signature compatibility with the runtime.

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

18 years agoIn ilasm/codegen:
Ankit Jain [Wed, 7 Jun 2006 10:10:39 +0000 (10:10 -0000)]
In ilasm/codegen:

* TypeDef.cs (TypeDef.AddFieldDef):
(TypeDef.Define): Use Report.Warning instead of Console.Error.WriteLine
(TypeDef.AddMethodDef): Likewise. Also, use methoddef.Location .
* ExternTable.cs (ExternTable.GetTypeRef): Likewise.
* MethodDef.cs (MethodDef.StartLocation): New.

In ilasm:

* Report.cs (Report.FilePath): New, static property.
(Report.Error): Remove overload with file_path param.
(Report.Warning): New.
* Driver.cs (DriverMain.Run): Set Report.FilePath .
(DriverMain.ProcessFile): Update use of Report.Error .

In ilasm/parser:

* ILParser.jay : Update to use Report.Warning instead of
Console.Error.WriteLine

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

18 years agoConsts.cs.in: Removed RuntimeVersion as it should be the same as FxFileVersion. Use...
Kornél Pál [Wed, 7 Jun 2006 09:28:42 +0000 (09:28 -0000)]
Consts.cs.in: Removed RuntimeVersion as it should be the same as FxFileVersion. Use FxFileVersion for Environment.Version.; Environment.cs: Use Consts.FxFileVersion for Environment.Version as Consts.RuntimeVersion was removed.; AssemblyInfo.cs: Use Consts.FxFileVersion for AssemblyFileVersion.

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