diff options
author | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-01-30 23:47:09 +0000 |
commit | 4af33fa24df69f335f07f43e5904a766c8d8ec97 (patch) | |
tree | ccc23ba16332f44ae45418f6cf9580036c4c76da /gtk/gtkpixmap.c | |
parent | ee7038f9fddd0213c65474e5d59609107caed7c6 (diff) | |
download | gdk-pixbuf-4af33fa24df69f335f07f43e5904a766c8d8ec97.tar.gz |
hm, initital refcount revolution commit ;)
still some gnits left, but keep working on it ;)
-timj
Diffstat (limited to 'gtk/gtkpixmap.c')
-rw-r--r-- | gtk/gtkpixmap.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkpixmap.c b/gtk/gtkpixmap.c index 9505f598f..b6136c969 100644 --- a/gtk/gtkpixmap.c +++ b/gtk/gtkpixmap.c @@ -23,7 +23,7 @@ static void gtk_pixmap_class_init (GtkPixmapClass *klass); static void gtk_pixmap_init (GtkPixmap *pixmap); static gint gtk_pixmap_expose (GtkWidget *widget, GdkEventExpose *event); -static void gtk_pixmap_destroy (GtkObject *object); +static void gtk_pixmap_finalize (GtkObject *object); static GtkWidgetClass *parent_class; @@ -61,7 +61,7 @@ gtk_pixmap_class_init (GtkPixmapClass *class) widget_class = (GtkWidgetClass*) class; parent_class = gtk_type_class (gtk_widget_get_type ()); - object_class->destroy = gtk_pixmap_destroy; + object_class->finalize = gtk_pixmap_finalize; widget_class->expose_event = gtk_pixmap_expose; } @@ -90,11 +90,10 @@ gtk_pixmap_new (GdkPixmap *val, } static void -gtk_pixmap_destroy (GtkObject *object) +gtk_pixmap_finalize (GtkObject *object) { gtk_pixmap_set (GTK_PIXMAP (object), NULL, NULL); - if (GTK_OBJECT_CLASS (parent_class)->destroy) - (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); + (* GTK_OBJECT_CLASS (parent_class)->finalize) (object); } void |