comparison src/bar_comment.c @ 1489:ac7ae6fc6d49

improved bar_pane_comment_notify_cb
author nadvornik
date Sun, 29 Mar 2009 20:06:21 +0000
parents 0e82a03c165b
children 5f49f305a6b6
comparison
equal deleted inserted replaced
1488:f96cc7807780 1489:ac7ae6fc6d49
160 } 160 }
161 161
162 static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data) 162 static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data)
163 { 163 {
164 PaneCommentData *pcd = data; 164 PaneCommentData *pcd = data;
165 if (fd == pcd->fd) bar_pane_comment_update(pcd); 165 if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE | NOTIFY_METADATA)) && fd == pcd->fd) bar_pane_comment_update(pcd);
166 } 166 }
167 167
168 static void bar_pane_comment_changed(GtkTextBuffer *buffer, gpointer data) 168 static void bar_pane_comment_changed(GtkTextBuffer *buffer, gpointer data)
169 { 169 {
170 PaneCommentData *pcd = data; 170 PaneCommentData *pcd = data;