Mercurial > pidgin
comparison console/libgnt/gntwm.c @ 15137:2409a2508650
[gaim-migrate @ 17923]
Make the cursor invisible again after a refresh.
Make the last window in the taskbar take up all the available space.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 08 Dec 2006 03:03:52 +0000 |
parents | d08d7b7375c7 |
children | 67ccc195074b |
comparison
equal
deleted
inserted
replaced
15136:af9fde10e4e2 | 15137:2409a2508650 |
---|---|
98 color = GNT_COLOR_URGENT; | 98 color = GNT_COLOR_URGENT; |
99 } else { | 99 } else { |
100 color = GNT_COLOR_NORMAL; | 100 color = GNT_COLOR_NORMAL; |
101 } | 101 } |
102 wbkgdset(taskbar, '\0' | COLOR_PAIR(color)); | 102 wbkgdset(taskbar, '\0' | COLOR_PAIR(color)); |
103 mvwhline(taskbar, 0, width * i, ' ' | COLOR_PAIR(color), width); | 103 if (iter->next) |
104 mvwhline(taskbar, 0, width * i, ' ' | COLOR_PAIR(color), width); | |
105 else | |
106 mvwhline(taskbar, 0, width * i, ' ' | COLOR_PAIR(color), getmaxx(stdscr) - width * i); | |
104 title = GNT_BOX(w)->title; | 107 title = GNT_BOX(w)->title; |
105 mvwprintw(taskbar, 0, width * i, "%s", title ? title : "<gnt>"); | 108 mvwprintw(taskbar, 0, width * i, "%s", title ? title : "<gnt>"); |
106 if (i) | 109 if (i) |
107 mvwaddch(taskbar, 0, width *i - 1, ACS_VLINE | A_STANDOUT | COLOR_PAIR(GNT_COLOR_NORMAL)); | 110 mvwaddch(taskbar, 0, width *i - 1, ACS_VLINE | A_STANDOUT | COLOR_PAIR(GNT_COLOR_NORMAL)); |
108 | 111 |
742 { | 745 { |
743 GntWM *wm = GNT_WM(bindable); | 746 GntWM *wm = GNT_WM(bindable); |
744 | 747 |
745 endwin(); | 748 endwin(); |
746 refresh(); | 749 refresh(); |
750 curs_set(0); /* endwin resets the cursor to normal */ | |
747 | 751 |
748 g_hash_table_foreach(wm->nodes, (GHFunc)refresh_node, NULL); | 752 g_hash_table_foreach(wm->nodes, (GHFunc)refresh_node, NULL); |
749 update_screen(wm); | 753 update_screen(wm); |
750 draw_taskbar(wm, TRUE); | 754 draw_taskbar(wm, TRUE); |
751 | 755 |