mono.git
17 years ago2007-05-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 May 2007 16:36:07 +0000 (16:36 -0000)]
2007-05-24  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_custom_attrs_from_builders): Remove the
assertion as it breaks the build.

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

17 years ago2007-05-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 May 2007 16:26:47 +0000 (16:26 -0000)]
2007-05-24  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_custom_attrs_from_builders): Add an assertion.

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

17 years ago2007-05-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Thu, 24 May 2007 16:21:47 +0000 (16:21 -0000)]
2007-05-24  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (lookup_custom_attr): Make a copy here too.

* image.c (mono_image_check_for_module_cctor): Avoid accessing metadata in
dynamic images.

* class.c (mono_class_init): Avoid accessing the metadata in dynamic
images.

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

17 years ago2007-05-24 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Thu, 24 May 2007 16:20:37 +0000 (16:20 -0000)]
2007-05-24 Igor Zelmanovich <igorz@mainsoft.com>

* Menu.cs: fixed: alt attribute is rendered as well.

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

17 years agofixed line ending
Igor Zelmanovich [Thu, 24 May 2007 16:07:18 +0000 (16:07 -0000)]
fixed line ending

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

17 years ago2007-05-24 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Thu, 24 May 2007 14:53:33 +0000 (14:53 -0000)]
2007-05-24  Jonathan Pobst  <monkey@jpobst.com>

* ContainerControl.cs: Don't check CanSelect before calling
ProcessMnemonic.
* ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
release a KeyboardActive on click if it's not ours.

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

* ContainerControlTest.cs: Test to show ProcessMnemonic is called
regardless of CanSelect.

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

17 years ago2007-05-24 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Thu, 24 May 2007 12:56:18 +0000 (12:56 -0000)]
2007-05-24  Sebastien Pouliot  <sebastien@ximian.com>

* TestGraphics.cs: Add test cases for the normal behaviour of
FillRectangles.

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

17 years ago2007-05-24 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Thu, 24 May 2007 12:55:14 +0000 (12:55 -0000)]
2007-05-24  Marek Habersack  <mhabersack@novell.com>

* PageParser.cs: added support for the PreviousPageType
directive.

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

* PageCompiler.cs: added support for the PreviousPageType directive.

* Directive.cs: as above.

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

17 years agoset current ServiceDescription to the ConformanceCheckContext
Konstantin Triger [Thu, 24 May 2007 09:49:27 +0000 (09:49 -0000)]
set current ServiceDescription to the ConformanceCheckContext

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

17 years agofix typo: set IsNullable flag for primitiveNullableTypes
Konstantin Triger [Thu, 24 May 2007 08:50:24 +0000 (08:50 -0000)]
fix typo: set IsNullable flag for primitiveNullableTypes

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

17 years ago* UnmanagedMemoryStreamTest.cs: Fixed several tests and added several
Gert Driesen [Thu, 24 May 2007 08:14:45 +0000 (08:14 -0000)]
* UnmanagedMemoryStreamTest.cs: Fixed several tests and added several
more. Tests were previously ignored by NUnit because the SetUp method
was private.
* UnmanagedMemoryStream.cs: Changed argument names and exceptions
(msg, params) to match MS. Verify access argument in ctor.

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

17 years ago2007-05-23 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Gonzalo Paniagua Javier [Thu, 24 May 2007 05:51:39 +0000 (05:51 -0000)]
2007-05-23 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>

* Context.cs: fix the calculation of the unix time.

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

17 years ago* PrintingServicesWin32.cs: Pass 0 as mode to DocumentProperties to
Gert Driesen [Thu, 24 May 2007 03:57:03 +0000 (03:57 -0000)]
* PrintingServicesWin32.cs: Pass 0 as mode to DocumentProperties to
obtain the size of the buffer required to hold the DEVMODE structure.
Fixes bug #81723.

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

17 years ago2007-05-23 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Thu, 24 May 2007 02:00:30 +0000 (02:00 -0000)]
2007-05-23  Andreia Gaita <avidigal@novell.com>

* ResXResourceReaderTest.cs, CompatTest.cs: Fix tests so they can run
in make run-test and with the tests scripts.

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

17 years ago2007-05-23 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Thu, 24 May 2007 01:59:25 +0000 (01:59 -0000)]
2007-05-23  Andreia Gaita <avidigal@novell.com>

* ResXResourceReader.cs: Ignore comment nodes, for now. Fixes
for failing tests.

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

17 years ago2007-05-23 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Thu, 24 May 2007 01:55:10 +0000 (01:55 -0000)]
2007-05-23  Andreia Gaita  <avidigal@novell.com>

* ColumnHeader.cs: Add TypeConverter

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

17 years ago * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
Everaldo Canuto [Thu, 24 May 2007 01:18:28 +0000 (01:18 -0000)]
* LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
Everaldo Canuto [Thu, 24 May 2007 01:00:59 +0000 (01:00 -0000)]
* LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago * LinkLabel.cs: Implement public Padding property.
Everaldo Canuto [Thu, 24 May 2007 00:57:35 +0000 (00:57 -0000)]
* LinkLabel.cs: Implement public Padding property.

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago2007-05-23 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Thu, 24 May 2007 00:53:33 +0000 (00:53 -0000)]
2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

* LinkLabel.cs: Implement public FlatStyle.

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

17 years agomcs/class.cs: gmcs/cs-parser.jay: Implemented automatic properties (C#
Scott Thomas [Wed, 23 May 2007 23:07:49 +0000 (23:07 -0000)]
mcs/class.cs: gmcs/cs-parser.jay: Implemented automatic properties (C#
3.0)

errors/gcs0271.cs: errors/gcs0272.cs: Test automatic properties for
proper access control.

tests/gtest-autoproperty-01.cs: tests/gtest-autoproperty-02.cs:
tests/gtest-autoproperty-03.cs: Tests for automatic properties.

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

17 years ago2007-05-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 May 2007 22:47:58 +0000 (22:47 -0000)]
2007-05-24  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (mono_custom_attrs_from_param): Make a copy of the dynamic attr
info.

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

17 years ago2007-05-24 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 May 2007 21:54:11 +0000 (21:54 -0000)]
2007-05-24  Zoltan Varga  <vargaz@gmail.com>

* delegate.cs: Add a multicast delegate test.

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

17 years ago2007-05-23 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Wed, 23 May 2007 21:47:20 +0000 (21:47 -0000)]
2007-05-23  Zoltan Varga  <vargaz@gmail.com>

* pinvoke2.cs libtest.c: Fix up asany in/out tests.

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

17 years ago2007-05-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 23 May 2007 21:38:59 +0000 (21:38 -0000)]
2007-05-23  Jonathan Pobst  <monkey@jpobst.com>

* TestHelper.cs: Remove reference to event_log from constructor.

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

17 years ago2007-05-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 23 May 2007 20:27:13 +0000 (20:27 -0000)]
2007-05-23  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Apply patch from George to call parent.PerformLayout
when Visible is changed.  [Fixes bugs #81118, 81718]

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

* ControlTest.cs: Add test to show that setting a control's Visible
property causes it's parent to relayout.

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

17 years ago2007-05-23 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 23 May 2007 20:23:34 +0000 (20:23 -0000)]
2007-05-23  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayout.cs: Take parent's padding into account when docking
children.

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

* DefaultLayoutTest.cs: Add test for docking when parent has Padding.

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

17 years ago * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
Everaldo Canuto [Wed, 23 May 2007 20:10:28 +0000 (20:10 -0000)]
* MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago * TestHelper.cs: Remove Event log we already have a EventLogger class.
Everaldo Canuto [Wed, 23 May 2007 20:08:52 +0000 (20:08 -0000)]
* TestHelper.cs: Remove Event log we already have a EventLogger class.

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago* ThreadTest.cs: Added test for bug #81720. Improved test for
Gert Driesen [Wed, 23 May 2007 19:08:04 +0000 (19:08 -0000)]
* ThreadTest.cs: Added test for bug #81720. Improved test for
bug #81658. Added test for changing ApartmentState on background
thread.

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

