Changeset 4a41f16 for viewwin.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:40 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, 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
  • viewwin.c

    r1b8c3f8 r4a41f16  
    205205  data->direction = direction;
    206206
    207   ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline");
    208   ctx->deactivate_cb = owl_viewwin_deactivate_editcontext;
     207  ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline",
     208                            owl_viewwin_deactivate_editcontext, v);
    209209  ctx->cbdata = v;
    210210  owl_global_push_context_obj(&g, ctx);
     
    226226  owl_editwin_insert_string(tw, buff);
    227227
    228   ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline");
    229   ctx->deactivate_cb = owl_viewwin_deactivate_editcontext;
    230   ctx->cbdata = v;
     228  ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline",
     229                            owl_viewwin_deactivate_editcontext, v);
    231230  owl_global_push_context_obj(&g, ctx);
    232231  owl_editwin_set_callback(tw, owl_callback_command);
Note: See TracChangeset for help on using the changeset viewer.