From 1c6f2d154e74f908e2c4a137de0233b5faf4f6b6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 6 Oct 2010 19:26:08 +0200 Subject: Bug #631320 - GtkObject is gone in GTK3 --- plugins/itip-formatter/itip-view.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins/itip-formatter') diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c index 9cc641e4ee..4a2925196f 100644 --- a/plugins/itip-formatter/itip-view.c +++ b/plugins/itip-formatter/itip-view.c @@ -888,7 +888,7 @@ set_buttons (ItipView *view) } static void -itip_view_destroy (GtkObject *object) +itip_view_dispose (GObject *object) { ItipView *view = ITIP_VIEW (object); ItipViewPrivate *priv = view->priv; @@ -915,17 +915,18 @@ itip_view_destroy (GtkObject *object) view->priv = NULL; } - GTK_OBJECT_CLASS (itip_view_parent_class)->destroy (object); + if (G_OBJECT_CLASS (itip_view_parent_class)->dispose) + G_OBJECT_CLASS (itip_view_parent_class)->dispose (object); } static void itip_view_class_init (ItipViewClass *klass) { - GtkObjectClass *gtkobject_class; + GObjectClass *object_class; - gtkobject_class = GTK_OBJECT_CLASS (klass); + object_class = G_OBJECT_CLASS (klass); - gtkobject_class->destroy = itip_view_destroy; + object_class->dispose = itip_view_dispose; signals[SOURCE_SELECTED] = g_signal_new ("source_selected", -- cgit v1.2.3