Moved bonobo includes from the .c to the .h. Include

2001-02-05  Christopher James Lahey  <clahey@ximian.com>

	* evolution-mbox-importer.c, evolution-mbox-importer.h: Moved
	bonobo includes from the .c to the .h.  Include
	evolution-mbox-importer.h in evolution-mbox-importer.c.

	* evolution-outlook-importer.c, evolution-outlook-importer.h:
	Moved bonobo includes from the .c to the .h.  Include
	evolution-outlook-importer.h in evolution-outlook-importer.c.

	* mail-callbacks.c: Include mail-send-recv.h.

	* mail-local.c (mail_local_lookup_folder): Cast local_store to
	CAMEL_STORE.

	* mail-mt.c (mail_msg_cleanup): Make this function static.

	* mail-send-recv.c, mail-send-recv.h: Created mail_send_recv.h.
	Included it in mail-send-recv.c.  Added a #include
	<libgnomeui/gnome-window-icon.h>.
	(mail_send_receive): Added a cast.

	* mail-summary.c (new_folder_cb, removed_folder_cb,
	create_summary_view): Cast the source func in calling g_idle_add.

svn path=/trunk/; revision=8002
This commit is contained in:
Christopher James Lahey
2001-02-05 23:04:08 +00:00
committed by Jeffrey Stedfast
parent 11f8fdd1cc
commit 8634c7a4ec
10 changed files with 44 additions and 10 deletions

View File

@ -1,3 +1,28 @@
2001-02-05 Christopher James Lahey <clahey@ximian.com>
* evolution-mbox-importer.c, evolution-mbox-importer.h: Moved
bonobo includes from the .c to the .h. Include
evolution-mbox-importer.h in evolution-mbox-importer.c.
* evolution-outlook-importer.c, evolution-outlook-importer.h:
Moved bonobo includes from the .c to the .h. Include
evolution-outlook-importer.h in evolution-outlook-importer.c.
* mail-callbacks.c: Include mail-send-recv.h.
* mail-local.c (mail_local_lookup_folder): Cast local_store to
CAMEL_STORE.
* mail-mt.c (mail_msg_cleanup): Make this function static.
* mail-send-recv.c, mail-send-recv.h: Created mail_send_recv.h.
Included it in mail-send-recv.c. Added a #include
<libgnomeui/gnome-window-icon.h>.
(mail_send_receive): Added a cast.
* mail-summary.c (new_folder_cb, removed_folder_cb,
create_summary_view): Cast the source func in calling g_idle_add.
2001-02-05 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (try_inline_pgp_sig): New function to handle

View File

@ -25,8 +25,7 @@
#include <config.h>
#endif
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-generic-factory.h>
#include "evolution-mbox-importer.h"
#include <stdio.h>

View File

@ -24,6 +24,9 @@
#ifndef _EVOLUTION_MBOX_IMPORTER_H_
#define _EVOLUTION_MBOX_IMPORTER_H_
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-generic-factory.h>
#define MBOX_FACTORY_IID "OAFIID:GNOME_Evolution_Mail_Mbox_ImporterFactory"
BonoboObject *mbox_factory_fn (BonoboGenericFactory *_factory,

View File

@ -26,8 +26,7 @@
#include <config.h>
#endif
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-generic-factory.h>
#include "evolution-outlook-importer.h"
#include <stdio.h>

View File

@ -24,6 +24,9 @@
#ifndef _EVOLUTION_OUTLOOK_IMPORTER_H_
#define _EVOLUTION_OUTLOOK_IMPORTER_H_
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-generic-factory.h>
#define OUTLOOK_FACTORY_IID "OAFIID:GNOME_Evolution_Mail_Outlook_ImporterFactory"
BonoboObject *outlook_factory_fn (BonoboGenericFactory *_factory,

View File

@ -39,6 +39,7 @@
#include "mail-tools.h"
#include "mail-ops.h"
#include "mail-local.h"
#include "mail-send-recv.h"
#include "mail-vfolder.h"
#include "folder-browser.h"
#include "subscribe-dialog.h"

View File

@ -959,7 +959,7 @@ mail_local_lookup_folder (const char *name,
"file:/",
CAMEL_PROVIDER_STORE, NULL);
return get_folder (local_store, name, 0, ev);
return get_folder (CAMEL_STORE(local_store), name, 0, ev);
}
void

View File

@ -216,7 +216,7 @@ mail_msg_received(EThread *e, EMsg *msg, void *data)
m->ops->receive_msg(m);
}
void mail_msg_cleanup(void)
static void mail_msg_cleanup(void)
{
e_thread_destroy(mail_thread_queued);
e_thread_destroy(mail_thread_new);

View File

@ -20,6 +20,9 @@
*
*/
#include "config.h"
#include "mail-send-recv.h"
#include <stdio.h>
#include <string.h>
@ -43,6 +46,7 @@
#include <gtk/gtk.h>
#include <libgnomeui/gnome-stock.h>
#include <libgnomeui/gnome-dialog.h>
#include <libgnomeui/gnome-window-icon.h>
/* send/receive email */
@ -521,7 +525,7 @@ void mail_send_receive(void)
smtp one. */
data = build_dialogue(sources, outbox_folder, account->transport->url);
scan = data->infos;
gd = data->gd;
gd = GTK_WIDGET(data->gd);
gtk_signal_connect((GtkObject *)gd, "destroy", gtk_widget_destroyed, &gd);
while (scan) {
struct _send_info *info = scan->data;

View File

@ -440,7 +440,7 @@ new_folder_cb (EvolutionStorageListener *listener,
g_print ("New folder: %s\n", path);
if (summary->idle == 0)
summary->idle = g_idle_add (idle_check, summary);
summary->idle = g_idle_add ((GSourceFunc) idle_check, summary);
}
static void
@ -451,7 +451,7 @@ removed_folder_cb (EvolutionStorageListener *listener,
g_print ("Removed folder: %s\n", path);
if (summary->idle == 0)
summary->idle = g_idle_add (idle_check, summary);
summary->idle = g_idle_add ((GSourceFunc) idle_check, summary);
}
#endif
@ -523,7 +523,7 @@ create_summary_view (ExecutiveSummaryComponentFactory *_factory,
#endif
if (summary->idle == 0)
summary->idle = g_idle_add (idle_check, summary);
summary->idle = g_idle_add ((GSourceFunc) idle_check, summary);
return component;
}