gio: Intern all signal names beforehand

This avoids pointless copying of static strings.
This commit is contained in:
Matthias Clasen
2015-09-12 00:00:40 -04:00
parent c90f283be3
commit 9acd0ddbf3
18 changed files with 39 additions and 36 deletions

View File

@@ -337,7 +337,7 @@ g_socket_service_class_init (GSocketServiceClass *class)
* Since: 2.22
*/
g_socket_service_incoming_signal =
g_signal_new ("incoming", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
g_signal_new (I_("incoming"), G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GSocketServiceClass, incoming),
g_signal_accumulator_true_handled, NULL,
NULL, G_TYPE_BOOLEAN,