Changeset 4a41f16 for functions.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:40 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
118c919
Parents:
1b8c3f8
git-author:
David Benjamin <davidben@mit.edu> (09/18/10 16:57:13)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:40)
Message:
Pass deactivate_cb as argument to owl_editcontext_new
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r9c1e61d r4a41f16  
    287287  owl_editwin_set_cbdata(e, data, cleanup);
    288288  owl_editwin_set_callback(e, callback);
    289   ctx = owl_editcontext_new(OWL_CTX_EDITMULTI, e, "editmulti");
    290   ctx->deactivate_cb = owl_global_deactivate_editcontext;
    291   ctx->cbdata = &g;
     289  ctx = owl_editcontext_new(OWL_CTX_EDITMULTI, e, "editmulti",
     290                            owl_global_deactivate_editcontext, &g);
    292291  owl_global_push_context_obj(&g, ctx);
    293292
     
    18941893  owl_editwin_insert_string(tw, line);
    18951894
    1896   ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline");
    1897   ctx->deactivate_cb = owl_global_deactivate_editcontext;
    1898   ctx->cbdata = &g;
     1895  ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline",
     1896                            owl_global_deactivate_editcontext, &g);
    18991897  owl_global_push_context_obj(&g, ctx);
    19001898  owl_editwin_set_callback(tw, owl_callback_command);
     
    19101908  owl_editwin_set_locktext(tw, line);
    19111909
    1912   ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse");
    1913   ctx->deactivate_cb = owl_global_deactivate_editcontext;
    1914   ctx->cbdata = &g;
     1910  ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse",
     1911                            owl_global_deactivate_editcontext, &g);
    19151912  owl_global_push_context_obj(&g, ctx);
    19161913  return tw;
     
    19281925  owl_editwin_set_locktext(tw, line);
    19291926
    1930   ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse");
    1931   ctx->deactivate_cb = owl_global_deactivate_editcontext;
    1932   ctx->cbdata = &g;
     1927  ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse",
     1928                            owl_global_deactivate_editcontext, &g);
    19331929  owl_global_push_context_obj(&g, ctx);
    19341930  return tw;
Note: See TracChangeset for help on using the changeset viewer.