17 years ago2007-05-23 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Wed, 23 May 2007 19:02:15 +0000 (19:02 -0000)]
2007-05-23  Andreia Gaita <avidigal@novell.com>

* ResXResourceReader.cs: Fix CDATA detection

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

17 years ago * TestHelper.cs: Event log added.
Everaldo Canuto [Wed, 23 May 2007 17:51:30 +0000 (17:51 -0000)]
* TestHelper.cs: Event log added.

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago2007-05-23 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 23 May 2007 17:22:24 +0000 (17:22 -0000)]
2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

* ContextMenuTest.cs: ContextMenu tests added.

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

17 years ago * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
Everaldo Canuto [Wed, 23 May 2007 17:12:09 +0000 (17:12 -0000)]
* ContextMenu.cs: Implement ProcessCmdKey with control parameter.

2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

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

17 years ago2007-05-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 May 2007 17:03:37 +0000 (17:03 -0000)]
2007-05-23  Sebastien Pouliot  <sebastien@ximian.com>

* Makefile: Add a 2bpp PNG test file to the dist.

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

17 years ago2bpp PNG test file
Sebastien Pouliot [Wed, 23 May 2007 17:02:21 +0000 (17:02 -0000)]
2bpp PNG test file

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

17 years ago2007-05-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 May 2007 17:01:38 +0000 (17:01 -0000)]
2007-05-23  Sebastien Pouliot  <sebastien@ximian.com>

* PngCodecTest.cs: Add test cases for 2bpp PNG images. Add some
palette assertions in 1bpp and 4bpp test cases.

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

17 years agoRemove accidentally return statement
Everaldo Canuto [Wed, 23 May 2007 16:36:26 +0000 (16:36 -0000)]
Remove accidentally return statement

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

17 years ago2007-05-23 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 23 May 2007 16:28:22 +0000 (16:28 -0000)]
2007-05-23  Marek Habersack  <mhabersack@novell.com>

* TemplateParser.cs: use VirtualPathUtility.Combine to properly
create the custom control's virtual path.

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

17 years ago2007-05-23 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 23 May 2007 15:56:08 +0000 (15:56 -0000)]
2007-05-23  Everaldo Canuto  <ecanuto@novell.com>

* ContextMenu.cs: Implement Collapse.

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

17 years agoFix last changelog patch
Everaldo Canuto [Wed, 23 May 2007 15:52:38 +0000 (15:52 -0000)]
Fix last changelog patch

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

17 years agoFix last changelog patch
Everaldo Canuto [Wed, 23 May 2007 15:32:01 +0000 (15:32 -0000)]
Fix last changelog patch

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

17 years ago* ToolBarButtonTest.cs: Added test for Name.
Rolf Bjarne Kvinge [Wed, 23 May 2007 15:29:32 +0000 (15:29 -0000)]
* ToolBarButtonTest.cs: Added test for Name.

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

17 years ago* ToolBarButton.cs: Implement Name.
Rolf Bjarne Kvinge [Wed, 23 May 2007 15:28:04 +0000 (15:28 -0000)]
* ToolBarButton.cs: Implement Name.

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

17 years ago2007-05-22 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Wed, 23 May 2007 15:24:39 +0000 (15:24 -0000)]
2007-05-22  Everaldo Canuto  <ecanuto@novell.com>

* ToolBar.cs: Prevent context menu to be typed as MainMenu. Fixes #81675.

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

17 years ago2007-05-23 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Wed, 23 May 2007 14:38:40 +0000 (14:38 -0000)]
2007-05-23  Sebastien Pouliot  <sebastien@ximian.com>

