Changeset 385fda9
- Timestamp:
- Jun 1, 2010, 9:54:19 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- a5a9572
- Parents:
- f06baef
- git-author:
- David Benjamin <davidben@mit.edu> (06/01/10 21:48:25)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/01/10 21:54:19)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
r8d4b521 r385fda9 89 89 if (argc < 0) { 90 90 owl_free(tmpbuff); 91 sepbar (NULL);91 sepbar_dirty(); 92 92 owl_function_makemsg("Unbalanced quotes"); 93 93 return NULL; … … 104 104 owl_parse_delete(argv, argc); 105 105 owl_free(tmpbuff); 106 sepbar (NULL);106 sepbar_dirty(); 107 107 return retval; 108 108 } -
functions.c
rd70f45f r385fda9 1248 1248 } 1249 1249 1250 void owl_function_set_cursor(WINDOW *win)1251 {1252 /* Be careful that this window is actually empty, otherwise panels get confused */1253 if (is_wintouched(win)) {1254 owl_function_debugmsg("Warning: owl_function_set_cursor called on dirty window");1255 update_panels();1256 }1257 wnoutrefresh(win);1258 }1259 1260 1250 void owl_function_full_redisplay(void) 1261 1251 { 1262 1252 touchwin(owl_global_get_curs_recwin(&g)); 1263 touchwin(owl_global_get_curs_sepwin(&g)); 1264 1265 sepbar(""); 1253 1254 sepbar_dirty(); 1266 1255 1267 1256 owl_global_set_needrefresh(&g); -
global.c
r5b80b87 r385fda9 98 98 owl_popwin_init(&(g->pw)); 99 99 owl_msgwin_init(&(g->msgwin), g->mainpanel.msgwin); 100 g_signal_connect(g->mainpanel.sepwin, "redraw", G_CALLBACK(sepbar_redraw), NULL); 100 101 101 102 g->aim_screenname=NULL; … … 293 294 } 294 295 295 WINDOW*owl_global_get_curs_sepwin(const owl_global *g) {296 return panel_window(g->seppan);296 owl_window *owl_global_get_curs_sepwin(const owl_global *g) { 297 return g->mainpanel.sepwin; 297 298 } 298 299 … … 367 368 style, 368 369 hist); 369 owl_window_set_cursor(owl_global_get_curs_typwin(g));370 370 return g->tw; 371 371 } … … 381 381 } 382 382 owl_window_dirty(owl_global_get_curs_typwin(g)); 383 /* owl_window_set_cursor(owl_global_get_curs_sepwin(g)); */384 383 385 384 g->tw = NULL; … … 521 520 /* refresh stuff */ 522 521 owl_mainwin_redisplay(&(g->mw)); 523 sepbar (NULL);522 sepbar_dirty(); 524 523 525 524 owl_function_full_redisplay(); -
owl.c
rf6fae8d r385fda9 302 302 /* this should be optimized to not run if the new messages won't be displayed */ 303 303 owl_mainwin_redisplay(owl_global_get_mainwin(&g)); 304 sepbar (NULL);304 sepbar_dirty(); 305 305 } 306 306 return newmsgs; … … 464 464 if (owl_global_is_needrefresh(&g)) { 465 465 /* Redraw the screen */ 466 owl_window_redraw_scheduled(); 467 468 /* these are here in case a relayout changes the windows */ 469 WINDOW *sepwin = owl_global_get_curs_sepwin(&g); 470 471 /* move the cursor to unmanaged window if necessary */ 466 467 /* HACK: move the cursor to unmanaged window if necessary; these should be 468 * associated with the context or something. */ 472 469 if (!owl_popwin_is_active(owl_global_get_popwin(&g)) 473 470 && owl_global_get_typwin(&g)) { 474 /* owl_function_set_cursor(typwin); */471 owl_window_set_cursor(owl_global_get_curs_typwin(&g)); 475 472 } else { 476 owl_function_set_cursor(sepwin); 477 } 473 owl_window_set_cursor(owl_global_get_curs_sepwin(&g)); 474 } 475 476 owl_window_redraw_scheduled(); 478 477 doupdate(); 479 478 owl_global_set_noneedrefresh(&g); … … 594 593 "-----------------------------------------------------------------m-m---\n" 595 594 ); 596 sepbar(NULL);597 595 598 596 /* process the startup file */ -
util.c
r05ca0d8 r385fda9 10 10 #include <glib-object.h> 11 11 12 void sepbar(const char *in) 13 { 14 WINDOW *sepwin; 12 void sepbar_dirty(void) 13 { 14 owl_window_dirty(owl_global_get_curs_sepwin(&g)); 15 } 16 17 void sepbar_redraw(owl_window *w, WINDOW *sepwin, void *user_data) 18 { 15 19 const owl_messagelist *ml; 16 20 const owl_view *v; … … 18 22 const char *foo, *appendtosepbar; 19 23 20 sepwin=owl_global_get_curs_sepwin(&g);21 24 ml=owl_global_get_msglist(&g); 22 25 v=owl_global_get_current_view(&g); … … 101 104 wattroff(sepwin, A_BOLD); 102 105 } 103 104 if (in) {105 getyx(sepwin, y, x);106 wmove(sepwin, y, x+2);107 waddstr(sepwin, in);108 }109 106 110 107 appendtosepbar = owl_global_get_appendtosepbar(&g); … … 122 119 wattroff(sepwin, A_BOLD); 123 120 wattroff(sepwin, A_REVERSE); 124 owl_global_set_needrefresh(&g);125 121 } 126 122
Note: See TracChangeset
for help on using the changeset viewer.