mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Port internal uses to use g_source_set_static_name()
This should reduce allocations. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -467,7 +467,7 @@ queue_network_changed (GNetworkMonitorBase *monitor)
|
||||
*/
|
||||
g_source_set_priority (source, G_PRIORITY_HIGH_IDLE);
|
||||
g_source_set_callback (source, emit_network_changed, monitor, NULL);
|
||||
g_source_set_name (source, "[gio] emit_network_changed");
|
||||
g_source_set_static_name (source, "[gio] emit_network_changed");
|
||||
g_source_attach (source, monitor->priv->context);
|
||||
monitor->priv->network_changed_source = source;
|
||||
}
|
||||
|
Reference in New Issue
Block a user