[gvfs] monitor: Rename deprecated g_unix_mount_monitor_new
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] monitor: Rename deprecated g_unix_mount_monitor_new
- Date: Mon, 20 Apr 2015 09:35:24 +0000 (UTC)
commit 463e5b10539bc985efc30ea7da0bf045654ef75b
Author: Ondrej Holy <oholy redhat com>
Date: Fri Apr 17 09:09:15 2015 +0200
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
daemon/trashlib/trashwatcher.c | 2 +-
monitor/gdu/ggduvolumemonitor.c | 2 +-
monitor/hal/ghalvolumemonitor.c | 2 +-
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 d681733..f1196a3 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 4021eab..1ecf418 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 b0fb629..7e7d277 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 2163992..eee938c 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]