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
This commit is contained in:
committed by
Javier Jardón
parent
e41f4e85cf
commit
1e1131c959
@ -49,7 +49,7 @@ gdk_pixbuf_ani_anim_get_type (void)
|
||||
static GType object_type = 0;
|
||||
|
||||
if (!object_type) {
|
||||
static const GTypeInfo object_info = {
|
||||
const GTypeInfo object_info = {
|
||||
sizeof (GdkPixbufAniAnimClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
@ -191,7 +191,7 @@ gdk_pixbuf_ani_anim_iter_get_type (void)
|
||||
static GType object_type = 0;
|
||||
|
||||
if (!object_type) {
|
||||
static const GTypeInfo object_info = {
|
||||
const GTypeInfo object_info = {
|
||||
sizeof (GdkPixbufAniAnimIterClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
|
||||
@ -46,7 +46,7 @@ gdk_pixbuf_gdip_anim_get_type (void)
|
||||
static GType object_type = 0;
|
||||
|
||||
if (!object_type) {
|
||||
static const GTypeInfo object_info = {
|
||||
const GTypeInfo object_info = {
|
||||
sizeof (GdkPixbufGdipAnimClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
@ -197,7 +197,7 @@ gdk_pixbuf_gdip_anim_iter_get_type (void)
|
||||
static GType object_type = 0;
|
||||
|
||||
if (!object_type) {
|
||||
static const GTypeInfo object_info = {
|
||||
const GTypeInfo object_info = {
|
||||
sizeof (GdkPixbufGdipAnimIterClass),
|
||||
(GBaseInitFunc) NULL,
|
||||
(GBaseFinalizeFunc) NULL,
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user