static void PreActivate_cb(IntPtr inst, IntPtr action) { try { UIManager __obj = GLib.Object.GetObject(inst, false) as UIManager; __obj.OnPreActivate(GLib.Object.GetObject(action) as Gtk.Action); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } }