diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-05-23 01:27:48 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-05-23 01:27:48 +0800 |
commit | e99e12428d46db3be2878f6c2ca63bd7510149f4 (patch) | |
tree | f3e50bd91132262198bea8761f84913a232790bd /widgets/misc/e-map.c | |
parent | e1d0bcf694c806af75cb4d9683d1941d9721a1f9 (diff) | |
download | gsoc2013-evolution-e99e12428d46db3be2878f6c2ca63bd7510149f4.tar.gz gsoc2013-evolution-e99e12428d46db3be2878f6c2ca63bd7510149f4.tar.zst gsoc2013-evolution-e99e12428d46db3be2878f6c2ca63bd7510149f4.zip |
** Fixes bug #534360
2008-05-22 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #534360
Migrate from deprecated GtkObject symbols to GObject equivalents.
Touches over 150 files in all components; too many to list.
svn path=/trunk/; revision=35526
Diffstat (limited to 'widgets/misc/e-map.c')
-rw-r--r-- | widgets/misc/e-map.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c index 44051101c4..3c7005dc00 100644 --- a/widgets/misc/e-map.c +++ b/widgets/misc/e-map.c @@ -132,29 +132,30 @@ static GtkWidgetClass *parent_class; * Return value: The type ID of the #EMap class. **/ -GtkType +GType e_map_get_type (void) { - static GtkType e_map_type = 0; + static GType type = 0; - if (!e_map_type) - { - static const GtkTypeInfo e_map_info = - { - "EMap", - sizeof (EMap), + if (G_UNLIKELY (type == 0)) { + static const GTypeInfo type_info = { sizeof (EMapClass), - (GtkClassInitFunc) e_map_class_init, - (GtkObjectInitFunc) e_map_init, - NULL, /* reserved_1 */ - NULL, /* reserved_2 */ - (GtkClassInitFunc) NULL + (GBaseInitFunc) NULL, + (GBaseFinalizeFunc) NULL, + (GClassInitFunc) e_map_class_init, + (GClassFinalizeFunc) NULL, + NULL, /* class_data */ + sizeof (EMap), + 0, /* n_preallocs */ + (GInstanceInitFunc) e_map_init, + NULL /* value_table */ }; - e_map_type = gtk_type_unique (GTK_TYPE_WIDGET, &e_map_info); + type = g_type_register_static ( + GTK_TYPE_WIDGET, "EMap", &type_info, 0); } - return e_map_type; + return type; } /* Class initialization function for the map view */ |