2004-07-24 Mike Kestner <mkestner@ximian.com>

* gdk/Gdk.metadata : hide Window.Destroy.
	* gdk/Window.custom : manually impl Destroy since it releases our ref.
	* glib/Object.cs : support unset of Raw values.

svn path=/trunk/gtk-sharp/; revision=31448
This commit is contained in:
Mike Kestner 2004-07-24 23:36:39 +00:00
parent d9f518cd57
commit 5c0078ec1c
4 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,10 @@
2004-07-09 Mike Kestner <mkestner@ximian.com>
2004-07-24 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide Window.Destroy.
* gdk/Window.custom : manually impl Destroy since it releases our ref.
* glib/Object.cs : support unset of Raw values.
2004-07-22 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : allow null for ctor(GLib.Object).

View file

@ -68,6 +68,7 @@
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='ListVisuals']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='Width']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='WidthMm']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='Destroy']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetChildren']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']" name="parent">GdkDrawable</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetInternalPaintInfo']/*/*[@type='gint*']" name="pass_as">out</attr>

View file

@ -66,6 +66,14 @@
}
}
[DllImport("libgdk-win32-2.0-0.dll")]
static extern void gdk_window_destroy(IntPtr raw);
public void Destroy() {
gdk_window_destroy(Handle);
Raw = IntPtr.Zero;
}
public void MoveResize (Gdk.Rectangle rect) {
gdk_window_move_resize (Handle, rect.X, rect.Y, rect.Width, rect.Height);
}

View file

@ -197,6 +197,8 @@ namespace GLib {
return _obj;
}
set {
if (_obj != IntPtr.Zero)
Objects.Remove (_obj);
_obj = value;
if (value == IntPtr.Zero)
return;