mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user