diff options
Diffstat (limited to 'mail/mail-offline-handler.c')
-rw-r--r-- | mail/mail-offline-handler.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mail/mail-offline-handler.c b/mail/mail-offline-handler.c index 2c571d47f7..e9387215e4 100644 --- a/mail/mail-offline-handler.c +++ b/mail/mail-offline-handler.c @@ -290,10 +290,10 @@ impl_goOnline (PortableServer_Servant servant, mail_storages_foreach (storage_go_online, NULL); } -/* GtkObject methods. */ +/* GObject methods. */ static void -impl_destroy (GtkObject *object) +impl_finalise (GObject *object) { MailOfflineHandler *offline_handler; MailOfflineHandlerPrivate *priv; @@ -303,8 +303,8 @@ impl_destroy (GtkObject *object) g_hash_table_destroy(priv->sync_table); g_free (priv); - if (GTK_OBJECT_CLASS (parent_class)->destroy != NULL) - (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); + if (G_OBJECT_CLASS (parent_class)->finalize != NULL) + (* G_OBJECT_CLASS (parent_class)->finalize) (object); } /* GTK+ type initialization. */ @@ -312,11 +312,11 @@ impl_destroy (GtkObject *object) static void mail_offline_handler_class_init (MailOfflineHandlerClass *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_finalise; epv = & klass->epv; epv->_get_isOffline = impl__get_isOffline; @@ -326,7 +326,7 @@ mail_offline_handler_class_init (MailOfflineHandlerClass *klass) epv->goOffline = impl_goOffline; epv->goOnline = impl_goOnline; - parent_class = gtk_type_class (PARENT_TYPE); + parent_class = g_type_class_ref(PARENT_TYPE); } static void @@ -345,7 +345,7 @@ mail_offline_handler_new (void) { MailOfflineHandler *new; - new = gtk_type_new (mail_offline_handler_get_type ()); + new = g_object_new(mail_offline_handler_get_type (), NULL); return new; } |