diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-03 18:11:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-03 18:11:39 +0000 |
| commit | 806a8c411f10c7a2292bfac15d77c8609f56ee71 (patch) | |
| tree | d56c0f2a4b05b00fef085ea69930603f10ee8f75 /openbox/menu.c | |
| parent | 40902496a01b21b950f3672bf2ae9e100ba9b95c (diff) | |
add a reconfigure action, also reconfigure on SIGUSR2.
support reconfiguring throughout the entire codebase.
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openbox/menu.c b/openbox/menu.c index 75380f1e..c52f3013 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -62,7 +62,7 @@ static void client_dest(gpointer client) menu_frame_hide_all_client(client); } -void menu_startup() +void menu_startup(gboolean reconfig) { xmlDocPtr doc; xmlNodePtr node; @@ -100,12 +100,14 @@ void menu_startup() g_assert(menu_parse_state.menus == NULL); - client_add_destructor(client_dest); + if (!reconfig) + client_add_destructor(client_dest); } -void menu_shutdown() +void menu_shutdown(gboolean reconfig) { - client_remove_destructor(client_dest); + if (!reconfig) + client_remove_destructor(client_dest); parse_shutdown(menu_parse_inst); menu_parse_inst = NULL; |
