From 99793aa24f950bf5424066ef6fdbea948594bb3a Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 18 Feb 2004 18:16:24 +0000 Subject: [PATCH] 2004-02-18 Mike Kestner * gdk/Gdk.metadata : hide EventVisibility. * gdk/EventVisibility.cs : glue-based manual implementation. * gdk/EventVisibility.custom : kill * gdk/gdk-api.xml : regen * gdk/gdk-symbols.xml : manual mapping for EventVisibility. * glue/event.cs : expose Visibility struct fields. svn path=/trunk/gtk-sharp/; revision=23227 --- ChangeLog | 9 +++++++++ gdk/EventVisibility.cs | 26 ++++++++++++++++++++++++++ gdk/EventVisibility.custom | 18 ------------------ gdk/Gdk.metadata | 1 + gdk/gdk-api.xml | 2 +- gdk/gdk-symbols.xml | 1 + glue/event.c | 7 +++++++ 7 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 gdk/EventVisibility.cs delete mode 100644 gdk/EventVisibility.custom diff --git a/ChangeLog b/ChangeLog index d25eba7bc..81e01db42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-02-18 Mike Kestner + + * gdk/Gdk.metadata : hide EventVisibility. + * gdk/EventVisibility.cs : glue-based manual implementation. + * gdk/EventVisibility.custom : kill + * gdk/gdk-api.xml : regen + * gdk/gdk-symbols.xml : manual mapping for EventVisibility. + * glue/event.cs : expose Visibility struct fields. + 2004-02-18 Mike Kestner * gdk/Gdk.metadata : hide EventExpose. make Region opaque. diff --git a/gdk/EventVisibility.cs b/gdk/EventVisibility.cs new file mode 100644 index 000000000..31e9d841a --- /dev/null +++ b/gdk/EventVisibility.cs @@ -0,0 +1,26 @@ +// Gdk.EventVisibility.cs - Custom visibility event wrapper +// +// Author: Mike Kestner +// +// (c) 2004 Novell, Inc. + +namespace Gdk { + + using System; + using System.Runtime.InteropServices; + + public class EventVisibility : Event { + + [DllImport("gtksharpglue")] + static extern VisibilityState gtksharp_gdk_event_visibility_get_state (IntPtr evt); + + public EventVisibility (IntPtr raw) : base (raw) {} + + public VisibilityState State { + get { + return gtksharp_gdk_event_visibility_get_state (Handle); + } + } + } +} + diff --git a/gdk/EventVisibility.custom b/gdk/EventVisibility.custom deleted file mode 100644 index d5b304c3e..000000000 --- a/gdk/EventVisibility.custom +++ /dev/null @@ -1,18 +0,0 @@ -// -// gdk/EventVisibility.custom -// -// Author: Gustavo Giraldez -// -// Copyright (C) 2004 Gustavo Giraldez. -// - -[DllImport("libgdk-win32-2.0-0.dll")] -static extern IntPtr gdk_event_get_type(); - -public static GLib.GType GType { - get { - IntPtr raw_ret = gdk_event_get_type(); - GLib.GType ret = new GLib.GType(raw_ret); - return ret; - } -} diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index 95233cb35..384a129f5 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -69,6 +69,7 @@ 1 1 1 + 1 1 1 128 diff --git a/gdk/gdk-api.xml b/gdk/gdk-api.xml index d8c65495d..530457833 100644 --- a/gdk/gdk-api.xml +++ b/gdk/gdk-api.xml @@ -2415,7 +2415,7 @@ - +