diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-08-31 15:18:41 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-31 15:18:41 +0000 |
commit | 7ce62a035017ab4de4e80e3436e4a35887078a0d (patch) | |
tree | 5df54d3e559f34e9faa0941694a1aef0758128c8 /gdk-pixbuf | |
parent | dce6d6c9be7751743d1d10af377d953cc84116b2 (diff) | |
download | gdk-pixbuf-7ce62a035017ab4de4e80e3436e4a35887078a0d.tar.gz |
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.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-animation.c | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf.c | 2 | ||||
-rw-r--r-- | gdk-pixbuf/io-ani-animation.c | 4 | ||||
-rw-r--r-- | gdk-pixbuf/io-gif-animation.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index ad4777416..ad510bf2c 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.c +++ b/gdk-pixbuf/gdk-pixbuf-animation.c @@ -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); } diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index a2a131c4c..6f9d6461a 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -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); } diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 084bd2208..8847c734e 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -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); } diff --git a/gdk-pixbuf/io-ani-animation.c b/gdk-pixbuf/io-ani-animation.c index 07e70368a..1b9c8fccb 100644 --- a/gdk-pixbuf/io-ani-animation.c +++ b/gdk-pixbuf/io-ani-animation.c @@ -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); } diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index c99a0805e..57d460408 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -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); } |