summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Camp <dave@ximian.com>2003-01-13 06:12:09 +0000
committerDave Camp <campd@src.gnome.org>2003-01-13 06:12:09 +0000
commitec3418136a1d50544e91ba6db98c93f0bfcc57f5 (patch)
tree5653864be3173060ce3f129f89e2493388ee20d4
parente0d92d618e465fd6eeefd9e04b7a6930287e8022 (diff)
downloadnautilus-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.
-rw-r--r--ChangeLog8
-rw-r--r--components/image_properties/nautilus-image-properties-view.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 321fc56cc..8a848e7ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2003-01-12 Dave Camp <dave@ximian.com>
* src/file-manager/fm-list-view.c (key_press_callback): Only
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;
}