diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-12-04 09:19:00 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-12-04 09:19:00 +0000 |
| commit | 06b7bf2441af2f850dab16b622298988e1dc6f7c (patch) | |
| tree | 2e4a866a6cd3f040057bd9ea99ead08bc2465e0e /src/widgets/gradient-selector.cpp | |
| parent | Whitespace cleanup. (diff) | |
| download | inkscape-06b7bf2441af2f850dab16b622298988e1dc6f7c.tar.gz inkscape-06b7bf2441af2f850dab16b622298988e1dc6f7c.zip | |
Warning/type cleanup.
(bzr r6944)
Diffstat (limited to 'src/widgets/gradient-selector.cpp')
| -rw-r--r-- | src/widgets/gradient-selector.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/src/widgets/gradient-selector.cpp b/src/widgets/gradient-selector.cpp index a1bdc61b4..f24a6781b 100644 --- a/src/widgets/gradient-selector.cpp +++ b/src/widgets/gradient-selector.cpp @@ -53,20 +53,27 @@ static void sp_gradient_selector_spread_activate (GtkWidget *widget, SPGradientS static GtkVBoxClass *parent_class; static guint signals[LAST_SIGNAL] = {0}; -GtkType -sp_gradient_selector_get_type (void) +GType sp_gradient_selector_get_type(void) { - static GtkType type = 0; + static GType type = 0; if (!type) { - GtkTypeInfo info = { - "SPGradientSelector", - sizeof (SPGradientSelector), - sizeof (SPGradientSelectorClass), - (GtkClassInitFunc) sp_gradient_selector_class_init, - (GtkObjectInitFunc) sp_gradient_selector_init, - NULL, NULL, NULL + static const GTypeInfo info = { + sizeof(SPGradientSelectorClass), + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) sp_gradient_selector_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof(SPGradientSelector), + 0, /* n_preallocs */ + (GInstanceInitFunc) sp_gradient_selector_init, + 0, /* value_table */ }; - type = gtk_type_unique (GTK_TYPE_VBOX, &info); + + type = g_type_register_static( GTK_TYPE_VBOX, + "SPGradientSelector", + &info, + static_cast< GTypeFlags > (0) ); } return type; } |
