diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-03-02 16:11:05 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-03-02 16:13:23 -0500 |
| commit | bb557f06a6828a95ee94c7579919dec1ee014484 (patch) | |
| tree | a1a010bf38eb3ecf7c06b2f939d4f772603d600b /openbox/openbox.c | |
| parent | 527ecafab95e66a6f0cedd6967fe2c61dfe85101 (diff) | |
add a cleanup callback to the prompt interface. when the prompt's callback returns TRUE, then the cleanup function is called. likewise when the prompt system is shutdown (openbox is exiting), then the cleanup function is also called. it should unref/destroy the prompt and any memory associated with it
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index eb7934e0..377b2199 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -323,7 +323,6 @@ gint main(gint argc, gchar **argv) grab_startup(reconfigure); group_startup(reconfigure); ping_startup(reconfigure); - prompt_startup(reconfigure); client_startup(reconfigure); dock_startup(reconfigure); moveresize_startup(reconfigure); @@ -331,6 +330,7 @@ gint main(gint argc, gchar **argv) mouse_startup(reconfigure); menu_frame_startup(reconfigure); menu_startup(reconfigure); + prompt_startup(reconfigure); if (!reconfigure) { guint32 xid; @@ -377,6 +377,7 @@ gint main(gint argc, gchar **argv) client_unmanage_all(); } + prompt_shutdown(reconfigure); menu_shutdown(reconfigure); menu_frame_shutdown(reconfigure); mouse_shutdown(reconfigure); @@ -384,7 +385,6 @@ gint main(gint argc, gchar **argv) moveresize_shutdown(reconfigure); dock_shutdown(reconfigure); client_shutdown(reconfigure); - prompt_shutdown(reconfigure); ping_shutdown(reconfigure); group_shutdown(reconfigure); grab_shutdown(reconfigure); |
