changeset 19891:bf511802add7

doc: Add have_window_system() to documentation. * gui.txi: Add to Octave manual. * sysdep.cc (Fhave_window_system): Add sealso link to isguirunning. * octave.cc (Fisguirunning): Add sealso link to have_window_system.
author Rik <rik@octave.org>
date Tue, 24 Feb 2015 21:38:21 -0800
parents 5c1a38089f89
children 734a77207e2e
files doc/interpreter/gui.txi libinterp/corefcn/sysdep.cc libinterp/octave.cc
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/gui.txi	Tue Feb 24 21:22:28 2015 -0800
+++ b/doc/interpreter/gui.txi	Tue Feb 24 21:38:21 2015 -0800
@@ -96,6 +96,8 @@
 
 @DOCSTRING(guihandles)
 
+@DOCSTRING(have_window_system)
+
 @DOCSTRING(isguirunning)
 
 @DOCSTRING(uiwait)
--- a/libinterp/corefcn/sysdep.cc	Tue Feb 24 21:22:28 2015 -0800
+++ b/libinterp/corefcn/sysdep.cc	Tue Feb 24 21:38:21 2015 -0800
@@ -1021,6 +1021,7 @@
 @deftypefn {Built-in Function} {} have_window_system ()\n\
 Return true if a window system is available (X11, Windows, or Apple OS X)\n\
 and false otherwise.\n\
+@seealso{isguirunning}\n\
 @end deftypefn")
 {
   return octave_value (display_info::display_available ());
--- a/libinterp/octave.cc	Tue Feb 24 21:22:28 2015 -0800
+++ b/libinterp/octave.cc	Tue Feb 24 21:38:21 2015 -0800
@@ -980,6 +980,7 @@
        "-*- texinfo -*-\n\
 @deftypefn {Built-in Function} {} isguirunning ()\n\
 Return true if Octave is running in GUI mode and false otherwise.\n\
+@seealso{have_window_system}\n\
 @end deftypefn")
 {
   octave_value retval;