* PreviewPrintController.cs: Reduce bitmap size and avoid scaling the
print preview (fix bug #80765). Patch from Vladimir Dimitrov.
* PrintingServicesUnix.cs: Reorder calculation to avoid loss of
precision in integer division. Use printer resolution for Cairo
fallback. Patch from Vladimir Dimitrov.

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

17 years agoyuck.
Atsushi Eno [Wed, 23 May 2007 13:59:26 +0000 (13:59 -0000)]
yuck.

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

17 years ago2007-05-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 23 May 2007 13:49:28 +0000 (13:49 -0000)]
2007-05-23  Atsushi Enomoto  <atsushi@ximian.com>

* Array.cs : reverting Array.cs fixes since the runtime depends on
  those method attributes.

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

17 years ago* flowanalysis.cs (VariableInfo.SetAssigned): When noting a
Raja R Harinath [Wed, 23 May 2007 13:46:29 +0000 (13:46 -0000)]
* flowanalysis.cs (VariableInfo.SetAssigned): When noting a
variable as assigned, note also that all its components are assigned too.
(MyBitVector.SetRange): New.  Function to set multiple bits to true.

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

17 years ago2007-05-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 23 May 2007 13:24:12 +0000 (13:24 -0000)]
2007-05-23  Atsushi Enomoto  <atsushi@ximian.com>

* Int16.cs UInt64.cs UIntPtr.cs Double.cs CrossAppDomainDelegate.cs
  ResolveEventHandler.cs IntPtr.cs UnhandledExceptionEventHandler.cs
  Void.cs AssemblyLoadEventHandler.cs SByte.cs UInt16.cs DateTime.cs
  Byte.cs TimeSpan.cs Decimal.cs Int32.cs Delegate.cs
  AppDomainInitializer.cs MulticastDelegate.cs Int64.cs
  EventHandler.cs Single.cs UInt32.cs AsyncCallback.cs :
  cosmetic attribute fixes (ComVisible/Serializable).

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

17 years ago2007-05-22 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 23 May 2007 10:40:09 +0000 (10:40 -0000)]
2007-05-22  Atsushi Enomoto  <atsushi@ximian.com>

* Convert.cs : completed 2.0 (ToBase64CharArray).
* String.cs : removed MonoTODO.
* DataMisalignedException.cs : removed extra .ctor().
* Array.cs : internalize extra members. Fixed reliability contract.

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

17 years ago2007-05-23 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Wed, 23 May 2007 04:31:06 +0000 (04:31 -0000)]
2007-05-23  Atsushi Enomoto  <atsushi@ximian.com>

* UnmanagedMemoryStream.cs : couple of bugfixes. in Read(), don't
  return buffer beyond the requested length. Fixed .ctor() for wrong
  capacity initialization.

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

17 years ago2007-05-22 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Wed, 23 May 2007 01:20:57 +0000 (01:20 -0000)]
2007-05-22  Andreia Gaita  <avidigal@novell.com>

* NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
without updating the text.

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

17 years ago2007-05-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 22 May 2007 21:58:39 +0000 (21:58 -0000)]
2007-05-22  Jonathan Pobst  <monkey@jpobst.com>

* XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
without calling DeleteObject.  [Should fix bug #81709]

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

17 years ago2007-05-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 May 2007 21:27:50 +0000 (21:27 -0000)]
2007-05-22  Sebastien Pouliot  <sebastien@ximian.com>

* GDIPlusTest.cs: Add test cases for GdipCreateFromHDC when HDC is
NULL. This match MS behavior as seen in (unfixed) bug #81709.

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

17 years ago * RichTextBox.cs: Set the line endings correctly, when flushing
Jackson Harper [Tue, 22 May 2007 20:03:10 +0000 (20:03 -0000)]
    * RichTextBox.cs: Set the line endings correctly, when flushing
        RTF text.

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

17 years ago* XplatUIX11.cs: MinimumWindowSize on X11 is actually
Gert Driesen [Tue, 22 May 2007 19:29:47 +0000 (19:29 -0000)]
* XplatUIX11.cs: MinimumWindowSize on X11 is actually
{Width=0,Height=0}.
* FormTest.cs: Renamed FormCantGetTooSmall test and use comparison
with SystemInformation.MinimumWindowSize. Enable test.

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

