Mercurial > octave
view etc/NEWS.8.md @ 30999:fef2957c38ec
Deprecate uimenu properties "label" and "callback" (bug #62443)
Replace "label" property with "text". Replace "callback" property with
"menuselectedfcn". Both old properties are hidden, but continue to
exist and work as before to support old code.
* NEWS.8.md: Announce deprecation.
* graphics.in.h (uimenu::BEGIN_PROPERTIES): Mark "callback" property with "hgs"
for hidden, get, set routines. Mark "label" property with "hgs".
* graphics.in.h (uimenu::get_callback, uimenu::set_callback): New functions
which simply relay calls to "get_menuselectedfcn" and "set_menuselectedfcn".
* Menu.cc (Menu::actionTriggered, Menu::actionHovered): Replace "callback" with
"menuselectedfcn" in gh_callback_event calls.
* __init_fltk__.cc (script_cb): Rename "execute_callback" to
"execute_menuselectedfcn".
* __init_fltk__.cc (update_menuselectedfcn): Rename function from
"update_callback". Rename "get_callback" to "get_menuselectedfcn".
* __init_fltk__.cc (add_to_uimenu): Rename "update_callback" to
"update_menuselectedfcn".
* __init_fltk__.cc (uimenu_update): Rename "ID_CALLBACK" to
"ID_MENUSELECTEDFCN".
* uimenu.m: Update documentation to use "menuselectedfcn" and "text".
Update demos and BIST tests to use new property names.
* __add_default_menu__.m: Update code to use "menuselectedfcn" and "text".
author | Rik <rik@octave.org> |
---|---|
date | Sat, 14 May 2022 19:06:56 -0700 |
parents | 5330efaf9476 |
children | 81b51b823663 |
line wrap: on
line source
Summary of important user-visible changes for version 8 (yyyy-mm-dd): --------------------------------------------------------------------- ### General improvements - Octave's libraries are now built using symbol visibility by default. That means that less symbols are exported from these libraries. Configure with `--disable-lib-visibility-flags` to export all symbols (as in previous versions). - `integral` can now output a second argument passing the error parameter from the underlying integrator. ### Graphical User Interface ### Graphics backend ### Matlab compatibility - `inline` functions now support all Matlab methods. The performance of `inline` functions has also been improved. - `sub2ind` now supports index values outside of the size specified by the subscripts. - `cylinder` now accepts a scalar for the radius argument. - `clock` now has an optional second output `ISDST` which indicates if Daylight Savings Time is in effect for the system's time zone. - `print` now accepts option `-image` to specify the "opengl" renderer and `-vector` to specify the "painters" renderer. - `format` now accepts the option "default", which is equivalent to calling `format` without any options to reset the default state. - `quadgk` now stops iterating when `error <= tolerance` while the previous condition was `error < tolerance`. - `var` and `std` now optionally output a second argument containing the mean or weighted mean. ### Alphabetical list of new functions added in Octave 8 ### Deprecated functions, properties, and operators The following functions and properties have been deprecated in Octave 8 and will be removed from Octave 10 (or whatever version is the second major release after 8): - Functions Function | Replacement -----------------------|------------------ `shift` | `circshift` `sparse_auto_mutate` | none (see below) - The `sparse_auto_mutate` function no longer has any effect on Octave's behavior. Previously, after calling `sparse_auto_mutate (true)`, Octave would automatically convert sparse matrices to full when a sparse matrix required more memory than simply using full matrix storage. This setting was `false` by default for compatibility with Matlab. Now you must manually convert to full storage when desired. - Properties The following property names are discouraged, but there is no fixed date for their removal. Object | Property | Replacement -----------------|-------------|------------ `uimenu` | `label` | `text` `uimenu` | `callback` | `menuselectedfcn` The following functions were deprecated in Octave 6 and have been removed from Octave 8. - Functions Function | Replacement -----------------------|------------------ `runtests` | `oruntests` - The environment variable used by `mkoctfile` for linker flags is now `LDFLAGS` rather than `LFLAGS`. `LFLAGS` was deprecated in Octave 6, and will be removed in a future version of Octave. ### Old release news - [Octave 7.x](etc/NEWS.7) - [Octave 6.x](etc/NEWS.6) - [Octave 5.x](etc/NEWS.5) - [Octave 4.x](etc/NEWS.4) - [Octave 3.x](etc/NEWS.3) - [Octave 2.x](etc/NEWS.2) - [Octave 1.x](etc/NEWS.1)