Author: miguel
Date: 2007-06-09 16:29:05 -0400 (Sat, 09 Jun 2007)
New Revision: 79068

Modified:
   trunk/olive/class/agclr/Mono/Kind.cs
   trunk/olive/class/agclr/System.Windows.Media/Brush.cs
   trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
   trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
   trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
   trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
   trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
   trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs
   trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs
   trunk/olive/class/agclr/System.Windows/UIElement.cs
Log:
Some more fixups to remove execution warnings

Modified: trunk/olive/class/agclr/Mono/Kind.cs
===================================================================
--- trunk/olive/class/agclr/Mono/Kind.cs        2007-06-09 20:12:26 UTC (rev 
79067)
+++ trunk/olive/class/agclr/Mono/Kind.cs        2007-06-09 20:29:05 UTC (rev 
79068)
@@ -89,6 +89,10 @@
                CLOCKGROUP,
                BRUSH,
                SOLIDCOLORBRUSH,
+               IMAGEBRUSH,
+               VIDEOBRUSH,
+               GRADIENTBRUSH,
+               GRADIENTSTOP,
                PATHFIGURE,
                PATHSEGMENT,
                ARCSEGMENT,

Modified: trunk/olive/class/agclr/System.Windows/UIElement.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-09 20:12:26 UTC 
(rev 79067)
+++ trunk/olive/class/agclr/System.Windows/UIElement.cs 2007-06-09 20:29:05 UTC 
(rev 79068)
@@ -47,8 +47,6 @@
        
                static UIElement ()
                {
-                       Type ttype = typeof (UIElement);
-                       
                        OpacityProperty = DependencyProperty.Lookup 
(Kind.UIELEMENT, "Opacity");
                        ClipProperty = DependencyProperty.Lookup 
(Kind.UIELEMENT, "Clip");
                        RenderTransformProperty = DependencyProperty.Lookup 
(Kind.UIELEMENT, "RenderTransform");

Modified: trunk/olive/class/agclr/System.Windows.Media/Brush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Brush.cs       2007-06-09 
20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/Brush.cs       2007-06-09 
20:29:05 UTC (rev 79068)
@@ -35,14 +35,9 @@
 
                static Brush ()
                {
-                       Type btype = typeof (Brush);
-                       
-                       OpacityProperty = DependencyProperty.Register (
-                               "Opacity", typeof (double), btype);
-                       TransformProperty = DependencyProperty.Register (
-                               "Transform", typeof (TransformGroup), btype);
-                       RelativeTransformProperty = DependencyProperty.Register 
(
-                               "RelativeTransform", typeof (TransformGroup), 
btype);
+                       OpacityProperty = DependencyProperty.Lookup 
(Kind.BRUSH, "Opacity");
+                       TransformProperty = DependencyProperty.Lookup 
(Kind.BRUSH, "Transform");
+                       RelativeTransformProperty = DependencyProperty.Lookup 
(Kind.BRUSH, "RelativeTransform");
                }
                
                public Brush ()

Modified: trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs     
2007-06-09 20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/EllipseGeometry.cs     
2007-06-09 20:29:05 UTC (rev 79068)
@@ -26,13 +26,17 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 using Mono;
+
 namespace System.Windows.Media {
 
        public class EllipseGeometry : Geometry {
 
-               public static readonly DependencyProperty CenterProperty = 
DependencyProperty.Register ("Center", typeof (Point), typeof 
(EllipseGeometry));
-               public static readonly DependencyProperty RadiusXProperty = 
DependencyProperty.Register ("RadiusX", typeof (double), typeof 
(EllipseGeometry));
-               public static readonly DependencyProperty RadiusYProperty = 
DependencyProperty.Register ("RadiusY", typeof (double), typeof 
(EllipseGeometry));
+               public static readonly DependencyProperty CenterProperty =
+                       DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY, 
"Center");
+               public static readonly DependencyProperty RadiusXProperty =
+                       DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY, 
"RadiusX");
+               public static readonly DependencyProperty RadiusYProperty =
+                       DependencyProperty.Lookup (Kind.ELLIPSEGEOMETRY, 
"RadiusY");
 
                public EllipseGeometry ()
                {

Modified: trunk/olive/class/agclr/System.Windows.Media/Geometry.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/Geometry.cs    2007-06-09 
20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/Geometry.cs    2007-06-09 
20:29:05 UTC (rev 79068)
@@ -33,8 +33,8 @@
 
                static Geometry ()
                {
-                       FillRuleProperty = DependencyProperty.Register 
("FillRule", typeof (FillRule), typeof (Geometry));
-                       TransformProperty = DependencyProperty.Register 
("Transform", typeof (TransformGroup), typeof (Geometry));
+                       FillRuleProperty = DependencyProperty.Lookup 
(Kind.GEOMETRY, "FillRule");
+                       TransformProperty = DependencyProperty.Lookup 
(Kind.GEOMETRY, "Transform");
                }
 
                public Geometry ()

Modified: trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs       
2007-06-09 20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/GeometryGroup.cs       
2007-06-09 20:29:05 UTC (rev 79068)
@@ -31,7 +31,8 @@
 
        public class GeometryGroup : Geometry {
 
-               public static readonly DependencyProperty ChildrenProperty = 
DependencyProperty.Register ("Children", typeof (GeometryCollection), typeof 
(GeometryGroup));
+               public static readonly DependencyProperty ChildrenProperty =
+                       DependencyProperty.Lookup (Kind.GEOMETRYGROUP, 
"Children");
 
                public GeometryGroup ()
                {

Modified: trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs       
2007-06-09 20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientBrush.cs       
2007-06-09 20:29:05 UTC (rev 79068)
@@ -25,15 +25,20 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+using Mono;
 
 namespace System.Windows.Media {
 
        public class GradientBrush : Brush {
 
-               public static readonly DependencyProperty 
ColorInterpretationModeProperty = DependencyProperty.Register 
("ColorInterpretationMode", typeof (ColorInterpretationMode), typeof 
(GradientBrush));
-               public static readonly DependencyProperty GradientStopsProperty 
= DependencyProperty.Register ("GradientStops", typeof 
(GradientStopCollection), typeof (GradientBrush));
-               public static readonly DependencyProperty MappingModeProperty = 
DependencyProperty.Register ("MappingMode", typeof (BrushMappingMode), typeof 
(GradientBrush));
-               public static readonly DependencyProperty SpreadMethodProperty 
= DependencyProperty.Register ("SpreadMethod", typeof (GradientSpreadMethod), 
typeof (GradientBrush));
+               public static readonly DependencyProperty 
ColorInterpretationModeProperty =
+                       DependencyProperty.Lookup (Kind.GRADIENTBRUSH, 
"ColorInterpretationMode");
+               public static readonly DependencyProperty GradientStopsProperty 
=
+                       DependencyProperty.Lookup (Kind.GRADIENTBRUSH, 
"GradientStops");
+               public static readonly DependencyProperty MappingModeProperty =
+                       DependencyProperty.Lookup (Kind.GRADIENTBRUSH, 
"MappingMode");
+               public static readonly DependencyProperty SpreadMethodProperty =
+                       DependencyProperty.Lookup (Kind.GRADIENTBRUSH, 
"SpreadMethod");
 
 
                public GradientBrush ()

Modified: trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs        
2007-06-09 20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/GradientStop.cs        
2007-06-09 20:29:05 UTC (rev 79068)
@@ -25,13 +25,15 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
+using Mono;
 namespace System.Windows.Media {
 
        public class GradientStop : DependencyObject {
 
-               public static readonly DependencyProperty ColorProperty = 
DependencyProperty.Register ("Color", typeof (Color), typeof (GradientStop));
-               public static readonly DependencyProperty OffsetProperty = 
DependencyProperty.Register ("Offset", typeof (double), typeof (GradientStop));
+               public static readonly DependencyProperty ColorProperty =
+                       DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Color");
+               public static readonly DependencyProperty OffsetProperty =
+                       DependencyProperty.Lookup (Kind.GRADIENTSTOP, "Offset");
 
 
                public GradientStop ()

Modified: trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs  2007-06-09 
20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/ImageBrush.cs  2007-06-09 
20:29:05 UTC (rev 79068)
@@ -25,13 +25,16 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+using Mono;
 
 namespace System.Windows.Media {
 
        public class ImageBrush : Brush {
 
-               public static readonly DependencyProperty 
DownloadProgressProperty = DependencyProperty.Register ("DownloadProgress", 
typeof (double), typeof (ImageBrush));
-               public static readonly DependencyProperty ImageSourceProperty = 
DependencyProperty.Register ("ImageSource", typeof (Uri), typeof (ImageBrush));
+               public static readonly DependencyProperty 
DownloadProgressProperty =
+                       DependencyProperty.Lookup (Kind.IMAGEBRUSH, 
"DownloadProgress");
+               public static readonly DependencyProperty ImageSourceProperty =
+                       DependencyProperty.Lookup (Kind.IMAGEBRUSH, 
"ImageSource");
 
 
                public ImageBrush ()

Modified: trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs  2007-06-09 
20:12:26 UTC (rev 79067)
+++ trunk/olive/class/agclr/System.Windows.Media/VideoBrush.cs  2007-06-09 
20:29:05 UTC (rev 79068)
@@ -25,19 +25,18 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-
+using Mono;
 namespace System.Windows.Media {
 
        public class VideoBrush : TileBrush {
 
-               public static readonly DependencyProperty SourceNameProperty = 
DependencyProperty.Register ("SourceName", typeof (string), typeof 
(VideoBrush));
+               public static readonly DependencyProperty SourceNameProperty =
+                       DependencyProperty.Lookup (Kind.VIDEOBRUSH, 
"SourceName");
 
-
                public VideoBrush ()
                {
                }
 
-
                public string SourceName {
                        get { return (string) GetValue (SourceNameProperty); }
                        set { SetValue (SourceNameProperty, value); }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to