changeset 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 1e12601d2697
children 23cc9c13b622
files scripts/plot/figure.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/figure.m	Tue Oct 11 22:02:39 2011 -0400
+++ b/scripts/plot/figure.m	Wed Oct 12 10:55:45 2011 +0100
@@ -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;