~ubuntu-branches/ubuntu/lucid/tomboy/lucid-proposed

« back to all changes in this revision

Viewing changes to Tomboy/RemoteControlProxy.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-28 14:11:49 UTC
  • mfrom: (1.3.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100128141149-snoxliun1ta8x8d2
Tags: 1.1.1-0ubuntu1
* New upstream version
* debian/control.in:
  - build-depends on cdbs to get strip-schema installed
  - updated cli build-depends for the new binary changes
* debian/rules:
  - set gettext domain in the desktop entry and run strip-schema on build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using System;
 
2
using System.Threading;
2
3
#if ENABLE_DBUS
3
4
using NDesk.DBus;
4
5
using org.freedesktop.DBus;
7
8
using System.Runtime.Remoting.Activation;
8
9
using System.Runtime.Remoting.Channels;
9
10
using System.Runtime.Remoting.Channels.Ipc;
10
 
using System.Threading;
11
11
#endif
12
12
 
13
13
namespace Tomboy
14
14
{
15
15
        public static class RemoteControlProxy {
 
16
                private static Mutex mutex;
 
17
                private static bool firstInstance;
 
18
                private const string MutexName = "{9EF7D32D-3392-4940-8A28-1320A7BD42AB}";
16
19
#if ENABLE_DBUS
17
20
                private const string Path = "/org/gnome/Tomboy/RemoteControl";
18
21
                private const string Namespace = "org.gnome.Tomboy";
19
22
#else
20
 
                private static Mutex mutex;
21
23
                private static IpcChannel IpcChannel;
22
 
                private static bool firstInstance;
23
 
                private const string MutexName = "{9EF7D32D-3392-4940-8A28-1320A7BD42AB}";
24
24
                private const string ServerName = "TomboyServer";
25
25
                private const string ClientName = "TomboyClient";
26
26
                private const string WrapperName = "TomboyRemoteControlWrapper";
99
99
                        }
100
100
#endif
101
101
                }
102
 
#if !ENABLE_DBUS
 
102
 
103
103
                public static bool FirstInstance {
104
104
                        get {
105
105
                                // Use a mutex to provide single-instance detection
108
108
                                return firstInstance;
109
109
                        }
110
110
                }
111
 
#endif
112
111
        }
113
112
}