directory monitor: use the right 'mount_notify'
authorRyan Lortie <desrt@desrt.ca>
Thu, 25 Jul 2013 17:19:56 +0000 (13:19 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 3 Oct 2013 14:35:22 +0000 (10:35 -0400)
commit1ddfd9d98ebb772534eba27bdf275cc0507a5b09
treefaafa82d453bf187293f8842812e2965e8a327f8
parentdd4c3695b4e4559179c2a10b7e1a6a13f8f8293e
directory monitor: use the right 'mount_notify'

During initialisation of a directory monitor with the
G_FILE_MONITOR_WATCH_MOUNTS flag set, GLocalDirectory monitor will add a
UNIX mount watch in case the file notification backend doesn't support
reporting these events for itself.

Unfortunately, it was performing the check incorrectly, resulting in a
monitor always being added.

Fix that, and add the #define for G_LOCAL_DIRECTORY_MONITOR_GET_CLASS()
that was also missing (since the fix depends on it).

https://bugzilla.gnome.org/show_bug.cgi?id=704882
gio/glocaldirectorymonitor.c
gio/glocaldirectorymonitor.h