Package: gnubiff
Version: 2.1.2-1.local
Followup-For: Bug #297774

I'm not the original reporter, but I'm also hit by this bug, which is
still around in 2.1.2-1 .

The attached patch fixes it for me, but since I've never programmed with
FAM before, I'm not completely sure it's right.

(The weird version number above is just 2.1.2-1 + this patch)

HTH

Alexis
 src/local.cc |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletion(-)

Index: gnubiff-2.1.2/src/local.cc
===================================================================
--- gnubiff-2.1.2.orig/src/local.cc     2005-03-03 19:30:27.000000000 -0300
+++ gnubiff-2.1.2/src/local.cc  2005-03-29 18:39:16.000000000 -0300
@@ -107,7 +107,15 @@ Local::start (void)
                        return ;
                }
 
-               if (fam_event_.code == FAMChanged) {
+               if (protocol() == PROTOCOL_MAILDIR
+                   && (fam_event_.code == FAMCreated
+                       || fam_event_.code == FAMDeleted)) {
+                       start_checking ();
+                       gdk_threads_enter();
+                       biff_->applet()->update();
+                       gdk_threads_leave();
+               } else if (protocol() == PROTOCOL_FILE
+                          && fam_event_.code == FAMChanged) {
                        start_checking ();
                        gdk_threads_enter();
                        biff_->applet()->update();

Reply via email to