17 years ago* FormTest.cs: Added ShowDialogCloseTest.
Rolf Bjarne Kvinge [Tue, 22 May 2007 18:50:20 +0000 (18:50 -0000)]
* FormTest.cs: Added ShowDialogCloseTest.

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

17 years ago * TreeView.cs: Setting top with a null node should set to the
Jackson Harper [Tue, 22 May 2007 18:42:36 +0000 (18:42 -0000)]
    * TreeView.cs: Setting top with a null node should set to the
        * very
        top.

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

17 years ago* Form.cs: ShowDialog: destroy the handle when message loop is
Rolf Bjarne Kvinge [Tue, 22 May 2007 18:35:26 +0000 (18:35 -0000)]
* Form.cs: ShowDialog: destroy the handle when message loop is
  finished, matches MS behaviour. Refactor parts of WmClose into
  RaiseCloseEvents, that only raises events if they haven't already
  been raised. Fixes #81688 and #81521.
* Application.cs: Don't call close on the form when exiting a modal
  loop, it will raise all the (Form)Closed/Closing events again if
  WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
  which doesn'r raise any events it they have been raised before.

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

17 years ago2007-05-22 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Tue, 22 May 2007 17:36:59 +0000 (17:36 -0000)]
2007-05-22  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Add OnPrint.
* ToolStrip.cs: Add GetChildAtPoint.
* ToolStripContainer.cs: Add OnRightToLeftChanged.
* ToolStripRenderer.cs: Make CreateMirrorImage internal.

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

17 years ago2007-05-22 Everaldo Canuto <ecanuto@novell.com>
Everaldo Canuto [Tue, 22 May 2007 17:31:26 +0000 (17:31 -0000)]
2007-05-22  Everaldo Canuto  <ecanuto@novell.com>

* MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.

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

17 years ago2007-05-22 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Tue, 22 May 2007 17:25:07 +0000 (17:25 -0000)]
2007-05-22  Jonathan Chambers  <joncham@gmail.com>

        * Thread.cs: Use & to check ThreadState rather than ==.
        Fixes AlbumSurfer regression.

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

17 years ago2007-05-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 May 2007 16:24:45 +0000 (16:24 -0000)]
2007-05-22  Zoltan Varga  <vargaz@gmail.com>

* reflection.c (encode_cattr_value): Fix yet another object cattr encoding issue.
(load_cattr_value): Ditto.

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

17 years ago* InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
Rolf Bjarne Kvinge [Tue, 22 May 2007 15:04:34 +0000 (15:04 -0000)]
* InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
  isn't visible anymore. Fixes #81651.

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

17 years ago* Control.cs: WmShowWindow: Update children's z-order after setting
Rolf Bjarne Kvinge [Tue, 22 May 2007 14:54:55 +0000 (14:54 -0000)]
* Control.cs: WmShowWindow: Update children's z-order after setting
  their parent. SetParent may show the window, thereby corrupting
  z-order, since the window will be shown on top.
* XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
  multiple (and redundant) WM_SHOWWINDOW messages.
* MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
  event has already been raised.
* Form.cs: Change is_changing_visible_state to a counter, since
  SetVisibleCore can be called recursively. CreateHandle: when
  creating mdi children, send (De)Activated events.
* MdiClient.cs: Update use of is_changing_visible_state.
* Application.cs: OnThreadException: Surround exception handling with
  try/finally to ensure we always reset the error-handling state
  before leaving.

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

17 years ago2007-05-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 May 2007 14:06:00 +0000 (14:06 -0000)]
2007-05-22  Sebastien Pouliot  <sebastien@ximian.com>

* TlsClientCertificate.cs: Add chain support for x.509 client
certificates. Based on Roy Versteeg patch to fix #80557.

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

17 years ago2007-05-22 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 22 May 2007 14:05:09 +0000 (14:05 -0000)]
2007-05-22  Sebastien Pouliot  <sebastien@ximian.com>

* TlsClientCertificate.cs: If possible avoid to export the private key
(it could be non-exportable in a different RSA class implementation).
Patch from Roy Versteeg to fix #81592.
* TlsClientCertificateVerify.cs: Add chain support for x.509 client
certificates. Based on Roy Versteeg patch to fix #80557.

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

17 years ago2007-05-22 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Tue, 22 May 2007 13:05:17 +0000 (13:05 -0000)]
2007-05-22  Zoltan Varga  <vargaz@gmail.com>

* mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
icompare_imm -128 + op_iclt. Fixes #81703.

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

17 years ago2007-05-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 May 2007 12:21:43 +0000 (12:21 -0000)]
2007-05-22  Marek Habersack  <mhabersack@novell.com>

* TemplateBuilder.cs: in the absence of containerAttribute,
default to two-way binding direction.

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

17 years ago2007-05-22 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 22 May 2007 11:09:14 +0000 (11:09 -0000)]
2007-05-22  Marek Habersack  <mhabersack@novell.com>

* UserControlCompiler.cs: the Profile property should be present
also in user controls.

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

17 years ago* ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
Rolf Bjarne Kvinge [Tue, 22 May 2007 09:35:47 +0000 (09:35 -0000)]
* ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
  (#81704).

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

17 years ago2007-05-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 22 May 2007 00:34:28 +0000 (00:34 -0000)]
2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
SmallIcon views, now that we have a standarized horizontal spacing.

* ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
4, just like the other views (Match .Net).

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

17 years ago2007-05-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 21 May 2007 19:20:29 +0000 (19:20 -0000)]
2007-05-21  Jonathan Pobst  <monkey@jpobst.com>

* FormTest.cs: Mark FormCantGetTooSmall as NotWorking.  It only applies to Windows.

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

17 years ago* MethodBuilderTest.cs: Split up GetCustomAttributes test and marked
Gert Driesen [Mon, 21 May 2007 18:54:02 +0000 (18:54 -0000)]
* MethodBuilderTest.cs: Split up GetCustomAttributes test and marked
the one for a baked type as NotWorking. Added test for
SetCustomAttribute with SuppressUnmanagedCodeSecurity attribute.
* TypeBuilderTest.cs: Split up HasElementType test and marked the
baked variant as NotWorking on the 1.0 profile. Enabled additional
test for bug #81640. Added test for SetCustomAttribute with
SuppressUnmanagedCodeSecurity attribute.
* TypeBuilder.cs: Changed HasElementTypeImpl to return false on 2.0
profile when type is not baked.

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

17 years ago2007-05-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 21 May 2007 18:07:37 +0000 (18:07 -0000)]
2007-05-21  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Delay calculating anchor distances until we actually layout.
Always query the WM for the actual size and location it put us at instead of
only when we send negative values.
[Fixes bugs #81694, 81695]

2007-05-21  Jonathan Pobst  <monkey@jpobst.com>

* DefaultLayoutTest.cs: Tests for bugs 81694, 81695.
* FormTest.cs: Test setting the form size smaller than the WM will
allow it.

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

17 years ago2007-05-21 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 21 May 2007 16:30:43 +0000 (16:30 -0000)]
2007-05-21  Chris Toshok  <toshok@ximian.com>

* DataBindingTests.cs (TestColumnAdd): enable this test.  the
system.data changes required are in, and it works now.

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

17 years ago2007-05-21 Andreia Gaita <avidigal@novell.com>
Andreia Gaita [Mon, 21 May 2007 16:18:13 +0000 (16:18 -0000)]
2007-05-21  Andreia Gaita  <avidigal@novell.com>

* ResXDataNode.cs: Added
* ResXResourceWriter.cs: Add 2.0 support for ResXDataNode resource.
* ResXResourceReader.cs: Added support for comment nodes (coming from
ResXDataNode), fix bug on GetDataValue, refactor code to guidelines.

Test/System.Resources

* ResXDataNodeTest.cs: added 2.0 tests

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

