pidgin: 7b3ef084: irssi wm: Restore the hardware cursor af...
sadrul at pidgin.im
sadrul at pidgin.im
Wed Jan 27 17:25:44 EST 2010
-----------------------------------------------------------------
Revision: 7b3ef0848311ece85cb16e2d8d03ba856a053903
Ancestor: e9b0a237a9a8a9b7ab16ee981f22869f8be7c8ce
Author: sadrul at pidgin.im
Date: 2010-01-27T22:23:30
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/7b3ef0848311ece85cb16e2d8d03ba856a053903
Modified files:
finch/libgnt/wms/irssi.c
ChangeLog:
irssi wm: Restore the hardware cursor after title updates.
-------------- next part --------------
============================================================
--- finch/libgnt/wms/irssi.c 8ba9f0b34833441224bce2496f3356f68273d8b0
+++ finch/libgnt/wms/irssi.c 03691f42612fbf119cf45b5a90a27efb47ca8ab3
@@ -207,11 +207,15 @@ update_conv_window_title(GntNode *node)
update_conv_window_title(GntNode *node)
{
char title[256];
+ int x, y;
snprintf(title, sizeof(title), "%d: %s",
GPOINTER_TO_INT(g_object_get_data(G_OBJECT(node->me), "irssi-index")) + 1,
GNT_BOX(node->me)->title);
+
+ getyx(node->window, y, x);
wbkgdset(node->window, '\0' | COLOR_PAIR(gnt_widget_has_focus(node->me) ? GNT_COLOR_TITLE : GNT_COLOR_TITLE_D));
mvwaddstr(node->window, 0, 0, title);
+ wmove(node->window, y, x);
if (!gnt_is_refugee()) {
update_panels();
doupdate();
More information about the Commits
mailing list