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

@@ -59,7 +59,7 @@ g_dbus_object_default_init (GDBusObjectIface *iface)
*
* Since: 2.30
*/
g_signal_new ("interface-added",
g_signal_new (I_("interface-added"),
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GDBusObjectIface, interface_added),
@@ -79,7 +79,7 @@ g_dbus_object_default_init (GDBusObjectIface *iface)
*
* Since: 2.30
*/
g_signal_new ("interface-removed",
g_signal_new (I_("interface-removed"),
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GDBusObjectIface, interface_removed),