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
@ -270,7 +270,7 @@ gtk_file_system_unix_get_type (void)
|
||||
};
|
||||
|
||||
file_system_unix_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GtkFileSystemUnix",
|
||||
g_intern_static_string ("GtkFileSystemUnix"),
|
||||
&file_system_unix_info, 0);
|
||||
g_type_add_interface_static (file_system_unix_type,
|
||||
GTK_TYPE_FILE_SYSTEM,
|
||||
@ -1746,7 +1746,7 @@ gtk_file_folder_unix_get_type (void)
|
||||
};
|
||||
|
||||
file_folder_unix_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GtkFileFolderUnix",
|
||||
g_intern_static_string ("GtkFileFolderUnix"),
|
||||
&file_folder_unix_info, 0);
|
||||
g_type_add_interface_static (file_folder_unix_type,
|
||||
GTK_TYPE_FILE_FOLDER,
|
||||
|
||||
Reference in New Issue
Block a user