Mercurial > octave-nkf
comparison libinterp/dldfcn/__init_fltk__.cc @ 17842:7533f4482006
use gnuplot as default graphics toolkit if display is unavailable (bug #40423)
* display.cc (Fhave_window_system): New function.
* __init_fltk__.cc (PKG_ADD): Don't register fltk toolkit unless
window system is available.
* graphics.cc (gtk_manager::gtk_manager): Set default toolkit to
"gnuplot" if display is not available.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 01 Nov 2013 22:14:37 -0400 |
parents | 06a850f83dd4 |
children | 870f3e12e163 |
comparison
equal
deleted
inserted
replaced
17841:f21f35d9cb42 | 17842:7533f4482006 |
---|---|
27 graphics_toolkit ("fltk"); | 27 graphics_toolkit ("fltk"); |
28 plot (randn (1e3, 1)); | 28 plot (randn (1e3, 1)); |
29 | 29 |
30 */ | 30 */ |
31 | 31 |
32 // PKG_ADD: if (__have_fltk__ ()) register_graphics_toolkit ("fltk"); endif | 32 // PKG_ADD: if (__have_fltk__ () && have_window_system ()) register_graphics_toolkit ("fltk"); endif |
33 | 33 |
34 #ifdef HAVE_CONFIG_H | 34 #ifdef HAVE_CONFIG_H |
35 #include <config.h> | 35 #include <config.h> |
36 #endif | 36 #endif |
37 | 37 |