Author: lluis
Date: 2006-11-13 08:24:06 -0500 (Mon, 13 Nov 2006)
New Revision: 67752

Modified:
   trunk/stetic/ChangeLog
   trunk/stetic/libstetic/editor/ActionToolItem.cs
   trunk/stetic/libstetic/editor/Flags.cs
Log:
2006-11-13  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 

        * libstetic/editor/Flags.cs:
        * libstetic/editor/ActionToolItem.cs:
          Fix build. Patch by Michael Schurter.



Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog      2006-11-13 10:48:38 UTC (rev 67751)
+++ trunk/stetic/ChangeLog      2006-11-13 13:24:06 UTC (rev 67752)
@@ -1,3 +1,9 @@
+2006-11-13  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 
+
+       * libstetic/editor/Flags.cs:
+       * libstetic/editor/ActionToolItem.cs:
+         Fix build. Patch by Michael Schurter.
+
 2006-09-22  Lluis Sanchez Gual  <[EMAIL PROTECTED]> 
 
        * libsteticui/WidgetEditSession.cs:

Modified: trunk/stetic/libstetic/editor/ActionToolItem.cs
===================================================================
--- trunk/stetic/libstetic/editor/ActionToolItem.cs     2006-11-13 10:48:38 UTC 
(rev 67751)
+++ trunk/stetic/libstetic/editor/ActionToolItem.cs     2006-11-13 13:24:06 UTC 
(rev 67752)
@@ -305,7 +305,7 @@
                        
                        // Make sure we get the focus after closing the menu, 
so we can keep browsing buttons
                        // using the keyboard.
-                       menu.Hidden += delegate (object s, EventArgs a) {
+                       menu.Hidden += delegate (object sender, EventArgs a) {
                                GrabFocus ();
                        };
                        

Modified: trunk/stetic/libstetic/editor/Flags.cs
===================================================================
--- trunk/stetic/libstetic/editor/Flags.cs      2006-11-13 10:48:38 UTC (rev 
67751)
+++ trunk/stetic/libstetic/editor/Flags.cs      2006-11-13 13:24:06 UTC (rev 
67752)
@@ -11,7 +11,7 @@
                        if (Value == null)
                                return "";
 
-                       uint value = (uint)(int)(Enum)Value;
+                       uint value = (uint)(int)Value;
                        EnumDescriptor enm = Registry.LookupEnum 
(Property.PropertyType.FullName);
                        string txt = "";
                        foreach (Enum val in enm.Values) {
@@ -19,7 +19,7 @@
                                if (eval.Label == "")
                                        continue;
                                
-                               if ((value & (uint)(int)(Enum) eval.Value) != 
0) {
+                               if ((value & (uint)(int)eval.Value) != 0) {
                                        if (txt.Length > 0) txt += ", ";
                                        txt += eval.Label;
                                }
@@ -113,7 +113,7 @@
                                return Enum.ToObject (enm.EnumType, UIntValue);
                        }
                        set {
-                               uint newVal = (uint)(int)(Enum)value;
+                               uint newVal = (uint)(int)value;
                                if (flagsLabel != null) {
                                        string txt = "";
                                        foreach (Enum val in enm.Values) {
@@ -121,7 +121,7 @@
                                                if (eval.Label == "")
                                                        continue;
                                                
-                                               if ((newVal & (uint)(int)(Enum) 
eval.Value) != 0) {
+                                               if ((newVal & (uint)(int) 
eval.Value) != 0) {
                                                        if (txt.Length > 0) txt 
+= ", ";
                                                        txt += eval.Label;
                                                }

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

Reply via email to