17 years agooops, fix the build
Jb Evain [Mon, 21 May 2007 14:40:09 +0000 (14:40 -0000)]
oops, fix the build

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

17 years ago2007-05-21 Jb Evain <jb@nurv.fr>
Jb Evain [Mon, 21 May 2007 14:21:23 +0000 (14:21 -0000)]
2007-05-21  Jb Evain  <jb@nurv.fr>

* TypeBuilder.cs
  MethodBuilder.cs:
Tag methods and types as HasSecurity when adding a
SuppressUnmanagedCodeSecurityAttribute on them.
Makes peverify happy.

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

17 years ago2007-05-21 Dick Porter <dick@ximian.com>
Dick Porter [Mon, 21 May 2007 11:58:43 +0000 (11:58 -0000)]
2007-05-21  Dick Porter  <dick@ximian.com>

* io-portability.c (_wapi_g_dir_open): Don't propagate any errors
from the second call to g_dir_open, preserve the original error if
the second call still fails but clear the error if it succeeds.

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

17 years ago2007-05-21 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Mon, 21 May 2007 11:48:14 +0000 (11:48 -0000)]
2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com>

* VBCodeCompiler.cs: Make sure there are spaces between all options in the command line arguments..

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

17 years ago* HttpContext.cs: added ProfileInitialized boolean property
Vladimir Krasnov [Mon, 21 May 2007 11:19:47 +0000 (11:19 -0000)]
* HttpContext.cs: added ProfileInitialized boolean property
* ProfileModule.cs: OnLeave checks if Profile was accessed during a request

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

17 years ago2007-05-21 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 21 May 2007 11:03:19 +0000 (11:03 -0000)]
2007-05-21 Igor Zelmanovich <igorz@mainsoft.com>

* ControlTest.cs: added new tests.

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

17 years ago2007-05-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
Rolf Bjarne Kvinge [Mon, 21 May 2007 10:19:05 +0000 (10:19 -0000)]
2007-05-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>

* CustomDataClassGenerator.cs: Misc fixes in order to emit correct VB code.
CreateDataSetDefaultCtor: we're creating a delegate, not an object, so use a DelegateCreateExpression.
CreateDataSetSchemaChanged: we're comparing value types, use the correct equality operator.
CreateTableGetEnumerator: explicity state that the method is an implementation of IEnumerable.GetEnumerator.
CreateTableEventStarter: we're invoking a delegate, so use a DelegateInvokeExpression.
Several changes to not generate members with names that only differ by case.

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

17 years ago* Application.cs: Avoid a possible stack overflow when trying to exit
Rolf Bjarne Kvinge [Mon, 21 May 2007 10:02:16 +0000 (10:02 -0000)]
* Application.cs: Avoid a possible stack overflow when trying to exit
  the application.

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

17 years ago2007-05-21 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Mon, 21 May 2007 09:43:14 +0000 (09:43 -0000)]
2007-05-21  Adar Wesley <adarw@mainsoft.com>

        * DirectoryEntry.cs: added missing methods InvokeGet, InvokeSet.

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

17 years ago2007-05-21 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Mon, 21 May 2007 08:26:57 +0000 (08:26 -0000)]
2007-05-21  Adar Wesley <adarw@mainsoft.com>

* Graphics.jvm.cs
* Pen.jvm.cs
* Region.jvm.cs: Changed MemberwiseClone to clone.
* Matrix.jvm.cs: changed MemberwiseClone to clone.
* LineLayout.jvm.cs: change MemberwiseClone to clone.

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

17 years ago2007-05-21 Adar Wesley <adarw@mainsoft.com>
Adar Wesley [Mon, 21 May 2007 08:15:28 +0000 (08:15 -0000)]
2007-05-21  Adar Wesley <adarw@mainsoft.com>

        * Font.jvm.cs: added implementation for Equals and GetHashCode.

        * Graphics.jvm.cs: added missing DrawImage overloads,
        DrawImageUnscaledAndClipped.

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

