[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FLTK testing from MacOS user requested
From: |
Ben Abbott |
Subject: |
Re: FLTK testing from MacOS user requested |
Date: |
Mon, 18 Aug 2014 18:13:43 -0400 |
On Aug 18, 2014, at 5:54 PM, Andreas Weber <address@hidden> wrote:
> Can some Mac user test if the hack in figure.m:66
>
> http://hg.savannah.gnu.org/hgweb/octave/file/9e6ec5f55827/scripts/plot/figure.m#l67
> is still needed with a recent build from the default branch or if lines
> 66 to 73 and 75 can be removed.
>
> The bug report and reason for this is https://savannah.gnu.org/bugs/?31931
>
> Thanks, Andy
With ...
$ hg id
9609f345823e+ tip @
and ...
$ hg diff
diff --git a/scripts/plot/util/figure.m b/scripts/plot/util/figure.m
--- a/scripts/plot/util/figure.m
+++ b/scripts/plot/util/figure.m
@@ -83,16 +83,7 @@
endif
if (init_new_figure)
- if (ismac () && strcmp (graphics_toolkit (), "fltk"))
- ## FIXME: Hack for fltk-aqua to work around bug #31931
- f = __go_figure__ (f);
- drawnow ();
- if (! isempty (varargin))
- set (f, varargin{:});
- endif
- else
- f = __go_figure__ (f, varargin{:});
- endif
+ f = __go_figure__ (f, varargin{:});
__add_default_menu__ (f);
elseif (nargs > 0)
set (f, varargin{:});
The following commands now work for me.
graphics_toolkit ("fltk");
figure (1, "visible", "off")
set (gcf, "visible", "on")
Ben