From 6e6ccc45166072b1a455bc1ceb324e6870a3cff5 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 17 Nov 2004 19:15:42 +0000 Subject: [PATCH] 2004-11-17 Mike Kestner * gnome/Makefile.am : kill unused file. * gnome/voidObjectAffineSVPintSignal.cs : kill old file. svn path=/trunk/gtk-sharp/; revision=36228 --- ChangeLog | 5 +++ gnome/Makefile.am | 3 +- gnome/voidObjectAffineSVPintSignal.cs | 57 --------------------------- 3 files changed, 6 insertions(+), 59 deletions(-) delete mode 100644 gnome/voidObjectAffineSVPintSignal.cs diff --git a/ChangeLog b/ChangeLog index 0188e8c28..a9c8c22ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-17 Mike Kestner + + * gnome/Makefile.am : kill unused file. + * gnome/voidObjectAffineSVPintSignal.cs : kill old file. + 2004-11-17 Mike Kestner * generator/Makefile.am : add new file. diff --git a/gnome/Makefile.am b/gnome/Makefile.am index 4a0717a57..5705414c4 100644 --- a/gnome/Makefile.am +++ b/gnome/Makefile.am @@ -30,8 +30,7 @@ DISTCLEANFILES = gnome-sharp-2.0.pc $(ASSEMBLY).config AssemblyInfo.cs sources = \ IconData.cs \ IconTheme.cs \ - Modules.cs \ - voidObjectAffineSVPintSignal.cs + Modules.cs build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs diff --git a/gnome/voidObjectAffineSVPintSignal.cs b/gnome/voidObjectAffineSVPintSignal.cs deleted file mode 100644 index 7edbb6ca3..000000000 --- a/gnome/voidObjectAffineSVPintSignal.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Generated File. Do not modify. -// 2001-2002 Mike Kestner - -namespace GtkSharp { - using System; - using System.Runtime.InteropServices; - - internal delegate void voidObjectAffineSVPintDelegate(IntPtr arg0, IntPtr arg1, ref Art.SVP arg2, int arg3, int key); - - internal class voidObjectAffineSVPintSignal : GLib.SignalCallback { - - private static voidObjectAffineSVPintDelegate _Delegate; - - private static void voidObjectAffineSVPintCallback(IntPtr arg0, IntPtr arg1, ref Art.SVP arg2, int arg3, int key) - { - if (!_Instances.Contains(key)) - throw new Exception("Unexpected signal key " + key); - - voidObjectAffineSVPintSignal inst = (voidObjectAffineSVPintSignal) _Instances[key]; - GLib.SignalArgs args = (GLib.SignalArgs) Activator.CreateInstance (inst._argstype); - args.Args = new object[3]; - if (arg1 != IntPtr.Zero) { - double[] affine = new double[6]; - Marshal.Copy (arg1, affine, 0, 6); - args.Args[0] = affine; - } else { - args.Args[0] = null; - } - - args.Args[1] = arg2; - args.Args[2] = arg3; - - object[] argv = new object[2]; - argv[0] = inst._obj; - argv[1] = args; - inst._handler.DynamicInvoke(argv); - } - - [DllImport("libgobject-2.0-0.dll")] static extern void g_signal_connect_data(IntPtr obj, String name, voidObjectAffineSVPintDelegate cb, int key, IntPtr p, int flags); - - public voidObjectAffineSVPintSignal(GLib.Object obj, String name, MulticastDelegate eh, Type argstype) : base(obj, eh, argstype) - { - if (_Delegate == null) { - _Delegate = new voidObjectAffineSVPintDelegate(voidObjectAffineSVPintCallback); - } - g_signal_connect_data(_obj.Handle, name, _Delegate, _key, new IntPtr(0), 0); - } - - ~voidObjectAffineSVPintSignal() - { - _Instances.Remove(_key); - if(_Instances.Count == 0) { - _Delegate = null; - } - } - } -}