diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-05-10 05:20:16 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-05-10 05:20:16 +0000 |
| commit | 45c01c5123660aab5c9b857cce88546565251134 (patch) | |
| tree | 0e0b8891e95ef579c70af4b9bc1b6e0e325f0073 /src/dialogs/sp-attribute-widget.cpp | |
| parent | Warning cleanup (diff) | |
| download | inkscape-45c01c5123660aab5c9b857cce88546565251134.tar.gz inkscape-45c01c5123660aab5c9b857cce88546565251134.zip | |
More type registration cleanup
(bzr r5646)
Diffstat (limited to 'src/dialogs/sp-attribute-widget.cpp')
| -rw-r--r-- | src/dialogs/sp-attribute-widget.cpp | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/src/dialogs/sp-attribute-widget.cpp b/src/dialogs/sp-attribute-widget.cpp index 4424aaa1b..9848d9f26 100644 --- a/src/dialogs/sp-attribute-widget.cpp +++ b/src/dialogs/sp-attribute-widget.cpp @@ -46,23 +46,25 @@ static GtkEntryClass *parent_class; -GtkType -sp_attribute_widget_get_type (void) +GType sp_attribute_widget_get_type(void) { static GtkType type = 0; if (!type) { - static const GtkTypeInfo info = { - "SPAttributeWidget", - sizeof (SPAttributeWidget), - sizeof (SPAttributeWidgetClass), - (GtkClassInitFunc) sp_attribute_widget_class_init, - (GtkObjectInitFunc) sp_attribute_widget_init, - NULL, NULL, NULL + GTypeInfo info = { + sizeof(SPAttributeWidgetClass), + 0, // base_init + 0, // base_finalize + (GClassInitFunc)sp_attribute_widget_class_init, + 0, // class_finalize + 0, // class_data + sizeof(SPAttributeWidget), + 0, // n_preallocs + (GInstanceInitFunc)sp_attribute_widget_init, + 0 // value_table }; - type = gtk_type_unique (GTK_TYPE_ENTRY, &info); + type = g_type_register_static(GTK_TYPE_ENTRY, "SPAttributeWidget", &info, static_cast<GTypeFlags>(0)); } return type; - } // end of sp_attribute_widget_get_type() @@ -365,23 +367,25 @@ static GtkVBoxClass *table_parent_class; -GtkType -sp_attribute_table_get_type (void) +GType sp_attribute_table_get_type(void) { static GtkType type = 0; if (!type) { - static const GtkTypeInfo info = { - "SPAttributeTable", - sizeof (SPAttributeTable), - sizeof (SPAttributeTableClass), - (GtkClassInitFunc) sp_attribute_table_class_init, - (GtkObjectInitFunc) sp_attribute_table_init, - NULL, NULL, NULL + GTypeInfo info = { + sizeof(SPAttributeTableClass), + 0, // base_init + 0, // base_finalize + (GClassInitFunc)sp_attribute_table_class_init, + 0, // class_finalize + 0, // class_data + sizeof(SPAttributeTable), + 0, // n_preallocs + (GInstanceInitFunc)sp_attribute_table_init, + 0 // value_table }; - type = gtk_type_unique (GTK_TYPE_VBOX, &info); + type = g_type_register_static(GTK_TYPE_VBOX, "SPAttributeTable", &info, static_cast<GTypeFlags>(0)); } return type; - } // end of sp_attribute_table_get_type() |
