summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlosg <carlosg>2006-08-02 15:42:05 +0000
committercarlosg <carlosg>2006-08-02 15:42:05 +0000
commit303ed726f8e048d1203e2ed0e9d13128c760d6d5 (patch)
tree719418a81e1e0d404e0cb9725db30482d55d9ec0
parentd706ccfd234cb562b461c23c19d9ee0a7f52ef01 (diff)
2006-08-02 Carlos Garnacho <carlosg@gnome.org>
* Utils/Monitor.pm: monitor also "created" events
-rw-r--r--ChangeLog4
-rw-r--r--Utils/Monitor.pm5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a1d5521..cc0cf6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-02 Carlos Garnacho <carlosg@gnome.org>
+
+ * Utils/Monitor.pm: monitor also "created" events
+
2006-07-28 Carlos Garnacho <carlosg@gnome.org>
* configure.in, Net-DBus/Makefile.am: do not use standard prefix when
diff --git a/Utils/Monitor.pm b/Utils/Monitor.pm
index f82c27f..73e8b30 100644
--- a/Utils/Monitor.pm
+++ b/Utils/Monitor.pm
@@ -43,8 +43,9 @@ sub do_monitor_files
while ($fm->pending)
{
$event = $fm->next_event;
-
- if ($event->type eq "change")
+
+ if ($event->type eq "change" ||
+ $event->type eq "create")
{
$data = $objects {$event->filename};
$object = $$data{"object"};