mono.git
17 years agoConvert jgac to java_refs, and jre6 to jre
Noam Lampert [Wed, 21 Mar 2007 21:29:28 +0000 (21:29 -0000)]
Convert jgac to java_refs, and jre6 to jre

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

17 years ago2007-03-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 21 Mar 2007 21:14:03 +0000 (21:14 -0000)]
2007-03-21  Marek Habersack  <mhabersack@novell.com>
* TemplateParser.cs: Added support for the CodeFileBaseClass directive. Fixes bug #81132

2007-03-21  Marek Habersack  <mhabersack@novell.com>

* BaseCompiler.cs: cast 'this' to CodeFileBaseClass in
AssignAppRelativeVirtualPath if the attribute was defined.

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

17 years ago2007-03-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 21 Mar 2007 18:06:59 +0000 (18:06 -0000)]
2007-03-21  Jonathan Pobst  <monkey@jpobst.com>

* Control.cs: Don't trigger a layout if an implicit control is added
that isn't visible.  Also, don't notify the owner when an implicit control
is added.  (Owners shouldn't even know about their implicit controls.)

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

17 years ago2007-03-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 21 Mar 2007 17:49:30 +0000 (17:49 -0000)]
2007-03-21  Jonathan Pobst  <monkey@jpobst.com>

* ScrollableControl.cs: Add implicit controls with AddRangeImplicit
to save some re-layouts.

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

17 years ago2007-03-21 Jonathan Chambers <joncham@gmail.com>
Jonathan Chambers [Wed, 21 Mar 2007 17:03:04 +0000 (17:03 -0000)]
2007-03-21  Jonathan Chambers  <joncham@gmail.com>

* marshal.c: Add support for PreserveSigAttribute.

Code is contributed under MIT/X11 license.

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

17 years ago * RTF.cs: Make sure the image token gets set.
Jackson Harper [Wed, 21 Mar 2007 16:50:27 +0000 (16:50 -0000)]
    * RTF.cs: Make sure the image token gets set.

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

17 years agoset noParams if found a parameterless method
Konstantin Triger [Wed, 21 Mar 2007 16:45:49 +0000 (16:45 -0000)]
set noParams if found a parameterless method

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

17 years ago2007-03-21 Bill Holmes <billholmes54@gmail.com>
Bill Holmes [Wed, 21 Mar 2007 16:36:09 +0000 (16:36 -0000)]
2007-03-21  Bill Holmes  <billholmes54@gmail.com>
In mcs :
        * class.cs:
        Added 2 MemberCoreArrayList objects, ordered_explicit_member_list and
        ordered_member_list, to TypeBuilder to store members to be defined
        in the order they were parsed in.
        - ordered_explicit_member_list contains all properties indexers
          and methods that are defined as explicit implementation of an
          interface or base class.
        - ordered_member_list contains all properties indexers and methods
          that are not defined as explicit implementation of an interface
          or base class.

        Removed MethodArrayList and IndexerArrayList from TypeBuilder.  The
        functionality in these removed classes has been replaced with
        ComputeIndexerName, EmitIndexerName, HasEqualss, HasGetHashCode, and
        CheckEqualsAndGetHashCode members defined and called in the TypeBuilderClass.

        Adding CheckForDuplications to PropertyBase.PropertyMethod and calls
        to CheckForDuplications inside GetMethod and SetMethod Define Method
        to handle method property and indexer name conflicts.

In errors :
        * gcs0111-2.cs:
        With the new member ordering change in class.cs, the error message
        for this test has changed and now matches csc output.

        Fixes #79434

        All code is contributed under the MIT/X11 license.

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

17 years agoChange fail message to make greping easier
Miguel de Icaza [Wed, 21 Mar 2007 16:30:51 +0000 (16:30 -0000)]
Change fail message to make greping easier

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

17 years agoadd support for the 2.0 feature, which enables declaring WebService/WebMethods attrib...
Konstantin Triger [Wed, 21 Mar 2007 16:18:58 +0000 (16:18 -0000)]
add support for the 2.0 feature, which enables declaring WebService/WebMethods attributes in interface

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

