Author: lluis
Date: 2007-03-28 11:26:50 -0500 (Wed, 28 Mar 2007)
New Revision: 75084

Modified:
   trunk/stetic/ChangeLog
   trunk/stetic/libsteticui/ApplicationBackend.cs
Log:
* libsteticui/ApplicationBackend.cs: Don't allow cutting/copying top
  level widgets. Fixes bug #81015.

Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog      2007-03-28 16:05:52 UTC (rev 75083)
+++ trunk/stetic/ChangeLog      2007-03-28 16:26:50 UTC (rev 75084)
@@ -1,5 +1,10 @@
 2007-03-28  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * libsteticui/ApplicationBackend.cs: Don't allow cutting/copying top
+         level widgets. Fixes bug #81015.
+
+2007-03-28  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * libstetic/wrapper/Container.cs, libstetic/wrapper/Widget.cs: When
          selecting a widget, avoid setting the focus to the parent
          container, since it may end changing the selection. Fixes bug

Modified: trunk/stetic/libsteticui/ApplicationBackend.cs
===================================================================
--- trunk/stetic/libsteticui/ApplicationBackend.cs      2007-03-28 16:05:52 UTC 
(rev 75083)
+++ trunk/stetic/libsteticui/ApplicationBackend.cs      2007-03-28 16:26:50 UTC 
(rev 75084)
@@ -499,8 +499,8 @@
                {
                        Stetic.Wrapper.Widget wrapper = obj as 
Stetic.Wrapper.Widget;
                        if (wrapper != null) {
-                               canCut = wrapper.InternalChildProperty == null;
-                               canCopy = true;
+                               canCut = wrapper.InternalChildProperty == null 
&& !wrapper.IsTopLevel;
+                               canCopy = !wrapper.IsTopLevel;
                                canPaste = false;
                        }
                        else if (obj is Placeholder) {

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

Reply via email to