Intern type names before registering the type to avoid unnecessary copies.

2005-08-31  Matthias Clasen  <mclasen@redhat.com>

	* io-ani-animation.c (gdk_pixbuf_ani_anim_iter_get_type)
	(gdk_pixbuf_ani_anim_get_type):
	* io-gif-animation.c (gdk_pixbuf_gif_anim_get_type)
	(gdk_pixbuf_gif_anim_iter_get_type):
	* gdk-pixbuf-loader.c (gdk_pixbuf_loader_get_type):
	* gdk-pixbuf.c (gdk_pixbuf_get_type):
	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_get_type):
	Intern type names before registering the type to avoid
	unnecessary copies.
This commit is contained in:
Matthias Clasen
2005-08-31 15:18:41 +00:00
committed by Matthias Clasen
parent 476e138db0
commit f55cffb074
6 changed files with 19 additions and 7 deletions

View File

@ -98,7 +98,7 @@ gdk_pixbuf_loader_get_type (void)
};
loader_type = g_type_register_static (G_TYPE_OBJECT,
"GdkPixbufLoader",
g_intern_static_string ("GdkPixbufLoader"),
&loader_info,
0);
}