forked from AuroraMiddleware/gtk
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:
parent
476e138db0
commit
f55cffb074
@ -1,3 +1,15 @@
|
||||
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.
|
||||
|
||||
2005-08-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-io.c (format_check): Make this work again.
|
||||
|
@ -105,7 +105,7 @@ gdk_pixbuf_animation_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkPixbufAnimation",
|
||||
g_intern_static_string ("GdkPixbufAnimation"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ gdk_pixbuf_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GdkPixbuf",
|
||||
g_intern_static_string ("GdkPixbuf"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ gdk_pixbuf_ani_anim_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION,
|
||||
"GdkPixbufAniAnim",
|
||||
g_intern_static_string ("GdkPixbufAniAnim"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ gdk_pixbuf_ani_anim_iter_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION_ITER,
|
||||
"GdkPixbufAniAnimIter",
|
||||
g_intern_static_string ("GdkPixbufAniAnimIter"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ gdk_pixbuf_gif_anim_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION,
|
||||
"GdkPixbufGifAnim",
|
||||
g_intern_static_string ("GdkPixbufGifAnim"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ gdk_pixbuf_gif_anim_iter_get_type (void)
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_PIXBUF_ANIMATION_ITER,
|
||||
"GdkPixbufGifAnimIter",
|
||||
g_intern_static_string ("GdkPixbufGifAnimIter"),
|
||||
&object_info, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user