aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-02-16 01:28:34 +0800
committerArturo Espinosa <unammx@src.gnome.org>2000-02-16 01:28:34 +0800
commitd53eea370b1a53cbae519c92fa602d0e7aa5ecc8 (patch)
tree610202886dae8219e74e4e83e344d735c16a6c4a /mail
parentf9cdc1e00912852e94f454b0de79d613df46c19d (diff)
downloadgsoc2013-evolution-d53eea370b1a53cbae519c92fa602d0e7aa5ecc8.tar.gz
gsoc2013-evolution-d53eea370b1a53cbae519c92fa602d0e7aa5ecc8.tar.zst
gsoc2013-evolution-d53eea370b1a53cbae519c92fa602d0e7aa5ecc8.zip
Add the unicode libraries as well.
2000-02-14 Miguel de Icaza <miguel@gnu.org> * camel/providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Add the unicode libraries as well. * camel/camel-provider.c (camel_provider_register_as_module): Add error reporting here. Desire to use Solaris increases. Hair loss in the last two hours: 5,400. * camel/providers/mbox/camel-mbox-provider.c (camel_mbox_get_provider): Renamed function. * camel/camel.h: All include files use camel/ now here. * camel/providers/mbox/Makefile.am: Drop all the dynamism from Camel, and make this a standard library. * configure.in: set the UNICODE_LIBS variable here. 2000-02-14 Miguel de Icaza <miguel@gnu.org> * folder-browser.c (folder_browser_load_folder): New routine, loads a camel folder. (folder_browser_set_uri): redo. * session.c: new file. Implements SessionStores to keep track of a Session/Store tuple. svn path=/trunk/; revision=1783
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog9
-rw-r--r--mail/Makefile.am7
-rw-r--r--mail/folder-browser-factory.c2
-rw-r--r--mail/folder-browser.c35
-rw-r--r--mail/folder-browser.h2
-rw-r--r--mail/main.c15
-rw-r--r--mail/message-list.c15
7 files changed, 76 insertions, 9 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 40ba1fca0d..4bd326610a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,12 @@
+2000-02-14 Miguel de Icaza <miguel@gnu.org>
+
+ * folder-browser.c (folder_browser_load_folder): New routine,
+ loads a camel folder.
+ (folder_browser_set_uri): redo.
+
+ * session.c: new file. Implements SessionStores to keep track of
+ a Session/Store tuple.
+
2000-02-13 Matt Loper <matt@helixcode.com>
* html-stream.c (html_stream_new): Second param of gtk_html_begin
diff --git a/mail/Makefile.am b/mail/Makefile.am
index 36c61e427d..8132951901 100644
--- a/mail/Makefile.am
+++ b/mail/Makefile.am
@@ -1,10 +1,13 @@
bin_PROGRAMS = evolution-mail test-mail
+providerdir = $(libdir)/evolution/camel-providers/$(VERSION)
+
INCLUDES = \
-DEVOLUTION_VERSION=\""$(VERSION)"\" \
-DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \
-DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \
-DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\" \
+ -DCAMEL_PROVIDERDIR=\""$(providerdir)"\" \
-I$(top_srcdir)/widgets \
-I$(top_srcdir)/widgets/e-text \
$(BONOBO_HTML_GNOME_CFLAGS)
@@ -27,7 +30,9 @@ evolution_mail_SOURCES = \
mail-display.c \
main.c \
message-list.c \
- message-list.h
+ message-list.h \
+ session.c \
+ session.h
evolution_mail_LDADD = \
../widgets/e-table/libetable.a \
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index fd696395b8..dc5afb79a6 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -32,6 +32,8 @@ folder_browser_factory (BonoboGenericFactory *factory, void *closure)
if (folder_browser == NULL)
return NULL;
+ folder_browser_set_uri (FOLDER_BROWSER (folder_browser), "inbox");
+
control = bonobo_control_new (folder_browser);
if (control == NULL){
gtk_object_destroy (GTK_OBJECT (folder_browser));
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index c74d49ced7..263577d6f9 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -11,6 +11,7 @@
#include <gnome.h>
#include "e-util/e-util.h"
#include "folder-browser.h"
+#include "session.h"
#define PARENT_TYPE (gtk_table_get_type ())
@@ -27,6 +28,9 @@ folder_browser_destroy (GtkObject *object)
if (folder_browser->uri)
g_free (folder_browser->uri);
+ if (folder_browser->folder)
+ gtk_object_unref (GTK_OBJECT (folder_browser->folder));
+
if (folder_browser->message_list)
bonobo_object_unref (BONOBO_OBJECT (folder_browser->message_list));
@@ -41,14 +45,43 @@ folder_browser_class_init (GtkObjectClass *object_class)
folder_browser_parent_class = gtk_type_class (PARENT_TYPE);
}
+static gboolean
+folder_browser_load_folder (FolderBrowser *fb, const char *name)
+{
+ CamelFolder *new_folder;
+ CamelException *ex;
+
+ ex = camel_exception_new ();
+ new_folder = camel_store_get_folder (default_session->store, name, ex);
+
+ if (camel_exception_get_id (ex)){
+ camel_exception_free (ex);
+ return FALSE;
+ }
+ camel_exception_free (ex);
+
+ if (fb->folder)
+ gtk_object_unref (GTK_OBJECT (fb->folder));
+
+ fb->folder = new_folder;
+
+ message_list_set_folder (fb->message_list, new_folder);
+
+ return TRUE;
+}
+
#define EQUAL(a,b) (strcmp (a,b) == 0)
void
folder_browser_set_uri (FolderBrowser *folder_browser, const char *uri)
{
+ /* FIXME: hardcoded uri */
+ if (!folder_browser_load_folder (folder_browser, "inbox"))
+ return;
+
if (folder_browser->uri)
g_free (folder_browser->uri);
-
+
folder_browser->uri = g_strdup (uri);
}
diff --git a/mail/folder-browser.h b/mail/folder-browser.h
index 2e6fb8d1a4..f845c9f98b 100644
--- a/mail/folder-browser.h
+++ b/mail/folder-browser.h
@@ -22,6 +22,8 @@ typedef struct {
* The current URI being displayed by the FolderBrowser
*/
char *uri;
+ CamelFolder *folder;
+
MessageList *message_list;
GtkWidget *message_list_w;
MailDisplay *mail_display;
diff --git a/mail/main.c b/mail/main.c
index 517d6190e2..2dceb6644e 100644
--- a/mail/main.c
+++ b/mail/main.c
@@ -13,12 +13,15 @@
#include "e-util/e-gui-utils.h"
#include "main.h"
-CORBA_Environment ev;
CORBA_ORB orb;
static void
init_bonobo (int argc, char **argv)
{
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+
gnome_CORBA_init_with_popt_table (
"evolution-mail-component", "1.0",
&argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev);
@@ -30,6 +33,8 @@ init_bonobo (int argc, char **argv)
_("Mail Component: I could not initialize Bonobo"));
exit (1);
}
+
+ CORBA_exception_free (&ev);
}
int
@@ -38,13 +43,17 @@ main (int argc, char *argv [])
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
textdomain (PACKAGE);
- CORBA_exception_init (&ev);
-
init_bonobo (argc, argv);
+ session_init ();
+
folder_browser_factory_init ();
bonobo_main ();
return 0;
}
+
+
+
+
diff --git a/mail/message-list.c b/mail/message-list.c
index 2cb5044f6c..7c2db35b3c 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -55,18 +55,24 @@ static int
ml_row_count (ETableModel *etm, void *data)
{
MessageList *message_list = data;
- CamelException ex;
-
+ CamelException *ex;
+ int v;
+
if (!message_list->folder)
- return 1;
+ return 0;
+
+ ex = camel_exception_new ();
+ v = camel_folder_get_message_count (message_list->folder, ex);
+ camel_exception_free (ex);
- return camel_folder_get_message_count (message_list->folder, &ex);
+ return v;
}
static void *
ml_value_at (ETableModel *etm, int col, int row, void *data)
{
static char buffer [10];
+
switch (col){
case COL_ONLINE_STATUS:
@@ -465,6 +471,7 @@ message_list_set_folder (MessageList *message_list, CamelFolder *camel_folder)
gtk_object_ref (GTK_OBJECT (camel_folder));
+ printf ("Modelo cambio!\n");
e_table_model_changed (message_list->table_model);
}
cb711ed63badfc'>Updated Bulgarian translation by Rostislav Raykov <zbrox@i-space.org>Alexander Shopov2006-03-102-1197/+1236 * Replaced wrong spaces caused by copy/paste inside gtranslator.Frank Arnold2006-03-102-164/+142 * Fix for Bug 331020.Devashish Sharma2006-03-102-3/+8 * Fix for Bug 331023Devashish Sharma2006-03-102-3/+3 * added a bug id which was fixed with the previous patch.Chenthill Palanisamy2006-03-101-1/+1 * Fix for Bug #333855Devashish Sharma2006-03-102-47/+59 * Corrected headers spaceVladimer Sichinava2006-03-101-0/+1 * Updated Georgian TranslationVladimer Sichinava2006-03-102-1551/+1404 * Updated Romanian translationMugurel Tudor2006-03-102-4128/+5189 * Updated Macedonian Translation <arangela@cvs.gnome.org>Arangel Angov2006-03-091-2211/+2470 * Updated Spanish translation (hotkeys).Francisco Javier F. Serrador2006-03-092-203/+151 * Updated Swedish translation.Daniel Nylander2006-03-092-19822/+6182 * Updated Albanian translation.Laurent Dhima2006-03-092-1227/+1383 * Updated TranslationRajesh Ranjan2006-03-082-3950/+5895 * Translation updated by Ivar Smolin.Priit Laes2006-03-072-10/+38 * Never ever forget to do a cvs commit after cvs add.Veerapuram Varadhan2006-03-071-0/+0 * **Fixes #321832 Pickup the right-icon for f/b. Define EVOLUTION_ICONSDIRVeerapuram Varadhan2006-03-065-2/+14 * Fix for Bug 332915.Devashish Sharma2006-03-062-1/+6 * Added new images for the 2.6 documentation.Srinivasa Ragavan2006-03-063-0/+6 * Fixes bug #332140 Changed to transfer filenames from utf-8 to glibSimon Zheng2006-03-062-4/+13 * Fixes bug #332140Simon Zheng2006-03-063-9/+23 * Fixes bug #332140 Transfer filenames from utf-8 to glib encoding beforeSimon Zheng2006-03-062-4/+13 * Updating the doc for 2.6.Srinivasa Ragavan2006-03-062-330/+774 * Updated Ukrainian translation.Maxim Dziumanenko2006-03-062-4008/+5137 * Fixed Russian translationLeonid Kanter2006-03-062-5/+7 * ** Fixes for 333235 If width of a widget is 0, don't draw it.Jeff Cai2006-03-062-4/+12 * Fixes #311482 As uri is encaped ASCII-encoded, it can't be recognized whenSimon Zheng2006-03-062-2/+9 * Fix for Bug 332136.Devashish Sharma2006-03-064-17/+12 * Fix for 331550.Harry Lu2006-03-063-0/+14 * committed fix for bug #328988Srinivasa Ragavan2006-03-063-76/+60 * Updated German translation.Frank Arnold2006-03-062-3997/+5551 * fixes #330448Chenthill Palanisamy2006-03-062-0/+13 * Fixes #329353Chenthill Palanisamy2006-03-062-1/+8 * Freeing GConfValue. See #329251.Sushma Rai2006-03-062-1/+8 * Not unrefing the account passed to the signal handler. Fixes #332129.Sushma Rai2006-03-062-3/+5 * Fixed some strings and partial update of Danish translation.Ole Laursen2006-03-062-4483/+6076 * Updated evolution zh_CN translation.Funda Wang2006-03-052-264/+275 * Static image preview in contact-editor image selector.Devashish Sharma2006-03-051-6/+7 * Fix for bug 268458.Devashish Sharma2006-03-052-1/+5 * Updated French translation.Benoît Dejean2006-03-052-4350/+5544 * Updated Thai translation.Theppitak Karoonboonyanan2006-03-052-38/+42 * Updated Finnish translationIlkka Tuohela2006-03-041-10/+10 * Fixes #333234 Initialize calendar to ensure gconf_client is valid.Jeff Cai2006-03-042-0/+11 * Updated Finnish inboxIlkka Tuohela2006-03-041-1/+1 * Fixes #331089Chenthill Palanisamy2006-03-042-2/+14 * included the header file, authentication.hChenthill Palanisamy2006-03-041-0/+1 * fixes #330974.Chenthill Palanisamy2006-03-042-2/+11 * Updated Czech translation.Lukas Novotny2006-03-042-411/+343 * configure.in, added support for macedonian (mk) welcome messageAndre Klapper2006-03-044-1/+14 * added mail/default/lt/Makefile Fixes bug 333282. (committed by aklapper)Elijah Newren2006-03-042-0/+6 * Tino Meinen updated the Dutch welcome message.Vincent van Adrighem2006-03-042-69/+99 * Fixes #328389Chenthill Palanisamy2006-03-032-2/+26 * Fixes #324560 Request notification of changes to show_task_preview.Sam Yang2006-03-034-0/+38 * Fixes #312423, #329749Chenthill Palanisamy2006-03-033-11/+29 * Updated Lithuanian translation.Žygimantas Beručka2006-03-032-128/+133 * Added Lithuanian to SUBDIRS. Added Lithuanian translation for defaultŽygimantas Beručka2006-03-034-10/+390 * Updated Thai translation.Theppitak Karoonboonyanan2006-03-032-149/+155 * Updated Spanish translation.Francisco Javier F. Serrador2006-03-032-302/+130 * Updated Finnish default Inbox:Ilkka Tuohela2006-03-032-59/+78 * added mail/default/fi/Makefile Fixes bug 333079. (committed by aklapper)Elijah Newren2006-03-022-0/+6 * Committing fix for bug #328283Srinivasa Ragavan2006-03-022-2/+10 * Added localized default mailbox for FinnishIlkka Tuohela2006-03-025-1/+377 * Added Macedonian TranslationArangel Angov2006-03-021-0/+2 * Added Macedonian translationArangel Angov2006-03-021-0/+7 * Added Macedonian Translation <ArangelA@cvs.gnome.org>Arangel Angov2006-03-021-0/+369 * Updated Russian translationLeonid Kanter2006-03-012-98/+124 * ** Fixes bug #331400Simon Zheng2006-03-012-1/+15 * committed fix for moving composer window up the stack.Srinivasa Ragavan2006-03-012-0/+9 * Takes care of non SSL accounts too. Fixes #332948Sankar P2006-03-012-4/+11 * Update the Welcome mail.Andre Klapper2006-03-012-45/+60 * *** empty log message ***Ignacio Casal Quinteiro2006-03-012-107/+115 * Updated Macedonian Translation <arangela@cvs.gnome.org>Arangel Angov2006-03-011-4786/+5625 * Fixed wrong translations.Takeshi AIHANA2006-02-282-51/+55 * fixes #332726Chenthill Palanisamy2006-02-282-9/+6 * fixing a leak.Christian Kellner2006-02-284-8/+15 * Fix for Bug #331998.Devashish Sharma2006-02-282-0/+9 * Updated Italian translation.Luca Ferretti2006-02-282-4237/+5574 * added "ta" to ALL_LINGUASAndre Klapper2006-02-282-1/+5 * Fix for Bug 332811Devashish Sharma2006-02-282-1/+6 * Updated TranslationAnkitkumar Rameshchandra Patel2006-02-282-91/+108 * added hi to configure inRajesh Ranjan2006-02-282-1/+5 * vi.po: Updated Vietnamese translation.Clytie Siddall2006-02-282-122/+131 * Updated Traditional Chinese translation(Taiwan). Updated TraditionalChao-Hsiung Liao2006-02-283-178/+195 * Fix for Bug #332498: Orphaned category editor crashes evo.Devashish Sharma2006-02-282-3/+22 * Fixing a typo and pdf.Andre Klapper2006-02-283-1/+4 * Updating quickref and pdf. Fixes bug 316797.Andre Klapper2006-02-283-41/+50 * Updated Spanish translation.Francisco Javier F. Serrador2006-02-282-103/+118 * Make the verify/decrypt gpg diagnostic text selectable in the securityJeffrey Stedfast2006-02-282-0/+9 * Release updates, version bump. ***** Release 2.5.92 *****Srinivasa Ragavan2006-02-273-1/+37 * Fixed some typos.Inaki Larranaga2006-02-272-1/+5 * Fixed the typo "retrun" to "return"Sushma Rai2006-02-272-1/+5 * Commited fix for crash during startup.Srinivasa Ragavan2006-02-272-1/+6 * NULL check for accounts. Fixes #332185.Sushma Rai2006-02-273-1/+16 * Updated Welsh translation.Rhys Jones2006-02-272-391/+501 * Fix for bug #322689Devashish Sharma2006-02-272-1/+7 * Updated Basque translation.Inaki Larranaga2006-02-272-7107/+7330 * Trying to get the exchange account, only when invoked for exchange accountSushma Rai2006-02-272-33/+68 * Added bug id to the changelog.Sushma Rai2006-02-271-1/+1 * Fixed the problem with the sent and drafts folder URIs and alsoSushma Rai2006-02-272-15/+56 * Updated Norwegian bokmÃ¥l translation. Same.Kjartan Maraas2006-02-263-150/+183 * Updated Japanese translation for v2.13.91.Takeshi AIHANA2006-02-252-2335/+2618 * Updated Greek translationKostas Papadimas2006-02-252-116/+222 * update for change stringAmanpreet Singh Alam2006-02-251-3023/+3435 * Memory leak fixes. See #329251.Sushma Rai2006-02-253-0/+12 * Updated Greek translationKostas Papadimas2006-02-252-281/+188 * Committing Rohini's patch for bug #324742.Srinivasa Ragavan2006-02-242-7/+37 * Fixed bug #332408Srinivasa Ragavan2006-02-242-0/+56 * Fixes bug #322789Srinivasa Ragavan2006-02-242-2/+10 * Added code to handle the case if the account is marked as default. FixesSankar P2006-02-242-2/+18 * Fixes #330677Chenthill Palanisamy2006-02-242-8/+15 * Small Catalan translation updateJordi Mas2006-02-242-10/+14 * Updated Finnish translationIlkka Tuohela2006-02-231-1/+1 * Updated Finnish translationIlkka Tuohela2006-02-232-59/+66 * ** Fixes bug #329733Veerapuram Varadhan2006-02-232-3/+38 * Fix for Bug #332123.Devashish Sharma2006-02-232-0/+7 * New->Contact should create contact on selected addressbook.Devashish Sharma2006-02-232-1/+31 * ka.po: Added Georgian translation.Clytie Siddall2006-02-232-0/+22285 * Translation updated by Ivar Smolin.Priit Laes2006-02-222-11/+26