Revision: 4929
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4929&view=rev
Author:   ossman_
Date:     2012-07-05 11:06:18 +0000 (Thu, 05 Jul 2012)
Log Message:
-----------
Make RemoteResize configurable from the options dialog.

Modified Paths:
--------------
    trunk/vncviewer/OptionsDialog.cxx
    trunk/vncviewer/OptionsDialog.h

Modified: trunk/vncviewer/OptionsDialog.cxx
===================================================================
--- trunk/vncviewer/OptionsDialog.cxx   2012-07-05 11:01:23 UTC (rev 4928)
+++ trunk/vncviewer/OptionsDialog.cxx   2012-07-05 11:06:18 UTC (rev 4929)
@@ -285,6 +285,7 @@
     snprintf(buf, sizeof(buf), "%d", height);
     desktopHeightInput->value(buf);
   }
+  remoteResizeCheckbox->value(remoteResize);
   fullScreenCheckbox->value(fullScreen);
 
   handleDesktopSize(desktopSizeCheckbox, this);
@@ -387,6 +388,7 @@
   } else {
     desktopSize.setParam("");
   }
+  remoteResize.setParam(remoteResizeCheckbox->value());
   fullScreen.setParam(fullScreenCheckbox->value());
 
   /* Misc. */
@@ -740,6 +742,12 @@
   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,

Modified: trunk/vncviewer/OptionsDialog.h
===================================================================
--- trunk/vncviewer/OptionsDialog.h     2012-07-05 11:01:23 UTC (rev 4928)
+++ trunk/vncviewer/OptionsDialog.h     2012-07-05 11:06:18 UTC (rev 4929)
@@ -112,6 +112,7 @@
   Fl_Check_Button *desktopSizeCheckbox;
   Fl_Int_Input *desktopWidthInput;
   Fl_Int_Input *desktopHeightInput;
+  Fl_Check_Button *remoteResizeCheckbox;
   Fl_Check_Button *fullScreenCheckbox;
 
   /* Misc. */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to