[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/InputOutputWidget.cs
From: |
Heiko Weiss |
Subject: |
[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/InputOutputWidget.cs |
Date: |
Thu, 26 Oct 2006 16:08:09 +0000 |
CVSROOT: /sources/dotgnu-pnet
Module name: pnetlib
Changes by: Heiko Weiss <brubbel> 06/10/26 16:08:09
Modified files:
. : ChangeLog
Xsharp : InputOutputWidget.cs
Log message:
fixed problem with Expose and destroyed handle.
In some cases it could be, that Expose was called but the handle already
was destroyed.
The X events are queued if the app does a lot of work and the events
then
gets to the Widget classes. but if the app destroyes a window and after
that
the events gets processes we get "the widget was destroyed" exception.
This fix, checks the if handle is not null and then calls OnPaint.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2447&r2=1.2448
http://cvs.savannah.gnu.org/viewcvs/pnetlib/Xsharp/InputOutputWidget.cs?cvsroot=dotgnu-pnet&r1=1.12&r2=1.13
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2447
retrieving revision 1.2448
diff -u -b -r1.2447 -r1.2448
--- ChangeLog 21 Oct 2006 14:48:12 -0000 1.2447
+++ ChangeLog 26 Oct 2006 16:08:08 -0000 1.2448
@@ -1,3 +1,7 @@
+2006-10-26 Heiko Weiss <address@hidden>
+
+ * Xsharp/InputOutputWidget.cs: fixed problem with Expose and destroyed
handle.
+
2006-10-21 Radek Polak <address@hidden>
* System.Xml/XmlTextReader.cs: reset current node when end of document
Index: Xsharp/InputOutputWidget.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/Xsharp/InputOutputWidget.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- Xsharp/InputOutputWidget.cs 12 Oct 2005 00:55:06 -0000 1.12
+++ Xsharp/InputOutputWidget.cs 26 Oct 2006 16:08:09 -0000 1.13
@@ -681,6 +681,9 @@
if(region != null)
{
exposeRegion = null;
+ // sometimes it could be that Expose is
called but the handle is destroyed.
+ // so check here, if handle not null.
+ if( handle != XDrawable.Zero ) {
Graphics graphics = new Graphics(this);
graphics.exposeRegion = region;
graphics.SetClipRegion(region);
@@ -689,6 +692,7 @@
region.Dispose();
}
}
+ }
// Get the background information for use in graphics object clears.
internal void GetBackgroundInfo(out Color bg, out Pixmap pixmap,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/InputOutputWidget.cs,
Heiko Weiss <=