diff --git a/ChangeLog b/ChangeLog index 15cab0bb8..d80f3ae1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-08-24 Mike Kestner + + * gdk/Drawable.custom : add a DrawPolygon overload with bool filled + and mark the old int filled overload Obsolete. + [Fixes #60702] + 2004-08-20 Mike Kestner * atk/Atk.metadata : mark an array param on Relation ctor. diff --git a/doc/ChangeLog b/doc/ChangeLog index bed2b3479..6a498c0c6 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-24 Mike Kestner + + * en/Gdk/Drawable.xml : add DrawPolygon overload and doc both. + 2004-08-22 Shane Landrum * en/Gtk/RowActivatedArgs.xml diff --git a/doc/en/Gdk/Drawable.xml b/doc/en/Gdk/Drawable.xml index 33651f6c9..b97adfe10 100644 --- a/doc/en/Gdk/Drawable.xml +++ b/doc/en/Gdk/Drawable.xml @@ -440,11 +440,11 @@ - To be added + Draws a Polygon connecting a set of points. a a a - To be added + This method is obsolete. Use the overload which takes a for @@ -800,5 +800,25 @@ To be added + + + Method + + System.Void + + + + + + + + Draws a Polygon connecting a set of points. + a + a + a + + + + - \ No newline at end of file + diff --git a/gdk/Drawable.custom b/gdk/Drawable.custom index c933c7609..12de3d933 100644 --- a/gdk/Drawable.custom +++ b/gdk/Drawable.custom @@ -27,11 +27,17 @@ public void DrawRectangle(Gdk.GC gc, bool filled, Gdk.Rectangle area) [DllImport("libgdk-win32-2.0-0.dll")] static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints); +[Obsolete] public void DrawPolygon(Gdk.GC gc, int filled, Gdk.Point[] points) { gdk_draw_polygon(Handle, gc.Handle, filled, points, points.Length); } +public void DrawPolygon(Gdk.GC gc, bool filled, Gdk.Point[] points) +{ + gdk_draw_polygon(Handle, gc.Handle, filled ? 1 : 0, points, points.Length); +} + [DllImport("libgdk-win32-2.0-0.dll")] static extern void gdk_draw_lines(IntPtr raw, IntPtr gc, Gdk.Point[] points, int npoints);