improved bar_pane_comment_notify_cb
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 29 Mar 2009 20:06:21 +0000 (20:06 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 29 Mar 2009 20:06:21 +0000 (20:06 +0000)
src/bar_comment.c

index f0ded3a..0a65aa7 100644 (file)
@@ -162,7 +162,7 @@ static void bar_pane_comment_write_config(GtkWidget *pane, GString *outstr, gint
 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)