From 280529221e9349aa07c6c498df6b80b3a8951198 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 May 2007 23:26:22 +0000 Subject: add a notifier for clients changing desktops. use it to update the send-to menu if it changes. it does this by closing/opening the menu.. thats about the best we can do tho with this menu code without huge changes --- openbox/menu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbox/menu.c') diff --git a/openbox/menu.c b/openbox/menu.c index 4782bad3..da9ba6b8 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -528,6 +528,16 @@ ObMenuEntry* menu_add_separator(ObMenu *self, gint id, const gchar *label) return e; } +void menu_set_show_func(ObMenu *self, ObMenuShowFunc func) +{ + self->show_func = func; +} + +void menu_set_hide_func(ObMenu *self, ObMenuHideFunc func) +{ + self->hide_func = func; +} + void menu_set_update_func(ObMenu *self, ObMenuUpdateFunc func) { self->update_func = func; -- cgit v1.2.3