Lines Matching refs:local_monitor
51 GLocalDirectoryMonitor *local_monitor; in G_DEFINE_ABSTRACT_TYPE() local
52 local_monitor = G_LOCAL_DIRECTORY_MONITOR (object); in G_DEFINE_ABSTRACT_TYPE()
54 g_free (local_monitor->dirname); in G_DEFINE_ABSTRACT_TYPE()
56 if (local_monitor->mount_monitor) in G_DEFINE_ABSTRACT_TYPE()
58 …g_signal_handlers_disconnect_by_func (local_monitor->mount_monitor, mounts_changed, local_monitor); in G_DEFINE_ABSTRACT_TYPE()
59 g_object_unref (local_monitor->mount_monitor); in G_DEFINE_ABSTRACT_TYPE()
60 local_monitor->mount_monitor = NULL; in G_DEFINE_ABSTRACT_TYPE()
91 GLocalDirectoryMonitor *local_monitor; in g_local_directory_monitor_constructor() local
101 local_monitor = G_LOCAL_DIRECTORY_MONITOR (obj); in g_local_directory_monitor_constructor()
113 local_monitor->dirname = g_strdup (dirname); in g_local_directory_monitor_constructor()
119 local_monitor->was_mounted = TRUE; in g_local_directory_monitor_constructor()
125 mount = g_unix_mount_at (local_monitor->dirname, NULL); in g_local_directory_monitor_constructor()
127 local_monitor->was_mounted = mount != NULL; in g_local_directory_monitor_constructor()
132 local_monitor->mount_monitor = g_unix_mount_monitor_new (); in g_local_directory_monitor_constructor()
133 g_signal_connect_object (local_monitor->mount_monitor, "mounts-changed", in g_local_directory_monitor_constructor()
134 G_CALLBACK (mounts_changed), local_monitor, 0); in g_local_directory_monitor_constructor()
167 g_local_directory_monitor_init (GLocalDirectoryMonitor *local_monitor) in g_local_directory_monitor_init() argument
175 GLocalDirectoryMonitor *local_monitor = user_data; in mounts_changed() local
186 mount = g_unix_mount_at (local_monitor->dirname, NULL); in mounts_changed()
194 if (local_monitor->was_mounted != is_mounted) in mounts_changed()
196 if (local_monitor->was_mounted && !is_mounted) in mounts_changed()
198 file = g_file_new_for_path (local_monitor->dirname); in mounts_changed()
199 g_file_monitor_emit_event (G_FILE_MONITOR (local_monitor), in mounts_changed()
204 local_monitor->was_mounted = is_mounted; in mounts_changed()
291 GLocalDirectoryMonitor *local_monitor = G_LOCAL_DIRECTORY_MONITOR (monitor); in g_local_directory_monitor_cancel() local
293 if (local_monitor->mount_monitor) in g_local_directory_monitor_cancel()
295 …g_signal_handlers_disconnect_by_func (local_monitor->mount_monitor, mounts_changed, local_monitor); in g_local_directory_monitor_cancel()
296 g_object_unref (local_monitor->mount_monitor); in g_local_directory_monitor_cancel()
297 local_monitor->mount_monitor = NULL; in g_local_directory_monitor_cancel()