Intern type names in code generated by glib-mkenums, too.
2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
This commit is contained in:
committed by
Matthias Clasen
parent
f55cffb074
commit
c09cc89317
@ -88,7 +88,7 @@ gtk_separator_tool_item_get_type (void)
|
||||
};
|
||||
|
||||
type = g_type_register_static (GTK_TYPE_TOOL_ITEM,
|
||||
"GtkSeparatorToolItem", &type_info, 0);
|
||||
g_intern_static_string ("GtkSeparatorToolItem"), &type_info, 0);
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user