Changeset fc5eef4
- Timestamp:
- Sep 18, 2010, 5:07:40 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 6a35938
- Parents:
- c394de8
- git-author:
- David Benjamin <davidben@mit.edu> (08/14/10 01:47:04)
- git-committer:
- David Benjamin <davidben@mit.edu> (09/18/10 17:07:40)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rc394de8 rfc5eef4 2691 2691 2692 2692 owl_global_pop_context(&g); 2693 2694 owl_global_set_typwin_inactive(&g);2695 2693 } 2696 2694 … … 2750 2748 * context itself will last until the command returns. */ 2751 2749 owl_editwin_ref(e); 2752 owl_global_set_typwin_inactive(&g);2753 2750 owl_global_pop_context(&g); 2754 2751 -
functions.c
rc394de8 rfc5eef4 288 288 owl_editwin_set_callback(e, callback); 289 289 ctx = owl_editcontext_new(OWL_CTX_EDITMULTI, e, "editmulti"); 290 ctx->deactivate_cb = owl_global_deactivate_editcontext; 291 ctx->cbdata = &g; 290 292 owl_global_push_context_obj(&g, ctx); 291 293 … … 1893 1895 1894 1896 ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline"); 1897 ctx->deactivate_cb = owl_global_deactivate_editcontext; 1898 ctx->cbdata = &g; 1895 1899 owl_global_push_context_obj(&g, ctx); 1896 1900 owl_editwin_set_callback(tw, owl_callback_command); … … 1907 1911 1908 1912 ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1913 ctx->deactivate_cb = owl_global_deactivate_editcontext; 1914 ctx->cbdata = &g; 1909 1915 owl_global_push_context_obj(&g, ctx); 1910 1916 return tw; … … 1923 1929 1924 1930 ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1931 ctx->deactivate_cb = owl_global_deactivate_editcontext; 1932 ctx->cbdata = &g; 1925 1933 owl_global_push_context_obj(&g, ctx); 1926 1934 return tw; -
global.c
rc394de8 rfc5eef4 330 330 hist); 331 331 return g->tw; 332 } 333 334 void owl_global_deactivate_editcontext(owl_context *ctx) { 335 owl_global *g = ctx->cbdata; 336 owl_global_set_typwin_inactive(g); 332 337 } 333 338 -
owl.h
r1d74663 rfc5eef4 306 306 void (*deactivate_cb)(struct _owl_context*); 307 307 void (*delete_cb)(struct _owl_context*); 308 void *cbdata; 308 309 } owl_context; 309 310
Note: See TracChangeset
for help on using the changeset viewer.