diff scripts/plot/figure.m @ 13325:09b157ab2672

Only add default menus for FLTK toolkit. * plot/figure.m: Add default menus for FLTK only.
author Michael Goffioul <michael.goffioul@gmail.com>
date Wed, 12 Oct 2011 10:55:45 +0100
parents 984359717d71
children 72c96de7a403
line wrap: on
line diff
--- a/scripts/plot/figure.m
+++ b/scripts/plot/figure.m
@@ -73,7 +73,9 @@
   endif
 
   cf = get (0, "currentfigure");
-  __add_default_menu__ (cf);
+  if (strcmp (get (cf, "__graphics_toolkit__"), "fltk"))
+    __add_default_menu__ (cf);
+  endif
 
   if (nargout > 0)
     h = f;