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

@@ -419,7 +419,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*
* Since: 2.26
*/
_signals[NEW_CONNECTION_SIGNAL] = g_signal_new ("new-connection",
_signals[NEW_CONNECTION_SIGNAL] = g_signal_new (I_("new-connection"),
G_TYPE_DBUS_SERVER,
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GDBusServerClass, new_connection),