mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 06:33:41 +02:00
gio: Intern all signal names beforehand
This avoids pointless copying of static strings.
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user