Changeset 7803326 for functions.c


Ignore:
Timestamp:
Sep 30, 2011, 8:07:53 AM (10 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.9
Children:
0c71c58, 5f784ec, 923c3f6, a962f5c, d953ede
Parents:
e89ec48
git-author:
Jason Gross <jgross@mit.edu> (06/23/11 23:58:21)
git-committer:
Jason Gross <jgross@mit.edu> (09/30/11 08:07:53)
Message:
editwin callback for canceling the editwin

The code for editwin callbacks (called when the editwin is created) has
been extended so that callbacks are called when the editwin is canceled.
The old (perl) editwin callbacks still exist and have the same
functionality that they always have.  They are now deprecated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rc737503 r7803326  
    341341}
    342342
    343 void owl_callback_zwrite(owl_editwin *e) {
     343void owl_callback_zwrite(owl_editwin *e, bool success)
     344{
     345  if (!success) return;
    344346  owl_zwrite *z = owl_editwin_get_cbdata(e);
    345347  owl_function_zwrite(z, owl_editwin_get_text(e));
     
    436438}
    437439
    438 void owl_callback_aimwrite(owl_editwin *e) {
     440void owl_callback_aimwrite(owl_editwin *e, bool success)
     441{
     442  if (!success) return;
    439443  char *to = owl_editwin_get_cbdata(e);
    440444  owl_function_aimwrite(to, owl_editwin_get_text(e), true);
     
    500504}
    501505
    502 void owl_callback_loopwrite(owl_editwin *e) {
     506void owl_callback_loopwrite(owl_editwin *e, bool success)
     507{
     508  if (!success) return;
    503509  owl_function_loopwrite(owl_editwin_get_text(e));
    504510}
     
    911917}
    912918
    913 void owl_callback_aimlogin(owl_editwin *e) {
     919void owl_callback_aimlogin(owl_editwin *e, bool success)
     920{
     921  if (!success) return;
    914922  char *user = owl_editwin_get_cbdata(e);
    915923  owl_function_aimlogin(user,
     
    19331941}
    19341942
    1935 void owl_callback_command(owl_editwin *e)
    1936 {
     1943void owl_callback_command(owl_editwin *e, bool success)
     1944{
     1945  if (!success) return;
    19371946  char *rv;
    19381947  const char *line = owl_editwin_get_text(e);
Note: See TracChangeset for help on using the changeset viewer.