diff options
author | Tor Lillqvist <tml@novell.com> | 2006-10-16 22:50:33 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-10-16 22:50:33 +0800 |
commit | 5ebef95975b4e0021887d41463a07ac0438eb7dc (patch) | |
tree | 3eb8352cf076ec313da206493f029564ae44bebc | |
parent | bb64d5dd741646b4e19c488c437b77297798237d (diff) | |
download | gsoc2013-evolution-5ebef95975b4e0021887d41463a07ac0438eb7dc.tar.gz gsoc2013-evolution-5ebef95975b4e0021887d41463a07ac0438eb7dc.tar.zst gsoc2013-evolution-5ebef95975b4e0021887d41463a07ac0438eb7dc.zip |
List the function mail_win32_get_mail_thread_queued() instead of the
2006-10-16 Tor Lillqvist <tml@novell.com>
* win32/libevolution-mail.def: List the function
mail_win32_get_mail_thread_queued() instead of the variable
mail_thread_queued. (#348212)
* mail-mt.h: On Win32 we don't want to use the mail_thread_queued
variable outside the libevolution-mail DLL, but instead access its
value through a getter function.
* mail-mt.c: Make mail_thread_queued static on Win32.
(mail_win32_get_mail_thread_queued): New function that returns the
value of mail_thread_queued.
svn path=/trunk/; revision=32898
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | mail/ChangeLog | 12 | ||||
-rw-r--r-- | mail/mail-mt.c | 12 | ||||
-rw-r--r-- | mail/mail-mt.h | 5 | ||||
-rw-r--r-- | win32/libevolution-mail.def | 2 |
5 files changed, 36 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-10-16 Tor Lillqvist <tml@novell.com> + + * win32/libevolution-mail.def: List the function + mail_win32_get_mail_thread_queued() instead of the variable + mail_thread_queued. (#348212) + 2006-10-15 Francisco Javier F. Serrador <serrador@openshine.com> * addressbook/gui/widgets/eab-contact-display.c, diff --git a/mail/ChangeLog b/mail/ChangeLog index 9512726bbb..3c7466a81f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,15 @@ +2006-10-16 Tor Lillqvist <tml@novell.com> + + Fix for #348212: + + * mail-mt.h: On Win32 we don't want to use the mail_thread_queued + variable outside the libevolution-mail DLL, but instead access its + value through a getter function. + + * mail-mt.c: Make mail_thread_queued static on Win32. + (mail_win32_get_mail_thread_queued): New function that returns the + value of mail_thread_queued. + 2006-10-16 Chris Heath <chris@heathens.co.nz> * mail-component.c (create_local_item_cb): Fix memory leak. diff --git a/mail/mail-mt.c b/mail/mail-mt.c index f9375bf02b..3b77496d07 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -433,10 +433,22 @@ EMsgPort *mail_gui_reply_port; static GIOChannel *mail_gui_reply_channel; /* a couple of global threads available */ +#ifdef G_OS_WIN32 +#undef mail_thread_queued +static +#endif EThread *mail_thread_queued; /* for operations that can (or should) be queued */ EThread *mail_thread_queued_slow; /* for operations that can (or should) be queued, but take a long time */ EThread *mail_thread_new; /* for operations that should run in a new thread each time */ +#ifdef G_OS_WIN32 +EThread * +mail_win32_get_mail_thread_queued (void) +{ + return mail_thread_queued; +} +#endif + static gboolean mail_msgport_replied(GIOChannel *source, GIOCondition cond, void *d) { diff --git a/mail/mail-mt.h b/mail/mail-mt.h index f018fd337c..99893cce26 100644 --- a/mail/mail-mt.h +++ b/mail/mail-mt.h @@ -118,7 +118,12 @@ extern EMsgPort *mail_gui_port; extern EMsgPort *mail_gui_reply_port; /* some globally available threads */ +#ifndef G_OS_WIN32 extern EThread *mail_thread_queued; /* for operations that can (or should) be queued */ +#else +EThread *mail_win32_get_mail_thread_queued (void); +#define mail_thread_queued mail_win32_get_mail_thread_queued () +#endif extern EThread *mail_thread_new; /* for operations that should run in a new thread each time */ extern EThread *mail_thread_queued_slow; /* for operations that can (or should) be queued, but take a long time */ diff --git a/win32/libevolution-mail.def b/win32/libevolution-mail.def index 3750a1a05e..4cf5d70252 100644 --- a/win32/libevolution-mail.def +++ b/win32/libevolution-mail.def @@ -11,4 +11,4 @@ EXPORTS mail_msg_free mail_msg_new mail_tool_uri_to_folder - mail_thread_queued + mail_win32_get_mail_thread_queued |