Intern all signal names beforehand

This avoids pointless allocations
This commit is contained in:
Matthias Clasen
2015-09-12 09:13:00 -04:00
parent c8dcb690aa
commit 66f0bdee0a
26 changed files with 77 additions and 69 deletions

View File

@ -102,7 +102,7 @@ gtk_color_chooser_default_init (GtkColorChooserInterface *iface)
* Since: 3.4
*/
signals[COLOR_ACTIVATED] =
g_signal_new ("color-activated",
g_signal_new (I_("color-activated"),
GTK_TYPE_COLOR_CHOOSER,
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkColorChooserInterface, color_activated),