1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-01 19:42:32 +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 * 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 * 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 * 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_EditMenu WEditMenu;
typedef struct W_EditMenuItem WEditMenuItem; typedef struct W_EditMenuItem WEditMenuItem;
WEditMenuItem *WCreateEditMenuItem(WMWidget *parent, char *title); typedef struct WEditMenuDelegate {
void *data;
WEditMenu *WCreateEditMenu(WMScreen *scr, char *title); void (*itemCloned)(struct WEditMenuDelegate*, WEditMenu *menu,
WEditMenuItem *origItem, WEditMenuItem *newItem);
WEditMenuItem *WInsertMenuItemWithTitle(WEditMenu *mPtr, char *title, void (*itemSelected)(struct WEditMenuDelegate*, WEditMenu *menu,
int index); WEditMenuItem *item);
void (*itemDeselected)(struct WEditMenuDelegate*, WEditMenu *menu,
void WSetMenuSubmenu(WEditMenu *mPtr, WEditMenu *submenu, WEditMenuItem *item); WEditMenuItem *item);
void WRemoveMenuItem(WEditMenu *mPtr, WEditMenuItem *item); } WEditMenuDelegate;