diff options
author | Adam Tkac <atkac@redhat.com> | 2010-05-13 13:12:40 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-05-13 13:12:40 +0000 |
commit | e1f2a52f9031f2517d5e912eddf05e8f2c98f0b8 (patch) | |
tree | 5cfa6326abc38f93fe0ead62417371e21a971704 /win | |
parent | 0835671682bdb7bfb49e30e0b88112d229a5e7e6 (diff) | |
download | tigervnc-e1f2a52f9031f2517d5e912eddf05e8f2c98f0b8.tar.gz tigervnc-e1f2a52f9031f2517d5e912eddf05e8f2c98f0b8.zip |
[Development] winvnc: Add -ShowTrayIcon param which controls if winvnc system
tray icon is showed. Thanks to Antoine Martin.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4052 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r-- | win/winvnc/VNCServerWin32.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win/winvnc/VNCServerWin32.cxx b/win/winvnc/VNCServerWin32.cxx index cd37eef3..4d89a0ef 100644 --- a/win/winvnc/VNCServerWin32.cxx +++ b/win/winvnc/VNCServerWin32.cxx @@ -48,6 +48,8 @@ static BoolParameter localHost("LocalHost", "Only accept connections from via the local loop-back network interface", false); static BoolParameter queryOnlyIfLoggedOn("QueryOnlyIfLoggedOn", "Only prompt for a local user to accept incoming connections if there is a user logged on", false); +static BoolParameter showTrayIcon("ShowTrayIcon", + "Show the configuration applet in the system tray icon", true); VNCServerWin32::VNCServerWin32() @@ -149,7 +151,8 @@ int VNCServerWin32::run() { } // - Create the tray icon (if possible) - trayIcon = new STrayIconThread(*this, IDI_ICON, IDI_CONNECTED, + if (showTrayIcon) + trayIcon = new STrayIconThread(*this, IDI_ICON, IDI_CONNECTED, IDI_ICON_DISABLE, IDI_CONNECTED_DISABLE, IDR_TRAY); |