comparison scripts/plot/uigetdir.m @ 12263:c626741871a0 release-3-4-x

Allow ui file function to work if gnuplot is the selected toolkit and fltk is available
author Kai Habel <kai.habel@gmx.de>
date Thu, 27 Jan 2011 17:58:19 +0100
parents c792872f8942
children 33bbae85769a
comparison
equal deleted inserted replaced
12262:b22c00315df5 12263:c626741871a0
31 31
32 if (nargin > 2) 32 if (nargin > 2)
33 print_usage (); 33 print_usage ();
34 endif 34 endif
35 35
36 if (!ischar(init_path) || !ischar(dialog_name)) 36 if (!ischar (init_path) || !ischar (dialog_name))
37 error ("uigetdir: INIT_PATH and DIALOG_NAME must be string arguments"); 37 error ("uigetdir: INIT_PATH and DIALOG_NAME must be string arguments");
38 endif 38 endif
39 39
40 if (any (strcmp (available_graphics_toolkits (), "fltk"))) 40 if (exist ("__fltk_uigetfile__") == 3)
41 if (!isdir (init_path)) 41 if (!isdir (init_path))
42 init_path = fileparts (init_path); 42 init_path = fileparts (init_path);
43 endif 43 endif
44 dirname = __fltk_uigetfile__ ("", dialog_name, init_path, [240, 120], "dir"); 44 dirname = __fltk_uigetfile__ ("", dialog_name, init_path, [240, 120], "dir");
45 else 45 else