diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-05-06 07:33:22 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-05-06 07:33:22 +0000 |
| commit | 08c28c4e7fe814f39e742fd8cd617b42daa1534e (patch) | |
| tree | 5aa758fb93a0475c27658dd4ded72c9cf7064acf /src/widgets/sp-xmlview-attr-list.cpp | |
| parent | limit the change to the relative moves only (diff) | |
| download | inkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.tar.gz inkscape-08c28c4e7fe814f39e742fd8cd617b42daa1534e.zip | |
Updating deprecated type calls.
(bzr r5617)
Diffstat (limited to 'src/widgets/sp-xmlview-attr-list.cpp')
| -rw-r--r-- | src/widgets/sp-xmlview-attr-list.cpp | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/widgets/sp-xmlview-attr-list.cpp b/src/widgets/sp-xmlview-attr-list.cpp index 923420740..008ad4970 100644 --- a/src/widgets/sp-xmlview-attr-list.cpp +++ b/src/widgets/sp-xmlview-attr-list.cpp @@ -77,24 +77,27 @@ sp_xmlview_attr_list_set_repr (SPXMLViewAttrList * list, Inkscape::XML::Node * r gtk_clist_thaw (GTK_CLIST (list)); } -GtkType -sp_xmlview_attr_list_get_type (void) +GType sp_xmlview_attr_list_get_type(void) { - static GtkType type = 0; - - if (!type) { - static const GtkTypeInfo info = { - "SPXMLViewAttrList", - sizeof (SPXMLViewAttrList), - sizeof (SPXMLViewAttrListClass), - (GtkClassInitFunc) sp_xmlview_attr_list_class_init, - (GtkObjectInitFunc) sp_xmlview_attr_list_init, - NULL, NULL, NULL - }; - type = gtk_type_unique (GTK_TYPE_CLIST, &info); - } - - return type; + static GType type = 0; + + if (!type) { + GTypeInfo info = { + sizeof(SPXMLViewAttrListClass), + 0, // base_init + 0, // base_finalize + (GClassInitFunc)sp_xmlview_attr_list_class_init, + 0, // class_finalize + 0, // class_data + sizeof(SPXMLViewAttrList), + 0, // n_preallocs + (GInstanceInitFunc)sp_xmlview_attr_list_init, + 0 // value_table + }; + type = g_type_register_static(GTK_TYPE_CLIST, "SPXMLViewAttrList", &info, static_cast<GTypeFlags>(0)); + } + + return type; } void |
