# HG changeset patch # User nadvornik # Date 1238357181 0 # Node ID ac7ae6fc6d49035c419ffcb6efa5265f4a091ba9 # Parent f96cc7807780ddffb020dca13b281cc607e49c11 improved bar_pane_comment_notify_cb diff -r f96cc7807780 -r ac7ae6fc6d49 src/bar_comment.c --- a/src/bar_comment.c Sun Mar 29 19:57:19 2009 +0000 +++ b/src/bar_comment.c Sun Mar 29 20:06:21 2009 +0000 @@ -162,7 +162,7 @@ static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data) { PaneCommentData *pcd = data; - if (fd == pcd->fd) bar_pane_comment_update(pcd); + if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE | NOTIFY_METADATA)) && fd == pcd->fd) bar_pane_comment_update(pcd); } static void bar_pane_comment_changed(GtkTextBuffer *buffer, gpointer data)