Changeset 3dcccba for editwin.c


Ignore:
Timestamp:
Jul 7, 2008, 6:23:18 AM (13 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
barnowl_perlaim
Children:
61abb18
Parents:
7d63a6c
Message:
This would probably work, except it doesn't compile.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    r2d4ff14 r3dcccba  
    9494}
    9595
    96 void owl_editwin_set_callback(owl_editwin *e, void (*cb)(owl_editwin*)) {
     96void owl_editwin_set_callback(owl_editwin *e, void (*cb)(void*, char*)) {
    9797  e->callback = cb;
    9898}
    9999
    100 void (*owl_editwin_get_callback(owl_editwin *e))(owl_editwin*) {
     100void (*owl_editwin_get_callback(owl_editwin*))(void *cbdata, char *text) {
    101101  return e->callback;
    102102}
     
    111111
    112112void owl_editwin_do_callback(owl_editwin *e) {
    113   void (*cb)(owl_editwin*);
     113  /* XXX get rid of me */
     114  void (*cb)(void*, char*);
    114115  cb=owl_editwin_get_callback(e);
    115116  if(!cb) {
     
    117118  } else {
    118119    /* owl_function_error("text: |%s|", owl_editwin_get_text(e)); */
    119     cb(e);
     120    cb(e->cbdata, e->text);
    120121  }
    121122}
Note: See TracChangeset for help on using the changeset viewer.