diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-07-05 11:06:18 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-07-05 11:06:18 +0000 |
commit | 9919701ec3b7e94d80c96af8e7cb74eb6eca32b9 (patch) | |
tree | 49e9fdf8f4b1c80cc5185ad5aab772fa731aeff8 /vncviewer/OptionsDialog.cxx | |
parent | 9ff733a67281210bf102524d7606c272bacf5cf6 (diff) | |
download | tigervnc-9919701ec3b7e94d80c96af8e7cb74eb6eca32b9.tar.gz tigervnc-9919701ec3b7e94d80c96af8e7cb74eb6eca32b9.zip |
Make RemoteResize configurable from the options dialog.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4929 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index d3ed3334..87cc5afd 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -285,6 +285,7 @@ void OptionsDialog::loadOptions(void) snprintf(buf, sizeof(buf), "%d", height); desktopHeightInput->value(buf); } + remoteResizeCheckbox->value(remoteResize); fullScreenCheckbox->value(fullScreen); handleDesktopSize(desktopSizeCheckbox, this); @@ -387,6 +388,7 @@ void OptionsDialog::storeOptions(void) } else { desktopSize.setParam(""); } + remoteResize.setParam(remoteResizeCheckbox->value()); fullScreen.setParam(fullScreenCheckbox->value()); /* Misc. */ @@ -740,6 +742,12 @@ void OptionsDialog::createScreenPage(int tx, int ty, int tw, int th) desktopHeightInput = new Fl_Int_Input(x, ty, 50, INPUT_HEIGHT, "x"); ty += INPUT_HEIGHT + TIGHT_MARGIN; + remoteResizeCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty, + CHECK_MIN_WIDTH, + CHECK_HEIGHT, + _("Resize remote session to the local window"))); + ty += CHECK_HEIGHT + TIGHT_MARGIN; + fullScreenCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty, CHECK_MIN_WIDTH, CHECK_HEIGHT, |