Changeset 4a41f16 for editcontext.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
  • editcontext.c

    rc394de8 r4a41f16  
    88}
    99
    10 owl_context *owl_editcontext_new(int mode, owl_editwin *e, const char *keymap)
     10owl_context *owl_editcontext_new(int mode, owl_editwin *e, const char *keymap, void (*deactivate_cb)(owl_context*), void *cbdata)
    1111{
    1212  owl_context *ctx = owl_context_new(mode, owl_editwin_ref(e), keymap,
    1313                                     owl_editwin_get_window(e));
     14  ctx->deactivate_cb = deactivate_cb;
    1415  ctx->delete_cb = owl_editcontext_delete_cb;
     16  ctx->cbdata = cbdata;
    1517  /* TODO: the flags are really screwy. */
    1618  assert(owl_is_editcontext(ctx));
Note: See TracChangeset for help on using the changeset viewer.