From 0a094c2662c932e9c20ff147025dfa8eefcca2dc Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 18 Feb 2011 22:00:34 -0600 Subject: [PATCH] Cleanup the Gdk build. * gdk/Colormap.custom: kill dead code * gdk/DeviceAxis.custom: kill dead code * gdk/EdgeTable.custom: kill dead code * gdk/Event.cs: remove dead ClientEvent mapping * gdk/EventClient.cs: kill dead code * gdk/GCValues.custom: kill dead code * gdk/Gdk.metadata: remove a bunch of dead markup and add some new * gdk/Input.custom: kill dead code * gdk/Makefile.am: remove dead files * gdk/PangoAttrEmbossColor.custom: kill dead code * gdk/PangoAttrEmbossed.custom: kill dead code * gdk/PangoAttrStipple.custom: kill dead code * gdk/Region.custom: kill dead code * gdk/RgbCmap.custom: kill dead code * gdk/Window.custom: kill dead code --- gdk/Colormap.custom | 30 ---------- gdk/DeviceAxis.custom | 38 ------------ gdk/EdgeTable.custom | 33 ----------- gdk/Event.cs | 2 - gdk/EventClient.cs | 100 -------------------------------- gdk/GCValues.custom | 50 ---------------- gdk/Gdk.metadata | 90 +++------------------------- gdk/Input.custom | 40 ------------- gdk/Makefile.am | 11 ---- gdk/PangoAttrEmbossColor.custom | 29 --------- gdk/PangoAttrEmbossed.custom | 51 ---------------- gdk/PangoAttrStipple.custom | 59 ------------------- gdk/Region.custom | 47 --------------- gdk/RgbCmap.custom | 28 --------- gdk/Window.custom | 16 ----- 15 files changed, 7 insertions(+), 617 deletions(-) delete mode 100644 gdk/Colormap.custom delete mode 100644 gdk/DeviceAxis.custom delete mode 100644 gdk/EdgeTable.custom delete mode 100644 gdk/EventClient.cs delete mode 100644 gdk/GCValues.custom delete mode 100644 gdk/Input.custom delete mode 100644 gdk/PangoAttrEmbossColor.custom delete mode 100644 gdk/PangoAttrEmbossed.custom delete mode 100644 gdk/PangoAttrStipple.custom delete mode 100644 gdk/Region.custom delete mode 100644 gdk/RgbCmap.custom diff --git a/gdk/Colormap.custom b/gdk/Colormap.custom deleted file mode 100644 index 5029db880..000000000 --- a/gdk/Colormap.custom +++ /dev/null @@ -1,30 +0,0 @@ -// Gdk.Colormap.custom - Colormap customizations -// -// Copyright (c) 2009 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - public int AllocColors (Gdk.Color[] colors, int n_colors, bool writeable, bool best_match, bool[] success) - { - return gdk_colormap_alloc_colors (Handle, colors, n_colors, writeable, best_match, success); - } - - public void FreeColors (Gdk.Color[] colors, int n_colors) - { - gdk_colormap_free_colors (Handle, colors, n_colors); - } diff --git a/gdk/DeviceAxis.custom b/gdk/DeviceAxis.custom deleted file mode 100644 index 923f9fdbe..000000000 --- a/gdk/DeviceAxis.custom +++ /dev/null @@ -1,38 +0,0 @@ -// Gdk.Point.DeviceAxis - Gdk DeviceAxis class customizations -// -// Author: Jasper van Putten -// -// Copyright (c) 2002 Jasper van Putten -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - -/// -/// ToString method -/// -/// -/// -/// returns a string representation of this DeviceAxis -/// -/// - -public override string ToString () -{ - return "Gdk.DeviceAxis, max:" + this.Max + ",min:" + this.Min + ",use:" + this.Use; -} - - diff --git a/gdk/EdgeTable.custom b/gdk/EdgeTable.custom deleted file mode 100644 index 3e2910dec..000000000 --- a/gdk/EdgeTable.custom +++ /dev/null @@ -1,33 +0,0 @@ -// Gdk.EdgeTable.custom - Gdk EdgeTable class customizations -// -// Author: Mike Kestner -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - [Obsolete ("Replaced by Scanlines property.")] - public Gdk.ScanLineList scanlines { - get { - Gdk.ScanLineList ret = new Gdk.ScanLineList(_scanlines); - if (ret == null) ret = new Gdk.ScanLineList(_scanlines); - return ret; - } - set { _scanlines = value.Handle; } - } - diff --git a/gdk/Event.cs b/gdk/Event.cs index 48d5489ef..9b9561135 100644 --- a/gdk/Event.cs +++ b/gdk/Event.cs @@ -131,8 +131,6 @@ namespace Gdk { case EventType.DropStart: case EventType.DropFinished: return new EventDND (raw); - case EventType.ClientEvent: - return new EventClient (raw); case EventType.VisibilityNotify: return new EventVisibility (raw); case EventType.Scroll: diff --git a/gdk/EventClient.cs b/gdk/EventClient.cs deleted file mode 100644 index 134be6e5c..000000000 --- a/gdk/EventClient.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Gdk.EventClient.cs - Custom client event wrapper -// -// Author: Mike Kestner -// -// Copyright (c) 2004-2009 Novell, Inc. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - -namespace Gdk { - - using System; - using System.Runtime.InteropServices; - - public class EventClient : Event { - - public EventClient (IntPtr raw) : base (raw) {} - - struct NativeStruct { - EventType type; - IntPtr window; - sbyte send_event; - public IntPtr message_type; - public ushort data_format; - public IntPtr data_as_long0; - public IntPtr data_as_long1; - public IntPtr data_as_long2; - public IntPtr data_as_long3; - public IntPtr data_as_long4; - } - - NativeStruct Native { - get { return (NativeStruct) Marshal.PtrToStructure (Handle, typeof (NativeStruct)); } - } - - public ushort DataFormat { - get { return Native.data_format; } - set { - NativeStruct native = Native; - native.data_format = value; - Marshal.StructureToPtr (native, Handle, false); - } - } - - public Atom MessageType { - get { - IntPtr msg_type = Native.message_type; - return msg_type == IntPtr.Zero ? null : (Atom) GLib.Opaque.GetOpaque (msg_type, typeof (Atom), false); - } - set { - NativeStruct native = Native; - native.message_type = value == null ? IntPtr.Zero : value.Handle; - Marshal.StructureToPtr (native, Handle, false); - } - } - - IntPtr DataPointer { - get { - int offset = Marshal.SizeOf (typeof (NativeStruct)) - 5 * IntPtr.Size; - return new IntPtr (Handle.ToInt64 () + offset); - } - } - - public Array Data { - get { - switch (DataFormat) { - case 8: - byte[] b = new byte [20]; - Marshal.Copy (b, 0, DataPointer, 20); - return b; - case 16: - short[] s = new short [10]; - Marshal.Copy (s, 0, DataPointer, 10); - return s; - case 32: - IntPtr data_ptr = DataPointer; - long[] l = new long [5]; - for (int i = 0; i < 5; i++) - l [i] = (long) Marshal.ReadIntPtr (data_ptr, i * IntPtr.Size); - return l; - default: - throw new Exception ("Invalid Data Format: " + DataFormat); - } - } - } - } -} - diff --git a/gdk/GCValues.custom b/gdk/GCValues.custom deleted file mode 100644 index 9073a38cb..000000000 --- a/gdk/GCValues.custom +++ /dev/null @@ -1,50 +0,0 @@ -// Gdk.GCValues.custom - Gdk GCValues class customizations -// -// Author: Mike Kestner -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - [Obsolete ("Replaced by Tile property.")] - public Gdk.Pixmap tile { - get { - Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_tile); - return ret; - } - set { _tile = value.Handle; } - } - - [Obsolete ("Replaced by Stipple property.")] - public Gdk.Pixmap stipple { - get { - Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_stipple); - return ret; - } - set { _stipple = value.Handle; } - } - - [Obsolete ("Replaced by ClipMask property.")] - public Gdk.Pixmap clip_mask { - get { - Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_clip_mask); - return ret; - } - set { _clip_mask = value.Handle; } - } - diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index d60253769..80ae9141a 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -6,33 +6,20 @@ gboolean ref 1 - true - 1 - 1 - 1 - false - out - out + GetDisabled + 1 + 1 1 CairoHelper - 1 1 - out out 1 EventHelper - 1 - 1 const-gchar* 1 - 1 - 1 1 1 1 - 1 - 1 - 1 /api/namespace/class[@cname='GdkGlobal'] 1 NotifyStartupComplete @@ -41,66 +28,29 @@ 1 1 1 - ref 1 - 1 - 1 - async - 1 1 AddIdle 1 AddTimeout + 1 + AddTimeoutSeconds 1 ReleaseMask | 0x1fff - InputOutput - InputOnly - 1 - CreateBitmapFromData - /api/namespace/object[@cname='GdkPixmap'] - 1 - ref - 1 - 1 - ref - 1 - public - public - public - public - public - public 1 1 1 1 - 1 1 1 GetSupportsComposite GetSupportsInputShapes GetSupportsShapes 1 - DragProtocol - 1 GdkAtom* - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - out - gpointer - private - private 1 1 - GdkPangoRenderer* 1 1 1 @@ -124,13 +74,6 @@ true 1 1 - GdkDrawable - out - out - 1 - out - out - 1 1 out 1 @@ -149,12 +92,9 @@ 1 1 out - out - out out out out - 1 call 1 1 @@ -166,7 +106,6 @@ 1 1 1 - 1 1 1 1 @@ -175,7 +114,6 @@ 1 1 1 - 1 1 1 1 @@ -184,26 +122,12 @@ 1 1 1 - GetDisabled - 1 - 1 1 1 1 - 1 - 1 - 1 - 1 - private - 1 - out - 1 - 1 - call - 1 - false 128 - 1 + + diff --git a/gdk/Input.custom b/gdk/Input.custom deleted file mode 100644 index 91f17c990..000000000 --- a/gdk/Input.custom +++ /dev/null @@ -1,40 +0,0 @@ -// Gdk.Input.custom - Gdk Input class customizations -// -// Author: Mike Kestner -// -// Copyright (C) 2005, 2007 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - [DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern int gdk_input_add_full (int source, int condition, GdkSharp.InputFunctionNative function, IntPtr data, GLib.DestroyNotify destroy); - - [Obsolete] - public static int AddFull (int source, Gdk.InputCondition condition, Gdk.InputFunction function, IntPtr data, Gdk.DestroyNotify destroy) - { - GdkSharp.InputFunctionWrapper function_wrapper = new GdkSharp.InputFunctionWrapper (function); - GCHandle gch = GCHandle.Alloc (function_wrapper); - return gdk_input_add_full (source, (int) condition, function_wrapper.NativeDelegate, (IntPtr) gch, GLib.DestroyHelper.NotifyHandler); - } - - [Obsolete] - public static int Add (int source, Gdk.InputCondition condition, Gdk.InputFunction function) - { - GdkSharp.InputFunctionWrapper function_wrapper = new GdkSharp.InputFunctionWrapper (function); - GCHandle gch = GCHandle.Alloc (function_wrapper); - return gdk_input_add_full (source, (int) condition, function_wrapper.NativeDelegate, (IntPtr) gch, GLib.DestroyHelper.NotifyHandler); - } diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 5eb880491..c26ed2d82 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -7,7 +7,6 @@ glue_includes = gdk/gdk.h sources = \ EventButton.cs \ - EventClient.cs \ EventConfigure.cs \ EventCrossing.cs \ Event.cs \ @@ -33,19 +32,11 @@ sources = \ customs = \ Atom.custom \ Color.custom \ - Colormap.custom \ Device.custom \ - DeviceAxis.custom \ Display.custom \ DisplayManager.custom \ - EdgeTable.custom \ - GCValues.custom \ Global.custom \ - Input.custom \ Keymap.custom \ - PangoAttrEmbossed.custom\ - PangoAttrEmbossColor.custom \ - PangoAttrStipple.custom \ Pixbuf.custom \ PixbufAnimation.custom \ PixbufFrame.custom \ @@ -53,8 +44,6 @@ customs = \ Pixdata.custom \ Point.custom \ Property.custom \ - Region.custom \ - RgbCmap.custom \ Screen.custom \ Selection.custom \ WindowAttr.custom \ diff --git a/gdk/PangoAttrEmbossColor.custom b/gdk/PangoAttrEmbossColor.custom deleted file mode 100644 index dff1c62c7..000000000 --- a/gdk/PangoAttrEmbossColor.custom +++ /dev/null @@ -1,29 +0,0 @@ -// Gdk.PangoAttrEmbossColor.custom - Gdk PangoAttrEmbossColor class customizations -// -// Copyright (c) 2007 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - public static explicit operator Pango.Attribute (PangoAttrEmbossColor attr) - { - return Pango.Attribute.GetAttribute (attr.Handle); - } - - public static explicit operator PangoAttrEmbossColor (Pango.Attribute attr) - { - return new PangoAttrEmbossColor (attr.Handle); - } diff --git a/gdk/PangoAttrEmbossed.custom b/gdk/PangoAttrEmbossed.custom deleted file mode 100644 index e5a8a56f2..000000000 --- a/gdk/PangoAttrEmbossed.custom +++ /dev/null @@ -1,51 +0,0 @@ -// Gdk.PangoAttrEmbossed.custom - Gdk PangoAttrEmbossed class customizations -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - [Obsolete("Gdk.PangoAttrEmbossed is a reference type now, use null")] - public static PangoAttrEmbossed Zero = null; - - [Obsolete("Replaced by PangoAttrEmbossed(IntPtr) constructor")] - public static PangoAttrEmbossed New (IntPtr raw) - { - return new PangoAttrEmbossed (raw); - } - - [Obsolete("Replaced by PangoAttrEmbossed(bool) constructor")] - public static PangoAttrEmbossed New (bool embossed) - { - return new PangoAttrEmbossed (embossed); - } - - [Obsolete("Replaced by explicit Pango.Attribute cast")] - public Pango.Attribute Attr { - get { - return (Pango.Attribute)this; - } - } - - public static explicit operator Pango.Attribute (PangoAttrEmbossed attr_embossed) - { - return Pango.Attribute.GetAttribute (attr_embossed.Handle); - } - - public static explicit operator PangoAttrEmbossed (Pango.Attribute attr) - { - return new PangoAttrEmbossed (attr.Handle); - } diff --git a/gdk/PangoAttrStipple.custom b/gdk/PangoAttrStipple.custom deleted file mode 100644 index 9c21c8ba2..000000000 --- a/gdk/PangoAttrStipple.custom +++ /dev/null @@ -1,59 +0,0 @@ -// Gdk.PangoAttrStipple.custom - Gdk PangoAttrStipple class customizations -// -// Author: Mike Kestner -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - [Obsolete("Gdk.PangoAttrStipple is a reference type now, use null")] - public static PangoAttrStipple Zero = null; - - [Obsolete("Replaced by PangoAttrStipple(IntPtr) constructor")] - public static PangoAttrStipple New (IntPtr raw) - { - return new PangoAttrStipple (raw); - } - - [Obsolete("Replaced by PangoAttrStipple(Gdk.Pixmap) constructor")] - public static PangoAttrStipple New (Gdk.Pixmap stipple) - { - return new PangoAttrStipple (stipple); - } - - [Obsolete("Replaced by explicit Pango.Attribute cast")] - public Pango.Attribute Attr { - get { - return (Pango.Attribute)this; - } - } - - [Obsolete ("Replaced by Stipple property.")] - public Gdk.Pixmap stipple { - get { return Stipple; } - set { Stipple = value; } - } - - public static explicit operator Pango.Attribute (PangoAttrStipple attr_stipple) - { - return Pango.Attribute.GetAttribute (attr_stipple.Handle); - } - - public static explicit operator PangoAttrStipple (Pango.Attribute attr) - { - return new PangoAttrStipple (attr.Handle); - } diff --git a/gdk/Region.custom b/gdk/Region.custom deleted file mode 100644 index a08d64d17..000000000 --- a/gdk/Region.custom +++ /dev/null @@ -1,47 +0,0 @@ -// Gdk.Region.custom - Gdk Region class customizations -// -// Author: Joshua Tauberer -// -// Copyright (c) 2004 Joshua Tauberer -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - -[DllImport ("libglib-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] -static extern void g_free (IntPtr mem); - -[DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] -static extern void gdk_region_get_rectangles(IntPtr raw, out IntPtr rectangles, out int n_rectangles); - -public Rectangle[] GetRectangles () -{ - int n; - IntPtr rectangles; - gdk_region_get_rectangles(Handle, out rectangles, out n); - - Rectangle[] ret = new Rectangle[n]; - int step = Marshal.SizeOf(typeof(Rectangle)); - long ptr = (long)rectangles; - for (int i = 0; i < n; i++) { - ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle)); - ptr += step; - } - - g_free(rectangles); - - return ret; -} - diff --git a/gdk/RgbCmap.custom b/gdk/RgbCmap.custom deleted file mode 100644 index 184c40e5c..000000000 --- a/gdk/RgbCmap.custom +++ /dev/null @@ -1,28 +0,0 @@ -// Gdk.RgbCmap.custom - Gdk RgbCmap class customizations -// -// Copyright (c) 2005 Novell, Inc. -// -// This code is inserted after the automatically generated code. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - [Obsolete("Gdk.RgbCmap is a reference type now, use null")] - public static RgbCmap Zero = null; - - [Obsolete("Replaced by RgbCmap(IntPtr) constructor")] - public static RgbCmap New (IntPtr raw) - { - return new RgbCmap (raw); - } diff --git a/gdk/Window.custom b/gdk/Window.custom index 5d9a3a89b..520ca4a41 100644 --- a/gdk/Window.custom +++ b/gdk/Window.custom @@ -52,22 +52,6 @@ } } - [DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gdk_window_get_toplevels(); - - public static Window[] Toplevels { - get { - IntPtr raw_ret = gdk_window_get_toplevels(); - if (raw_ret == IntPtr.Zero) - return new Window [0]; - GLib.List list = new GLib.List(raw_ret); - Window[] result = new Window [list.Count]; - for (int i = 0; i < list.Count; i++) - result [i] = list [i] as Window; - return result; - } - } - [DllImport ("libgobject-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr g_object_ref (IntPtr raw);