17 years ago2007-05-21 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Mon, 21 May 2007 08:08:19 +0000 (08:08 -0000)]
2007-05-21 Igor Zelmanovich <igorz@mainsoft.com>

* DataSourceView.cs: refactoring: Update, Insert methods:
exception is re-thrown from catch scope.
It allows actual call stack be shown

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

17 years agoIn Test/System.Data:
Chris Toshok [Mon, 21 May 2007 04:57:02 +0000 (04:57 -0000)]
In Test/System.Data:
2007-05-18  Chris Toshok  <toshok@ximian.com>

* DataViewTest.cs (DefaultColumnNameAddListChangedTest): new test
for figuring out the sorts of events raised between 1.1 and 2.0
when you add a column with the default name.

In System.Data:
2007-05-18  Chris Toshok  <toshok@ximian.com>

* DataColumnCollection.cs (Add ()): handle the default name case
in Add(DataColumn).
(Add (string)): same - let Add(DataColumn) handle the default name
setting.
(Add (DataColumn)): in the 1.1 case, we need to add the column's
PropertyChanged handler *before* possibly setting the column name
to the default so we emit the right events (Changed/Added).  In
the 2.0 case, we add the event handler after the name is set, and
therefore only emit the Added event.

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

17 years ago2007-05-21 Atsushi Enomoto <atsushi@ximian.com>
Atsushi Eno [Mon, 21 May 2007 02:15:18 +0000 (02:15 -0000)]
2007-05-21  Atsushi Enomoto  <atsushi@ximian.com>

* SerialPort.cs : slightly boring 2.0 attributes.

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

17 years ago* DoubleTest.cs: Use Assert instead of deprecated Assertion. Code
Gert Driesen [Sun, 20 May 2007 20:43:43 +0000 (20:43 -0000)]
* DoubleTest.cs: Use Assert instead of deprecated Assertion. Code
style fixes. Added test for bug #81630. Fixed culture-sensitive
tests.

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

17 years ago2007-05-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 May 2007 19:58:35 +0000 (19:58 -0000)]
2007-05-20  Zoltan Varga  <vargaz@gmail.com>

* marshal.c (mono_marshal_get_delegate_invoke): Improve the generated IL a little.

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

17 years ago2007-05-20 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sun, 20 May 2007 19:41:51 +0000 (19:41 -0000)]
2007-05-20  Zoltan Varga  <vargaz@gmail.com>

* amd64/amd64-codegen.h (amd64_call_reg): Remove a got prefix which isn't needed.

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

17 years agoRequest Uri fixing to context root path
Vladimir Krasnov [Sun, 20 May 2007 15:32:26 +0000 (15:32 -0000)]
Request Uri fixing to context root path

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

17 years agoinit context with current checker
Konstantin Triger [Sun, 20 May 2007 14:36:40 +0000 (14:36 -0000)]
init context with current checker

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

17 years ago2007-05-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Sat, 19 May 2007 21:55:45 +0000 (21:55 -0000)]
2007-05-19  Marek Safar  <marek.safar@gmail.com>

* modifiers.cs:
(Check): Check only accessibility modifiers.

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

17 years agoIn Test:
Robert Jordan [Sat, 19 May 2007 21:48:28 +0000 (21:48 -0000)]
In Test:
2007-05-19  Robert Jordan  <robertj@gmx.net>

* IpcChannelTest.cs: Add test for bug #81653.

In .:
2007-05-19  Robert Jordan  <robertj@gmx.net>

* System.Runtime.Remoting_test.dll.sources: add IpcChannelTest.cs

* Add System.Runtime.Remoting.vmwcsproj and System.Runtime.Remoting.sln
* AssemblyInfo.cs: only TARGET_JVM changes

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

17 years ago2007-05-19 Zoltan Varga <vargaz@gmail.com>
Zoltan Varga [Sat, 19 May 2007 19:57:07 +0000 (19:57 -0000)]
2007-05-19  Zoltan Varga  <vargaz@gmail.com>

* mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.

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