mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Rename the generated private data getter function
As it turns out, we have examples of internal functions called type_name_get_private() in the wild (especially among older libraries), so we need to use a name for the per-instance private data getter function that hopefully won't conflict with anything.
This commit is contained in:
@@ -265,7 +265,7 @@ g_file_monitor_class_init (GFileMonitorClass *klass)
|
||||
static void
|
||||
g_file_monitor_init (GFileMonitor *monitor)
|
||||
{
|
||||
monitor->priv = g_file_monitor_get_private (monitor);
|
||||
monitor->priv = g_file_monitor_get_instance_private (monitor);
|
||||
monitor->priv->rate_limit_msec = DEFAULT_RATE_LIMIT_MSECS;
|
||||
monitor->priv->rate_limiter = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_equal,
|
||||
NULL, (GDestroyNotify) rate_limiter_free);
|
||||
|
Reference in New Issue
Block a user