From afc95fbc44aa6c768a5aaf4f7c7fe115e02b2d06 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 11 Nov 2002 19:52:58 +0000 Subject: Convert from GtkObject to GObject. svn path=/trunk/; revision=18707 --- my-evolution/e-summary-offline-handler.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'my-evolution/e-summary-offline-handler.c') diff --git a/my-evolution/e-summary-offline-handler.c b/my-evolution/e-summary-offline-handler.c index f7d75eb74b..270f4e90ee 100644 --- a/my-evolution/e-summary-offline-handler.c +++ b/my-evolution/e-summary-offline-handler.c @@ -205,9 +205,10 @@ impl_goOnline (PortableServer_Servant servant, } } -/* GtkObject methods */ +/* GObject methods */ + static void -impl_destroy (GtkObject *object) +impl_finalize (GObject *object) { ESummaryOfflineHandler *offline_handler; ESummaryOfflineHandlerPriv *priv; @@ -215,10 +216,6 @@ impl_destroy (GtkObject *object) offline_handler = E_SUMMARY_OFFLINE_HANDLER (object); priv = offline_handler->priv; - if (priv == NULL) { - return; - } - if (priv->listener_interface != CORBA_OBJECT_NIL) { CORBA_Environment ev; @@ -229,22 +226,19 @@ impl_destroy (GtkObject *object) g_slist_free (priv->summaries); - offline_handler->priv = NULL; g_free (priv); - if (GTK_OBJECT_CLASS (parent_class)->destroy != NULL) { - GTK_OBJECT_CLASS (parent_class)->destroy (object); - } + (* G_OBJECT_CLASS (parent_class)->finalize) (object); } static void e_summary_offline_handler_class_init (ESummaryOfflineHandlerClass *klass) { - GtkObjectClass *object_class; + GObjectClass *object_class; POA_GNOME_Evolution_Offline__epv *epv; - object_class = GTK_OBJECT_CLASS (klass); - object_class->destroy = impl_destroy; + object_class = G_OBJECT_CLASS (klass); + object_class->finalize = impl_finalize; epv = &klass->epv; epv->_get_isOffline = impl__get_isOffline; @@ -270,7 +264,7 @@ e_summary_offline_handler_new (void) { ESummaryOfflineHandler *new; - new = gtk_type_new (e_summary_offline_handler_get_type ()); + new = g_object_new (e_summary_offline_handler_get_type (), NULL); return new; } -- cgit v1.2.3