コード例 #1
0
        private static void OnDBusNameOwnerChanged(string serviceName, string oldOwner, string newOwner)
        {
            if (serviceName != BUS_NAME)
            {
                return;
            }

            if (oldOwner == null && newOwner.Length > 0)
            {
                // Service has started
                SetInstance();
            }
            else
            {
                // Service has ended
                TomboyInstance = null;
            }
        }
コード例 #2
0
 private static void SetInstance()
 {
     TomboyInstance = Bus.Session.GetObject <ITBoy> (BUS_NAME, new ObjectPath(OBJECT_PATH));
 }
コード例 #3
0
ファイル: TomboyDBus.cs プロジェクト: jrudolph/do-plugins
 private static void SetInstance()
 {
     TomboyInstance = Bus.Session.GetObject<ITBoy> (BUS_NAME, new ObjectPath (OBJECT_PATH));
 }
コード例 #4
0
ファイル: TomboyDBus.cs プロジェクト: jrudolph/do-plugins
        private static void OnDBusNameOwnerChanged(string serviceName, string oldOwner, string newOwner)
        {
            if (serviceName != BUS_NAME)
                return;

            if (oldOwner == null && newOwner.Length > 0)
                // Service has started
                SetInstance ();
            else
                // Service has ended
                TomboyInstance = null;
        }