summaryrefslogtreecommitdiff
path: root/glib/gmain.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-26 16:47:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-26 17:05:31 -0400
commit3fac01437e9f9e10c33492d00282ac40545f7b83 (patch)
tree74c8ed0da190693e7247f495beee1ffa176a3102 /glib/gmain.h
parent808cde540ae8634e833dd1a601f4cfb9b124c52b (diff)
downloadglib-more-static-names.tar.gz
Add g_source_set_static_name_by_idmore-static-names
After adding g_source_set_static_name, I realized that the majority of GSources in the GTK sources still rely on g_source_set_name_by_id, and open-coding this in a million places is no fun.
Diffstat (limited to 'glib/gmain.h')
-rw-r--r--glib/gmain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gmain.h b/glib/gmain.h
index 8e15f3da4..fc8a60b5f 100644
--- a/glib/gmain.h
+++ b/glib/gmain.h
@@ -613,6 +613,9 @@ const char * g_source_get_name (GSource *source);
GLIB_AVAILABLE_IN_ALL
void g_source_set_name_by_id (guint tag,
const char *name);
+GLIB_AVAILABLE_IN_2_70
+void g_source_set_static_name_by_id (guint tag,
+ const char *name);
GLIB_AVAILABLE_IN_2_36
void g_source_set_ready_time (GSource *source,