diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:18:21 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:18:21 +0000 |
| commit | 1045079482453424f8320de99639390e3020eb72 (patch) | |
| tree | b15a4e7f21b4f21f668beb780127226f216d3e56 /openbox/openbox.c | |
| parent | 9ea78a4eb0255e8cca6258e5ceb4bfd3e9e9d59e (diff) | |
adjust for changes to the parsing api.
split the menu into its own file.
Diffstat (limited to 'openbox/openbox.c')
| -rw-r--r-- | openbox/openbox.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index 631395cc..5c28fcf6 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -210,8 +210,10 @@ int main(int argc, char **argv) startup_save(); if (screen_annex()) { /* it will be ours! */ + ObParseInst *i; + /* startup the parsing so everything can register sections of the rc */ - parse_startup(); + i = parse_startup(); /* anything that is going to read data from the rc file needs to be in this group */ @@ -224,16 +226,18 @@ int main(int argc, char **argv) window_startup(); plugin_startup(); /* load the plugins specified in the pluginrc */ - plugin_loadall(); + plugin_loadall(i); /* set up the kernel config shit */ - config_startup(); - menu_startup(); + config_startup(i); + menu_startup(i); /* parse/load user options */ if (parse_load_rc(&doc, &node)) - parse_tree(doc, node->xmlChildrenNode, NULL); + parse_tree(i, doc, node->xmlChildrenNode); /* we're done with parsing now, kill it */ - parse_shutdown(); + parse_shutdown(i); + + menu_parse(); /* load the theme specified in the rc file */ ob_rr_theme = RrThemeNew(ob_rr_inst, config_theme); |
