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:
Philip Withnall
2021-07-26 10:53:02 +01:00
parent 302346d4d3
commit 8e963e0e31
22 changed files with 40 additions and 40 deletions

View File

@@ -381,7 +381,7 @@ ik_source_new (gboolean (* callback) (ik_event_t *event))
source = g_source_new (&source_funcs, sizeof (InotifyKernelSource));
iks = (InotifyKernelSource *) source;
g_source_set_name (source, "inotify kernel source");
g_source_set_static_name (source, "inotify kernel source");
iks->unmatched_moves = g_hash_table_new (NULL, NULL);
iks->fd = inotify_init1 (IN_CLOEXEC);