17 years agoenable looking the documents up by namespace
Konstantin Triger [Wed, 21 Mar 2007 16:01:49 +0000 (16:01 -0000)]
enable looking the documents up by namespace

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

17 years ago * cs3005-6.cs
Bill Holmes [Wed, 21 Mar 2007 15:59:28 +0000 (15:59 -0000)]
    * cs3005-6.cs
        * cs3005-15.cs
          With the changes to mcs/class.cs in r74702 these test
          outputs are now different.  The error messages are still correct
          they are simply reporting the error on the other name due to the
          new order objects are processed.

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

17 years agoMake ABS match glib's definition
Miguel de Icaza [Wed, 21 Mar 2007 15:39:43 +0000 (15:39 -0000)]
Make ABS match glib's definition

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

17 years ago2007-03-21 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Wed, 21 Mar 2007 15:02:38 +0000 (15:02 -0000)]
2007-03-21  Everaldo Canuto  <everaldo@simios.org>

* MenuAPI.cs: In ProcessKeys returns false when key is not processed.
[Fixes #81203]

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

17 years agoreplace APP_DATA -> App_Data
Konstantin Triger [Wed, 21 Mar 2007 14:14:10 +0000 (14:14 -0000)]
replace APP_DATA -> App_Data

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

17 years ago2007-03-21 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Wed, 21 Mar 2007 14:09:39 +0000 (14:09 -0000)]
2007-03-21  Jonathan Pobst  <monkey@jpobst.com>

* FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.

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

17 years agorefactoring for Serialize/Deserialize functionality
Konstantin Triger [Wed, 21 Mar 2007 14:09:20 +0000 (14:09 -0000)]
refactoring for Serialize/Deserialize functionality

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

17 years ago2007-03-21 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Wed, 21 Mar 2007 14:09:18 +0000 (14:09 -0000)]
2007-03-21  Marek Habersack  <mhabersack@novell.com>

* TemplateControlCompiler.cs: added support for setting custom
attributes of a base class from the Page or Control directive
attributes.

2007-03-21  Marek Habersack  <mhabersack@novell.com>

* UnknownAttributeDescriptor.cs: an internal helper class for
custom directive attributes support.

* BaseParser.cs: ThrowParseException can now take variadic
parameters, for convenience.

* TemplateParser.cs: add support for custom attributes for the
Page and Control directives.

2007-03-21  Marek Habersack  <mhabersack@novell.com>

* System.Web.dll.sources: added UnknownAttributeDescriptor.cs

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

17 years ago* AnonymousIdentificationModule.cs: optimized Config property
Vladimir Krasnov [Wed, 21 Mar 2007 13:54:08 +0000 (13:54 -0000)]
* AnonymousIdentificationModule.cs: optimized Config property

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

17 years ago2007-03-21 Mike Kestner <mkestner@novell.com>
Mike Kestner [Wed, 21 Mar 2007 13:31:11 +0000 (13:31 -0000)]
2007-03-21  Mike Kestner  <mkestner@novell.com>

* ListView.cs : disable selection update for non-left button clicks
with mods and over selected items.  [Fixes #80524]

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

17 years ago2007-03-21 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Wed, 21 Mar 2007 13:17:40 +0000 (13:17 -0000)]
2007-03-21  Nagappan A  <anagappan@novell.com>

* Tds70.cs (BuildParameters, FormatParameter): Include @ before
parameter name, if doesnot exist.

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

17 years ago2007-03-21 Nagappan A <anagappan@novell.com>
Nagappan Alagappan [Wed, 21 Mar 2007 13:15:27 +0000 (13:15 -0000)]
2007-03-21  Nagappan A  <anagappan@novell.com>

* TdsMetaParameter.cs (Prepare): Include @ before parameter name,
if doesnot exist.

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

17 years ago* AnonymousIdentificationModule.cs: added configuration section caching to AppDomain...
Vladimir Krasnov [Wed, 21 Mar 2007 12:31:25 +0000 (12:31 -0000)]
* AnonymousIdentificationModule.cs: added configuration section caching to AppDomain for TARGET_JVM
* RoleManagerModule.cs, UrlAuthorizationModule.cs, FormsAuthenticationModule.cs: refactored configuration section to be a member of a class

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

