diff scripts/plot/util/graphics_toolkit.m @ 19705:bf27e21f0bfb

maint: Merge default to temporary audio-gsoc branch.
author John W. Eaton <jwe@octave.org>
date Wed, 31 Dec 2014 14:59:42 -0500
parents abc78c10acb6
children 446c46af4b42
line wrap: on
line diff
copy from scripts/plot/graphics_toolkit.m
copy to scripts/plot/util/graphics_toolkit.m
--- a/scripts/plot/graphics_toolkit.m
+++ b/scripts/plot/util/graphics_toolkit.m
@@ -1,4 +1,4 @@
-## Copyright (C) 2008-2012 Michael Goffioul
+## Copyright (C) 2008-2013 Michael Goffioul
 ##
 ## This file is part of Octave.
 ##
@@ -66,6 +66,10 @@
     endif
   endif
 
+  if (! any (strcmp (available_graphics_toolkits (), name)))
+    error ("graphics_toolkit: %s toolkit is not available", name);
+  endif
+
   if (! any (strcmp (loaded_graphics_toolkits (), name)))
     feval (["__init_", name, "__"]);
     if (! any (strcmp (loaded_graphics_toolkits (), name)))