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:
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user