17 years agoMerge the ability to disable connection pooling
Yaacov Akiba Slama [Wed, 21 Mar 2007 12:17:57 +0000 (12:17 -0000)]
Merge the ability to disable connection pooling

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

17 years agoalign with the Stream.Read docs
Konstantin Triger [Wed, 21 Mar 2007 12:13:17 +0000 (12:13 -0000)]
align with the Stream.Read docs

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

17 years ago* DefaultLayoutTest.cs: Fixed line endings.
Rolf Bjarne Kvinge [Wed, 21 Mar 2007 10:46:32 +0000 (10:46 -0000)]
* DefaultLayoutTest.cs: Fixed line endings.
* BindingSourceTest.cs: Remove a couple of warnings.

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

17 years ago* WebConfigurationManager.cs: fixed OpenWebConfiguration, should not lock when checki...
Vladimir Krasnov [Wed, 21 Mar 2007 10:32:32 +0000 (10:32 -0000)]
* WebConfigurationManager.cs: fixed OpenWebConfiguration, should not lock when checking if configuration is already open

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

17 years ago* HttpContext.jvm.cs, HttpRuntime.cs: cached instance of HttpRuntime in context in...
Vladimir Krasnov [Wed, 21 Mar 2007 10:25:28 +0000 (10:25 -0000)]
* HttpContext.jvm.cs, HttpRuntime.cs: cached instance of HttpRuntime in context in addition to AppDomain

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

17 years agoAdd comment.
Rolf Bjarne Kvinge [Wed, 21 Mar 2007 10:24:05 +0000 (10:24 -0000)]
Add comment.

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

17 years ago* HttpCookie.cs, HttpCookieCollection.cs: used StringComparer.OrdinalIgnoreCase for...
Vladimir Krasnov [Wed, 21 Mar 2007 10:14:24 +0000 (10:14 -0000)]
* HttpCookie.cs, HttpCookieCollection.cs: used StringComparer.OrdinalIgnoreCase for cookies and values collections

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

17 years ago* HttpApplication.cs: refactred handlers configuration section as member of class
Vladimir Krasnov [Wed, 21 Mar 2007 09:54:37 +0000 (09:54 -0000)]
* HttpApplication.cs: refactred handlers configuration section as member of class

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

17 years agoAdded DataGrid.aspx
Konstantin Triger [Wed, 21 Mar 2007 09:34:18 +0000 (09:34 -0000)]
Added DataGrid.aspx

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

17 years ago2007-03-21 Juraj Skripsky <js@hotfeet.ch>
Juraj Skripsky [Wed, 21 Mar 2007 09:22:24 +0000 (09:22 -0000)]
2007-03-21  Juraj Skripsky <js@hotfeet.ch>

* List.cs (FindAllStackBits): Small optimization to the new code.
Built resulting List<T> directly as an array, wrap it in a List<T>
afterwards. Stop the filling of the result array as soon as all
matching items have been processed.

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

17 years ago* BaseHttpServlet.cs: fixed service, should not update context in AppDomain on every...
Vladimir Krasnov [Wed, 21 Mar 2007 09:02:08 +0000 (09:02 -0000)]
* BaseHttpServlet.cs: fixed service, should not update context in AppDomain on every request

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

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 22:41:05 +0000 (22:41 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.Interfaces): Removed; they're now
included in `TypeContainer.Types'.

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

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 22:11:00 +0000 (22:11 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

Fix #77963, #80314 and #81019.  Added gtest-317, ..., gtest-320.

* class.cs (TypeContainer.CreateType): New public method.  This is
now called before DefineType() to create the TypeBuilders.
(TypeContainer.DefineType): Don't create the TypeBuilder here; it
has already been created by CreateType().
(TypeContainer.DefineTypeBuilder): Renamed into CreateTypeBuilder();
don't resolve our base classes here; this has been moved into
DefineBaseTypes().  We're now called from CreateType().
(TypeContainer.DefineBaseTypes): New private method; resolve our
base classes here.  We're now called from DefineType().

* rootcontext.cs
(RootContext.ResolveTree): Call TypeContainer.CreateType() on all
our types first to create all the TypeBuilders.  After that, call
TypeContainer.DefineType() on all the types which'll resolve their
base classes and setup the resolve order.

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

17 years ago * TextControl.cs:
Jackson Harper [Tue, 20 Mar 2007 21:48:08 +0000 (21:48 -0000)]
    * TextControl.cs:
        * TextBoxBase.cs: Allow different types of line endings. \r,
        * \r\n, \r\r\n, and \n.

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

17 years ago2007-03-20 Sebastien Pouliot <sebastien@ximian.com>
Sebastien Pouliot [Tue, 20 Mar 2007 21:40:37 +0000 (21:40 -0000)]
2007-03-20  Sebastien Pouliot  <sebastien@ximian.com>

* Graphics.cs: Replace TODO on all EnumerateMetafile overloads.

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

17 years ago* ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 20:01:36 +0000 (20:01 -0000)]
* ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
  very probably a more complicated calculation there. Update the
  textbox' ForeColor and BackColor when the ComboBox' colors are
  changed. Change the border change in LayoutComboBox to only affect
  the textbox, not all the calculations there. Seems to fix most of
  #79436.

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

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 19:55:11 +0000 (19:55 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

* class.cs (TypeContainer.Enums): Removed; they're now included in
`TypeContainer.Types'.

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

