Changeset d70f45f
- Timestamp:
- Jun 1, 2010, 3:19:58 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 69873f7
- Parents:
- e294783
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
rd2a4534 rd70f45f 50 50 aim.c buddy.c buddylist.c style.c errqueue.c \ 51 51 zbuddylist.c popexec.c select.c wcwidth.c \ 52 glib_compat.c mainpanel.c 52 glib_compat.c mainpanel.c msgwin.c 53 53 54 54 NORMAL_SRCS = filterproc.c window.c -
functions.c
rf6fae8d rd70f45f 1262 1262 touchwin(owl_global_get_curs_recwin(&g)); 1263 1263 touchwin(owl_global_get_curs_sepwin(&g)); 1264 touchwin(owl_global_get_curs_msgwin(&g));1265 1264 1266 1265 sepbar(""); 1267 owl_function_makemsg("");1268 1266 1269 1267 owl_global_set_needrefresh(&g); … … 3401 3399 { 3402 3400 va_list ap; 3403 char buff[2048];3401 char *str; 3404 3402 3405 3403 if (!owl_global_get_curs_msgwin(&g)) return; 3406 3404 3407 3405 va_start(ap, fmt); 3408 werase(owl_global_get_curs_msgwin(&g)); 3409 3410 vsnprintf(buff, 2048, fmt, ap); 3411 owl_function_debugmsg("makemsg: %s", buff); 3412 waddstr(owl_global_get_curs_msgwin(&g), buff); 3413 owl_global_set_needrefresh(&g); 3406 str = g_strdup_vprintf(fmt, ap); 3414 3407 va_end(ap); 3408 3409 owl_function_debugmsg("makemsg: %s", str); 3410 owl_msgwin_set_text(&g.msgwin, str); 3415 3411 } 3416 3412 -
global.c
rf6fae8d rd70f45f 95 95 owl_mainwin_init(&(g->mw)); 96 96 owl_popwin_init(&(g->pw)); 97 owl_msgwin_init(&(g->msgwin), g->mainpanel.msgwin); 97 98 98 99 g->aim_screenname=NULL; … … 167 168 _owl_panel_set_window(&g->recpan, newwin(recwinlines, cols, 0, 0)); 168 169 _owl_panel_set_window(&g->seppan, newwin(1, cols, recwinlines, 0)); 169 _owl_panel_set_window(&g->msgpan, newwin(1, cols, recwinlines+1, 0));170 170 } 171 171 … … 295 295 } 296 296 297 WINDOW*owl_global_get_curs_msgwin(const owl_global *g) {298 return panel_window(g->msgpan);297 owl_window *owl_global_get_curs_msgwin(const owl_global *g) { 298 return g->msgwin.window; 299 299 } 300 300 … … 517 517 518 518 /* refresh stuff */ 519 g->needrefresh=1;520 519 owl_mainwin_redisplay(&(g->mw)); 521 520 sepbar(NULL); 522 521 523 522 owl_function_full_redisplay(); 524 525 owl_function_makemsg("");526 523 } 527 524 -
owl.h
rf6fae8d rd70f45f 414 414 int active; 415 415 } owl_popwin; 416 417 typedef struct _owl_msgwin { 418 char *msg; 419 owl_window *window; 420 gulong redraw_id; 421 } owl_msgwin; 416 422 417 423 typedef struct _owl_messagelist { … … 558 564 owl_mainwin mw; 559 565 owl_popwin pw; 566 owl_msgwin msgwin; 560 567 owl_history cmdhist; /* command history */ 561 568 owl_history msghist; /* outgoing message history */ … … 577 584 owl_mainpanel mainpanel; 578 585 gulong typwin_erase_id; 579 PANEL *recpan, *seppan , *msgpan;586 PANEL *recpan, *seppan; 580 587 int needrefresh; 581 588 int rightshift;
Note: See TracChangeset
for help on using the changeset viewer.