mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
1d8bbfae4c
default Hotlist links so they show up in the menu. Currently deleting items from the menu is dangerous. To add to the Hotlist menu, add a folder node called "Menu" to the root node of the hotlist tree. Items in this folder node up to a maximum (currently) of 40 items will be added to the Hotlist menu, within the limits of the Intuition menu system. Items in folders within the Menu folder node will be converted to subitems in the menu. Folder nodes with no entries and folder nodes at level 3 in the heirarchy will become menu items with no action. Items deeper will not be included in the menu at all. eg. Root | +- Menu | +- Netsurf | | | +- NetSurf Homepage | | | +- More NetSurf links | | | +- NetSurf bugtracker | +- Google Will look something like the following within the menu: |NetSurf »| - |NetSurf Homepage | |Google | |More NetSurf links| svn path=/trunk/netsurf/; revision=5577
36 lines
1.2 KiB
C
Executable File
36 lines
1.2 KiB
C
Executable File
/*
|
|
* Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
|
*
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
*
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef AMIGA_MENU_H
|
|
#define AMIGA_MENU_H
|
|
#include <exec/types.h>
|
|
#include "amiga/gui.h"
|
|
#include <intuition/intuition.h>
|
|
|
|
#define AMI_HOTLIST_ITEMS 40
|
|
#define AMI_MENU_MAX 28 + AMI_HOTLIST_ITEMS
|
|
#define AMI_MENU_HOTLIST 25
|
|
#define AMI_MENU_HOTLIST_MAX AMI_MENU_HOTLIST+AMI_HOTLIST_ITEMS
|
|
char *menulab[AMI_MENU_MAX+1];
|
|
|
|
struct NewMenu *ami_create_menu(ULONG type);
|
|
void ami_init_menulabs(void);
|
|
void ami_free_menulabs(void);
|
|
void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item);
|
|
#endif
|