17 years agoAdded ServletAuthentication module
Konstantin Triger [Tue, 20 Mar 2007 17:29:30 +0000 (17:29 -0000)]
Added ServletAuthentication module

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

17 years ago* ComboBox.cs: Handle Home and End keys as well as all combinations of
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 17:16:48 +0000 (17:16 -0000)]
* ComboBox.cs: Handle Home and End keys as well as all combinations of
  modifiers + navigation keys as input keys, enables advanced text
  selection in the combobox (like Shift+Left Arrow for instance).
  ComboTextBox now overrides Focused and returns whatever
  ComboBox.Focused returns, since it really should be focused
  whenever the ComboBox is. Fixes #80795. Also make the border around
  the text box one pixel bigger, as mentioned in #79436.

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

17 years agoAdded ServletAuthenticationModule.cs; refactoring
Konstantin Triger [Tue, 20 Mar 2007 17:15:53 +0000 (17:15 -0000)]
Added ServletAuthenticationModule.cs; refactoring

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

17 years ago2007-03-20 Martin Baulig <martin@ximian.com>
Martin Baulig [Tue, 20 Mar 2007 16:13:23 +0000 (16:13 -0000)]
2007-03-20  Martin Baulig  <martin@ximian.com>

* class.cs
(TypeContainer.DefineType): Don't call ResolveMembers() here.
(TypeContainer.DoResolveMembers): Call DefineType() on our
`compiler_generated' classes; moved here from DefineNestedTypes().

* rootcontext.cs
(RootContext.ResolveTree): Call ResolveMembers() on all
TypeContainer's in the `type_container_resolve_order'.

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

17 years ago2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 20 Mar 2007 15:58:06 +0000 (15:58 -0000)]
2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>

* BaseDataBoundControl.cs: fix as per MSDN - the property is set
only if data binding doesn't occur.

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

17 years ago * TreeView.cs: Don't offset the images, this was causing some
Jackson Harper [Tue, 20 Mar 2007 15:46:06 +0000 (15:46 -0000)]
    * TreeView.cs: Don't offset the images, this was causing some
        artifacts when expanding/collapsing with images that were the
        exact height of the treenode.

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

17 years ago2007-03-20 Juan Cristóbal Olivares <juancri@gmail.com>
Miguel de Icaza [Tue, 20 Mar 2007 15:39:19 +0000 (15:39 -0000)]
2007-03-20  Juan Cristóbal Olivares <juancri@gmail.com>

        * List.cs (FindAll): Optimize FindAll using a bitmask to
        * determine
        the number of positive matches, this increases the performance
