X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=Monitor.vala;h=1b5c4997864b2e2698c39414bef8ad4ad9ee5955;hp=fdbea2134ac5d73804988da5b7b0c4d9f07786ae;hb=9e641e366549656621a3e4fc4950b62c4b395650;hpb=310433db4070df4eeff32078bda9f3f1839ab862 diff --git a/Monitor.vala b/Monitor.vala index fdbea213..1b5c4997 100644 --- a/Monitor.vala +++ b/Monitor.vala @@ -68,7 +68,12 @@ public delegate void onEventHander (FileMonitor fm, File f_orig, File of_orig, F * */ -public class Monitor : Object +public abstract class gitMonitorBase : Object +{ + public abstract void monitor(string path, int depth = 0); +} + +public class Monitor : gitMonitorBase { @@ -136,7 +141,7 @@ public class Monitor : Object * * */ - public void monitor(string path, int depth = 0) + public override void monitor(string path, int depth = 0) { //GLib.debug("ADD: (%d): %s\n", depth, path); @@ -328,12 +333,12 @@ public class Monitor : Object case FileMonitorEvent.MOVED_OUT: // eg. chmod/chatt case FileMonitorEvent.RENAMED: // eg. chmod/chatt - var of = this.realpath(of_orig); - var dest = new MonitorNamePathDir( - of.get_basename(), - of.get_path(), - Path.get_dirname(of.get_path()) - ); + var of = this.realpath(of_orig); + var dest = new MonitorNamePathDir( + of.get_basename(), + of.get_path(), + Path.get_dirname(of.get_path()) + ); src.action = "moved"; dest.action = "moved";