summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-xmlview-content.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-05-06 07:33:22 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-05-06 07:33:22 +0000
commit08c28c4e7fe814f39e742fd8cd617b42daa1534e (patch)
tree5aa758fb93a0475c27658dd4ded72c9cf7064acf /src/widgets/sp-xmlview-content.cpp
parentlimit the change to the relative moves only (diff)
downloadinkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.tar.gz
inkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.zip
Updating deprecated type calls.
(bzr r5617)
Diffstat (limited to 'src/widgets/sp-xmlview-content.cpp')
-rw-r--r--src/widgets/sp-xmlview-content.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/widgets/sp-xmlview-content.cpp b/src/widgets/sp-xmlview-content.cpp
index 393c136c7..7150b07fd 100644
--- a/src/widgets/sp-xmlview-content.cpp
+++ b/src/widgets/sp-xmlview-content.cpp
@@ -77,21 +77,24 @@ sp_xmlview_content_set_repr (SPXMLViewContent * text, Inkscape::XML::Node * repr
}
}
-GtkType
-sp_xmlview_content_get_type (void)
+GType sp_xmlview_content_get_type(void)
{
static GtkType type = 0;
if (!type) {
- static const GtkTypeInfo info = {
- "SPXMLViewContent",
- sizeof (SPXMLViewContent),
- sizeof (SPXMLViewContentClass),
- (GtkClassInitFunc) sp_xmlview_content_class_init,
- (GtkObjectInitFunc) sp_xmlview_content_init,
- NULL, NULL, NULL
+ GTypeInfo info = {
+ sizeof(SPXMLViewContentClass),
+ 0, // base_init
+ 0, // base_finalize
+ (GClassInitFunc)sp_xmlview_content_class_init,
+ 0, // class_finalize
+ 0, // class_data
+ sizeof(SPXMLViewContent),
+ 0, // n_preallocs
+ (GInstanceInitFunc)sp_xmlview_content_init,
+ 0 // value_table
};
- type = gtk_type_unique (GTK_TYPE_TEXT_VIEW, &info);
+ type = g_type_register_static(GTK_TYPE_TEXT_VIEW, "SPXMLViewContent", &info, static_cast<GTypeFlags>(0));
}
return type;