Changeset 08263a8 for functions.c


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 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:
9190285
Parents:
cb81570
git-author:
David Benjamin <davidben@mit.edu> (08/07/10 16:31:45)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Add owl_editwin_get_window

This removes the need for owl_global_get_typwin_window. The remaining
references within global.c may be accessed directly as its an internal
field anyway.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r9eb38bb r08263a8  
    286286  owl_editwin_set_cbdata(e, data, cleanup);
    287287  owl_editwin_set_callback(e, callback);
    288   owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_global_get_typwin_window(&g));
     288  owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_editwin_get_window(e));
    289289}
    290290
     
    18881888  owl_editwin_insert_string(tw, line);
    18891889
    1890   owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_global_get_typwin_window(&g));
     1890  owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_editwin_get_window(tw));
    18911891  owl_editwin_set_callback(tw, owl_callback_command);
    18921892}
     
    19001900  owl_editwin_set_locktext(tw, line);
    19011901
    1902   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_typwin_window(&g));
     1902  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_editwin_get_window(tw));
    19031903  return tw;
    19041904}
     
    19141914  owl_editwin_set_locktext(tw, line);
    19151915
    1916   owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_global_get_typwin_window(&g));
     1916  owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_editwin_get_window(tw));
    19171917  return tw;
    19181918}
Note: See TracChangeset for help on using the changeset viewer.