diff options
author | Nicola Fontana <ntd@entidi.it> | 2009-11-06 01:21:09 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-11-06 01:21:09 +0100 |
commit | 1e1131c959c5e74ce1272b698f597e97e0f5ddd7 (patch) | |
tree | 8c414b20aa333a218b41138a17a9361efdcb654e /gdk-pixbuf/io-gif-animation.c | |
parent | e41f4e85cf56f3419fc284f9ef6cfd61b9008b4e (diff) | |
download | gtk+-1e1131c959c5e74ce1272b698f597e97e0f5ddd7.tar.gz |
Do not use static GTypeInfo and GInterfaceInfo
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.
https://bugzilla.gnome.org/show_bug.cgi?id=600158
Diffstat (limited to 'gdk-pixbuf/io-gif-animation.c')
-rw-r--r-- | gdk-pixbuf/io-gif-animation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk-pixbuf/io-gif-animation.c b/gdk-pixbuf/io-gif-animation.c index 580b057528..391e928503 100644 --- a/gdk-pixbuf/io-gif-animation.c +++ b/gdk-pixbuf/io-gif-animation.c @@ -50,7 +50,7 @@ gdk_pixbuf_gif_anim_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGifAnimClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, @@ -206,7 +206,7 @@ gdk_pixbuf_gif_anim_iter_get_type (void) static GType object_type = 0; if (!object_type) { - static const GTypeInfo object_info = { + const GTypeInfo object_info = { sizeof (GdkPixbufGifAnimIterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, |