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
@ -118,6 +118,7 @@ gtk_tree_item_get_type (void)
|
||||
(GtkClassInitFunc) NULL,
|
||||
};
|
||||
|
||||
g_intern_static_string ("GtkTreeItem");
|
||||
tree_item_type = gtk_type_unique (gtk_item_get_type (), &tree_item_info);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user