diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-05-11 19:01:33 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-05-11 19:01:33 -0400 |
| commit | 3fd74abb3c2969f170d727154245cde3ef8a4b87 (patch) | |
| tree | 392d248fa62e5616d35546216856aa673b3a98c5 /openbox/menu.c | |
| parent | 523a726c6c2f31da36a0af985d22f3792a8c09b5 (diff) | |
add cleanup function for menus that fires when the menu is no longer visible
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index 5a5844bb..1f9874ac 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -654,6 +654,11 @@ void menu_set_execute_func(ObMenu *self, ObMenuExecuteFunc func) self->more_menu->execute_func = func; /* keep it in sync */ } +void menu_set_cleanup_func(ObMenu *self, ObMenuCleanupFunc func) +{ + self->cleanup_func = func; +} + void menu_set_destroy_func(ObMenu *self, ObMenuDestroyFunc func) { self->destroy_func = func; |