in
        all cases below 10,000,000 elements extensively:

        100 elements:
        old method:             00:00:00.0126610 (26x)
        stackalloc bit method:  00:00:00.0004750 (1x)
        array bit method:       00:00:00.0010700 (2x)
        heap bit method:        00:00:00.0038830 (8x)

        1,000 elements:
        old method:             00:00:00.0139250 (24x)
        stackalloc bit method:  00:00:00.0005670 (1x)
        array bit method:       00:00:00.0010890 (2x)
        heap bit method:        00:00:00.0034920 (6x)

        10,000 elements:
        old method:             00:00:00.0136110 (12x)
        stackalloc bit method:  00:00:00.0011240 (1x)
        array bit method:       00:00:00.0016450 (1.4x)
        heap bit method:        00:00:00.0043110 (3x)

        50,000 elements:
        old method:             00:00:00.0175970 (3x)
        stackalloc bit method:  00:00:00.0085630 (1.5x)
        array bit method:       00:00:00.0055010 (1x)
        heap bit method:        00:00:00.0099590 (1.8x)

        100,000 elements:
        old method:             00:00:00.0210330 (2x)
        array bit method:       00:00:00.0100430 (1x)
        heap bit method:        00:00:00.0154150 (1.5x)

        1,000,000 elements:
        old method:             00:00:00.1243730 (1.2x)
        array bit method:       00:00:00.0973110 (1x)
        heap bit method:        00:00:00.1285650 (1.3x)

        10,000,000 elements:
        old method:             00:00:00.9252570 (1x)
        array bit method:       00:00:00.9632300 ( 1.05x)
        heap bit method:        00:00:01.1098490 (1.20x)

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

17 years agoworkaround Derby bugs to let it unload in full WAR mode
Konstantin Triger [Tue, 20 Mar 2007 15:30:59 +0000 (15:30 -0000)]
workaround Derby bugs to let it unload in full WAR mode

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

17 years ago2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>
Igor Zelmanovich [Tue, 20 Mar 2007 14:55:19 +0000 (14:55 -0000)]
2007-03-20 Igor Zelmanovich <igorz@mainsoft.com>

* GridView.cs: fixed: PageIndex considers PageCount.

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 14:48:36 +0000 (14:48 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* HttpRequest.cs: implement AppRelativeCurrentExecutionFilePath.

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

17 years agoRevert the change as it causes 3 tests to fail, need to run tests on Windows first.
Marek Habersack [Tue, 20 Mar 2007 13:40:35 +0000 (13:40 -0000)]
Revert the change as it causes 3 tests to fail, need to run tests on Windows first.

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 12:16:16 +0000 (12:16 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* BaseDataBoundControl.cs: fix as per MSDN - the property is set
only if data binding doesn't occur.

* DataBoundControl.cs: avoid endless recursion here. Fixes bug #81175

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

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

* Control.cs: fixed ResolveClientUrl method.

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

17 years agoAdd line accidentally removed.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 10:58:27 +0000 (10:58 -0000)]
Add line accidentally removed.

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

17 years ago* TrackBar.cs: Query the theme for the correct value when the mouse
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 10:48:25 +0000 (10:48 -0000)]
* TrackBar.cs: Query the theme for the correct value when the mouse
  moves and the thumb is pressed.
