]> source.dussan.org Git - tigervnc.git/commitdiff
Make RemoteResize configurable from the options dialog.
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jul 2012 11:06:18 +0000 (11:06 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jul 2012 11:06:18 +0000 (11:06 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4929 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/OptionsDialog.cxx
vncviewer/OptionsDialog.h

index d3ed33346a2dec0eb241e00827013001405820da..87cc5afdfeb5d646332dab83e50c32c94d389523 100644 (file)
@@ -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,
index c406a4531fc114c963b28b34e53b4ee4f3a631a2..c26c0c91346a4d3bace4b1574f6dda819e1e31a9 100644 (file)
@@ -112,6 +112,7 @@ protected:
   Fl_Check_Button *desktopSizeCheckbox;
   Fl_Int_Input *desktopWidthInput;
   Fl_Int_Input *desktopHeightInput;
+  Fl_Check_Button *remoteResizeCheckbox;
   Fl_Check_Button *fullScreenCheckbox;
 
   /* Misc. */