diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-05-31 20:05:50 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-05-31 20:05:50 +0000 |
| commit | 7c143c6bfb3f8250211c00e22659f4239736d88a (patch) | |
| tree | d15e7285ea55eddd1d5159bd37fa7383dc62660d /documentation/Fl_Menu_.html | |
| parent | 5b8d9e746ab17af2d36ea6080055f78a97d383b6 (diff) | |
Fl_Menu_::find_item() was trying to search through submenus created with FL_SUBMENU_POINTER (vs. Fl_SUBMENU and an array of submenu items), but not following the pointer, messing up the search string.
Two fixes were possible: correctly searching linked submenus, or disabeling submenu links alltogether. I decided for the later since the use of FL_SUBMENU_POINTER implies that the user knows the pointer and can search that submenu seperately, saving time when searching the main menu.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Fl_Menu_.html')
| -rw-r--r-- | documentation/Fl_Menu_.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/documentation/Fl_Menu_.html b/documentation/Fl_Menu_.html index 2a94a7f82..d60228389 100644 --- a/documentation/Fl_Menu_.html +++ b/documentation/Fl_Menu_.html @@ -235,7 +235,8 @@ global()</TT> setting (so don't destroy the widget!)</P> <p>Returns a pointer to the menu item with the given (full) pathname. If no matching menu item can be found, a NULL pointer -is returned.</p> +is returned. This function does not search submenus that are linked +via FL_SUBMENU_POINTER.</p> <h4><a name=Fl_Menu_.item_pathname>int Fl_Menu_::item_pathname(char *name, int namelen ) const;</a><br> int Fl_Menu_::item_pathname(char *name, int namelen, |
