Changeset 2a17b63 for owl.c


Ignore:
Timestamp:
Jan 7, 2010, 6:54:15 PM (11 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
10557e6
Parents:
a999d9e
git-author:
Nelson Elhage <nelhage@mit.edu> (12/30/09 17:52:20)
git-committer:
Nelson Elhage <nelhage@mit.edu> (01/07/10 18:54:15)
Message:
Push and pop contexts whenever we change context.

This allows us to get rid of the awful hack in owl_process_input_char,
and opens the path to being able to invoke popup windows from the
editwin and vice versa (In fact, you can now do so without
segfaulting, although the display layer does not yet quite do the
right thing).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rb752f1e r2a17b63  
    538538  /* Initialize perl */
    539539  owl_function_debugmsg("startup: processing config file");
    540   owl_context_set_readconfig(owl_global_get_context(&g));
     540
     541  owl_global_pop_context(&g);
     542  owl_global_push_context(&g, OWL_CTX_READCONFIG, NULL, NULL);
     543
    541544  perlerr=owl_perlconfig_initperl(opts.configfile, &argc, &argv, &env);
    542545  if (perlerr) {
     
    612615
    613616  owl_function_debugmsg("startup: setting context interactive");
    614   owl_context_set_interactive(owl_global_get_context(&g));
     617
     618  owl_global_pop_context(&g);
     619  owl_global_push_context(&g, OWL_CTX_READCONFIG|OWL_CTX_RECV, NULL, "recv");
    615620
    616621  owl_select_add_timer(180, 180, owl_zephyr_buddycheck_timer, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.