From 39b784baa04dbece7c8002b6d118ab28ee1a8a7c Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Tue, 15 Oct 2002 21:46:33 +0000 Subject: [PATCH] Forgot to commit the bit that resets the handler for Gnome svn path=/trunk/gtk-sharp/; revision=8300 --- gnome/Program.custom | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnome/Program.custom b/gnome/Program.custom index be9052d16..4154f4879 100644 --- a/gnome/Program.custom +++ b/gnome/Program.custom @@ -52,6 +52,17 @@ public Program (string app_id, string app_version, ModuleInfo module, new_argv[0] = app_id; Array.Copy (argv, 0, new_argv, 1, argv.Length); Raw = gtksharp_gnome_program_init (app_id, app_version, ref module, new_argv.Length, new_argv, nargs, args); + + // + // Dynamically reset the signal handlers, because Gnome overwrites them + // + Type mono_runtime_type = Type.GetType ("Mono.Runtime"); + if (mono_runtime_type != null){ + object [] iargs = new object [0]; + System.Reflection.MethodInfo mi = mono_runtime_type.GetMethod ("InstallSignalHandlers"); + + mi.Invoke (null, iargs); + } } public void Run ()