Mercurial > pidgin.yaz
comparison finch/libgnt/wms/irssi.c @ 29302:5a64fd0f740b
irssi wm: Restore the hardware cursor after title updates.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 27 Jan 2010 22:23:30 +0000 |
parents | 88d889b54df4 |
children | 48d2b6d1ab74 |
comparison
equal
deleted
inserted
replaced
29301:45123312b7a9 | 29302:5a64fd0f740b |
---|---|
205 | 205 |
206 static gboolean | 206 static gboolean |
207 update_conv_window_title(GntNode *node) | 207 update_conv_window_title(GntNode *node) |
208 { | 208 { |
209 char title[256]; | 209 char title[256]; |
210 int x, y; | |
210 snprintf(title, sizeof(title), "%d: %s", | 211 snprintf(title, sizeof(title), "%d: %s", |
211 GPOINTER_TO_INT(g_object_get_data(G_OBJECT(node->me), "irssi-index")) + 1, | 212 GPOINTER_TO_INT(g_object_get_data(G_OBJECT(node->me), "irssi-index")) + 1, |
212 GNT_BOX(node->me)->title); | 213 GNT_BOX(node->me)->title); |
214 | |
215 getyx(node->window, y, x); | |
213 wbkgdset(node->window, '\0' | COLOR_PAIR(gnt_widget_has_focus(node->me) ? GNT_COLOR_TITLE : GNT_COLOR_TITLE_D)); | 216 wbkgdset(node->window, '\0' | COLOR_PAIR(gnt_widget_has_focus(node->me) ? GNT_COLOR_TITLE : GNT_COLOR_TITLE_D)); |
214 mvwaddstr(node->window, 0, 0, title); | 217 mvwaddstr(node->window, 0, 0, title); |
218 wmove(node->window, y, x); | |
215 if (!gnt_is_refugee()) { | 219 if (!gnt_is_refugee()) { |
216 update_panels(); | 220 update_panels(); |
217 doupdate(); | 221 doupdate(); |
218 } | 222 } |
219 return FALSE; | 223 return FALSE; |