using Gtk;
-class IdentityManagerApp : Window {
+
+class IdentityManagerApp {
public IdentityManagerModel model;
private IdentityManagerView view;
private MoonshotServer ipc_server;
+#if OS_MACOS
+ public OSXApplication osxApp;
+#endif
private const int WINDOW_WIDTH = 400;
private const int WINDOW_HEIGHT = 500;
public void show() {
model = new IdentityManagerModel(this);
view = new IdentityManagerView(this);
init_ipc_server ();
+#if OS_MACOS
+ osxApp = OSXApplication.get_instance();
+ osxApp.ns_application_open_file.connect(ipc_server.install_from_file);
+#endif
view.show();
}
public static int main(string[] args){
Gtk.init(ref args);
+ stdout.printf("Hello\n");
+ foreach (string arg in args)
+ stdout.printf("arg %s\n", arg);
#if OS_WIN32
// Force specific theme settings on Windows without requiring a gtkrc file
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain (Config.GETTEXT_PACKAGE);
+
var app = new IdentityManagerApp();
app.show();