summaryrefslogtreecommitdiffstats
path: root/java/src/com/tigervnc/vncviewer/CConn.java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-08-18 04:47:09 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-08-18 04:47:09 +0000
commit6b0edb06775615421924048d44d1b299d5a026ad (patch)
tree006345a3594ea3627fdd0703d5fe1c828d9b376c /java/src/com/tigervnc/vncviewer/CConn.java
parent849cfbe473a987d34e2e00cc73bfd2173dd36c0f (diff)
downloadtigervnc-6b0edb06775615421924048d44d1b299d5a026ad.tar.gz
tigervnc-6b0edb06775615421924048d44d1b299d5a026ad.zip
added option to disable system bell. added missing callback for setting options dialog for fastCopyRect
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4637 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/CConn.java')
-rw-r--r--java/src/com/tigervnc/vncviewer/CConn.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/src/com/tigervnc/vncviewer/CConn.java b/java/src/com/tigervnc/vncviewer/CConn.java
index 27f9dc60..c715514f 100644
--- a/java/src/com/tigervnc/vncviewer/CConn.java
+++ b/java/src/com/tigervnc/vncviewer/CConn.java
@@ -386,7 +386,10 @@ public class CConn extends CConnection
desktop.setColourMapEntries(firstColour, nColours, rgbs);
}
- public void bell() { desktop.getToolkit().beep(); }
+ public void bell() {
+ if (viewer.acceptBell.getValue())
+ desktop.getToolkit().beep();
+ }
public void serverCutText(String str, int len) {
if (viewer.acceptClipboard.getValue())
@@ -790,6 +793,7 @@ public class CConn extends CConnection
options.fullScreen.setSelected(fullScreen);
options.useLocalCursor.setSelected(viewer.useLocalCursor.getValue());
options.fastCopyRect.setSelected(viewer.fastCopyRect.getValue());
+ options.acceptBell.setSelected(viewer.acceptBell.getValue());
}
public void getOptions() {
@@ -844,6 +848,8 @@ public class CConn extends CConnection
viewer.viewOnly.setParam(options.viewOnly.isSelected());
viewer.acceptClipboard.setParam(options.acceptClipboard.isSelected());
viewer.sendClipboard.setParam(options.sendClipboard.isSelected());
+ viewer.fastCopyRect.setParam(options.fastCopyRect.isSelected());
+ viewer.acceptBell.setParam(options.acceptBell.isSelected());
clipboardDialog.setSendingEnabled(viewer.sendClipboard.getValue());
menuKey = (int)(options.menuKey.getSelectedIndex()+0xFFBE);
F8Menu.f8.setLabel("Send F"+(menuKey-Keysyms.F1+1));