diff options
author | Ondrej Holy <oholy@redhat.com> | 2015-04-17 09:09:15 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2015-04-20 11:35:11 +0200 |
commit | 463e5b10539bc985efc30ea7da0bf045654ef75b (patch) | |
tree | 0a9827db887421d33849a8add302c267ece84363 | |
parent | 322cc1a665f9bcda1a0fcdb306829816a4413c54 (diff) | |
download | gvfs-463e5b10539bc985efc30ea7da0bf045654ef75b.tar.gz |
monitor: Rename deprecated g_unix_mount_monitor_new
g_unix_mount_monitor_new is deprecated now. It was renamed to
g_unix_mount_monitor_get, because it is singleton. See Bug 742599.
https://bugzilla.gnome.org/show_bug.cgi?id=712382
-rw-r--r-- | daemon/trashlib/trashwatcher.c | 2 | ||||
-rw-r--r-- | monitor/gdu/ggduvolumemonitor.c | 2 | ||||
-rw-r--r-- | monitor/hal/ghalvolumemonitor.c | 2 | ||||
-rw-r--r-- | monitor/udisks2/gvfsudisks2volumemonitor.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/daemon/trashlib/trashwatcher.c b/daemon/trashlib/trashwatcher.c index d681733e..f1196a3f 100644 --- a/daemon/trashlib/trashwatcher.c +++ b/daemon/trashlib/trashwatcher.c @@ -264,7 +264,7 @@ trash_watcher_new (TrashRoot *root) watcher->root = root; watcher->mounts = NULL; watcher->watching = FALSE; - watcher->mount_monitor = g_unix_mount_monitor_new (); + watcher->mount_monitor = g_unix_mount_monitor_get (); g_signal_connect_swapped (watcher->mount_monitor, "mounts_changed", G_CALLBACK (trash_watcher_remount), watcher); diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c index 4021eab8..1ecf4181 100644 --- a/monitor/gdu/ggduvolumemonitor.c +++ b/monitor/gdu/ggduvolumemonitor.c @@ -414,7 +414,7 @@ g_gdu_volume_monitor_constructor (GType type, monitor = G_GDU_VOLUME_MONITOR (object); - monitor->mount_monitor = g_unix_mount_monitor_new (); + monitor->mount_monitor = g_unix_mount_monitor_get (); g_signal_connect (monitor->mount_monitor, "mounts_changed", diff --git a/monitor/hal/ghalvolumemonitor.c b/monitor/hal/ghalvolumemonitor.c index b0fb6297..7e7d2773 100644 --- a/monitor/hal/ghalvolumemonitor.c +++ b/monitor/hal/ghalvolumemonitor.c @@ -394,7 +394,7 @@ g_hal_volume_monitor_constructor (GType type, monitor = G_HAL_VOLUME_MONITOR (object); monitor->pool = g_object_ref (get_hal_pool ()); - monitor->mount_monitor = g_unix_mount_monitor_new (); + monitor->mount_monitor = g_unix_mount_monitor_get (); g_signal_connect (monitor->mount_monitor, "mounts_changed", G_CALLBACK (mounts_changed), diff --git a/monitor/udisks2/gvfsudisks2volumemonitor.c b/monitor/udisks2/gvfsudisks2volumemonitor.c index 2163992b..eee938c5 100644 --- a/monitor/udisks2/gvfsudisks2volumemonitor.c +++ b/monitor/udisks2/gvfsudisks2volumemonitor.c @@ -315,7 +315,7 @@ gvfs_udisks2_volume_monitor_init (GVfsUDisks2VolumeMonitor *monitor) G_CALLBACK (on_client_changed), monitor); - monitor->mount_monitor = g_unix_mount_monitor_new (); + monitor->mount_monitor = g_unix_mount_monitor_get (); g_signal_connect (monitor->mount_monitor, "mounts-changed", G_CALLBACK (mounts_changed), |