Changeset c394de8 for functions.c
- 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:
- fc5eef4
- Parents:
- 9190285
- git-author:
- David Benjamin <davidben@mit.edu> (08/14/10 01:15:47)
- git-committer:
- David Benjamin <davidben@mit.edu> (09/18/10 17:07:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r08263a8 rc394de8 274 274 { 275 275 owl_editwin *e; 276 owl_context *ctx; 276 277 char *s; 277 278 … … 286 287 owl_editwin_set_cbdata(e, data, cleanup); 287 288 owl_editwin_set_callback(e, callback); 288 owl_global_push_context(&g, OWL_CTX_EDITMULTI, e, "editmulti", owl_editwin_get_window(e)); 289 ctx = owl_editcontext_new(OWL_CTX_EDITMULTI, e, "editmulti"); 290 owl_global_push_context_obj(&g, ctx); 291 289 292 } 290 293 … … 1881 1884 { 1882 1885 owl_editwin *tw; 1886 owl_context *ctx; 1883 1887 1884 1888 tw = owl_global_set_typwin_active(&g, OWL_EDITWIN_STYLE_ONELINE, owl_global_get_cmd_history(&g)); … … 1888 1892 owl_editwin_insert_string(tw, line); 1889 1893 1890 owl_global_push_context(&g, OWL_CTX_EDITLINE, tw, "editline", owl_editwin_get_window(tw)); 1894 ctx = owl_editcontext_new(OWL_CTX_EDITLINE, tw, "editline"); 1895 owl_global_push_context_obj(&g, ctx); 1891 1896 owl_editwin_set_callback(tw, owl_callback_command); 1892 1897 } … … 1895 1900 { 1896 1901 owl_editwin *tw; 1902 owl_context *ctx; 1897 1903 1898 1904 tw = owl_global_set_typwin_active(&g, OWL_EDITWIN_STYLE_ONELINE, owl_global_get_cmd_history(&g)); … … 1900 1906 owl_editwin_set_locktext(tw, line); 1901 1907 1902 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_editwin_get_window(tw)); 1908 ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1909 owl_global_push_context_obj(&g, ctx); 1903 1910 return tw; 1904 1911 } … … 1907 1914 { 1908 1915 owl_editwin *tw; 1916 owl_context *ctx; 1909 1917 1910 1918 tw = owl_global_set_typwin_active(&g, OWL_EDITWIN_STYLE_ONELINE, NULL); … … 1914 1922 owl_editwin_set_locktext(tw, line); 1915 1923 1916 owl_global_push_context(&g, OWL_CTX_EDITRESPONSE, tw, "editresponse", owl_editwin_get_window(tw)); 1924 ctx = owl_editcontext_new(OWL_CTX_EDITRESPONSE, tw, "editresponse"); 1925 owl_global_push_context_obj(&g, ctx); 1917 1926 return tw; 1918 1927 }
Note: See TracChangeset
for help on using the changeset viewer.