From 59951a4a1b6d83966963eb0cbb3c02ed1340cdeb Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 20 Nov 2002 07:16:30 +0000 Subject: provide a proper implicit rule for building .server.in from .server.in.in. 2002-11-20 Not Zed * importers/Makefile.am (%.server.in): provide a proper implicit rule for building .server.in from .server.in.in. The other one just copied the first target to all destinations(!). * importers/evolution-outlook-importer.c (outlook_factory_fn): destroy -> weak ref. svn path=/trunk/; revision=18855 --- mail/importers/Makefile.am | 2 +- mail/importers/evolution-outlook-importer.c | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'mail/importers') diff --git a/mail/importers/Makefile.am b/mail/importers/Makefile.am index 49f9b17af7..7300acb9f2 100644 --- a/mail/importers/Makefile.am +++ b/mail/importers/Makefile.am @@ -23,7 +23,7 @@ serverdir = $(libdir)/bonobo/servers server_in_files = GNOME_Evolution_Mail_Mbox_Importer.server.in.in \ GNOME_Evolution_Mail_Outlook_Importer.server.in.in server_DATA = $(server_in_files:.server.in.in=.server) -$(server_in_files:.server.in.in=.server.in): $(server_in_files) +%.server.in: %.server.in.in sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@ EXTRA_DIST = $(server_in_files) $(server_DATA) diff --git a/mail/importers/evolution-outlook-importer.c b/mail/importers/evolution-outlook-importer.c index 8079ca3e33..2737aa592a 100644 --- a/mail/importers/evolution-outlook-importer.c +++ b/mail/importers/evolution-outlook-importer.c @@ -206,14 +206,13 @@ support_format_fn (EvolutionImporter *importer, } static void -importer_destroy_cb (GtkObject *object, - OutlookImporter *oli) +importer_destroy_cb (void *data, GObject *object) { - MailImporter *importer; + OutlookImporter *oli = data; + MailImporter *importer = data; - importer = (MailImporter *) oli; if (importer->folder) - camel_object_unref (CAMEL_OBJECT (importer->folder)); + camel_object_unref (importer->folder); g_free (oli->filename); if (oli->handle) @@ -291,8 +290,7 @@ outlook_factory_fn (BonoboGenericFactory *_factory, importer = evolution_importer_new (support_format_fn, load_file_fn, process_item_fn, NULL, oli); - g_signal_connect((importer), "destroy", - G_CALLBACK (importer_destroy_cb), oli); + g_object_weak_ref((GObject *)importer, importer_destroy_cb, oli); return BONOBO_OBJECT (importer); } -- cgit