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:
Matthias Clasen
2005-08-31 16:53:43 +00:00
committed by Matthias Clasen
parent f55cffb074
commit c09cc89317
168 changed files with 200 additions and 220 deletions

View File

@ -376,7 +376,7 @@ gtk_style_get_type (void)
(GInstanceInitFunc) gtk_style_init,
};
style_type = g_type_register_static (G_TYPE_OBJECT, "GtkStyle",
style_type = g_type_register_static (G_TYPE_OBJECT, g_intern_static_string ("GtkStyle"),
&style_info, 0);
}
@ -6402,7 +6402,7 @@ gtk_border_get_type (void)
static GType our_type = 0;
if (our_type == 0)
our_type = g_boxed_type_register_static ("GtkBorder",
our_type = g_boxed_type_register_static (g_intern_static_string ("GtkBorder"),
(GBoxedCopyFunc) gtk_border_copy,
(GBoxedFreeFunc) gtk_border_free);