From 08c28c4e7fe814f39e742fd8cd617b42daa1534e Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Tue, 6 May 2008 07:33:22 +0000 Subject: Updating deprecated type calls. (bzr r5617) --- src/widgets/sp-xmlview-content.cpp | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/widgets/sp-xmlview-content.cpp') 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(0)); } return type; -- cgit v1.2.3