Author: miguel
Date: 2008-02-02 17:29:41 -0500 (Sat, 02 Feb 2008)
New Revision: 94657
Modified:
trunk/moon/tools/mopen/mopen.cs
Log:
Fix
Modified: trunk/moon/tools/mopen/mopen.cs
===================================================================
--- trunk/moon/tools/mopen/mopen.cs 2008-02-02 22:24:12 UTC (rev 94656)
+++ trunk/moon/tools/mopen/mopen.cs 2008-02-02 22:29:41 UTC (rev 94657)
@@ -88,11 +88,12 @@
{
Widget w = (Widget)sender;
- Cairo.Context ctx = CompositeHelper.Create (w.GdkWindow);
- ctx.Operator = Cairo.Operator.Source;
- ctx.Color = new Cairo.Color (1.0, 1.0, 1.0, 0.0);
- CompositeHelper.Region (ctx, expose_args.Event.Region);
- ctx.Fill ();
+ using (Cairo.Context ctx = CompositeHelper.Create
(w.GdkWindow)){
+ ctx.Operator = Cairo.Operator.Source;
+ ctx.Color = new Cairo.Color (1.0, 1.0, 1.0, 0.0);
+ CompositeHelper.Region (ctx, expose_args.Event.Region);
+ ctx.Fill ();
+ }
}
static bool can_dragging = false;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches