diff options
author | Dave Camp <dave@ximian.com> | 2003-01-13 06:12:09 +0000 |
---|---|---|
committer | Dave Camp <campd@src.gnome.org> | 2003-01-13 06:12:09 +0000 |
commit | ec3418136a1d50544e91ba6db98c93f0bfcc57f5 (patch) | |
tree | 5653864be3173060ce3f129f89e2493388ee20d4 /components | |
parent | e0d92d618e465fd6eeefd9e04b7a6930287e8022 (diff) | |
download | nautilus-ec3418136a1d50544e91ba6db98c93f0bfcc57f5.tar.gz |
Save the parent class. (nautilus_image_properties_view_finalize): Chain to
2003-01-13 Dave Camp <dave@ximian.com>
* components/image_properties/nautilus-image-properties-view.c
(nautilus_image_properties_view_class_init): Save the parent
class.
(nautilus_image_properties_view_finalize): Chain to the parent
class.
Diffstat (limited to 'components')
-rw-r--r-- | components/image_properties/nautilus-image-properties-view.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/components/image_properties/nautilus-image-properties-view.c b/components/image_properties/nautilus-image-properties-view.c index 1049a2116..27ecf7e8d 100644 --- a/components/image_properties/nautilus-image-properties-view.c +++ b/components/image_properties/nautilus-image-properties-view.c @@ -48,11 +48,13 @@ enum { PROP_URI, }; +static GObjectClass *parent_class = NULL; + static void nautilus_image_properties_view_finalize (GObject *object) { NautilusImagePropertiesView *view; - + view = NAUTILUS_IMAGE_PROPERTIES_VIEW (object); if (view->details->vfs_handle != NULL) @@ -62,7 +64,7 @@ nautilus_image_properties_view_finalize (GObject *object) g_free (view->details); - G_OBJECT_CLASS (object)->finalize (object); + G_OBJECT_CLASS (parent_class)->finalize (object); } static void @@ -225,6 +227,8 @@ set_property (BonoboPropertyBag *bag, static void nautilus_image_properties_view_class_init (NautilusImagePropertiesViewClass *class) { + parent_class = g_type_class_peek_parent (class); + G_OBJECT_CLASS (class)->finalize = nautilus_image_properties_view_finalize; } |