[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/Widget.cs
From: |
Heiko Weiss |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/Widget.cs |
Date: |
Thu, 25 Jan 2007 14:10:32 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Heiko Weiss <brubbel> 07/01/25 14:10:32
Modified files:
. : ChangeLog
Xsharp : Widget.cs
Log message:
irgnore widget disposed exception when trying to move window.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2465&r2=1.2466
http://cvs.savannah.gnu.org/viewcvs/pnetlib/Xsharp/Widget.cs?cvsroot=dotgnu-pnet&r1=1.21&r2=1.22
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2465
retrieving revision 1.2466
diff -u -b -r1.2465 -r1.2466
--- ChangeLog 25 Jan 2007 11:37:48 -0000 1.2465
+++ ChangeLog 25 Jan 2007 14:10:32 -0000 1.2466
@@ -1,4 +1,7 @@
-2ßß7-01-25 Klaus Treichel <address@hidden>
+2007-01-25 Heiko Weiss <address@hidden>
+ *Xsharp/Widget.cs: irgnore widget disposed exception
+
+2007-01-25 Klaus Treichel <address@hidden>
* runtime/System/Threading/AbandonedMutexException.cs,
runtime/System/Threading/ContextCallback.cs,
Index: Xsharp/Widget.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/Xsharp/Widget.cs,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- Xsharp/Widget.cs 1 Jun 2006 13:19:12 -0000 1.21
+++ Xsharp/Widget.cs 25 Jan 2007 14:10:32 -0000 1.22
@@ -732,6 +732,8 @@
(IntPtr display, int newX, int newY,
int newWidth, int newHeight)
{
+ if( handle != XDrawable.Zero ) {
+ try {
if(newX != x || newY != y)
{
if(newWidth != width || newHeight !=
height)
@@ -752,6 +754,10 @@
(uint)newWidth, (uint)newHeight);
}
}
+ catch( XInvalidOperationException ) {
// irgnore Widget disposed exception
+ }
+ }
+ }
// Adjust the position and/or size of this widget.
private void AdjustPositionAndSize(IntPtr display, int newX, int newY,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/Widget.cs,
Heiko Weiss <=