Move event support in the inotify backend

This adds support for G_FILE_MONITOR_SEND_MOVED events when requested by
the user to the inotify backend. Last part to fix bug #547890.
Based heavily on a patch by Martyn Russel <martyn@lanedo.com>.
This commit is contained in:
Christian Kellner
2010-02-18 15:49:58 +01:00
parent 239af97712
commit 48f74cab39
8 changed files with 86 additions and 18 deletions

View File

@@ -46,7 +46,8 @@ dup_dirname (const gchar *dirname)
inotify_sub*
_ih_sub_new (const gchar *dirname,
const gchar *filename,
const gchar *filename,
gboolean pair_moves,
gpointer user_data)
{
inotify_sub *sub = NULL;
@@ -54,8 +55,9 @@ _ih_sub_new (const gchar *dirname,
sub = g_new0 (inotify_sub, 1);
sub->dirname = dup_dirname (dirname);
sub->filename = g_strdup (filename);
sub->pair_moves = pair_moves;
sub->user_data = user_data;
IS_W ("new subscription for %s being setup\n", sub->dirname);
return sub;