Revision: 4930
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4930&view=rev
Author:   ossman_
Date:     2012-07-10 11:11:23 +0000 (Tue, 10 Jul 2012)
Log Message:
-----------
Hide the full screen setting when support isn't present.

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

Modified: trunk/vncviewer/OptionsDialog.cxx
===================================================================
--- trunk/vncviewer/OptionsDialog.cxx   2012-07-05 11:06:18 UTC (rev 4929)
+++ trunk/vncviewer/OptionsDialog.cxx   2012-07-10 11:11:23 UTC (rev 4930)
@@ -286,7 +286,9 @@
     desktopHeightInput->value(buf);
   }
   remoteResizeCheckbox->value(remoteResize);
+#ifdef HAVE_FLTK_FULLSCREEN
   fullScreenCheckbox->value(fullScreen);
+#endif // HAVE_FLTK_FULLSCREEN
 
   handleDesktopSize(desktopSizeCheckbox, this);
 
@@ -389,7 +391,9 @@
     desktopSize.setParam("");
   }
   remoteResize.setParam(remoteResizeCheckbox->value());
+#ifdef HAVE_FLTK_FULLSCREEN
   fullScreen.setParam(fullScreenCheckbox->value());
+#endif // HAVE_FLTK_FULLSCREEN
 
   /* Misc. */
   shared.setParam(sharedCheckbox->value());
@@ -748,12 +752,16 @@
                                                       _("Resize remote session 
to the local window")));
   ty += CHECK_HEIGHT + TIGHT_MARGIN;
 
+#ifdef HAVE_FLTK_FULLSCREEN
+
   fullScreenCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
                                                   CHECK_MIN_WIDTH,
                                                   CHECK_HEIGHT,
                                                   _("Full-screen mode")));
   ty += CHECK_HEIGHT + TIGHT_MARGIN;
 
+#endif // HAVE_FLTK_FULLSCREEN
+
   group->end();
 }
 

Modified: trunk/vncviewer/parameters.cxx
===================================================================
--- trunk/vncviewer/parameters.cxx      2012-07-05 11:06:18 UTC (rev 4929)
+++ trunk/vncviewer/parameters.cxx      2012-07-10 11:11:23 UTC (rev 4930)
@@ -64,7 +64,9 @@
                           "JPEG quality level. 0 = Low, 9 = High",
                           8);
 
+#ifdef HAVE_FLTK_FULLSCREEN
 BoolParameter fullScreen("FullScreen", "Full screen mode", false);
+#endif // HAVE_FLTK_FULLSCREEN
 StringParameter desktopSize("DesktopSize",
                             "Reconfigure desktop size on the server on "
                             "connect (if possible)", "");

Modified: trunk/vncviewer/parameters.h
===================================================================
--- trunk/vncviewer/parameters.h        2012-07-05 11:06:18 UTC (rev 4929)
+++ trunk/vncviewer/parameters.h        2012-07-10 11:11:23 UTC (rev 4930)
@@ -37,7 +37,9 @@
 extern rfb::BoolParameter noJpeg;
 extern rfb::IntParameter qualityLevel;
 
+#ifdef HAVE_FLTK_FULLSCREEN
 extern rfb::BoolParameter fullScreen;
+#endif // HAVE_FLTK_FULLSCREEN
 extern rfb::StringParameter desktopSize;
 extern rfb::BoolParameter remoteResize;
 

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