Author: toshok
Date: 2007-06-19 14:05:07 -0400 (Tue, 19 Jun 2007)
New Revision: 80215
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/runtime.cpp
Log:
2007-06-19 Chris Toshok <[EMAIL PROTECTED]>
* runtime.cpp (clear_drawing_area): this method doesn't need to
clean up the xlib cairo context/surface and the pixmap.
There are two possibilities:
1) the drawing area has been realized, which means we have xlib
surface/context + pixmap. We're guaranteed to hit
unrealized_callback before this method is called, so they will
have already been freed.
2) the drawing area has not been realized, which means we have no
xlib surface/context + pixmap, and this method doesn't need to do
anything.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-19 17:57:39 UTC (rev 80214)
+++ trunk/moon/src/ChangeLog 2007-06-19 18:05:07 UTC (rev 80215)
@@ -1,3 +1,19 @@
+2007-06-19 Chris Toshok <[EMAIL PROTECTED]>
+
+ * runtime.cpp (clear_drawing_area): this method doesn't need to
+ clean up the xlib cairo context/surface and the pixmap.
+
+ There are two possibilities:
+
+ 1) the drawing area has been realized, which means we have xlib
+ surface/context + pixmap. We're guaranteed to hit
+ unrealized_callback before this method is called, so they will
+ have already been freed.
+
+ 2) the drawing area has not been realized, which means we have no
+ xlib surface/context + pixmap, and this method doesn't need to do
+ anything.
+
2007-06-19 Jackson Harper <[EMAIL PROTECTED]>
* runtime.h/shape.cpp: Fix typo.
Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp 2007-06-19 17:57:39 UTC (rev 80214)
+++ trunk/moon/src/runtime.cpp 2007-06-19 18:05:07 UTC (rev 80215)
@@ -1456,12 +1456,6 @@
Surface *s = (Surface *) data;
s->drawing_area = NULL;
- cairo_destroy (s->cairo_xlib);
- s->cairo_xlib = NULL;
- cairo_surface_destroy (s->xlib_surface);
- g_object_unref (s->pixmap);
-
- s->cairo = s->cairo_buffer;
}
void
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches