diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-05-18 00:23:30 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-05-18 00:23:30 +0000 |
| commit | 55c116abfcd3438af530f4c4f8114fdab89d3f69 (patch) | |
| tree | 1f56eafb01d5902b867f109485fd61db9c93151d /src/widgets/sp-color-wheel.cpp | |
| parent | Added external image edit launch and refresh on changed (diff) | |
| download | inkscape-55c116abfcd3438af530f4c4f8114fdab89d3f69.tar.gz inkscape-55c116abfcd3438af530f4c4f8114fdab89d3f69.zip | |
Fixed warnings from deprecated function
(bzr r5686)
Diffstat (limited to 'src/widgets/sp-color-wheel.cpp')
| -rw-r--r-- | src/widgets/sp-color-wheel.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/widgets/sp-color-wheel.cpp b/src/widgets/sp-color-wheel.cpp index 7cfa991b0..a31857101 100644 --- a/src/widgets/sp-color-wheel.cpp +++ b/src/widgets/sp-color-wheel.cpp @@ -72,20 +72,23 @@ get_time (void) } */ -GtkType -sp_color_wheel_get_type (void) +GType sp_color_wheel_get_type(void) { - static GtkType type = 0; + static GType type = 0; if (!type) { - GtkTypeInfo info = { - "SPColorWheel", - sizeof (SPColorWheel), - sizeof (SPColorWheelClass), - (GtkClassInitFunc) sp_color_wheel_class_init, - (GtkObjectInitFunc) sp_color_wheel_init, - NULL, NULL, NULL + GTypeInfo info = { + sizeof(SPColorWheelClass), + 0, // base_init + 0, // base_finalize + (GClassInitFunc)sp_color_wheel_class_init, + 0, // class_finalize + 0, // class_data + sizeof(SPColorWheel), + 0, // n_preallocs + (GInstanceInitFunc)sp_color_wheel_init, + 0 // value_table }; - type = gtk_type_unique (GTK_TYPE_WIDGET, &info); + type = g_type_register_static(GTK_TYPE_WIDGET, "SPColorWheel", &info, static_cast<GTypeFlags>(0)); } return type; } |
