mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-05 00:43:40 +02:00
Rename g_unix_mount_monitor_new() to _get()
This is a singleton, but we have a function called _new() to get it. What's worse is that the documentation makes no mention of this, and actually specifically says that a new monitor will be created each time. https://bugzilla.gnome.org/show_bug.cgi?id=742599
This commit is contained in:
@@ -126,7 +126,9 @@ gboolean g_unix_mount_points_changed_since (guint64 time);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GType g_unix_mount_monitor_get_type (void) G_GNUC_CONST;
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
GLIB_AVAILABLE_IN_2_44
|
||||
GUnixMountMonitor *g_unix_mount_monitor_get (void);
|
||||
GLIB_DEPRECATED_IN_2_44_FOR(g_unix_mount_monitor_get)
|
||||
GUnixMountMonitor *g_unix_mount_monitor_new (void);
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
void g_unix_mount_monitor_set_rate_limit (GUnixMountMonitor *mount_monitor,
|
||||
|
Reference in New Issue
Block a user