// obtrusive message box, on Windows
//
this.ipc_server = MoonshotServer.get_instance ();
- MoonshotServer.start (this.view);
+ MoonshotServer.start (this);
}
#elif IPC_DBUS_GLIB
private void init_ipc_server ()
* process ends
*/
public class MoonshotServer : Object {
- private static IdentityManagerView main_window;
+ private static IdentityManagerApp parent_app;
private static MoonshotServer instance = null;
- public static void start (Gtk.Window window)
+ public static void start (IdentityManagerApp app)
{
- main_window = (IdentityManagerView) window;
+ parent_app = app;
Rpc.server_start (MoonshotRpcInterface.spec, "/org/janet/Moonshot", Rpc.Flags.PER_USER);
}
{
bool result = false;
- var request = new IdentityRequest (main_window,
+ var request = new IdentityRequest (parent_app,
nai,
password,
service);
{
bool result;
- var request = new IdentityRequest.default (main_window);
+ var request = new IdentityRequest.default (parent_app);
request.mutex = new Mutex ();
request.cond = new Cond ();
request.set_callback (return_identity_cb);
// Defer addition to the main loop thread.
Idle.add (() => {
mutex.lock ();
- success = main_window.add_identity (idcard);
+ success = parent_app.add_identity (idcard);
cond.signal ();
mutex.unlock ();
return false;