1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 18:32:34 +01:00

updated editable menu widget

This commit is contained in:
kojima
2000-07-10 22:49:07 +00:00
parent e29fce43b1
commit e958044d00
2 changed files with 835 additions and 276 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,7 @@
*
* WPrefs - Window Maker Preferences Program
*
* Copyright (c) 1999 Alfredo K. Kojima
* Copyright (c) 2000 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,20 +21,18 @@
*/
typedef struct W_EditMenu WEditMenu;
typedef struct W_EditMenuItem WEditMenuItem;
WEditMenuItem *WCreateEditMenuItem(WMWidget *parent, char *title);
WEditMenu *WCreateEditMenu(WMScreen *scr, char *title);
WEditMenuItem *WInsertMenuItemWithTitle(WEditMenu *mPtr, char *title,
int index);
void WSetMenuSubmenu(WEditMenu *mPtr, WEditMenu *submenu, WEditMenuItem *item);
void WRemoveMenuItem(WEditMenu *mPtr, WEditMenuItem *item);
typedef struct WEditMenuDelegate {
void *data;
void (*itemCloned)(struct WEditMenuDelegate*, WEditMenu *menu,
WEditMenuItem *origItem, WEditMenuItem *newItem);
void (*itemSelected)(struct WEditMenuDelegate*, WEditMenu *menu,
WEditMenuItem *item);
void (*itemDeselected)(struct WEditMenuDelegate*, WEditMenu *menu,
WEditMenuItem *item);
} WEditMenuDelegate;