Changeset 08263a8
- Timestamp:
- Sep 18, 2010, 5:07:39 PM (14 years ago)
- 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)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
editwin.c
ra8186dc r08263a8 177 177 owl_window_dirty(e->win); 178 178 } 179 } 180 181 owl_window *owl_editwin_get_window(owl_editwin *e) 182 { 183 return e->win; 179 184 } 180 185 -
functions.c
r9eb38bb r08263a8 286 286 owl_editwin_set_cbdata(e, data, cleanup); 287 287 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)); 289 289 } 290 290 … … 1888 1888 owl_editwin_insert_string(tw, line); 1889 1889 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)); 1891 1891 owl_editwin_set_callback(tw, owl_callback_command); 1892 1892 } … … 1900 1900 owl_editwin_set_locktext(tw, line); 1901 1901 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)); 1903 1903 return tw; 1904 1904 } … … 1914 1914 owl_editwin_set_locktext(tw, line); 1915 1915 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)); 1917 1917 return tw; 1918 1918 } -
global.c
rcb81570 r08263a8 282 282 } 283 283 284 /* underlying owl_windows */285 286 owl_window *owl_global_get_typwin_window(const owl_global *g) {287 return g->mainpanel.typwin;288 }289 290 /* typwin */291 292 284 /* Gets the currently active typwin out of the current context. */ 293 285 owl_editwin *owl_global_current_typwin(const owl_global *g) { … … 332 324 333 325 if (g->typwin_erase_id) { 334 g_signal_handler_disconnect( owl_global_get_typwin_window(g), g->typwin_erase_id);326 g_signal_handler_disconnect(g->mainpanel.typwin, g->typwin_erase_id); 335 327 g->typwin_erase_id = 0; 336 328 } 337 329 338 g->tw = owl_editwin_new( owl_global_get_typwin_window(g),330 g->tw = owl_editwin_new(g->mainpanel.typwin, 339 331 owl_global_get_typwin_lines(g), 340 332 g->cols, … … 351 343 if (!g->typwin_erase_id) { 352 344 g->typwin_erase_id = 353 g_signal_connect( owl_global_get_typwin_window(g), "redraw", G_CALLBACK(owl_window_erase_cb), NULL);354 } 355 owl_window_dirty( owl_global_get_typwin_window(g));345 g_signal_connect(g->mainpanel.typwin, "redraw", G_CALLBACK(owl_window_erase_cb), NULL); 346 } 347 owl_window_dirty(g->mainpanel.typwin); 356 348 357 349 g->tw = NULL;
Note: See TracChangeset
for help on using the changeset viewer.