Mercurial > hg > octave-lyh
comparison scripts/plot/figure.m @ 17140:e4968b4613a5
Overhaul default menubar (still not perfect).
* scripts/plot/figure.m: Always call __add_default_menu__.
* scripts/plot/private/__add_default_menu__.m: Check that toolkit is FLTK
before proceeding. Don't do redundant check that input is figure handle.
Don't turn off handlevisibility for submenus, they are already hidden
from above. Restrict findall() search to a depth of 1. Add __default_menu__
tags to Edit and Help menus so they can be identified. Don't call drawnow
unnecessarily in callback routines. Use gcbf() so that Save filename is
stored on a per figure basis rather than globally. Eliminate assigning
to unused variables. Add HACK to turn off menubar if property is set to
"none" on figure.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 01 Aug 2013 10:18:54 -0700 |
parents | eaab03308c0b |
children | 603ce503babd |
comparison
equal
deleted
inserted
replaced
17139:723a08d266d2 | 17140:e4968b4613a5 |
---|---|
95 set (0, "currentfigure", f); | 95 set (0, "currentfigure", f); |
96 else | 96 else |
97 print_usage (); | 97 print_usage (); |
98 endif | 98 endif |
99 | 99 |
100 if (strcmp (get (f, "__graphics_toolkit__"), "fltk")) | 100 __add_default_menu__ (f); |
101 __add_default_menu__ (f); | |
102 endif | |
103 | 101 |
104 if (nargout > 0) | 102 if (nargout > 0) |
105 h = f; | 103 h = f; |
106 endif | 104 endif |
107 | 105 |