Commit a9e62971 authored by Michael Natterer's avatar Michael Natterer 😴

libgimpwidgets: implement GObject::finalize() instead of GtkObject::destroy()

parent 6a10ded2
......@@ -44,7 +44,8 @@
**/
static void gimp_color_scale_destroy (GtkObject *object);
static void gimp_color_scale_finalize (GObject *object);
static void gimp_color_scale_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
static void gimp_color_scale_state_changed (GtkWidget *widget,
......@@ -69,10 +70,10 @@ G_DEFINE_TYPE (GimpColorScale, gimp_color_scale, GTK_TYPE_SCALE)
static void
gimp_color_scale_class_init (GimpColorScaleClass *klass)
{
GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->destroy = gimp_color_scale_destroy;
object_class->finalize = gimp_color_scale_finalize;
widget_class->size_allocate = gimp_color_scale_size_allocate;
widget_class->state_changed = gimp_color_scale_state_changed;
......@@ -104,7 +105,7 @@ gimp_color_scale_init (GimpColorScale *scale)
}
static void
gimp_color_scale_destroy (GtkObject *object)
gimp_color_scale_finalize (GObject *object)
{
GimpColorScale *scale = GIMP_COLOR_SCALE (object);
......@@ -117,7 +118,7 @@ gimp_color_scale_destroy (GtkObject *object)
scale->rowstride = 0;
}
GTK_OBJECT_CLASS (parent_class)->destroy (object);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment