# HG changeset patch # User Rik # Date 1424842701 28800 # Node ID bf511802add76eb8828d1dca4aedfeb3092c960b # Parent 5c1a38089f8999c396d60291596e22cb0f678b25 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. diff -r 5c1a38089f89 -r bf511802add7 doc/interpreter/gui.txi --- 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) diff -r 5c1a38089f89 -r bf511802add7 libinterp/corefcn/sysdep.cc --- 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 ()); diff -r 5c1a38089f89 -r bf511802add7 libinterp/octave.cc --- 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;