[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-patches
Subject: [Mono-patches] gtk-sharp/sample GnomeHelloWorld.cs,1.11,1.12 Size.cs,1.3,1.4
From: mkestner () mono-cvs ! ximian ! com (Mike Kestner)
Date: 2003-11-29 23:48:16
[Download RAW message or body]
Update of /cvs/public/gtk-sharp/sample
In directory mono-cvs.ximian.com:/tmp/cvs-serv4444/sample
Modified Files:
GnomeHelloWorld.cs Size.cs
Log Message:
2003-11-29 Mike Kestner <mkestner@speakeasy.net>
* */Makefile.in : remove the nowarns
* gdk/Rectangle.custom : add System.Drawing.Rect implicit cast op.
* sample/Size.cs : use System.Drawing.Rectangles
* sample/GnomeHelloWorld.cs : remove an unneeded null check
Index: GnomeHelloWorld.cs
===================================================================
RCS file: /cvs/public/gtk-sharp/sample/GnomeHelloWorld.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- GnomeHelloWorld.cs 20 Nov 2003 01:10:46 -0000 1.11
+++ GnomeHelloWorld.cs 29 Nov 2003 23:48:14 -0000 1.12
@@ -160,7 +160,7 @@
if (type != Gdk.WindowType.Child)
Console.WriteLine ("Struct field accessors appear to be broken.");
- if ((ev != Gdk.EventButton.Zero) && ev.type == EventType.TwoButtonPress && ev.button == 1) {
+ if (ev.type == EventType.TwoButtonPress && ev.button == 1) {
g_spawn_command_line_async ("mono " + entries[idx].program, IntPtr.Zero);
}
}
Index: Size.cs
===================================================================
RCS file: /cvs/public/gtk-sharp/sample/Size.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Size.cs 20 Nov 2003 01:10:46 -0000 1.3
+++ Size.cs 29 Nov 2003 23:48:14 -0000 1.4
@@ -32,10 +32,10 @@
static void Size_Allocated (object obj, SizeAllocatedArgs args)
{
- Gdk.Rectangle rect = args.Allocation;
- if (rect == Gdk.Rectangle.Zero)
+ System.Drawing.Rectangle rect = args.Allocation;
+ if (rect == System.Drawing.Rectangle.Empty)
Console.WriteLine ("ERROR: Allocation is null!");
- Console.WriteLine ("Size: ({0}, {1})", rect.width, rect.height);
+ Console.WriteLine ("Size: ({0}, {1})", rect.Width, rect.Height);
}
}
}
_______________________________________________
Mono-patches maillist - Mono-patches@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic