From 886aad6da97473f40f5ae2d40989a787d50d4610 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Thu, 15 Dec 2011 12:17:11 +0000 Subject: [PATCH] Hide the App window object --- src/moonshot-identity-manager-app.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/moonshot-identity-manager-app.vala b/src/moonshot-identity-manager-app.vala index a65dd60..390e934 100644 --- a/src/moonshot-identity-manager-app.vala +++ b/src/moonshot-identity-manager-app.vala @@ -6,7 +6,9 @@ class IdentityManagerApp : Window { private MoonshotServer ipc_server; private const int WINDOW_WIDTH = 400; private const int WINDOW_HEIGHT = 500; - + public void show() { + view.show(); + } public IdentityManagerApp () { model = new IdentityManagerModel(this); view = new IdentityManagerView(this); @@ -14,7 +16,6 @@ class IdentityManagerApp : Window { view.show(); } - #if IPC_MSRPC private void init_ipc_server () { @@ -27,6 +28,7 @@ class IdentityManagerApp : Window { #elif IPC_DBUS_GLIB private void init_ipc_server () { + try { var conn = DBus.Bus.get (DBus.BusType.SESSION); dynamic DBus.Object bus = conn.get_object ("org.freedesktop.DBus", -- 2.1.4