* Theme.cs: Added TrackBarValueFromMousePosition
* ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
  implementation was updating the trackbar value when drawing, now
  the drawing methods only draw. Fixes #80900. Refactored the
  calculations out to TrackBarValueFromMousePosition and
  GetTrackBarDrawingInfo, so that TrackBar can get the correct value
  according to the mouse position whenever it wants to. Changed the
  light coloured pen when drawing the thumb from ControlLight to
  ControlLightLight, because the ControlLight is the same colour as
  the background so the 3D effect is lost.

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

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 10:26:18 +0000 (10:26 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* Form.cs: In ShowDialog uses MainForm as transient form when no form is
defined. Fixes #80784.

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 09:19:05 +0000 (09:19 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* ResourceExpressionBuilder.cs: if the resource class key is null
or empty, call GetLocalResourceObject, if not,
GetGlobalResourceObject. Fixes bug #81174.

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

17 years agoAdd back change that was accidentally removed (MdiParent is always null after closing...
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 09:10:55 +0000 (09:10 -0000)]
Add back change that was accidentally removed (MdiParent is always null after closing a form.)

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:43:28 +0000 (08:43 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* FormsAuthentication.cs, Roles.cs: remove roles cookie on sign
out. Fixes bug #81195. Patch from Mike Morano <mmorano@mikeandwan.us>.

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:34:48 +0000 (08:34 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* LoginStatusTest.cs: add a test for CssClass set on the rendered
control

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:18:54 +0000 (08:18 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* LoginStatus.cs: render login/logout controls with the CssClass
set from the parent control. Fixes bug #81196

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

17 years ago2007-03-20 Marek Habersack <mhabersack@novell.com>
Marek Habersack [Tue, 20 Mar 2007 08:11:46 +0000 (08:11 -0000)]
2007-03-20  Marek Habersack  <mhabersack@novell.com>

* ContextMenuStrip.cs: align with the change introduced in
revision 74664.

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

17 years agoIn System.Windows.Forms:
Everaldo Canuto [Tue, 20 Mar 2007 06:42:31 +0000 (06:42 -0000)]
In System.Windows.Forms:
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs,
XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner
in SetTopmost.

In System.Windows.Forms.X11Internal:
* XplatUIX11-new.cs: Remove unneeded parameter owner in SetTopmost.

2007-03-20  Everaldo Canuto  <everaldo@simios.org>

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

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 06:17:14 +0000 (06:17 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* XplatUIX11-new.cs, X11Hwnd.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it
fixes Topmost behavior in X11 environments.

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

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Tue, 20 Mar 2007 05:23:28 +0000 (05:23 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* Control.cs (WmPaint): don't make use of the Handle property
after an event is emitted, as the user could have closed the
form/destroyed the control.  Store the Handle in a local variable
and make use of that.  Fixes bug #80768.

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

17 years ago * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
Everaldo Canuto [Tue, 20 Mar 2007 05:18:10 +0000 (05:18 -0000)]
* XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
behavior in X11 environments.

2007-03-20  Everaldo Canuto  <everaldo@simios.org>

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

17 years ago2007-03-20 Everaldo Canuto <everaldo@simios.org>
Everaldo Canuto [Tue, 20 Mar 2007 04:55:39 +0000 (04:55 -0000)]
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

* Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
because on setter of topmost we dont call SetTopmost when handle is not
created.

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

17 years ago * TextControl.cs: Need to use SelectionLength () not
Jackson Harper [Tue, 20 Mar 2007 04:46:56 +0000 (04:46 -0000)]
    * TextControl.cs: Need to use SelectionLength () not
        selection_length, since that var is reset to -1.
        - Draw the caret when we don't have focus.
        * TextBox.cs: The selectall actually doesn't occur until the
        * first
        focus.
        * TextBoxBase.cs: Need to update the caret position after a
        selectall.

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

17 years ago2007-03-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Mar 2007 03:22:34 +0000 (03:22 -0000)]
2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Enable scrolling when using Tile view.

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

17 years agoIn System.Windows.Forms:
Everaldo Canuto [Tue, 20 Mar 2007 01:36:02 +0000 (01:36 -0000)]
In System.Windows.Forms:
2007-03-20  Everaldo Canuto  <everaldo@simios.org>

[Fixes #80902]

* XplatUIDriver.cs: Abstract SetOwner method created.

* XplatUIOSX.cs: Override SetOwner to prevent compilation errors method
must be implemented and was masked as todo.

* XplatUIWin32.cs: SetOwner implemented using SetWindowLong with
GWL_HWNDPARENT.

* XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but
cheking for null owner to remove transient. The SetTopmost will be change
on a decond step.

* Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
SetTopmost. Now owned forms will work properly in win32 and X11.

In System.Windows.Forms.X11Internal:
2007-03-19  Everaldo Canuto  <everaldo@simios.org>

* XplatUIX11-new.cs, X11Hwnd.cs: SetOwner implemented using same code from
SetTopmost but cheking for null owner to remove transient. The SetTopmost
will be change on a decond step.

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

17 years ago2007-03-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
Carlos Alberto Cortez [Tue, 20 Mar 2007 01:03:30 +0000 (01:03 -0000)]
2007-03-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListViewItemTest.cs: Add test for BackColor, ForeColor,
UseItemStyleForSubItems.

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

17 years agoFix build.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:58:38 +0000 (00:58 -0000)]
Fix build.

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

17 years ago* EventLogger.cs: Add CountEvents.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:53:02 +0000 (00:53 -0000)]
* EventLogger.cs: Add CountEvents.
* MdiFormTest.cs: Added CloseTest.

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

17 years ago* MdiWindowManager.cs: Update function name.
Rolf Bjarne Kvinge [Tue, 20 Mar 2007 00:50:30 +0000 (00:50 -0000)]
* MdiWindowManager.cs: Update function name.
* Form.cs: After closing a form MdiParent is always null.
* MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
  better what it should do: necessary book-keeping when the form is
  closed, it should not close the form itself.

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

17 years ago* ListViewItem.cs: Fix back and fore color. The subitems only
Andreia Gaita [Tue, 20 Mar 2007 00:39:56 +0000 (00:39 -0000)]
* ListViewItem.cs: Fix back and fore color. The subitems only
use their own colors if they are set, otherwise use the listview's
colors. Don't set default colors on constructor for subitem.
Fixes #79315.

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

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

17 years ago2007-03-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Tue, 20 Mar 2007 00:05:58 +0000 (00:05 -0000)]
2007-03-19  Marek Safar  <marek.safar@gmail.com>

* class.cs: Use corlib to handle InternalMethodImplAttribute.

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

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

* MethodBuilder.cs: MethodImplAttribute cannot be destructive and overwrite
existing flags.

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

17 years ago2007-03-19 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 19 Mar 2007 21:48:35 +0000 (21:48 -0000)]
2007-03-19  Mike Kestner  <mkestner@novell.com>

* ListView.cs : make box selection for Details views with
FullRowSelect conform to MS behavior when clicking in the "item"
column and clicking outside the defined columns.
[Fixes case 5-6 of #80374]

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

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 21:17:23 +0000 (21:17 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* ScrollableControl.cs: create the controls from within the ctor,
but don't actually add them until our handle is created.  this
fixes a NRE possibility jpobst found (if you override OnLayout in
a subclass, it's called before your ctor).  Also, add a
IsHandleCreated guard to UpdateSizeGripVisibility as well.

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

17 years agoRevert 74623/74624 to fix build.
Jonathan Chambers [Mon, 19 Mar 2007 21:04:28 +0000 (21:04 -0000)]
Revert 74623/74624 to fix build.

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

17 years ago * TextBox.cs: Reduce the amount of invalidation we do.
Jackson Harper [Mon, 19 Mar 2007 21:02:46 +0000 (21:02 -0000)]
    * TextBox.cs: Reduce the amount of invalidation we do.
        * TextBoxBase.cs: Make shortcuts enabled true by default, at
        * least
        some of them are true by default on MS.
        - Add some functions to reduce the amount of invalidates we do.
        * TextControl.cs: Less invalidation.

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

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 20:49:59 +0000 (20:49 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

[ Fixes #81773, and *seems* to fix #81553 as well ]

* XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
AccumulateDestroyedHandles.  We need to do it *after* we send
WM_DESTROY, as the user's code can access Control.Handle in
OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
move the WM_DESTROY/zombie handling to before the call to
XDestroyWindow.  For some reason without this ordering
FormTest.RecreateHandle hangs.  This ordering is semantically
equivalent, however, as XDestroyWindow is async anyway.

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

17 years ago* RichBoxTest.cs: Disabled ReadOnly test until I can test it on linux.
Gert Driesen [Mon, 19 Mar 2007 20:38:52 +0000 (20:38 -0000)]
* RichBoxTest.cs: Disabled ReadOnly test until I can test it on linux.

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

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 20:18:28 +0000 (20:18 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * xbuild/Microsoft.Common.tasks: Added CombinePath task.

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

17 years agoForgot to commmit the .cs file.
Marek Sieradzki [Mon, 19 Mar 2007 20:17:15 +0000 (20:17 -0000)]
Forgot to commmit the .cs file.

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

17 years ago* RichBoxTest.cs: Enabled ReadOnly test.
Gert Driesen [Mon, 19 Mar 2007 20:05:38 +0000 (20:05 -0000)]
* RichBoxTest.cs: Enabled ReadOnly test.
* RichTextBox.cs: Reset backcolor_set after setting default.

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

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 19:55:47 +0000 (19:55 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * CombinePathTest.cs: Added.

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

17 years ago2007-03-19 Marek Sieradzki <marek.sieradzki@gmail.com>
Marek Sieradzki [Mon, 19 Mar 2007 19:54:36 +0000 (19:54 -0000)]
2007-03-19  Marek Sieradzki  <marek.sieradzki@gmail.com>

        * CombinePath.cs: Implemented.
`

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

17 years ago* PaintEventArgsTest.cs: Enabled tests for bug #78448 on 2.0 profile.
Gert Driesen [Mon, 19 Mar 2007 19:47:58 +0000 (19:47 -0000)]
* PaintEventArgsTest.cs: Enabled tests for bug #78448 on 2.0 profile.

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

17 years ago * ScrollableControl.cs: the scroll position should not effect the
Chris Toshok [Mon, 19 Mar 2007 19:41:14 +0000 (19:41 -0000)]
* ScrollableControl.cs: the scroll position should not effect the
canvas size.  commit patch from georgegiolfan@yahoo.com, which
fixes some really bizarre behavior on resizing.  Fixes bug #80778.

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

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

17 years ago2007-03-19 Chris Toshok <toshok@ximian.com>
Chris Toshok [Mon, 19 Mar 2007 19:30:55 +0000 (19:30 -0000)]
2007-03-19  Chris Toshok  <toshok@ximian.com>

* ScrollableControl.cs: clean this up a bit.  create the
scrollbars in the ctor and just show/hide them as needed.  Also,
make hscroll_visible/vscroll_visible internal to Recalculate, and
just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
everywhere else.  This seems to fix the scrollbars appearing
beneath the content for me (i have *no* idea why that is,
however.)

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

17 years agoUpdated tests.
Marek Safar [Mon, 19 Mar 2007 19:29:30 +0000 (19:29 -0000)]
Updated tests.

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

17 years ago2007-03-19 Marek Safar <marek.safar@gmail.com>
Marek Safar [Mon, 19 Mar 2007 19:28:32 +0000 (19:28 -0000)]
2007-03-19  Marek Safar  <marek.safar@gmail.com>

* class.cs: Don't override existing implementation flags in all cases.

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

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 19:27:57 +0000 (19:27 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* ToolStripTest.cs: Enable gert's DockSize test for bug #80762.

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

17 years agoupdate cases fixed by r74619
Mike Kestner [Mon, 19 Mar 2007 18:52:42 +0000 (18:52 -0000)]
update cases fixed by r74619

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

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 18:46:45 +0000 (18:46 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* Font.cs: Add a better exception for trying to create a font
where the requested style is not available.  [Fixes #81194]

2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* TestFont.cs: Add a test for exception thrown when an unavailable font
style is requested.  (Marked NotWorking due to being platform specific.)

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

17 years ago2007-03-19 Mike Kestner <mkestner@novell.com>
Mike Kestner [Mon, 19 Mar 2007 18:30:48 +0000 (18:30 -0000)]
2007-03-19  Mike Kestner  <mkestner@novell.com>

* ListView.cs : make box selection for Details views without
FullRowSelect dependent on the text bounds, not item bounds.
* ListViewItem.cs : add an internal property to obtain the TextBounds
in Details view.  [Fixes case 1 of #80374]

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

17 years ago* PaintEventArgs.cs (Dispose): Only dispose of graphics object if
Andreia Gaita [Mon, 19 Mar 2007 18:11:29 +0000 (18:11 -0000)]
* PaintEventArgs.cs (Dispose): Only dispose of graphics object if
we're < 2.0. #78448 && #80316

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

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

17 years ago2007-03-19 Jonathan Pobst <monkey@jpobst.com>
Jonathan Pobst [Mon, 19 Mar 2007 17:19:42 +0000 (17:19 -0000)]
2007-03-19  Jonathan Pobst  <monkey@jpobst.com>

* FontDialog.cs: Don't crash when we switch to a new font that doesn't
have the same style available as the previously selected one.  Also,
support FixedPitchOnly property.  [Fixes bugs #80918, #80947]

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

17 years agoAdd providers by default in a portal specific web.config.
Noam Lampert [Mon, 19 Mar 2007 16:26:55 +0000 (16:26 -0000)]
Add providers by default in a portal specific web.config.

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