Mercurial > pidgin.yaz
comparison console/libgnt/gntmain.c @ 14421:553bbd68387e
[gaim-migrate @ 17129]
Print a "<AUTO-REPLY>" before the autoreply messages.
Fix some earlier brain-damaged ifdefs.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 02 Sep 2006 19:29:06 +0000 |
parents | 76d345643ba4 |
children | 3a91ef295cbb |
comparison
equal
deleted
inserted
replaced
14420:c4a32405af68 | 14421:553bbd68387e |
---|---|
1 #include "config.h" | |
2 | |
1 #ifdef HAVE_NCURSESW_INC | 3 #ifdef HAVE_NCURSESW_INC |
2 #include <ncursesw/panel.h> | 4 #include <ncursesw/panel.h> |
3 #else | 5 #else |
4 #include <panel.h> | 6 #include <panel.h> |
5 #endif | 7 #endif |
653 WINDOW *d; | 655 WINDOW *d; |
654 | 656 |
655 if (GNT_WIDGET_IS_FLAG_SET(win, GNT_WIDGET_NO_BORDER)) | 657 if (GNT_WIDGET_IS_FLAG_SET(win, GNT_WIDGET_NO_BORDER)) |
656 return; | 658 return; |
657 | 659 |
658 d = dupwin(win->window); | 660 d = win->window; |
659 gnt_widget_get_size(win, &w, &h); | 661 gnt_widget_get_size(win, &w, &h); |
660 | 662 |
661 #define DECIDE(ch) (set ? ((ch) | A_REVERSE) : ((ch) & ~A_REVERSE)) | 663 #define DECIDE(ch) (set ? ((ch) | A_REVERSE) : ((ch) & ~A_REVERSE)) |
662 | 664 |
663 /* the top and bottom */ | 665 /* the top and bottom */ |
675 ch = mvwinch(d, i, w-1); | 677 ch = mvwinch(d, i, w-1); |
676 mvwaddch(win->window, i, w-1, DECIDE(ch)); | 678 mvwaddch(win->window, i, w-1, DECIDE(ch)); |
677 } | 679 } |
678 | 680 |
679 wrefresh(win->window); | 681 wrefresh(win->window); |
680 delwin(d); | |
681 } | 682 } |
682 | 683 |
683 static gboolean | 684 static gboolean |
684 io_invoke(GIOChannel *source, GIOCondition cond, gpointer null) | 685 io_invoke(GIOChannel *source, GIOCondition cond, gpointer null) |
685 { | 686 { |